From 345f7c6275d88959ae2352686a6fc4c8fb56560c Mon Sep 17 00:00:00 2001 From: Andrew Mason Date: Mon, 22 Feb 2021 22:12:28 -0500 Subject: [PATCH 1/7] Organize vtctldata.proto and regenerate Signed-off-by: Andrew Mason --- web/vtadmin/src/proto/vtadmin.d.ts | 8163 ++++++++--- web/vtadmin/src/proto/vtadmin.js | 20951 ++++++++++++++++++++------- 2 files changed, 21280 insertions(+), 7834 deletions(-) diff --git a/web/vtadmin/src/proto/vtadmin.d.ts b/web/vtadmin/src/proto/vtadmin.d.ts index fe68a042845..11bcc0a9629 100644 --- a/web/vtadmin/src/proto/vtadmin.d.ts +++ b/web/vtadmin/src/proto/vtadmin.d.ts @@ -20567,5425 +20567,9162 @@ export namespace vtctldata { public toJSON(): { [k: string]: any }; } + /** Properties of a TableMaterializeSettings. */ + interface ITableMaterializeSettings { + + /** TableMaterializeSettings target_table */ + target_table?: (string|null); + + /** TableMaterializeSettings source_expression */ + source_expression?: (string|null); + + /** TableMaterializeSettings create_ddl */ + create_ddl?: (string|null); + } + + /** Represents a TableMaterializeSettings. */ + class TableMaterializeSettings implements ITableMaterializeSettings { + + /** + * Constructs a new TableMaterializeSettings. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ITableMaterializeSettings); + + /** TableMaterializeSettings target_table. */ + public target_table: string; + + /** TableMaterializeSettings source_expression. */ + public source_expression: string; + + /** TableMaterializeSettings create_ddl. */ + public create_ddl: string; + + /** + * Creates a new TableMaterializeSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns TableMaterializeSettings instance + */ + public static create(properties?: vtctldata.ITableMaterializeSettings): vtctldata.TableMaterializeSettings; + + /** + * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * @param message TableMaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * @param message TableMaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TableMaterializeSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TableMaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TableMaterializeSettings; + + /** + * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TableMaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TableMaterializeSettings; + + /** + * Verifies a TableMaterializeSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TableMaterializeSettings + */ + public static fromObject(object: { [k: string]: any }): vtctldata.TableMaterializeSettings; + + /** + * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. + * @param message TableMaterializeSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.TableMaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TableMaterializeSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MaterializeSettings. */ + interface IMaterializeSettings { + + /** MaterializeSettings workflow */ + workflow?: (string|null); + + /** MaterializeSettings source_keyspace */ + source_keyspace?: (string|null); + + /** MaterializeSettings target_keyspace */ + target_keyspace?: (string|null); + + /** MaterializeSettings stop_after_copy */ + stop_after_copy?: (boolean|null); + + /** MaterializeSettings table_settings */ + table_settings?: (vtctldata.ITableMaterializeSettings[]|null); + + /** MaterializeSettings cell */ + cell?: (string|null); + + /** MaterializeSettings tablet_types */ + tablet_types?: (string|null); + + /** MaterializeSettings external_cluster */ + external_cluster?: (string|null); + } + + /** Represents a MaterializeSettings. */ + class MaterializeSettings implements IMaterializeSettings { + + /** + * Constructs a new MaterializeSettings. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMaterializeSettings); + + /** MaterializeSettings workflow. */ + public workflow: string; + + /** MaterializeSettings source_keyspace. */ + public source_keyspace: string; + + /** MaterializeSettings target_keyspace. */ + public target_keyspace: string; + + /** MaterializeSettings stop_after_copy. */ + public stop_after_copy: boolean; + + /** MaterializeSettings table_settings. */ + public table_settings: vtctldata.ITableMaterializeSettings[]; + + /** MaterializeSettings cell. */ + public cell: string; + + /** MaterializeSettings tablet_types. */ + public tablet_types: string; + + /** MaterializeSettings external_cluster. */ + public external_cluster: string; + + /** + * Creates a new MaterializeSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns MaterializeSettings instance + */ + public static create(properties?: vtctldata.IMaterializeSettings): vtctldata.MaterializeSettings; + + /** + * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * @param message MaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * @param message MaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MaterializeSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeSettings; + + /** + * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeSettings; + + /** + * Verifies a MaterializeSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MaterializeSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MaterializeSettings + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeSettings; + + /** + * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. + * @param message MaterializeSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MaterializeSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Keyspace. */ + interface IKeyspace { + + /** Keyspace name */ + name?: (string|null); + + /** Keyspace keyspace */ + keyspace?: (topodata.IKeyspace|null); + } + + /** Represents a Keyspace. */ + class Keyspace implements IKeyspace { + + /** + * Constructs a new Keyspace. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IKeyspace); + + /** Keyspace name. */ + public name: string; + + /** Keyspace keyspace. */ + public keyspace?: (topodata.IKeyspace|null); + + /** + * Creates a new Keyspace instance using the specified properties. + * @param [properties] Properties to set + * @returns Keyspace instance + */ + public static create(properties?: vtctldata.IKeyspace): vtctldata.Keyspace; + + /** + * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Keyspace message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Keyspace; + + /** + * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Keyspace; + + /** + * Verifies a Keyspace message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Keyspace + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Keyspace; + + /** + * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * @param message Keyspace + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Keyspace to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Shard. */ + interface IShard { + + /** Shard keyspace */ + keyspace?: (string|null); + + /** Shard name */ + name?: (string|null); + + /** Shard shard */ + shard?: (topodata.IShard|null); + } + + /** Represents a Shard. */ + class Shard implements IShard { + + /** + * Constructs a new Shard. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShard); + + /** Shard keyspace. */ + public keyspace: string; + + /** Shard name. */ + public name: string; + + /** Shard shard. */ + public shard?: (topodata.IShard|null); + + /** + * Creates a new Shard instance using the specified properties. + * @param [properties] Properties to set + * @returns Shard instance + */ + public static create(properties?: vtctldata.IShard): vtctldata.Shard; + + /** + * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * @param message Shard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * @param message Shard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Shard message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Shard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Shard; + + /** + * Decodes a Shard message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Shard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Shard; + + /** + * Verifies a Shard message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Shard message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Shard + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Shard; + + /** + * Creates a plain object from a Shard message. Also converts values to other types if specified. + * @param message Shard + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Shard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Shard to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Workflow. */ + interface IWorkflow { + + /** Workflow name */ + name?: (string|null); + + /** Workflow source */ + source?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow target */ + target?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow max_v_replication_lag */ + max_v_replication_lag?: (number|Long|null); + + /** Workflow shard_streams */ + shard_streams?: ({ [k: string]: vtctldata.Workflow.IShardStream }|null); + } + + /** Represents a Workflow. */ + class Workflow implements IWorkflow { + + /** + * Constructs a new Workflow. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflow); + + /** Workflow name. */ + public name: string; + + /** Workflow source. */ + public source?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow target. */ + public target?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow max_v_replication_lag. */ + public max_v_replication_lag: (number|Long); + + /** Workflow shard_streams. */ + public shard_streams: { [k: string]: vtctldata.Workflow.IShardStream }; + + /** + * Creates a new Workflow instance using the specified properties. + * @param [properties] Properties to set + * @returns Workflow instance + */ + public static create(properties?: vtctldata.IWorkflow): vtctldata.Workflow; + + /** + * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * @param message Workflow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * @param message Workflow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Workflow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow; + + /** + * Decodes a Workflow message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow; + + /** + * Verifies a Workflow message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Workflow message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Workflow + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow; + + /** + * Creates a plain object from a Workflow message. Also converts values to other types if specified. + * @param message Workflow + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Workflow to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Workflow { + + /** Properties of a ReplicationLocation. */ + interface IReplicationLocation { + + /** ReplicationLocation keyspace */ + keyspace?: (string|null); + + /** ReplicationLocation shards */ + shards?: (string[]|null); + } + + /** Represents a ReplicationLocation. */ + class ReplicationLocation implements IReplicationLocation { + + /** + * Constructs a new ReplicationLocation. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.IReplicationLocation); + + /** ReplicationLocation keyspace. */ + public keyspace: string; + + /** ReplicationLocation shards. */ + public shards: string[]; + + /** + * Creates a new ReplicationLocation instance using the specified properties. + * @param [properties] Properties to set + * @returns ReplicationLocation instance + */ + public static create(properties?: vtctldata.Workflow.IReplicationLocation): vtctldata.Workflow.ReplicationLocation; + + /** + * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @param message ReplicationLocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @param message ReplicationLocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReplicationLocation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ReplicationLocation; + + /** + * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ReplicationLocation; + + /** + * Verifies a ReplicationLocation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReplicationLocation + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ReplicationLocation; + + /** + * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. + * @param message ReplicationLocation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.ReplicationLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReplicationLocation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ShardStream. */ + interface IShardStream { + + /** ShardStream streams */ + streams?: (vtctldata.Workflow.IStream[]|null); + + /** ShardStream tablet_controls */ + tablet_controls?: (topodata.Shard.ITabletControl[]|null); + + /** ShardStream is_primary_serving */ + is_primary_serving?: (boolean|null); + } + + /** Represents a ShardStream. */ + class ShardStream implements IShardStream { + + /** + * Constructs a new ShardStream. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.IShardStream); + + /** ShardStream streams. */ + public streams: vtctldata.Workflow.IStream[]; + + /** ShardStream tablet_controls. */ + public tablet_controls: topodata.Shard.ITabletControl[]; + + /** ShardStream is_primary_serving. */ + public is_primary_serving: boolean; + + /** + * Creates a new ShardStream instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardStream instance + */ + public static create(properties?: vtctldata.Workflow.IShardStream): vtctldata.Workflow.ShardStream; + + /** + * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @param message ShardStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @param message ShardStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ShardStream; + + /** + * Decodes a ShardStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ShardStream; + + /** + * Verifies a ShardStream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardStream + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ShardStream; + + /** + * Creates a plain object from a ShardStream message. Also converts values to other types if specified. + * @param message ShardStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.ShardStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Stream. */ + interface IStream { + + /** Stream id */ + id?: (number|Long|null); + + /** Stream shard */ + shard?: (string|null); + + /** Stream tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** Stream binlog_source */ + binlog_source?: (binlogdata.IBinlogSource|null); + + /** Stream position */ + position?: (string|null); + + /** Stream stop_position */ + stop_position?: (string|null); + + /** Stream state */ + state?: (string|null); + + /** Stream db_name */ + db_name?: (string|null); + + /** Stream transaction_timestamp */ + transaction_timestamp?: (vttime.ITime|null); + + /** Stream time_updated */ + time_updated?: (vttime.ITime|null); + + /** Stream message */ + message?: (string|null); + + /** Stream copy_states */ + copy_states?: (vtctldata.Workflow.Stream.ICopyState[]|null); + } + + /** Represents a Stream. */ + class Stream implements IStream { + + /** + * Constructs a new Stream. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.IStream); + + /** Stream id. */ + public id: (number|Long); + + /** Stream shard. */ + public shard: string; + + /** Stream tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** Stream binlog_source. */ + public binlog_source?: (binlogdata.IBinlogSource|null); + + /** Stream position. */ + public position: string; + + /** Stream stop_position. */ + public stop_position: string; + + /** Stream state. */ + public state: string; + + /** Stream db_name. */ + public db_name: string; + + /** Stream transaction_timestamp. */ + public transaction_timestamp?: (vttime.ITime|null); + + /** Stream time_updated. */ + public time_updated?: (vttime.ITime|null); + + /** Stream message. */ + public message: string; + + /** Stream copy_states. */ + public copy_states: vtctldata.Workflow.Stream.ICopyState[]; + + /** + * Creates a new Stream instance using the specified properties. + * @param [properties] Properties to set + * @returns Stream instance + */ + public static create(properties?: vtctldata.Workflow.IStream): vtctldata.Workflow.Stream; + + /** + * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @param message Stream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @param message Stream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Stream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream; + + /** + * Decodes a Stream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream; + + /** + * Verifies a Stream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Stream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Stream + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream; + + /** + * Creates a plain object from a Stream message. Also converts values to other types if specified. + * @param message Stream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.Stream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Stream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Stream { + + /** Properties of a CopyState. */ + interface ICopyState { + + /** CopyState table */ + table?: (string|null); + + /** CopyState last_pk */ + last_pk?: (string|null); + } + + /** Represents a CopyState. */ + class CopyState implements ICopyState { + + /** + * Constructs a new CopyState. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.Stream.ICopyState); + + /** CopyState table. */ + public table: string; + + /** CopyState last_pk. */ + public last_pk: string; + + /** + * Creates a new CopyState instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyState instance + */ + public static create(properties?: vtctldata.Workflow.Stream.ICopyState): vtctldata.Workflow.Stream.CopyState; + + /** + * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @param message CopyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @param message CopyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CopyState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.CopyState; + + /** + * Decodes a CopyState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.CopyState; + + /** + * Verifies a CopyState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CopyState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyState + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.CopyState; + + /** + * Creates a plain object from a CopyState message. Also converts values to other types if specified. + * @param message CopyState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.Stream.CopyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CopyState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + /** Properties of a ChangeTabletTypeRequest. */ interface IChangeTabletTypeRequest { - /** ChangeTabletTypeRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** ChangeTabletTypeRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTypeRequest db_type */ + db_type?: (topodata.TabletType|null); + + /** ChangeTabletTypeRequest dry_run */ + dry_run?: (boolean|null); + } + + /** Represents a ChangeTabletTypeRequest. */ + class ChangeTabletTypeRequest implements IChangeTabletTypeRequest { + + /** + * Constructs a new ChangeTabletTypeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTypeRequest); + + /** ChangeTabletTypeRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTypeRequest db_type. */ + public db_type: topodata.TabletType; + + /** ChangeTabletTypeRequest dry_run. */ + public dry_run: boolean; + + /** + * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTypeRequest instance + */ + public static create(properties?: vtctldata.IChangeTabletTypeRequest): vtctldata.ChangeTabletTypeRequest; + + /** + * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * @param message ChangeTabletTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * @param message ChangeTabletTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeRequest; + + /** + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeRequest; + + /** + * Verifies a ChangeTabletTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTypeRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeRequest; + + /** + * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. + * @param message ChangeTabletTypeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ChangeTabletTypeResponse. */ + interface IChangeTabletTypeResponse { + + /** ChangeTabletTypeResponse before_tablet */ + before_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse after_tablet */ + after_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse was_dry_run */ + was_dry_run?: (boolean|null); + } + + /** Represents a ChangeTabletTypeResponse. */ + class ChangeTabletTypeResponse implements IChangeTabletTypeResponse { + + /** + * Constructs a new ChangeTabletTypeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTypeResponse); + + /** ChangeTabletTypeResponse before_tablet. */ + public before_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse after_tablet. */ + public after_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse was_dry_run. */ + public was_dry_run: boolean; + + /** + * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTypeResponse instance + */ + public static create(properties?: vtctldata.IChangeTabletTypeResponse): vtctldata.ChangeTabletTypeResponse; + + /** + * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * @param message ChangeTabletTypeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * @param message ChangeTabletTypeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeResponse; + + /** + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeResponse; + + /** + * Verifies a ChangeTabletTypeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTypeResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeResponse; + + /** + * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. + * @param message ChangeTabletTypeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTypeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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 sharding_column_name */ + sharding_column_name?: (string|null); + + /** CreateKeyspaceRequest sharding_column_type */ + sharding_column_type?: (topodata.KeyspaceIdType|null); + + /** CreateKeyspaceRequest served_froms */ + served_froms?: (topodata.Keyspace.IServedFrom[]|null); + + /** CreateKeyspaceRequest type */ + type?: (topodata.KeyspaceType|null); + + /** CreateKeyspaceRequest base_keyspace */ + base_keyspace?: (string|null); + + /** CreateKeyspaceRequest snapshot_time */ + snapshot_time?: (vttime.ITime|null); + } + + /** Represents a CreateKeyspaceRequest. */ + class CreateKeyspaceRequest implements ICreateKeyspaceRequest { + + /** + * Constructs a new CreateKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateKeyspaceRequest); + + /** CreateKeyspaceRequest name. */ + public name: string; + + /** CreateKeyspaceRequest force. */ + public force: boolean; + + /** CreateKeyspaceRequest allow_empty_v_schema. */ + public allow_empty_v_schema: boolean; + + /** CreateKeyspaceRequest sharding_column_name. */ + public sharding_column_name: string; + + /** CreateKeyspaceRequest sharding_column_type. */ + public sharding_column_type: topodata.KeyspaceIdType; + + /** CreateKeyspaceRequest served_froms. */ + public served_froms: topodata.Keyspace.IServedFrom[]; + + /** CreateKeyspaceRequest type. */ + public type: topodata.KeyspaceType; + + /** CreateKeyspaceRequest base_keyspace. */ + public base_keyspace: string; + + /** CreateKeyspaceRequest snapshot_time. */ + public snapshot_time?: (vttime.ITime|null); + + /** + * Creates a new CreateKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateKeyspaceRequest instance + */ + public static create(properties?: vtctldata.ICreateKeyspaceRequest): vtctldata.CreateKeyspaceRequest; + + /** + * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * @param message CreateKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * @param message CreateKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceRequest; + + /** + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceRequest; + + /** + * Verifies a CreateKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceRequest; + + /** + * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. + * @param message CreateKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateKeyspaceResponse. */ + interface ICreateKeyspaceResponse { + + /** CreateKeyspaceResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); + } + + /** Represents a CreateKeyspaceResponse. */ + class CreateKeyspaceResponse implements ICreateKeyspaceResponse { + + /** + * Constructs a new CreateKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateKeyspaceResponse); + + /** CreateKeyspaceResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); + + /** + * Creates a new CreateKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateKeyspaceResponse instance + */ + public static create(properties?: vtctldata.ICreateKeyspaceResponse): vtctldata.CreateKeyspaceResponse; + + /** + * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * @param message CreateKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * @param message CreateKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceResponse; + + /** + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceResponse; + + /** + * Verifies a CreateKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceResponse; + + /** + * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. + * @param message CreateKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateShardRequest. */ + interface ICreateShardRequest { + + /** CreateShardRequest keyspace */ + keyspace?: (string|null); + + /** CreateShardRequest shard_name */ + shard_name?: (string|null); + + /** CreateShardRequest force */ + force?: (boolean|null); + + /** CreateShardRequest include_parent */ + include_parent?: (boolean|null); + } + + /** Represents a CreateShardRequest. */ + class CreateShardRequest implements ICreateShardRequest { + + /** + * Constructs a new CreateShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateShardRequest); + + /** CreateShardRequest keyspace. */ + public keyspace: string; + + /** CreateShardRequest shard_name. */ + public shard_name: string; + + /** CreateShardRequest force. */ + public force: boolean; + + /** CreateShardRequest include_parent. */ + public include_parent: boolean; + + /** + * Creates a new CreateShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateShardRequest instance + */ + public static create(properties?: vtctldata.ICreateShardRequest): vtctldata.CreateShardRequest; + + /** + * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * @param message CreateShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * @param message CreateShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardRequest; + + /** + * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardRequest; + + /** + * Verifies a CreateShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardRequest; + + /** + * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. + * @param message CreateShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateShardResponse. */ + interface ICreateShardResponse { + + /** CreateShardResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); + + /** CreateShardResponse shard */ + shard?: (vtctldata.IShard|null); + + /** CreateShardResponse shard_already_exists */ + shard_already_exists?: (boolean|null); + } + + /** Represents a CreateShardResponse. */ + class CreateShardResponse implements ICreateShardResponse { + + /** + * Constructs a new CreateShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateShardResponse); + + /** CreateShardResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); + + /** CreateShardResponse shard. */ + public shard?: (vtctldata.IShard|null); + + /** CreateShardResponse shard_already_exists. */ + public shard_already_exists: boolean; + + /** + * Creates a new CreateShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateShardResponse instance + */ + public static create(properties?: vtctldata.ICreateShardResponse): vtctldata.CreateShardResponse; + + /** + * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * @param message CreateShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * @param message CreateShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardResponse; + + /** + * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardResponse; + + /** + * Verifies a CreateShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardResponse; + + /** + * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. + * @param message CreateShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteKeyspaceRequest. */ + interface IDeleteKeyspaceRequest { + + /** DeleteKeyspaceRequest keyspace */ + keyspace?: (string|null); + + /** DeleteKeyspaceRequest recursive */ + recursive?: (boolean|null); + } + + /** Represents a DeleteKeyspaceRequest. */ + class DeleteKeyspaceRequest implements IDeleteKeyspaceRequest { + + /** + * Constructs a new DeleteKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteKeyspaceRequest); + + /** DeleteKeyspaceRequest keyspace. */ + public keyspace: string; + + /** DeleteKeyspaceRequest recursive. */ + public recursive: boolean; + + /** + * Creates a new DeleteKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IDeleteKeyspaceRequest): vtctldata.DeleteKeyspaceRequest; + + /** + * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * @param message DeleteKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * @param message DeleteKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceRequest; + + /** + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceRequest; + + /** + * Verifies a DeleteKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceRequest; + + /** + * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. + * @param message DeleteKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteKeyspaceResponse. */ + interface IDeleteKeyspaceResponse { + } + + /** Represents a DeleteKeyspaceResponse. */ + class DeleteKeyspaceResponse implements IDeleteKeyspaceResponse { + + /** + * Constructs a new DeleteKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteKeyspaceResponse); + + /** + * Creates a new DeleteKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IDeleteKeyspaceResponse): vtctldata.DeleteKeyspaceResponse; + + /** + * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * @param message DeleteKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * @param message DeleteKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceResponse; + + /** + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceResponse; + + /** + * Verifies a DeleteKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceResponse; + + /** + * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. + * @param message DeleteKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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); + } + + /** Represents a DeleteShardsRequest. */ + class DeleteShardsRequest implements IDeleteShardsRequest { + + /** + * Constructs a new DeleteShardsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteShardsRequest); + + /** DeleteShardsRequest shards. */ + public shards: vtctldata.IShard[]; + + /** DeleteShardsRequest recursive. */ + public recursive: boolean; + + /** DeleteShardsRequest even_if_serving. */ + public even_if_serving: boolean; + + /** + * Creates a new DeleteShardsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteShardsRequest instance + */ + public static create(properties?: vtctldata.IDeleteShardsRequest): vtctldata.DeleteShardsRequest; + + /** + * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * @param message DeleteShardsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * @param message DeleteShardsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteShardsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteShardsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsRequest; + + /** + * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteShardsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsRequest; + + /** + * Verifies a DeleteShardsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteShardsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsRequest; + + /** + * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. + * @param message DeleteShardsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteShardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteShardsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteShardsResponse. */ + interface IDeleteShardsResponse { + } + + /** Represents a DeleteShardsResponse. */ + class DeleteShardsResponse implements IDeleteShardsResponse { + + /** + * Constructs a new DeleteShardsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteShardsResponse); + + /** + * Creates a new DeleteShardsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteShardsResponse instance + */ + public static create(properties?: vtctldata.IDeleteShardsResponse): vtctldata.DeleteShardsResponse; + + /** + * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * @param message DeleteShardsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * @param message DeleteShardsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteShardsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteShardsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsResponse; + + /** + * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteShardsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsResponse; + + /** + * Verifies a DeleteShardsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteShardsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsResponse; + + /** + * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. + * @param message DeleteShardsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteShardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteShardsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteTabletsRequest. */ + interface IDeleteTabletsRequest { + + /** DeleteTabletsRequest tablet_aliases */ + tablet_aliases?: (topodata.ITabletAlias[]|null); + + /** DeleteTabletsRequest allow_primary */ + allow_primary?: (boolean|null); + } + + /** Represents a DeleteTabletsRequest. */ + class DeleteTabletsRequest implements IDeleteTabletsRequest { + + /** + * Constructs a new DeleteTabletsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteTabletsRequest); + + /** DeleteTabletsRequest tablet_aliases. */ + public tablet_aliases: topodata.ITabletAlias[]; + + /** DeleteTabletsRequest allow_primary. */ + public allow_primary: boolean; + + /** + * Creates a new DeleteTabletsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTabletsRequest instance + */ + public static create(properties?: vtctldata.IDeleteTabletsRequest): vtctldata.DeleteTabletsRequest; + + /** + * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * @param message DeleteTabletsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * @param message DeleteTabletsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTabletsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTabletsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsRequest; + + /** + * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTabletsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsRequest; + + /** + * Verifies a DeleteTabletsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTabletsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsRequest; + + /** + * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. + * @param message DeleteTabletsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteTabletsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteTabletsResponse. */ + interface IDeleteTabletsResponse { + } + + /** Represents a DeleteTabletsResponse. */ + class DeleteTabletsResponse implements IDeleteTabletsResponse { + + /** + * Constructs a new DeleteTabletsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteTabletsResponse); + + /** + * Creates a new DeleteTabletsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTabletsResponse instance + */ + public static create(properties?: vtctldata.IDeleteTabletsResponse): vtctldata.DeleteTabletsResponse; + + /** + * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * @param message DeleteTabletsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * @param message DeleteTabletsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTabletsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTabletsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsResponse; + + /** + * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTabletsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsResponse; + + /** + * Verifies a DeleteTabletsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTabletsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsResponse; + + /** + * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. + * @param message DeleteTabletsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteTabletsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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); + } + + /** Represents an EmergencyReparentShardRequest. */ + class EmergencyReparentShardRequest implements IEmergencyReparentShardRequest { + + /** + * Constructs a new EmergencyReparentShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IEmergencyReparentShardRequest); + + /** EmergencyReparentShardRequest keyspace. */ + public keyspace: string; + + /** EmergencyReparentShardRequest shard. */ + public shard: string; + + /** EmergencyReparentShardRequest new_primary. */ + public new_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardRequest ignore_replicas. */ + public ignore_replicas: topodata.ITabletAlias[]; + + /** EmergencyReparentShardRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); + + /** + * Creates a new EmergencyReparentShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns EmergencyReparentShardRequest instance + */ + public static create(properties?: vtctldata.IEmergencyReparentShardRequest): vtctldata.EmergencyReparentShardRequest; + + /** + * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * @param message EmergencyReparentShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * @param message EmergencyReparentShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmergencyReparentShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardRequest; + + /** + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EmergencyReparentShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardRequest; + + /** + * Verifies an EmergencyReparentShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EmergencyReparentShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EmergencyReparentShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardRequest; + + /** + * Creates a plain object from an EmergencyReparentShardRequest message. Also converts values to other types if specified. + * @param message EmergencyReparentShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.EmergencyReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EmergencyReparentShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EmergencyReparentShardResponse. */ + interface IEmergencyReparentShardResponse { + + /** EmergencyReparentShardResponse keyspace */ + keyspace?: (string|null); + + /** EmergencyReparentShardResponse shard */ + shard?: (string|null); + + /** EmergencyReparentShardResponse promoted_primary */ + promoted_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardResponse events */ + events?: (logutil.IEvent[]|null); + } + + /** Represents an EmergencyReparentShardResponse. */ + class EmergencyReparentShardResponse implements IEmergencyReparentShardResponse { + + /** + * Constructs a new EmergencyReparentShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IEmergencyReparentShardResponse); + + /** EmergencyReparentShardResponse keyspace. */ + public keyspace: string; + + /** EmergencyReparentShardResponse shard. */ + public shard: string; + + /** EmergencyReparentShardResponse promoted_primary. */ + public promoted_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardResponse events. */ + public events: logutil.IEvent[]; + + /** + * Creates a new EmergencyReparentShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns EmergencyReparentShardResponse instance + */ + public static create(properties?: vtctldata.IEmergencyReparentShardResponse): vtctldata.EmergencyReparentShardResponse; + + /** + * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * @param message EmergencyReparentShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EmergencyReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * @param message EmergencyReparentShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmergencyReparentShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardResponse; + + /** + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EmergencyReparentShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardResponse; + + /** + * Verifies an EmergencyReparentShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EmergencyReparentShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EmergencyReparentShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardResponse; + + /** + * Creates a plain object from an EmergencyReparentShardResponse message. Also converts values to other types if specified. + * @param message EmergencyReparentShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.EmergencyReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EmergencyReparentShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FindAllShardsInKeyspaceRequest. */ + interface IFindAllShardsInKeyspaceRequest { + + /** FindAllShardsInKeyspaceRequest keyspace */ + keyspace?: (string|null); + } + + /** Represents a FindAllShardsInKeyspaceRequest. */ + class FindAllShardsInKeyspaceRequest implements IFindAllShardsInKeyspaceRequest { + + /** + * Constructs a new FindAllShardsInKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IFindAllShardsInKeyspaceRequest); + + /** FindAllShardsInKeyspaceRequest keyspace. */ + public keyspace: string; + + /** + * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns FindAllShardsInKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IFindAllShardsInKeyspaceRequest): vtctldata.FindAllShardsInKeyspaceRequest; + + /** + * Encodes the specified FindAllShardsInKeyspaceRequest message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * @param message FindAllShardsInKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FindAllShardsInKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * @param message FindAllShardsInKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FindAllShardsInKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceRequest; + + /** + * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FindAllShardsInKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceRequest; + + /** + * Verifies a FindAllShardsInKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FindAllShardsInKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FindAllShardsInKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceRequest; + + /** + * Creates a plain object from a FindAllShardsInKeyspaceRequest message. Also converts values to other types if specified. + * @param message FindAllShardsInKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.FindAllShardsInKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FindAllShardsInKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FindAllShardsInKeyspaceResponse. */ + interface IFindAllShardsInKeyspaceResponse { + + /** FindAllShardsInKeyspaceResponse shards */ + shards?: ({ [k: string]: vtctldata.IShard }|null); + } + + /** Represents a FindAllShardsInKeyspaceResponse. */ + class FindAllShardsInKeyspaceResponse implements IFindAllShardsInKeyspaceResponse { + + /** + * Constructs a new FindAllShardsInKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IFindAllShardsInKeyspaceResponse); + + /** FindAllShardsInKeyspaceResponse shards. */ + public shards: { [k: string]: vtctldata.IShard }; + + /** + * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns FindAllShardsInKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IFindAllShardsInKeyspaceResponse): vtctldata.FindAllShardsInKeyspaceResponse; + + /** + * Encodes the specified FindAllShardsInKeyspaceResponse message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * @param message FindAllShardsInKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FindAllShardsInKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * @param message FindAllShardsInKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FindAllShardsInKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceResponse; + + /** + * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FindAllShardsInKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceResponse; + + /** + * Verifies a FindAllShardsInKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FindAllShardsInKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FindAllShardsInKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceResponse; + + /** + * Creates a plain object from a FindAllShardsInKeyspaceResponse message. Also converts values to other types if specified. + * @param message FindAllShardsInKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.FindAllShardsInKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FindAllShardsInKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetBackupsRequest. */ + interface IGetBackupsRequest { + + /** GetBackupsRequest keyspace */ + keyspace?: (string|null); + + /** GetBackupsRequest shard */ + shard?: (string|null); + } + + /** Represents a GetBackupsRequest. */ + class GetBackupsRequest implements IGetBackupsRequest { + + /** + * Constructs a new GetBackupsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetBackupsRequest); + + /** GetBackupsRequest keyspace. */ + public keyspace: string; + + /** GetBackupsRequest shard. */ + public shard: string; + + /** + * Creates a new GetBackupsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetBackupsRequest instance + */ + public static create(properties?: vtctldata.IGetBackupsRequest): vtctldata.GetBackupsRequest; + + /** + * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * @param message GetBackupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * @param message GetBackupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetBackupsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetBackupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsRequest; + + /** + * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetBackupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsRequest; + + /** + * Verifies a GetBackupsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetBackupsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetBackupsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsRequest; + + /** + * Creates a plain object from a GetBackupsRequest message. Also converts values to other types if specified. + * @param message GetBackupsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetBackupsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetBackupsResponse. */ + interface IGetBackupsResponse { + + /** GetBackupsResponse backups */ + backups?: (mysqlctl.IBackupInfo[]|null); + } + + /** Represents a GetBackupsResponse. */ + class GetBackupsResponse implements IGetBackupsResponse { + + /** + * Constructs a new GetBackupsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetBackupsResponse); + + /** GetBackupsResponse backups. */ + public backups: mysqlctl.IBackupInfo[]; + + /** + * Creates a new GetBackupsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetBackupsResponse instance + */ + public static create(properties?: vtctldata.IGetBackupsResponse): vtctldata.GetBackupsResponse; + + /** + * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * @param message GetBackupsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * @param message GetBackupsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetBackupsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetBackupsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsResponse; + + /** + * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetBackupsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsResponse; + + /** + * Verifies a GetBackupsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetBackupsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetBackupsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsResponse; + + /** + * Creates a plain object from a GetBackupsResponse message. Also converts values to other types if specified. + * @param message GetBackupsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetBackupsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCellInfoNamesRequest. */ + interface IGetCellInfoNamesRequest { + } + + /** Represents a GetCellInfoNamesRequest. */ + class GetCellInfoNamesRequest implements IGetCellInfoNamesRequest { + + /** + * Constructs a new GetCellInfoNamesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellInfoNamesRequest); + + /** + * Creates a new GetCellInfoNamesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfoNamesRequest instance + */ + public static create(properties?: vtctldata.IGetCellInfoNamesRequest): vtctldata.GetCellInfoNamesRequest; + + /** + * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * @param message GetCellInfoNamesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * @param message GetCellInfoNamesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfoNamesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesRequest; + + /** + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfoNamesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesRequest; + + /** + * Verifies a GetCellInfoNamesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfoNamesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesRequest; + + /** + * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. + * @param message GetCellInfoNamesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellInfoNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfoNamesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCellInfoNamesResponse. */ + interface IGetCellInfoNamesResponse { + + /** GetCellInfoNamesResponse names */ + names?: (string[]|null); + } + + /** Represents a GetCellInfoNamesResponse. */ + class GetCellInfoNamesResponse implements IGetCellInfoNamesResponse { + + /** + * Constructs a new GetCellInfoNamesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellInfoNamesResponse); + + /** GetCellInfoNamesResponse names. */ + public names: string[]; + + /** + * Creates a new GetCellInfoNamesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfoNamesResponse instance + */ + public static create(properties?: vtctldata.IGetCellInfoNamesResponse): vtctldata.GetCellInfoNamesResponse; + + /** + * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * @param message GetCellInfoNamesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * @param message GetCellInfoNamesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfoNamesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesResponse; + + /** + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfoNamesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesResponse; + + /** + * Verifies a GetCellInfoNamesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfoNamesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesResponse; + + /** + * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. + * @param message GetCellInfoNamesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellInfoNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfoNamesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCellInfoRequest. */ + interface IGetCellInfoRequest { + + /** GetCellInfoRequest cell */ + cell?: (string|null); + } + + /** Represents a GetCellInfoRequest. */ + class GetCellInfoRequest implements IGetCellInfoRequest { + + /** + * Constructs a new GetCellInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellInfoRequest); + + /** GetCellInfoRequest cell. */ + public cell: string; + + /** + * Creates a new GetCellInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfoRequest instance + */ + public static create(properties?: vtctldata.IGetCellInfoRequest): vtctldata.GetCellInfoRequest; + + /** + * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * @param message GetCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * @param message GetCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoRequest; + + /** + * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoRequest; + + /** + * Verifies a GetCellInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfoRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoRequest; + + /** + * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. + * @param message GetCellInfoRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfoRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCellInfoResponse. */ + interface IGetCellInfoResponse { + + /** GetCellInfoResponse cell_info */ + cell_info?: (topodata.ICellInfo|null); + } + + /** Represents a GetCellInfoResponse. */ + class GetCellInfoResponse implements IGetCellInfoResponse { + + /** + * Constructs a new GetCellInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellInfoResponse); + + /** GetCellInfoResponse cell_info. */ + public cell_info?: (topodata.ICellInfo|null); + + /** + * Creates a new GetCellInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfoResponse instance + */ + public static create(properties?: vtctldata.IGetCellInfoResponse): vtctldata.GetCellInfoResponse; + + /** + * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * @param message GetCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * @param message GetCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoResponse; + + /** + * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoResponse; + + /** + * Verifies a GetCellInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfoResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoResponse; + + /** + * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. + * @param message GetCellInfoResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfoResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCellsAliasesRequest. */ + interface IGetCellsAliasesRequest { + } + + /** Represents a GetCellsAliasesRequest. */ + class GetCellsAliasesRequest implements IGetCellsAliasesRequest { + + /** + * Constructs a new GetCellsAliasesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellsAliasesRequest); + + /** + * Creates a new GetCellsAliasesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellsAliasesRequest instance + */ + public static create(properties?: vtctldata.IGetCellsAliasesRequest): vtctldata.GetCellsAliasesRequest; + + /** + * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * @param message GetCellsAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * @param message GetCellsAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellsAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesRequest; + + /** + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellsAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesRequest; + + /** + * Verifies a GetCellsAliasesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellsAliasesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellsAliasesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesRequest; + + /** + * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. + * @param message GetCellsAliasesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellsAliasesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCellsAliasesResponse. */ + interface IGetCellsAliasesResponse { + + /** GetCellsAliasesResponse aliases */ + aliases?: ({ [k: string]: topodata.ICellsAlias }|null); + } + + /** Represents a GetCellsAliasesResponse. */ + class GetCellsAliasesResponse implements IGetCellsAliasesResponse { + + /** + * Constructs a new GetCellsAliasesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellsAliasesResponse); + + /** GetCellsAliasesResponse aliases. */ + public aliases: { [k: string]: topodata.ICellsAlias }; + + /** + * Creates a new GetCellsAliasesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellsAliasesResponse instance + */ + public static create(properties?: vtctldata.IGetCellsAliasesResponse): vtctldata.GetCellsAliasesResponse; + + /** + * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * @param message GetCellsAliasesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * @param message GetCellsAliasesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellsAliasesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesResponse; + + /** + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellsAliasesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesResponse; + + /** + * Verifies a GetCellsAliasesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellsAliasesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesResponse; + + /** + * Creates a plain object from a GetCellsAliasesResponse message. Also converts values to other types if specified. + * @param message GetCellsAliasesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellsAliasesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetKeyspacesRequest. */ + interface IGetKeyspacesRequest { + } + + /** Represents a GetKeyspacesRequest. */ + class GetKeyspacesRequest implements IGetKeyspacesRequest { + + /** + * Constructs a new GetKeyspacesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspacesRequest); + + /** + * Creates a new GetKeyspacesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspacesRequest instance + */ + public static create(properties?: vtctldata.IGetKeyspacesRequest): vtctldata.GetKeyspacesRequest; + + /** + * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * @param message GetKeyspacesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * @param message GetKeyspacesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspacesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesRequest; + + /** + * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesRequest; + + /** + * Verifies a GetKeyspacesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspacesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesRequest; + + /** + * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. + * @param message GetKeyspacesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspacesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ChangeTabletTypeRequest db_type */ - db_type?: (topodata.TabletType|null); + /** Properties of a GetKeyspacesResponse. */ + interface IGetKeyspacesResponse { - /** ChangeTabletTypeRequest dry_run */ - dry_run?: (boolean|null); + /** GetKeyspacesResponse keyspaces */ + keyspaces?: (vtctldata.IKeyspace[]|null); } - /** Represents a ChangeTabletTypeRequest. */ - class ChangeTabletTypeRequest implements IChangeTabletTypeRequest { + /** Represents a GetKeyspacesResponse. */ + class GetKeyspacesResponse implements IGetKeyspacesResponse { /** - * Constructs a new ChangeTabletTypeRequest. + * Constructs a new GetKeyspacesResponse. * @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.IGetKeyspacesResponse); - /** ChangeTabletTypeRequest dry_run. */ - public dry_run: boolean; + /** GetKeyspacesResponse keyspaces. */ + public keyspaces: vtctldata.IKeyspace[]; /** - * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * Creates a new GetKeyspacesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTabletTypeRequest instance + * @returns GetKeyspacesResponse instance */ - public static create(properties?: vtctldata.IChangeTabletTypeRequest): vtctldata.ChangeTabletTypeRequest; + public static create(properties?: vtctldata.IGetKeyspacesResponse): vtctldata.GetKeyspacesResponse; /** - * 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 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.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspacesResponse, 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 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.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTabletTypeRequest 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 ChangeTabletTypeRequest + * @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.ChangeTabletTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesResponse; /** - * Decodes a ChangeTabletTypeRequest 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 ChangeTabletTypeRequest + * @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.ChangeTabletTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesResponse; /** - * Verifies a ChangeTabletTypeRequest 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 a ChangeTabletTypeRequest 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 ChangeTabletTypeRequest + * @returns GetKeyspacesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesResponse; /** - * 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 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.ChangeTabletTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTabletTypeRequest to JSON. + * Converts this GetKeyspacesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ChangeTabletTypeResponse. */ - interface IChangeTabletTypeResponse { - - /** ChangeTabletTypeResponse before_tablet */ - before_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse after_tablet */ - after_tablet?: (topodata.ITablet|null); + /** Properties of a GetKeyspaceRequest. */ + interface IGetKeyspaceRequest { - /** ChangeTabletTypeResponse was_dry_run */ - was_dry_run?: (boolean|null); + /** GetKeyspaceRequest keyspace */ + keyspace?: (string|null); } - /** Represents a ChangeTabletTypeResponse. */ - class ChangeTabletTypeResponse implements IChangeTabletTypeResponse { + /** Represents a GetKeyspaceRequest. */ + class GetKeyspaceRequest implements IGetKeyspaceRequest { /** - * Constructs a new ChangeTabletTypeResponse. + * Constructs a new GetKeyspaceRequest. * @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); + constructor(properties?: vtctldata.IGetKeyspaceRequest); - /** ChangeTabletTypeResponse was_dry_run. */ - public was_dry_run: boolean; + /** GetKeyspaceRequest keyspace. */ + public keyspace: string; /** - * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * Creates a new GetKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTabletTypeResponse instance + * @returns GetKeyspaceRequest instance */ - public static create(properties?: vtctldata.IChangeTabletTypeResponse): vtctldata.ChangeTabletTypeResponse; + public static create(properties?: vtctldata.IGetKeyspaceRequest): vtctldata.GetKeyspaceRequest; /** - * 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 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.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspaceRequest, 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 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.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTabletTypeResponse 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 ChangeTabletTypeResponse + * @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.ChangeTabletTypeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRequest; /** - * Decodes a ChangeTabletTypeResponse 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 ChangeTabletTypeResponse + * @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.ChangeTabletTypeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRequest; /** - * Verifies a ChangeTabletTypeResponse 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 a ChangeTabletTypeResponse 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 ChangeTabletTypeResponse + * @returns GetKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRequest; /** - * 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 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.ChangeTabletTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTabletTypeResponse to JSON. + * Converts this GetKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** 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 sharding_column_name */ - sharding_column_name?: (string|null); - - /** CreateKeyspaceRequest sharding_column_type */ - sharding_column_type?: (topodata.KeyspaceIdType|null); - - /** CreateKeyspaceRequest served_froms */ - served_froms?: (topodata.Keyspace.IServedFrom[]|null); - - /** CreateKeyspaceRequest type */ - type?: (topodata.KeyspaceType|null); - - /** CreateKeyspaceRequest base_keyspace */ - base_keyspace?: (string|null); + /** Properties of a GetKeyspaceResponse. */ + interface IGetKeyspaceResponse { - /** CreateKeyspaceRequest snapshot_time */ - snapshot_time?: (vttime.ITime|null); + /** GetKeyspaceResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); } - /** Represents a CreateKeyspaceRequest. */ - class CreateKeyspaceRequest implements ICreateKeyspaceRequest { + /** Represents a GetKeyspaceResponse. */ + class GetKeyspaceResponse implements IGetKeyspaceResponse { /** - * Constructs a new CreateKeyspaceRequest. + * Constructs a new GetKeyspaceResponse. * @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 sharding_column_name. */ - public sharding_column_name: string; - - /** CreateKeyspaceRequest sharding_column_type. */ - public sharding_column_type: topodata.KeyspaceIdType; - - /** CreateKeyspaceRequest served_froms. */ - public served_froms: topodata.Keyspace.IServedFrom[]; - - /** CreateKeyspaceRequest type. */ - public type: topodata.KeyspaceType; - - /** CreateKeyspaceRequest base_keyspace. */ - public base_keyspace: string; + constructor(properties?: vtctldata.IGetKeyspaceResponse); - /** CreateKeyspaceRequest snapshot_time. */ - public snapshot_time?: (vttime.ITime|null); + /** GetKeyspaceResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); /** - * Creates a new CreateKeyspaceRequest instance using the specified properties. + * Creates a new GetKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateKeyspaceRequest instance + * @returns GetKeyspaceResponse instance */ - public static create(properties?: vtctldata.ICreateKeyspaceRequest): vtctldata.CreateKeyspaceRequest; + public static create(properties?: vtctldata.IGetKeyspaceResponse): vtctldata.GetKeyspaceResponse; /** - * 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 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.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspaceResponse, 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 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.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateKeyspaceRequest 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 CreateKeyspaceRequest + * @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.CreateKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceResponse; /** - * Decodes a CreateKeyspaceRequest 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 CreateKeyspaceRequest + * @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.CreateKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceResponse; /** - * Verifies a CreateKeyspaceRequest 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 a CreateKeyspaceRequest 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 CreateKeyspaceRequest + * @returns GetKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceResponse; /** - * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. - * @param message CreateKeyspaceRequest + * 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.CreateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateKeyspaceRequest to JSON. + * Converts this GetKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateKeyspaceResponse. */ - interface ICreateKeyspaceResponse { + /** Properties of a GetSchemaRequest. */ + interface IGetSchemaRequest { - /** CreateKeyspaceResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); + /** GetSchemaRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** GetSchemaRequest tables */ + tables?: (string[]|null); + + /** GetSchemaRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** GetSchemaRequest include_views */ + include_views?: (boolean|null); + + /** GetSchemaRequest table_names_only */ + table_names_only?: (boolean|null); + + /** GetSchemaRequest table_sizes_only */ + table_sizes_only?: (boolean|null); } - /** Represents a CreateKeyspaceResponse. */ - class CreateKeyspaceResponse implements ICreateKeyspaceResponse { + /** Represents a GetSchemaRequest. */ + class GetSchemaRequest implements IGetSchemaRequest { /** - * Constructs a new CreateKeyspaceResponse. + * Constructs a new GetSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICreateKeyspaceResponse); + constructor(properties?: vtctldata.IGetSchemaRequest); - /** CreateKeyspaceResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); + /** GetSchemaRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** GetSchemaRequest tables. */ + public tables: string[]; + + /** GetSchemaRequest exclude_tables. */ + public exclude_tables: string[]; + + /** GetSchemaRequest include_views. */ + public include_views: boolean; + + /** GetSchemaRequest table_names_only. */ + public table_names_only: boolean; + + /** GetSchemaRequest table_sizes_only. */ + public table_sizes_only: boolean; /** - * Creates a new CreateKeyspaceResponse instance using the specified properties. + * Creates a new GetSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateKeyspaceResponse instance + * @returns GetSchemaRequest instance */ - public static create(properties?: vtctldata.ICreateKeyspaceResponse): vtctldata.CreateKeyspaceResponse; + public static create(properties?: vtctldata.IGetSchemaRequest): vtctldata.GetSchemaRequest; /** - * 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 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.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSchemaRequest, 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 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.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateKeyspaceResponse 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 CreateKeyspaceResponse + * @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.CreateKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaRequest; /** - * Decodes a CreateKeyspaceResponse 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 CreateKeyspaceResponse + * @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.CreateKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaRequest; /** - * Verifies a CreateKeyspaceResponse 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 CreateKeyspaceResponse 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 CreateKeyspaceResponse + * @returns GetSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaRequest; /** - * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. - * @param message CreateKeyspaceResponse + * 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.CreateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateKeyspaceResponse to JSON. + * Converts this GetSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateShardRequest. */ - interface ICreateShardRequest { - - /** CreateShardRequest keyspace */ - keyspace?: (string|null); - - /** CreateShardRequest shard_name */ - shard_name?: (string|null); - - /** CreateShardRequest force */ - force?: (boolean|null); + /** Properties of a GetSchemaResponse. */ + interface IGetSchemaResponse { - /** CreateShardRequest include_parent */ - include_parent?: (boolean|null); + /** GetSchemaResponse schema */ + schema?: (tabletmanagerdata.ISchemaDefinition|null); } - /** Represents a CreateShardRequest. */ - class CreateShardRequest implements ICreateShardRequest { + /** Represents a GetSchemaResponse. */ + class GetSchemaResponse implements IGetSchemaResponse { /** - * Constructs a new CreateShardRequest. + * Constructs a new GetSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICreateShardRequest); - - /** CreateShardRequest keyspace. */ - public keyspace: string; - - /** CreateShardRequest shard_name. */ - public shard_name: string; - - /** CreateShardRequest force. */ - public force: boolean; + constructor(properties?: vtctldata.IGetSchemaResponse); - /** CreateShardRequest include_parent. */ - public include_parent: boolean; + /** GetSchemaResponse schema. */ + public schema?: (tabletmanagerdata.ISchemaDefinition|null); /** - * Creates a new CreateShardRequest instance using the specified properties. + * Creates a new GetSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateShardRequest instance + * @returns GetSchemaResponse instance */ - public static create(properties?: vtctldata.ICreateShardRequest): vtctldata.CreateShardRequest; + public static create(properties?: vtctldata.IGetSchemaResponse): vtctldata.GetSchemaResponse; /** - * 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 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.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSchemaResponse, 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 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.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateShardRequest 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 CreateShardRequest + * @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.CreateShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaResponse; /** - * Decodes a CreateShardRequest 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 CreateShardRequest + * @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.CreateShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaResponse; /** - * Verifies a CreateShardRequest 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 CreateShardRequest 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 CreateShardRequest + * @returns GetSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaResponse; /** - * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. - * @param message CreateShardRequest + * 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.CreateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateShardRequest to JSON. + * Converts this GetSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateShardResponse. */ - interface ICreateShardResponse { - - /** CreateShardResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); + /** Properties of a GetShardRequest. */ + interface IGetShardRequest { - /** CreateShardResponse shard */ - shard?: (vtctldata.IShard|null); + /** GetShardRequest keyspace */ + keyspace?: (string|null); - /** CreateShardResponse shard_already_exists */ - shard_already_exists?: (boolean|null); + /** GetShardRequest shard_name */ + shard_name?: (string|null); } - /** Represents a CreateShardResponse. */ - class CreateShardResponse implements ICreateShardResponse { + /** Represents a GetShardRequest. */ + class GetShardRequest implements IGetShardRequest { /** - * Constructs a new CreateShardResponse. + * Constructs a new GetShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICreateShardResponse); - - /** CreateShardResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); + constructor(properties?: vtctldata.IGetShardRequest); - /** CreateShardResponse shard. */ - public shard?: (vtctldata.IShard|null); + /** GetShardRequest keyspace. */ + public keyspace: string; - /** CreateShardResponse shard_already_exists. */ - public shard_already_exists: boolean; + /** GetShardRequest shard_name. */ + public shard_name: string; /** - * Creates a new CreateShardResponse instance using the specified properties. + * Creates a new GetShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateShardResponse instance + * @returns GetShardRequest instance */ - public static create(properties?: vtctldata.ICreateShardResponse): vtctldata.CreateShardResponse; + public static create(properties?: vtctldata.IGetShardRequest): vtctldata.GetShardRequest; /** - * 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 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.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetShardRequest, 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 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.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateShardResponse 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 CreateShardResponse + * @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.CreateShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRequest; /** - * Decodes a CreateShardResponse 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 CreateShardResponse + * @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.CreateShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRequest; /** - * Verifies a CreateShardResponse 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 CreateShardResponse 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 CreateShardResponse + * @returns GetShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRequest; /** - * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. - * @param message CreateShardResponse + * 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.CreateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateShardResponse to JSON. + * Converts this GetShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteKeyspaceRequest. */ - interface IDeleteKeyspaceRequest { - - /** DeleteKeyspaceRequest keyspace */ - keyspace?: (string|null); + /** Properties of a GetShardResponse. */ + interface IGetShardResponse { - /** DeleteKeyspaceRequest recursive */ - recursive?: (boolean|null); + /** GetShardResponse shard */ + shard?: (vtctldata.IShard|null); } - /** Represents a DeleteKeyspaceRequest. */ - class DeleteKeyspaceRequest implements IDeleteKeyspaceRequest { + /** Represents a GetShardResponse. */ + class GetShardResponse implements IGetShardResponse { /** - * Constructs a new DeleteKeyspaceRequest. + * Constructs a new GetShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteKeyspaceRequest); - - /** DeleteKeyspaceRequest keyspace. */ - public keyspace: string; + constructor(properties?: vtctldata.IGetShardResponse); - /** DeleteKeyspaceRequest recursive. */ - public recursive: boolean; + /** GetShardResponse shard. */ + public shard?: (vtctldata.IShard|null); /** - * Creates a new DeleteKeyspaceRequest instance using the specified properties. + * Creates a new GetShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteKeyspaceRequest instance + * @returns GetShardResponse instance */ - public static create(properties?: vtctldata.IDeleteKeyspaceRequest): vtctldata.DeleteKeyspaceRequest; + public static create(properties?: vtctldata.IGetShardResponse): vtctldata.GetShardResponse; /** - * 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 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.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetShardResponse, 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 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.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteKeyspaceRequest 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 DeleteKeyspaceRequest + * @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.DeleteKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardResponse; /** - * Decodes a DeleteKeyspaceRequest 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 DeleteKeyspaceRequest + * @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.DeleteKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardResponse; /** - * Verifies a DeleteKeyspaceRequest 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 DeleteKeyspaceRequest 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 DeleteKeyspaceRequest + * @returns GetShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardResponse; /** - * 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 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.DeleteKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteKeyspaceRequest to JSON. + * Converts this GetShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteKeyspaceResponse. */ - interface IDeleteKeyspaceResponse { + /** Properties of a GetSrvVSchemaRequest. */ + interface IGetSrvVSchemaRequest { + + /** GetSrvVSchemaRequest cell */ + cell?: (string|null); } - /** Represents a DeleteKeyspaceResponse. */ - class DeleteKeyspaceResponse implements IDeleteKeyspaceResponse { + /** Represents a GetSrvVSchemaRequest. */ + class GetSrvVSchemaRequest implements IGetSrvVSchemaRequest { /** - * Constructs a new DeleteKeyspaceResponse. + * Constructs a new GetSrvVSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteKeyspaceResponse); + constructor(properties?: vtctldata.IGetSrvVSchemaRequest); + + /** GetSrvVSchemaRequest cell. */ + public cell: string; /** - * Creates a new DeleteKeyspaceResponse instance using the specified properties. + * Creates a new GetSrvVSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteKeyspaceResponse instance + * @returns GetSrvVSchemaRequest instance */ - public static create(properties?: vtctldata.IDeleteKeyspaceResponse): vtctldata.DeleteKeyspaceResponse; + public static create(properties?: vtctldata.IGetSrvVSchemaRequest): vtctldata.GetSrvVSchemaRequest; /** - * 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 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.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvVSchemaRequest, 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 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.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteKeyspaceResponse 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 DeleteKeyspaceResponse + * @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.DeleteKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaRequest; /** - * Decodes a DeleteKeyspaceResponse 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 DeleteKeyspaceResponse + * @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.DeleteKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaRequest; /** - * Verifies a DeleteKeyspaceResponse 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 DeleteKeyspaceResponse 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 DeleteKeyspaceResponse + * @returns GetSrvVSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaRequest; /** - * 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 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.DeleteKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteKeyspaceResponse to JSON. + * Converts this GetSrvVSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteShardsRequest. */ - interface IDeleteShardsRequest { - - /** DeleteShardsRequest shards */ - shards?: (vtctldata.IShard[]|null); - - /** DeleteShardsRequest recursive */ - recursive?: (boolean|null); + /** Properties of a GetSrvVSchemaResponse. */ + interface IGetSrvVSchemaResponse { - /** DeleteShardsRequest even_if_serving */ - even_if_serving?: (boolean|null); + /** GetSrvVSchemaResponse srv_v_schema */ + srv_v_schema?: (vschema.ISrvVSchema|null); } - /** Represents a DeleteShardsRequest. */ - class DeleteShardsRequest implements IDeleteShardsRequest { + /** Represents a GetSrvVSchemaResponse. */ + class GetSrvVSchemaResponse implements IGetSrvVSchemaResponse { /** - * Constructs a new DeleteShardsRequest. + * Constructs a new GetSrvVSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteShardsRequest); - - /** DeleteShardsRequest shards. */ - public shards: vtctldata.IShard[]; - - /** DeleteShardsRequest recursive. */ - public recursive: boolean; + constructor(properties?: vtctldata.IGetSrvVSchemaResponse); - /** DeleteShardsRequest even_if_serving. */ - public even_if_serving: boolean; + /** GetSrvVSchemaResponse srv_v_schema. */ + public srv_v_schema?: (vschema.ISrvVSchema|null); /** - * Creates a new DeleteShardsRequest instance using the specified properties. + * Creates a new GetSrvVSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteShardsRequest instance + * @returns GetSrvVSchemaResponse instance */ - public static create(properties?: vtctldata.IDeleteShardsRequest): vtctldata.DeleteShardsRequest; + public static create(properties?: vtctldata.IGetSrvVSchemaResponse): vtctldata.GetSrvVSchemaResponse; /** - * 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 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.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvVSchemaResponse, 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 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.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteShardsRequest 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 DeleteShardsRequest + * @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.DeleteShardsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaResponse; /** - * Decodes a DeleteShardsRequest 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 DeleteShardsRequest + * @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.DeleteShardsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaResponse; /** - * Verifies a DeleteShardsRequest 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 DeleteShardsRequest 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 DeleteShardsRequest + * @returns GetSrvVSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaResponse; /** - * 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 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.DeleteShardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteShardsRequest to JSON. + * Converts this GetSrvVSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteShardsResponse. */ - interface IDeleteShardsResponse { + /** Properties of a GetTabletRequest. */ + interface IGetTabletRequest { + + /** GetTabletRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents a DeleteShardsResponse. */ - class DeleteShardsResponse implements IDeleteShardsResponse { + /** Represents a GetTabletRequest. */ + class GetTabletRequest implements IGetTabletRequest { /** - * Constructs a new DeleteShardsResponse. + * Constructs a new GetTabletRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteShardsResponse); + constructor(properties?: vtctldata.IGetTabletRequest); + + /** GetTabletRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new DeleteShardsResponse instance using the specified properties. + * Creates a new GetTabletRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteShardsResponse instance + * @returns GetTabletRequest instance */ - public static create(properties?: vtctldata.IDeleteShardsResponse): vtctldata.DeleteShardsResponse; + public static create(properties?: vtctldata.IGetTabletRequest): vtctldata.GetTabletRequest; /** - * 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 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.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletRequest, 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 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.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteShardsResponse 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 DeleteShardsResponse + * @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.DeleteShardsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletRequest; /** - * Decodes a DeleteShardsResponse 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 DeleteShardsResponse + * @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.DeleteShardsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletRequest; /** - * Verifies a DeleteShardsResponse 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 DeleteShardsResponse 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 DeleteShardsResponse + * @returns GetTabletRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletRequest; /** - * 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 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.DeleteShardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteShardsResponse to JSON. + * Converts this GetTabletRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteTabletsRequest. */ - interface IDeleteTabletsRequest { - - /** DeleteTabletsRequest tablet_aliases */ - tablet_aliases?: (topodata.ITabletAlias[]|null); + /** Properties of a GetTabletResponse. */ + interface IGetTabletResponse { - /** DeleteTabletsRequest allow_primary */ - allow_primary?: (boolean|null); + /** GetTabletResponse tablet */ + tablet?: (topodata.ITablet|null); } - /** Represents a DeleteTabletsRequest. */ - class DeleteTabletsRequest implements IDeleteTabletsRequest { + /** Represents a GetTabletResponse. */ + class GetTabletResponse implements IGetTabletResponse { /** - * Constructs a new DeleteTabletsRequest. + * Constructs a new GetTabletResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteTabletsRequest); - - /** DeleteTabletsRequest tablet_aliases. */ - public tablet_aliases: topodata.ITabletAlias[]; + constructor(properties?: vtctldata.IGetTabletResponse); - /** DeleteTabletsRequest allow_primary. */ - public allow_primary: boolean; + /** GetTabletResponse tablet. */ + public tablet?: (topodata.ITablet|null); /** - * Creates a new DeleteTabletsRequest instance using the specified properties. + * Creates a new GetTabletResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTabletsRequest instance + * @returns GetTabletResponse instance */ - public static create(properties?: vtctldata.IDeleteTabletsRequest): vtctldata.DeleteTabletsRequest; + public static create(properties?: vtctldata.IGetTabletResponse): vtctldata.GetTabletResponse; /** - * 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 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.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletResponse, 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 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.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTabletsRequest 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 DeleteTabletsRequest + * @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.DeleteTabletsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletResponse; /** - * Decodes a DeleteTabletsRequest 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 DeleteTabletsRequest + * @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.DeleteTabletsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletResponse; /** - * Verifies a DeleteTabletsRequest 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 DeleteTabletsRequest 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 DeleteTabletsRequest + * @returns GetTabletResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletResponse; /** - * 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 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.DeleteTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTabletsRequest to JSON. + * Converts this GetTabletResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteTabletsResponse. */ - interface IDeleteTabletsResponse { + /** Properties of a GetTabletsRequest. */ + interface IGetTabletsRequest { + + /** GetTabletsRequest keyspace */ + keyspace?: (string|null); + + /** GetTabletsRequest shard */ + shard?: (string|null); + + /** GetTabletsRequest cells */ + cells?: (string[]|null); } - /** Represents a DeleteTabletsResponse. */ - class DeleteTabletsResponse implements IDeleteTabletsResponse { + /** Represents a GetTabletsRequest. */ + class GetTabletsRequest implements IGetTabletsRequest { /** - * Constructs a new DeleteTabletsResponse. + * Constructs a new GetTabletsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteTabletsResponse); + constructor(properties?: vtctldata.IGetTabletsRequest); + + /** GetTabletsRequest keyspace. */ + public keyspace: string; + + /** GetTabletsRequest shard. */ + public shard: string; + + /** GetTabletsRequest cells. */ + public cells: string[]; /** - * Creates a new DeleteTabletsResponse instance using the specified properties. + * Creates a new GetTabletsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTabletsResponse instance + * @returns GetTabletsRequest instance */ - public static create(properties?: vtctldata.IDeleteTabletsResponse): vtctldata.DeleteTabletsResponse; + public static create(properties?: vtctldata.IGetTabletsRequest): vtctldata.GetTabletsRequest; /** - * 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 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.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletsRequest, 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 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.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTabletsResponse 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 DeleteTabletsResponse + * @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.DeleteTabletsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsRequest; /** - * Decodes a DeleteTabletsResponse 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 DeleteTabletsResponse + * @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.DeleteTabletsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsRequest; /** - * Verifies a DeleteTabletsResponse 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 DeleteTabletsResponse 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 DeleteTabletsResponse + * @returns GetTabletsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsRequest; /** - * 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 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.DeleteTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTabletsResponse to JSON. + * Converts this GetTabletsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** 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); + /** Properties of a GetTabletsResponse. */ + interface IGetTabletsResponse { - /** EmergencyReparentShardRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); + /** GetTabletsResponse tablets */ + tablets?: (topodata.ITablet[]|null); } - /** Represents an EmergencyReparentShardRequest. */ - class EmergencyReparentShardRequest implements IEmergencyReparentShardRequest { + /** Represents a GetTabletsResponse. */ + class GetTabletsResponse implements IGetTabletsResponse { /** - * Constructs a new EmergencyReparentShardRequest. + * Constructs a new GetTabletsResponse. * @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[]; + constructor(properties?: vtctldata.IGetTabletsResponse); - /** EmergencyReparentShardRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); + /** GetTabletsResponse tablets. */ + public tablets: topodata.ITablet[]; /** - * Creates a new EmergencyReparentShardRequest instance using the specified properties. + * Creates a new GetTabletsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns EmergencyReparentShardRequest instance + * @returns GetTabletsResponse instance */ - public static create(properties?: vtctldata.IEmergencyReparentShardRequest): vtctldata.EmergencyReparentShardRequest; + public static create(properties?: vtctldata.IGetTabletsResponse): vtctldata.GetTabletsResponse; /** - * 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 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.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletsResponse, 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 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.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EmergencyReparentShardRequest 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 EmergencyReparentShardRequest + * @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.EmergencyReparentShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsResponse; /** - * Decodes an EmergencyReparentShardRequest 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 EmergencyReparentShardRequest + * @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.EmergencyReparentShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsResponse; /** - * Verifies an EmergencyReparentShardRequest 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 an EmergencyReparentShardRequest 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 EmergencyReparentShardRequest + * @returns GetTabletsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsResponse; /** - * 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 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.EmergencyReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EmergencyReparentShardRequest to JSON. + * Converts this GetTabletsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EmergencyReparentShardResponse. */ - interface IEmergencyReparentShardResponse { + /** Properties of a GetVSchemaRequest. */ + interface IGetVSchemaRequest { - /** EmergencyReparentShardResponse keyspace */ + /** GetVSchemaRequest keyspace */ keyspace?: (string|null); - - /** EmergencyReparentShardResponse shard */ - shard?: (string|null); - - /** EmergencyReparentShardResponse promoted_primary */ - promoted_primary?: (topodata.ITabletAlias|null); - - /** EmergencyReparentShardResponse events */ - events?: (logutil.IEvent[]|null); } - /** Represents an EmergencyReparentShardResponse. */ - class EmergencyReparentShardResponse implements IEmergencyReparentShardResponse { + /** Represents a GetVSchemaRequest. */ + class GetVSchemaRequest implements IGetVSchemaRequest { /** - * Constructs a new EmergencyReparentShardResponse. + * Constructs a new GetVSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IEmergencyReparentShardResponse); + constructor(properties?: vtctldata.IGetVSchemaRequest); - /** EmergencyReparentShardResponse keyspace. */ + /** GetVSchemaRequest keyspace. */ public keyspace: string; - /** EmergencyReparentShardResponse shard. */ - public shard: string; - - /** EmergencyReparentShardResponse promoted_primary. */ - public promoted_primary?: (topodata.ITabletAlias|null); - - /** EmergencyReparentShardResponse events. */ - public events: logutil.IEvent[]; - /** - * Creates a new EmergencyReparentShardResponse instance using the specified properties. + * Creates a new GetVSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EmergencyReparentShardResponse instance + * @returns GetVSchemaRequest instance */ - public static create(properties?: vtctldata.IEmergencyReparentShardResponse): vtctldata.EmergencyReparentShardResponse; + public static create(properties?: vtctldata.IGetVSchemaRequest): vtctldata.GetVSchemaRequest; /** - * 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 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.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetVSchemaRequest, 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 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.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EmergencyReparentShardResponse 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 EmergencyReparentShardResponse + * @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.EmergencyReparentShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaRequest; /** - * Decodes an EmergencyReparentShardResponse 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 EmergencyReparentShardResponse + * @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.EmergencyReparentShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaRequest; /** - * Verifies an EmergencyReparentShardResponse 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 EmergencyReparentShardResponse 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 EmergencyReparentShardResponse + * @returns GetVSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaRequest; /** - * 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 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.EmergencyReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EmergencyReparentShardResponse to JSON. + * Converts this GetVSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetBackupsRequest. */ - interface IGetBackupsRequest { - - /** GetBackupsRequest keyspace */ - keyspace?: (string|null); + /** Properties of a GetVSchemaResponse. */ + interface IGetVSchemaResponse { - /** GetBackupsRequest shard */ - shard?: (string|null); + /** GetVSchemaResponse v_schema */ + v_schema?: (vschema.IKeyspace|null); } - /** Represents a GetBackupsRequest. */ - class GetBackupsRequest implements IGetBackupsRequest { + /** Represents a GetVSchemaResponse. */ + class GetVSchemaResponse implements IGetVSchemaResponse { /** - * Constructs a new GetBackupsRequest. + * Constructs a new GetVSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetBackupsRequest); - - /** GetBackupsRequest keyspace. */ - public keyspace: string; + constructor(properties?: vtctldata.IGetVSchemaResponse); - /** GetBackupsRequest shard. */ - public shard: string; + /** GetVSchemaResponse v_schema. */ + public v_schema?: (vschema.IKeyspace|null); /** - * Creates a new GetBackupsRequest instance using the specified properties. + * Creates a new GetVSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetBackupsRequest instance + * @returns GetVSchemaResponse instance */ - public static create(properties?: vtctldata.IGetBackupsRequest): vtctldata.GetBackupsRequest; + public static create(properties?: vtctldata.IGetVSchemaResponse): vtctldata.GetVSchemaResponse; /** - * 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 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.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetVSchemaResponse, 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 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.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBackupsRequest 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 GetBackupsRequest + * @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.GetBackupsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaResponse; /** - * Decodes a GetBackupsRequest 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 GetBackupsRequest + * @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.GetBackupsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaResponse; /** - * Verifies a GetBackupsRequest 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 GetBackupsRequest 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 GetBackupsRequest + * @returns GetVSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaResponse; /** - * 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 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.GetBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBackupsRequest to JSON. + * Converts this GetVSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetBackupsResponse. */ - interface IGetBackupsResponse { + /** Properties of a GetWorkflowsRequest. */ + interface IGetWorkflowsRequest { - /** GetBackupsResponse backups */ - backups?: (mysqlctl.IBackupInfo[]|null); + /** GetWorkflowsRequest keyspace */ + keyspace?: (string|null); + + /** GetWorkflowsRequest active_only */ + active_only?: (boolean|null); } - /** Represents a GetBackupsResponse. */ - class GetBackupsResponse implements IGetBackupsResponse { + /** Represents a GetWorkflowsRequest. */ + class GetWorkflowsRequest implements IGetWorkflowsRequest { /** - * Constructs a new GetBackupsResponse. + * Constructs a new GetWorkflowsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetBackupsResponse); + constructor(properties?: vtctldata.IGetWorkflowsRequest); - /** GetBackupsResponse backups. */ - public backups: mysqlctl.IBackupInfo[]; + /** GetWorkflowsRequest keyspace. */ + public keyspace: string; + + /** GetWorkflowsRequest active_only. */ + public active_only: boolean; /** - * Creates a new GetBackupsResponse instance using the specified properties. + * Creates a new GetWorkflowsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetBackupsResponse instance + * @returns GetWorkflowsRequest instance */ - public static create(properties?: vtctldata.IGetBackupsResponse): vtctldata.GetBackupsResponse; + public static create(properties?: vtctldata.IGetWorkflowsRequest): vtctldata.GetWorkflowsRequest; /** - * 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 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.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetWorkflowsRequest, 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 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.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBackupsResponse 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 GetBackupsResponse + * @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.GetBackupsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsRequest; /** - * Decodes a GetBackupsResponse 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 GetBackupsResponse + * @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.GetBackupsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsRequest; /** - * Verifies a GetBackupsResponse 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 GetBackupsResponse 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 GetBackupsResponse + * @returns GetWorkflowsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsRequest; /** - * 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 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.GetBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBackupsResponse to JSON. + * Converts this GetWorkflowsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellInfoNamesRequest. */ - interface IGetCellInfoNamesRequest { + /** Properties of a GetWorkflowsResponse. */ + interface IGetWorkflowsResponse { + + /** GetWorkflowsResponse workflows */ + workflows?: (vtctldata.IWorkflow[]|null); } - /** Represents a GetCellInfoNamesRequest. */ - class GetCellInfoNamesRequest implements IGetCellInfoNamesRequest { + /** Represents a GetWorkflowsResponse. */ + class GetWorkflowsResponse implements IGetWorkflowsResponse { /** - * Constructs a new GetCellInfoNamesRequest. + * Constructs a new GetWorkflowsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoNamesRequest); + constructor(properties?: vtctldata.IGetWorkflowsResponse); + + /** GetWorkflowsResponse workflows. */ + public workflows: vtctldata.IWorkflow[]; /** - * Creates a new GetCellInfoNamesRequest instance using the specified properties. + * Creates a new GetWorkflowsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoNamesRequest instance + * @returns GetWorkflowsResponse instance */ - public static create(properties?: vtctldata.IGetCellInfoNamesRequest): vtctldata.GetCellInfoNamesRequest; + public static create(properties?: vtctldata.IGetWorkflowsResponse): vtctldata.GetWorkflowsResponse; /** - * 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 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.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetWorkflowsResponse, 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 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.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoNamesRequest 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 GetCellInfoNamesRequest + * @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.GetCellInfoNamesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsResponse; /** - * Decodes a GetCellInfoNamesRequest 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 GetCellInfoNamesRequest + * @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.GetCellInfoNamesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsResponse; /** - * Verifies a GetCellInfoNamesRequest 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 GetCellInfoNamesRequest 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 GetCellInfoNamesRequest + * @returns GetWorkflowsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsResponse; /** - * 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 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.GetCellInfoNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetWorkflowsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an InitShardPrimaryRequest. */ + interface IInitShardPrimaryRequest { + + /** InitShardPrimaryRequest keyspace */ + keyspace?: (string|null); - /** - * Converts this GetCellInfoNamesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** InitShardPrimaryRequest shard */ + shard?: (string|null); - /** Properties of a GetCellInfoNamesResponse. */ - interface IGetCellInfoNamesResponse { + /** InitShardPrimaryRequest primary_elect_tablet_alias */ + primary_elect_tablet_alias?: (topodata.ITabletAlias|null); - /** GetCellInfoNamesResponse names */ - names?: (string[]|null); + /** InitShardPrimaryRequest force */ + force?: (boolean|null); + + /** InitShardPrimaryRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); } - /** Represents a GetCellInfoNamesResponse. */ - class GetCellInfoNamesResponse implements IGetCellInfoNamesResponse { + /** Represents an InitShardPrimaryRequest. */ + class InitShardPrimaryRequest implements IInitShardPrimaryRequest { /** - * Constructs a new GetCellInfoNamesResponse. + * Constructs a new InitShardPrimaryRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoNamesResponse); + constructor(properties?: vtctldata.IInitShardPrimaryRequest); - /** GetCellInfoNamesResponse names. */ - public names: string[]; + /** 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 GetCellInfoNamesResponse instance using the specified properties. + * Creates a new InitShardPrimaryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoNamesResponse instance + * @returns InitShardPrimaryRequest instance */ - public static create(properties?: vtctldata.IGetCellInfoNamesResponse): vtctldata.GetCellInfoNamesResponse; + public static create(properties?: vtctldata.IInitShardPrimaryRequest): vtctldata.InitShardPrimaryRequest; /** - * 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 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.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IInitShardPrimaryRequest, 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 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.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoNamesResponse 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 GetCellInfoNamesResponse + * @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.GetCellInfoNamesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryRequest; /** - * Decodes a GetCellInfoNamesResponse 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 GetCellInfoNamesResponse + * @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.GetCellInfoNamesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryRequest; /** - * Verifies a GetCellInfoNamesResponse 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 GetCellInfoNamesResponse 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 GetCellInfoNamesResponse + * @returns InitShardPrimaryRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryRequest; /** - * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. - * @param message GetCellInfoNamesResponse + * 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.GetCellInfoNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.InitShardPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoNamesResponse to JSON. + * Converts this InitShardPrimaryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellInfoRequest. */ - interface IGetCellInfoRequest { + /** Properties of an InitShardPrimaryResponse. */ + interface IInitShardPrimaryResponse { - /** GetCellInfoRequest cell */ - cell?: (string|null); + /** InitShardPrimaryResponse events */ + events?: (logutil.IEvent[]|null); } - /** Represents a GetCellInfoRequest. */ - class GetCellInfoRequest implements IGetCellInfoRequest { + /** Represents an InitShardPrimaryResponse. */ + class InitShardPrimaryResponse implements IInitShardPrimaryResponse { /** - * Constructs a new GetCellInfoRequest. + * Constructs a new InitShardPrimaryResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoRequest); + constructor(properties?: vtctldata.IInitShardPrimaryResponse); - /** GetCellInfoRequest cell. */ - public cell: string; + /** InitShardPrimaryResponse events. */ + public events: logutil.IEvent[]; /** - * Creates a new GetCellInfoRequest instance using the specified properties. + * Creates a new InitShardPrimaryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoRequest instance + * @returns InitShardPrimaryResponse instance */ - public static create(properties?: vtctldata.IGetCellInfoRequest): vtctldata.GetCellInfoRequest; + public static create(properties?: vtctldata.IInitShardPrimaryResponse): vtctldata.InitShardPrimaryResponse; /** - * 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 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.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IInitShardPrimaryResponse, 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 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.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoRequest 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 GetCellInfoRequest + * @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.GetCellInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryResponse; /** - * Decodes a GetCellInfoRequest 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 GetCellInfoRequest + * @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.GetCellInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryResponse; /** - * Verifies a GetCellInfoRequest 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 GetCellInfoRequest 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 GetCellInfoRequest + * @returns InitShardPrimaryResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryResponse; /** - * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. - * @param message GetCellInfoRequest + * 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.GetCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.InitShardPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoRequest to JSON. + * Converts this InitShardPrimaryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellInfoResponse. */ - interface IGetCellInfoResponse { + /** Properties of a PlannedReparentShardRequest. */ + interface IPlannedReparentShardRequest { - /** GetCellInfoResponse cell_info */ - cell_info?: (topodata.ICellInfo|null); + /** 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); } - /** Represents a GetCellInfoResponse. */ - class GetCellInfoResponse implements IGetCellInfoResponse { + /** Represents a PlannedReparentShardRequest. */ + class PlannedReparentShardRequest implements IPlannedReparentShardRequest { /** - * Constructs a new GetCellInfoResponse. + * Constructs a new PlannedReparentShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoResponse); + constructor(properties?: vtctldata.IPlannedReparentShardRequest); - /** GetCellInfoResponse cell_info. */ - public cell_info?: (topodata.ICellInfo|null); + /** 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); /** - * Creates a new GetCellInfoResponse instance using the specified properties. + * Creates a new PlannedReparentShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoResponse instance + * @returns PlannedReparentShardRequest instance */ - public static create(properties?: vtctldata.IGetCellInfoResponse): vtctldata.GetCellInfoResponse; + public static create(properties?: vtctldata.IPlannedReparentShardRequest): vtctldata.PlannedReparentShardRequest; /** - * 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 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.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IPlannedReparentShardRequest, 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 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.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoResponse 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 GetCellInfoResponse + * @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.GetCellInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardRequest; /** - * Decodes a GetCellInfoResponse 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 GetCellInfoResponse + * @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.GetCellInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardRequest; /** - * Verifies a GetCellInfoResponse 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 GetCellInfoResponse 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 GetCellInfoResponse + * @returns PlannedReparentShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardRequest; /** - * 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 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.GetCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.PlannedReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PlannedReparentShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PlannedReparentShardResponse. */ + interface IPlannedReparentShardResponse { + + /** PlannedReparentShardResponse keyspace */ + keyspace?: (string|null); - /** - * Converts this GetCellInfoResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** PlannedReparentShardResponse shard */ + shard?: (string|null); - /** Properties of a GetCellsAliasesRequest. */ - interface IGetCellsAliasesRequest { + /** PlannedReparentShardResponse promoted_primary */ + promoted_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardResponse events */ + events?: (logutil.IEvent[]|null); } - /** Represents a GetCellsAliasesRequest. */ - class GetCellsAliasesRequest implements IGetCellsAliasesRequest { + /** Represents a PlannedReparentShardResponse. */ + class PlannedReparentShardResponse implements IPlannedReparentShardResponse { /** - * Constructs a new GetCellsAliasesRequest. + * Constructs a new PlannedReparentShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellsAliasesRequest); + constructor(properties?: vtctldata.IPlannedReparentShardResponse); + + /** PlannedReparentShardResponse keyspace. */ + public keyspace: string; + + /** PlannedReparentShardResponse shard. */ + public shard: string; + + /** PlannedReparentShardResponse promoted_primary. */ + public promoted_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardResponse events. */ + public events: logutil.IEvent[]; /** - * Creates a new GetCellsAliasesRequest instance using the specified properties. + * Creates a new PlannedReparentShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellsAliasesRequest instance + * @returns PlannedReparentShardResponse instance */ - public static create(properties?: vtctldata.IGetCellsAliasesRequest): vtctldata.GetCellsAliasesRequest; + public static create(properties?: vtctldata.IPlannedReparentShardResponse): vtctldata.PlannedReparentShardResponse; /** - * 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 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.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IPlannedReparentShardResponse, 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 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.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellsAliasesRequest 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 GetCellsAliasesRequest + * @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.GetCellsAliasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardResponse; /** - * Decodes a GetCellsAliasesRequest 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 GetCellsAliasesRequest + * @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.GetCellsAliasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardResponse; /** - * Verifies a GetCellsAliasesRequest 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 GetCellsAliasesRequest 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 GetCellsAliasesRequest + * @returns PlannedReparentShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardResponse; /** - * 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 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.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.PlannedReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellsAliasesRequest to JSON. + * Converts this PlannedReparentShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellsAliasesResponse. */ - interface IGetCellsAliasesResponse { + /** Properties of a RemoveKeyspaceCellRequest. */ + interface IRemoveKeyspaceCellRequest { - /** GetCellsAliasesResponse aliases */ - aliases?: ({ [k: string]: topodata.ICellsAlias }|null); + /** RemoveKeyspaceCellRequest keyspace */ + keyspace?: (string|null); + + /** RemoveKeyspaceCellRequest cell */ + cell?: (string|null); + + /** RemoveKeyspaceCellRequest force */ + force?: (boolean|null); + + /** RemoveKeyspaceCellRequest recursive */ + recursive?: (boolean|null); } - /** Represents a GetCellsAliasesResponse. */ - class GetCellsAliasesResponse implements IGetCellsAliasesResponse { + /** Represents a RemoveKeyspaceCellRequest. */ + class RemoveKeyspaceCellRequest implements IRemoveKeyspaceCellRequest { /** - * Constructs a new GetCellsAliasesResponse. + * Constructs a new RemoveKeyspaceCellRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellsAliasesResponse); + constructor(properties?: vtctldata.IRemoveKeyspaceCellRequest); - /** GetCellsAliasesResponse aliases. */ - public aliases: { [k: string]: topodata.ICellsAlias }; + /** RemoveKeyspaceCellRequest keyspace. */ + public keyspace: string; + + /** RemoveKeyspaceCellRequest cell. */ + public cell: string; + + /** RemoveKeyspaceCellRequest force. */ + public force: boolean; + + /** RemoveKeyspaceCellRequest recursive. */ + public recursive: boolean; /** - * Creates a new GetCellsAliasesResponse instance using the specified properties. + * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellsAliasesResponse instance + * @returns RemoveKeyspaceCellRequest instance */ - public static create(properties?: vtctldata.IGetCellsAliasesResponse): vtctldata.GetCellsAliasesResponse; + public static create(properties?: vtctldata.IRemoveKeyspaceCellRequest): vtctldata.RemoveKeyspaceCellRequest; /** - * 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 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.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveKeyspaceCellRequest, 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 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.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellsAliasesResponse 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 GetCellsAliasesResponse + * @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.GetCellsAliasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellRequest; /** - * Decodes a GetCellsAliasesResponse 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 GetCellsAliasesResponse + * @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.GetCellsAliasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellRequest; /** - * Verifies a GetCellsAliasesResponse 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 GetCellsAliasesResponse 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 GetCellsAliasesResponse + * @returns RemoveKeyspaceCellRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellRequest; /** - * 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 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.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveKeyspaceCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellsAliasesResponse to JSON. + * Converts this RemoveKeyspaceCellRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetKeyspacesRequest. */ - interface IGetKeyspacesRequest { + /** Properties of a RemoveKeyspaceCellResponse. */ + interface IRemoveKeyspaceCellResponse { } - /** Represents a GetKeyspacesRequest. */ - class GetKeyspacesRequest implements IGetKeyspacesRequest { + /** Represents a RemoveKeyspaceCellResponse. */ + class RemoveKeyspaceCellResponse implements IRemoveKeyspaceCellResponse { /** - * Constructs a new GetKeyspacesRequest. + * Constructs a new RemoveKeyspaceCellResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspacesRequest); + constructor(properties?: vtctldata.IRemoveKeyspaceCellResponse); /** - * Creates a new GetKeyspacesRequest instance using the specified properties. + * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspacesRequest instance + * @returns RemoveKeyspaceCellResponse instance */ - public static create(properties?: vtctldata.IGetKeyspacesRequest): vtctldata.GetKeyspacesRequest; + public static create(properties?: vtctldata.IRemoveKeyspaceCellResponse): vtctldata.RemoveKeyspaceCellResponse; /** - * 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 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.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveKeyspaceCellResponse, 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 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.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspacesRequest 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 GetKeyspacesRequest + * @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.GetKeyspacesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellResponse; /** - * Decodes a GetKeyspacesRequest 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 GetKeyspacesRequest + * @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.GetKeyspacesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellResponse; /** - * Verifies a GetKeyspacesRequest 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 GetKeyspacesRequest 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 GetKeyspacesRequest + * @returns RemoveKeyspaceCellResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellResponse; /** - * 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 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.GetKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveKeyspaceCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspacesRequest to JSON. + * Converts this RemoveKeyspaceCellResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetKeyspacesResponse. */ - interface IGetKeyspacesResponse { + /** Properties of a RemoveShardCellRequest. */ + interface IRemoveShardCellRequest { - /** GetKeyspacesResponse keyspaces */ - keyspaces?: (vtctldata.IKeyspace[]|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 GetKeyspacesResponse. */ - class GetKeyspacesResponse implements IGetKeyspacesResponse { + /** Represents a RemoveShardCellRequest. */ + class RemoveShardCellRequest implements IRemoveShardCellRequest { + + /** + * Constructs a new RemoveShardCellRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveShardCellRequest); + + /** RemoveShardCellRequest keyspace. */ + public keyspace: string; + + /** RemoveShardCellRequest shard_name. */ + public shard_name: string; + + /** RemoveShardCellRequest cell. */ + public cell: string; - /** - * Constructs a new GetKeyspacesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspacesResponse); + /** RemoveShardCellRequest force. */ + public force: boolean; - /** GetKeyspacesResponse keyspaces. */ - public keyspaces: vtctldata.IKeyspace[]; + /** RemoveShardCellRequest recursive. */ + public recursive: boolean; /** - * Creates a new GetKeyspacesResponse instance using the specified properties. + * Creates a new RemoveShardCellRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspacesResponse instance + * @returns RemoveShardCellRequest instance */ - public static create(properties?: vtctldata.IGetKeyspacesResponse): vtctldata.GetKeyspacesResponse; + public static create(properties?: vtctldata.IRemoveShardCellRequest): vtctldata.RemoveShardCellRequest; /** - * 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 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.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveShardCellRequest, 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 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.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspacesResponse 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 GetKeyspacesResponse + * @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.GetKeyspacesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellRequest; /** - * Decodes a GetKeyspacesResponse 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 GetKeyspacesResponse + * @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.GetKeyspacesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellRequest; /** - * Verifies a GetKeyspacesResponse 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 GetKeyspacesResponse 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 GetKeyspacesResponse + * @returns RemoveShardCellRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellRequest; /** - * 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 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.GetKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveShardCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspacesResponse to JSON. + * Converts this RemoveShardCellRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetKeyspaceRequest. */ - interface IGetKeyspaceRequest { - - /** GetKeyspaceRequest keyspace */ - keyspace?: (string|null); + /** Properties of a RemoveShardCellResponse. */ + interface IRemoveShardCellResponse { } - /** Represents a GetKeyspaceRequest. */ - class GetKeyspaceRequest implements IGetKeyspaceRequest { + /** Represents a RemoveShardCellResponse. */ + class RemoveShardCellResponse implements IRemoveShardCellResponse { /** - * Constructs a new GetKeyspaceRequest. + * Constructs a new RemoveShardCellResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspaceRequest); - - /** GetKeyspaceRequest keyspace. */ - public keyspace: string; + constructor(properties?: vtctldata.IRemoveShardCellResponse); /** - * Creates a new GetKeyspaceRequest instance using the specified properties. + * Creates a new RemoveShardCellResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspaceRequest instance + * @returns RemoveShardCellResponse instance */ - public static create(properties?: vtctldata.IGetKeyspaceRequest): vtctldata.GetKeyspaceRequest; + public static create(properties?: vtctldata.IRemoveShardCellResponse): vtctldata.RemoveShardCellResponse; /** - * 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 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.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveShardCellResponse, 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 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.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspaceRequest 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 GetKeyspaceRequest + * @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.GetKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellResponse; /** - * Decodes a GetKeyspaceRequest 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 GetKeyspaceRequest + * @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.GetKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellResponse; /** - * Verifies a GetKeyspaceRequest 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 GetKeyspaceRequest 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 GetKeyspaceRequest + * @returns RemoveShardCellResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellResponse; /** - * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. - * @param message GetKeyspaceRequest + * 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.GetKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveShardCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspaceRequest to JSON. + * Converts this RemoveShardCellResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetKeyspaceResponse. */ - interface IGetKeyspaceResponse { + /** Properties of a ReparentTabletRequest. */ + interface IReparentTabletRequest { - /** GetKeyspaceResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); + /** ReparentTabletRequest tablet */ + tablet?: (topodata.ITabletAlias|null); } - /** Represents a GetKeyspaceResponse. */ - class GetKeyspaceResponse implements IGetKeyspaceResponse { + /** Represents a ReparentTabletRequest. */ + class ReparentTabletRequest implements IReparentTabletRequest { /** - * Constructs a new GetKeyspaceResponse. + * Constructs a new ReparentTabletRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspaceResponse); + constructor(properties?: vtctldata.IReparentTabletRequest); - /** GetKeyspaceResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); + /** ReparentTabletRequest tablet. */ + public tablet?: (topodata.ITabletAlias|null); /** - * Creates a new GetKeyspaceResponse instance using the specified properties. + * Creates a new ReparentTabletRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspaceResponse instance + * @returns ReparentTabletRequest instance */ - public static create(properties?: vtctldata.IGetKeyspaceResponse): vtctldata.GetKeyspaceResponse; + public static create(properties?: vtctldata.IReparentTabletRequest): vtctldata.ReparentTabletRequest; /** - * 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 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.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReparentTabletRequest, 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 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.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspaceResponse 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 GetKeyspaceResponse + * @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.GetKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletRequest; /** - * Decodes a GetKeyspaceResponse 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 GetKeyspaceResponse + * @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.GetKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletRequest; /** - * Verifies a GetKeyspaceResponse 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 GetKeyspaceResponse 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 GetKeyspaceResponse + * @returns ReparentTabletRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletRequest; /** - * Creates a plain object from a GetKeyspaceResponse message. Also converts values to other types if specified. - * @param message GetKeyspaceResponse + * 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.GetKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReparentTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspaceResponse to JSON. + * Converts this ReparentTabletRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSchemaRequest. */ - interface IGetSchemaRequest { - - /** GetSchemaRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** GetSchemaRequest tables */ - tables?: (string[]|null); - - /** GetSchemaRequest exclude_tables */ - exclude_tables?: (string[]|null); + /** Properties of a ReparentTabletResponse. */ + interface IReparentTabletResponse { - /** GetSchemaRequest include_views */ - include_views?: (boolean|null); + /** ReparentTabletResponse keyspace */ + keyspace?: (string|null); - /** GetSchemaRequest table_names_only */ - table_names_only?: (boolean|null); + /** ReparentTabletResponse shard */ + shard?: (string|null); - /** GetSchemaRequest table_sizes_only */ - table_sizes_only?: (boolean|null); + /** ReparentTabletResponse primary */ + primary?: (topodata.ITabletAlias|null); } - /** Represents a GetSchemaRequest. */ - class GetSchemaRequest implements IGetSchemaRequest { + /** Represents a ReparentTabletResponse. */ + class ReparentTabletResponse implements IReparentTabletResponse { /** - * Constructs a new GetSchemaRequest. + * Constructs a new ReparentTabletResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSchemaRequest); - - /** GetSchemaRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** GetSchemaRequest tables. */ - public tables: string[]; - - /** GetSchemaRequest exclude_tables. */ - public exclude_tables: string[]; + constructor(properties?: vtctldata.IReparentTabletResponse); - /** GetSchemaRequest include_views. */ - public include_views: boolean; + /** ReparentTabletResponse keyspace. */ + public keyspace: string; - /** GetSchemaRequest table_names_only. */ - public table_names_only: boolean; + /** ReparentTabletResponse shard. */ + public shard: string; - /** GetSchemaRequest table_sizes_only. */ - public table_sizes_only: boolean; + /** ReparentTabletResponse primary. */ + public primary?: (topodata.ITabletAlias|null); /** - * Creates a new GetSchemaRequest instance using the specified properties. + * Creates a new ReparentTabletResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaRequest instance + * @returns ReparentTabletResponse instance */ - public static create(properties?: vtctldata.IGetSchemaRequest): vtctldata.GetSchemaRequest; + public static create(properties?: vtctldata.IReparentTabletResponse): vtctldata.ReparentTabletResponse; - /** - * 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 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.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReparentTabletResponse, 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 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.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaRequest 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 GetSchemaRequest + * @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.GetSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletResponse; /** - * Decodes a GetSchemaRequest 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 GetSchemaRequest + * @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.GetSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletResponse; /** - * Verifies a GetSchemaRequest 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 GetSchemaRequest 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 GetSchemaRequest + * @returns ReparentTabletResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletResponse; /** - * 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 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.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReparentTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaRequest to JSON. + * Converts this ReparentTabletResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSchemaResponse. */ - interface IGetSchemaResponse { + /** Properties of a TabletExternallyReparentedRequest. */ + interface ITabletExternallyReparentedRequest { - /** GetSchemaResponse schema */ - schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** TabletExternallyReparentedRequest tablet */ + tablet?: (topodata.ITabletAlias|null); } - /** Represents a GetSchemaResponse. */ - class GetSchemaResponse implements IGetSchemaResponse { + /** Represents a TabletExternallyReparentedRequest. */ + class TabletExternallyReparentedRequest implements ITabletExternallyReparentedRequest { /** - * Constructs a new GetSchemaResponse. + * Constructs a new TabletExternallyReparentedRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSchemaResponse); + constructor(properties?: vtctldata.ITabletExternallyReparentedRequest); - /** GetSchemaResponse schema. */ - public schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** TabletExternallyReparentedRequest tablet. */ + public tablet?: (topodata.ITabletAlias|null); /** - * Creates a new GetSchemaResponse instance using the specified properties. + * Creates a new TabletExternallyReparentedRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaResponse instance + * @returns TabletExternallyReparentedRequest instance */ - public static create(properties?: vtctldata.IGetSchemaResponse): vtctldata.GetSchemaResponse; + public static create(properties?: vtctldata.ITabletExternallyReparentedRequest): vtctldata.TabletExternallyReparentedRequest; /** - * 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 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.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ITabletExternallyReparentedRequest, 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 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.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaResponse 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 GetSchemaResponse + * @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.GetSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedRequest; /** - * Decodes a GetSchemaResponse 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 GetSchemaResponse + * @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.GetSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedRequest; /** - * Verifies a GetSchemaResponse 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 GetSchemaResponse 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 GetSchemaResponse + * @returns TabletExternallyReparentedRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedRequest; /** - * 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 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.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.TabletExternallyReparentedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaResponse to JSON. + * Converts this TabletExternallyReparentedRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetShardRequest. */ - interface IGetShardRequest { + /** Properties of a TabletExternallyReparentedResponse. */ + interface ITabletExternallyReparentedResponse { - /** GetShardRequest keyspace */ + /** TabletExternallyReparentedResponse keyspace */ keyspace?: (string|null); - /** GetShardRequest shard_name */ - shard_name?: (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 GetShardRequest. */ - class GetShardRequest implements IGetShardRequest { + /** Represents a TabletExternallyReparentedResponse. */ + class TabletExternallyReparentedResponse implements ITabletExternallyReparentedResponse { /** - * Constructs a new GetShardRequest. + * Constructs a new TabletExternallyReparentedResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetShardRequest); + constructor(properties?: vtctldata.ITabletExternallyReparentedResponse); - /** GetShardRequest keyspace. */ + /** TabletExternallyReparentedResponse keyspace. */ public keyspace: string; - /** GetShardRequest shard_name. */ - public shard_name: 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 GetShardRequest instance using the specified properties. + * Creates a new TabletExternallyReparentedResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetShardRequest instance + * @returns TabletExternallyReparentedResponse instance */ - public static create(properties?: vtctldata.IGetShardRequest): vtctldata.GetShardRequest; + public static create(properties?: vtctldata.ITabletExternallyReparentedResponse): vtctldata.TabletExternallyReparentedResponse; /** - * 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 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.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ITabletExternallyReparentedResponse, 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 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.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShardRequest 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 GetShardRequest + * @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.GetShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedResponse; /** - * Decodes a GetShardRequest 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 GetShardRequest + * @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.GetShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedResponse; /** - * Verifies a GetShardRequest 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 GetShardRequest 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 GetShardRequest + * @returns TabletExternallyReparentedResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedResponse; /** - * 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 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.GetShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.TabletExternallyReparentedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShardRequest to JSON. + * Converts this TabletExternallyReparentedResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } +} - /** Properties of a GetShardResponse. */ - interface IGetShardResponse { +/** Namespace binlogdata. */ +export namespace binlogdata { - /** GetShardResponse shard */ - shard?: (vtctldata.IShard|null); + /** Properties of a Charset. */ + interface ICharset { + + /** Charset client */ + client?: (number|null); + + /** Charset conn */ + conn?: (number|null); + + /** Charset server */ + server?: (number|null); } - /** Represents a GetShardResponse. */ - class GetShardResponse implements IGetShardResponse { + /** Represents a Charset. */ + class Charset implements ICharset { /** - * Constructs a new GetShardResponse. + * Constructs a new Charset. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetShardResponse); + constructor(properties?: binlogdata.ICharset); - /** GetShardResponse shard. */ - public shard?: (vtctldata.IShard|null); + /** Charset client. */ + public client: number; + + /** Charset conn. */ + public conn: number; + + /** Charset server. */ + public server: number; /** - * Creates a new GetShardResponse instance using the specified properties. + * Creates a new Charset instance using the specified properties. * @param [properties] Properties to set - * @returns GetShardResponse instance + * @returns Charset instance */ - public static create(properties?: vtctldata.IGetShardResponse): vtctldata.GetShardResponse; + public static create(properties?: binlogdata.ICharset): binlogdata.Charset; /** - * 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 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: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.ICharset, 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 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: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.ICharset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShardResponse 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 GetShardResponse + * @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): vtctldata.GetShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.Charset; /** - * Decodes a GetShardResponse 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 GetShardResponse + * @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)): vtctldata.GetShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.Charset; /** - * Verifies a GetShardResponse 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 GetShardResponse 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 GetShardResponse + * @returns Charset */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.Charset; /** - * 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 Charset message. Also converts values to other types if specified. + * @param message Charset * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.Charset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShardResponse to JSON. + * Converts this Charset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSrvVSchemaRequest. */ - interface IGetSrvVSchemaRequest { + /** Properties of a BinlogTransaction. */ + interface IBinlogTransaction { - /** GetSrvVSchemaRequest cell */ - cell?: (string|null); + /** BinlogTransaction statements */ + statements?: (binlogdata.BinlogTransaction.IStatement[]|null); + + /** BinlogTransaction event_token */ + event_token?: (query.IEventToken|null); } - /** Represents a GetSrvVSchemaRequest. */ - class GetSrvVSchemaRequest implements IGetSrvVSchemaRequest { + /** Represents a BinlogTransaction. */ + class BinlogTransaction implements IBinlogTransaction { /** - * Constructs a new GetSrvVSchemaRequest. + * Constructs a new BinlogTransaction. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvVSchemaRequest); + constructor(properties?: binlogdata.IBinlogTransaction); - /** GetSrvVSchemaRequest cell. */ - public cell: string; + /** BinlogTransaction statements. */ + public statements: binlogdata.BinlogTransaction.IStatement[]; + + /** BinlogTransaction event_token. */ + public event_token?: (query.IEventToken|null); /** - * Creates a new GetSrvVSchemaRequest instance using the specified properties. + * Creates a new BinlogTransaction instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvVSchemaRequest instance + * @returns BinlogTransaction instance */ - public static create(properties?: vtctldata.IGetSrvVSchemaRequest): vtctldata.GetSrvVSchemaRequest; + public static create(properties?: binlogdata.IBinlogTransaction): binlogdata.BinlogTransaction; /** - * 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 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: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IBinlogTransaction, 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 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: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IBinlogTransaction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvVSchemaRequest 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 GetSrvVSchemaRequest + * @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): vtctldata.GetSrvVSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.BinlogTransaction; /** - * Decodes a GetSrvVSchemaRequest 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 GetSrvVSchemaRequest + * @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)): vtctldata.GetSrvVSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.BinlogTransaction; /** - * Verifies a GetSrvVSchemaRequest 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 GetSrvVSchemaRequest 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 GetSrvVSchemaRequest + * @returns BinlogTransaction */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.BinlogTransaction; /** - * 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 BinlogTransaction message. Also converts values to other types if specified. + * @param message BinlogTransaction * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.BinlogTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvVSchemaRequest to JSON. + * Converts this BinlogTransaction to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSrvVSchemaResponse. */ - interface IGetSrvVSchemaResponse { + namespace BinlogTransaction { - /** GetSrvVSchemaResponse srv_v_schema */ - srv_v_schema?: (vschema.ISrvVSchema|null); + /** Properties of a Statement. */ + interface IStatement { + + /** Statement category */ + category?: (binlogdata.BinlogTransaction.Statement.Category|null); + + /** Statement charset */ + charset?: (binlogdata.ICharset|null); + + /** Statement sql */ + sql?: (Uint8Array|null); + } + + /** Represents a Statement. */ + class Statement implements IStatement { + + /** + * Constructs a new Statement. + * @param [properties] Properties to set + */ + constructor(properties?: binlogdata.BinlogTransaction.IStatement); + + /** 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 }; + } + + 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 + } + } } - /** Represents a GetSrvVSchemaResponse. */ - class GetSrvVSchemaResponse implements IGetSrvVSchemaResponse { + /** 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 { /** - * Constructs a new GetSrvVSchemaResponse. + * Constructs a new StreamKeyRangeRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvVSchemaResponse); + constructor(properties?: binlogdata.IStreamKeyRangeRequest); - /** GetSrvVSchemaResponse srv_v_schema. */ - public srv_v_schema?: (vschema.ISrvVSchema|null); + /** StreamKeyRangeRequest position. */ + public position: string; + + /** StreamKeyRangeRequest key_range. */ + public key_range?: (topodata.IKeyRange|null); + + /** StreamKeyRangeRequest charset. */ + public charset?: (binlogdata.ICharset|null); /** - * Creates a new GetSrvVSchemaResponse instance using the specified properties. + * Creates a new StreamKeyRangeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvVSchemaResponse instance + * @returns StreamKeyRangeRequest instance */ - public static create(properties?: vtctldata.IGetSrvVSchemaResponse): vtctldata.GetSrvVSchemaResponse; + public static create(properties?: binlogdata.IStreamKeyRangeRequest): binlogdata.StreamKeyRangeRequest; /** - * 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 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: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IStreamKeyRangeRequest, 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 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: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IStreamKeyRangeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvVSchemaResponse 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 GetSrvVSchemaResponse + * @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): vtctldata.GetSrvVSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamKeyRangeRequest; /** - * Decodes a GetSrvVSchemaResponse 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 GetSrvVSchemaResponse + * @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)): vtctldata.GetSrvVSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamKeyRangeRequest; /** - * Verifies a GetSrvVSchemaResponse 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 GetSrvVSchemaResponse 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 GetSrvVSchemaResponse + * @returns StreamKeyRangeRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.StreamKeyRangeRequest; /** - * 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 StreamKeyRangeRequest message. Also converts values to other types if specified. + * @param message StreamKeyRangeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.StreamKeyRangeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvVSchemaResponse to JSON. + * Converts this StreamKeyRangeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTabletRequest. */ - interface IGetTabletRequest { + /** Properties of a StreamKeyRangeResponse. */ + interface IStreamKeyRangeResponse { - /** GetTabletRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** StreamKeyRangeResponse binlog_transaction */ + binlog_transaction?: (binlogdata.IBinlogTransaction|null); } - /** Represents a GetTabletRequest. */ - class GetTabletRequest implements IGetTabletRequest { + /** Represents a StreamKeyRangeResponse. */ + class StreamKeyRangeResponse implements IStreamKeyRangeResponse { /** - * Constructs a new GetTabletRequest. + * Constructs a new StreamKeyRangeResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletRequest); + constructor(properties?: binlogdata.IStreamKeyRangeResponse); - /** GetTabletRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** StreamKeyRangeResponse binlog_transaction. */ + public binlog_transaction?: (binlogdata.IBinlogTransaction|null); /** - * Creates a new GetTabletRequest instance using the specified properties. + * Creates a new StreamKeyRangeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletRequest instance + * @returns StreamKeyRangeResponse instance */ - public static create(properties?: vtctldata.IGetTabletRequest): vtctldata.GetTabletRequest; + public static create(properties?: binlogdata.IStreamKeyRangeResponse): binlogdata.StreamKeyRangeResponse; /** - * 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 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: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IStreamKeyRangeResponse, 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 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: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IStreamKeyRangeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletRequest message from the specified reader or buffer. + * 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 GetTabletRequest + * @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): vtctldata.GetTabletRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamKeyRangeResponse; /** - * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamKeyRangeResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTabletRequest + * @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)): vtctldata.GetTabletRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamKeyRangeResponse; /** - * Verifies a GetTabletRequest message. + * 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); /** - * Creates a GetTabletRequest 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. * @param object Plain object - * @returns GetTabletRequest + * @returns StreamKeyRangeResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.StreamKeyRangeResponse; /** - * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. - * @param message GetTabletRequest + * 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: vtctldata.GetTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.StreamKeyRangeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletRequest to JSON. + * Converts this StreamKeyRangeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTabletResponse. */ - interface IGetTabletResponse { + /** Properties of a StreamTablesRequest. */ + interface IStreamTablesRequest { - /** GetTabletResponse tablet */ - tablet?: (topodata.ITablet|null); + /** StreamTablesRequest position */ + position?: (string|null); + + /** StreamTablesRequest tables */ + tables?: (string[]|null); + + /** StreamTablesRequest charset */ + charset?: (binlogdata.ICharset|null); } - /** Represents a GetTabletResponse. */ - class GetTabletResponse implements IGetTabletResponse { + /** Represents a StreamTablesRequest. */ + class StreamTablesRequest implements IStreamTablesRequest { /** - * Constructs a new GetTabletResponse. + * Constructs a new StreamTablesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletResponse); + constructor(properties?: binlogdata.IStreamTablesRequest); - /** GetTabletResponse tablet. */ - public tablet?: (topodata.ITablet|null); + /** StreamTablesRequest position. */ + public position: string; + + /** StreamTablesRequest tables. */ + public tables: string[]; + + /** StreamTablesRequest charset. */ + public charset?: (binlogdata.ICharset|null); /** - * Creates a new GetTabletResponse instance using the specified properties. + * Creates a new StreamTablesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletResponse instance + * @returns StreamTablesRequest instance */ - public static create(properties?: vtctldata.IGetTabletResponse): vtctldata.GetTabletResponse; + public static create(properties?: binlogdata.IStreamTablesRequest): binlogdata.StreamTablesRequest; /** - * 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 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: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IStreamTablesRequest, 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 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: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IStreamTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletResponse 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 GetTabletResponse + * @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): vtctldata.GetTabletResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamTablesRequest; /** - * Decodes a GetTabletResponse 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 GetTabletResponse + * @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)): vtctldata.GetTabletResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamTablesRequest; /** - * Verifies a GetTabletResponse 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 GetTabletResponse 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 GetTabletResponse + * @returns StreamTablesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.StreamTablesRequest; /** - * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. - * @param message GetTabletResponse + * 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: vtctldata.GetTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.StreamTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletResponse to JSON. + * Converts this StreamTablesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTabletsRequest. */ - interface IGetTabletsRequest { - - /** GetTabletsRequest keyspace */ - keyspace?: (string|null); - - /** GetTabletsRequest shard */ - shard?: (string|null); + /** Properties of a StreamTablesResponse. */ + interface IStreamTablesResponse { - /** GetTabletsRequest cells */ - cells?: (string[]|null); + /** StreamTablesResponse binlog_transaction */ + binlog_transaction?: (binlogdata.IBinlogTransaction|null); } - /** Represents a GetTabletsRequest. */ - class GetTabletsRequest implements IGetTabletsRequest { + /** Represents a StreamTablesResponse. */ + class StreamTablesResponse implements IStreamTablesResponse { /** - * Constructs a new GetTabletsRequest. + * Constructs a new StreamTablesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletsRequest); - - /** GetTabletsRequest keyspace. */ - public keyspace: string; - - /** GetTabletsRequest shard. */ - public shard: string; + constructor(properties?: binlogdata.IStreamTablesResponse); - /** GetTabletsRequest cells. */ - public cells: string[]; + /** StreamTablesResponse binlog_transaction. */ + public binlog_transaction?: (binlogdata.IBinlogTransaction|null); /** - * Creates a new GetTabletsRequest instance using the specified properties. + * Creates a new StreamTablesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletsRequest instance + * @returns StreamTablesResponse instance */ - public static create(properties?: vtctldata.IGetTabletsRequest): vtctldata.GetTabletsRequest; + public static create(properties?: binlogdata.IStreamTablesResponse): binlogdata.StreamTablesResponse; /** - * 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 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: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IStreamTablesResponse, 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 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: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IStreamTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletsRequest 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 GetTabletsRequest + * @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): vtctldata.GetTabletsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamTablesResponse; /** - * Decodes a GetTabletsRequest 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 GetTabletsRequest + * @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)): vtctldata.GetTabletsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamTablesResponse; /** - * Verifies a GetTabletsRequest 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 GetTabletsRequest 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 GetTabletsRequest + * @returns StreamTablesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.StreamTablesResponse; /** - * 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 StreamTablesResponse message. Also converts values to other types if specified. + * @param message StreamTablesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.StreamTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletsRequest to JSON. + * Converts this StreamTablesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTabletsResponse. */ - interface IGetTabletsResponse { + /** Properties of a Rule. */ + interface IRule { - /** GetTabletsResponse tablets */ - tablets?: (topodata.ITablet[]|null); + /** Rule match */ + match?: (string|null); + + /** Rule filter */ + filter?: (string|null); } - /** Represents a GetTabletsResponse. */ - class GetTabletsResponse implements IGetTabletsResponse { + /** Represents a Rule. */ + class Rule implements IRule { /** - * Constructs a new GetTabletsResponse. + * Constructs a new Rule. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletsResponse); + constructor(properties?: binlogdata.IRule); - /** GetTabletsResponse tablets. */ - public tablets: topodata.ITablet[]; + /** Rule match. */ + public match: string; + + /** Rule filter. */ + public filter: string; /** - * Creates a new GetTabletsResponse instance using the specified properties. + * Creates a new Rule instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletsResponse instance + * @returns Rule instance */ - public static create(properties?: vtctldata.IGetTabletsResponse): vtctldata.GetTabletsResponse; + public static create(properties?: binlogdata.IRule): binlogdata.Rule; /** - * 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 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: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IRule, 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 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: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer. + * 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 GetTabletsResponse + * @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): vtctldata.GetTabletsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.Rule; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. + * Decodes a Rule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTabletsResponse + * @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)): vtctldata.GetTabletsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.Rule; /** - * Verifies a GetTabletsResponse message. + * 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 GetTabletsResponse 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. * @param object Plain object - * @returns GetTabletsResponse + * @returns Rule */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.Rule; /** - * 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 Rule message. Also converts values to other types if specified. + * @param message Rule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.Rule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletsResponse to JSON. + * Converts this Rule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetVSchemaRequest. */ - interface IGetVSchemaRequest { + /** Properties of a Filter. */ + interface IFilter { - /** GetVSchemaRequest keyspace */ - keyspace?: (string|null); + /** Filter rules */ + rules?: (binlogdata.IRule[]|null); + + /** Filter fieldEventMode */ + fieldEventMode?: (binlogdata.Filter.FieldEventMode|null); } - /** Represents a GetVSchemaRequest. */ - class GetVSchemaRequest implements IGetVSchemaRequest { + /** Represents a Filter. */ + class Filter implements IFilter { /** - * Constructs a new GetVSchemaRequest. + * Constructs a new Filter. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetVSchemaRequest); + constructor(properties?: binlogdata.IFilter); - /** GetVSchemaRequest keyspace. */ - public keyspace: string; + /** Filter rules. */ + public rules: binlogdata.IRule[]; + + /** Filter fieldEventMode. */ + public fieldEventMode: binlogdata.Filter.FieldEventMode; /** - * Creates a new GetVSchemaRequest instance using the specified properties. + * Creates a new Filter instance using the specified properties. * @param [properties] Properties to set - * @returns GetVSchemaRequest instance + * @returns Filter instance */ - public static create(properties?: vtctldata.IGetVSchemaRequest): vtctldata.GetVSchemaRequest; + public static create(properties?: binlogdata.IFilter): binlogdata.Filter; /** - * 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 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: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IFilter, 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 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: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer. + * 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 GetVSchemaRequest + * @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): vtctldata.GetVSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.Filter; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a Filter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVSchemaRequest + * @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)): vtctldata.GetVSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.Filter; /** - * Verifies a GetVSchemaRequest message. + * 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 GetVSchemaRequest 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. * @param object Plain object - * @returns GetVSchemaRequest + * @returns Filter */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.Filter; /** - * 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 Filter message. Also converts values to other types if specified. + * @param message Filter * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.Filter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVSchemaRequest to JSON. + * Converts this Filter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetVSchemaResponse. */ - interface IGetVSchemaResponse { + namespace Filter { - /** GetVSchemaResponse v_schema */ - v_schema?: (vschema.IKeyspace|null); + /** FieldEventMode enum. */ + enum FieldEventMode { + ERR_ON_MISMATCH = 0, + BEST_EFFORT = 1 + } } - /** Represents a GetVSchemaResponse. */ - class GetVSchemaResponse implements IGetVSchemaResponse { + /** OnDDLAction enum. */ + enum OnDDLAction { + IGNORE = 0, + STOP = 1, + EXEC = 2, + EXEC_IGNORE = 3 + } + + /** Properties of a BinlogSource. */ + interface IBinlogSource { + + /** BinlogSource keyspace */ + keyspace?: (string|null); + + /** BinlogSource shard */ + shard?: (string|null); + + /** BinlogSource tablet_type */ + tablet_type?: (topodata.TabletType|null); + + /** BinlogSource key_range */ + key_range?: (topodata.IKeyRange|null); + + /** BinlogSource tables */ + tables?: (string[]|null); + + /** BinlogSource filter */ + filter?: (binlogdata.IFilter|null); + + /** BinlogSource on_ddl */ + on_ddl?: (binlogdata.OnDDLAction|null); + + /** BinlogSource external_mysql */ + external_mysql?: (string|null); + + /** BinlogSource stop_after_copy */ + stop_after_copy?: (boolean|null); + + /** BinlogSource external_cluster */ + external_cluster?: (string|null); + } + + /** Represents a BinlogSource. */ + class BinlogSource implements IBinlogSource { /** - * Constructs a new GetVSchemaResponse. + * Constructs a new BinlogSource. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetVSchemaResponse); + constructor(properties?: binlogdata.IBinlogSource); - /** GetVSchemaResponse v_schema. */ - public v_schema?: (vschema.IKeyspace|null); + /** BinlogSource keyspace. */ + public keyspace: string; + + /** BinlogSource shard. */ + public shard: string; + + /** BinlogSource tablet_type. */ + public tablet_type: topodata.TabletType; + + /** BinlogSource key_range. */ + public key_range?: (topodata.IKeyRange|null); + + /** BinlogSource tables. */ + public tables: string[]; + + /** BinlogSource filter. */ + public filter?: (binlogdata.IFilter|null); + + /** BinlogSource on_ddl. */ + public on_ddl: binlogdata.OnDDLAction; + + /** BinlogSource external_mysql. */ + public external_mysql: string; + + /** BinlogSource stop_after_copy. */ + public stop_after_copy: boolean; + + /** BinlogSource external_cluster. */ + public external_cluster: string; /** - * Creates a new GetVSchemaResponse instance using the specified properties. + * Creates a new BinlogSource instance using the specified properties. * @param [properties] Properties to set - * @returns GetVSchemaResponse instance + * @returns BinlogSource instance */ - public static create(properties?: vtctldata.IGetVSchemaResponse): vtctldata.GetVSchemaResponse; + public static create(properties?: binlogdata.IBinlogSource): binlogdata.BinlogSource; /** - * 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 BinlogSource message. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. + * @param message BinlogSource 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: binlogdata.IBinlogSource, 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 BinlogSource message, length delimited. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. + * @param message BinlogSource 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: binlogdata.IBinlogSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer. + * Decodes a BinlogSource 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 BinlogSource * @throws {Error} If the payload is not 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): binlogdata.BinlogSource; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a BinlogSource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVSchemaResponse + * @returns BinlogSource * @throws {Error} If the payload 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)): binlogdata.BinlogSource; /** - * Verifies a GetVSchemaResponse message. + * Verifies a BinlogSource message. * @param message Plain object 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 BinlogSource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVSchemaResponse + * @returns BinlogSource */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.BinlogSource; /** - * 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 BinlogSource message. Also converts values to other types if specified. + * @param message BinlogSource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.BinlogSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVSchemaResponse to JSON. + * Converts this BinlogSource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an InitShardPrimaryRequest. */ - interface IInitShardPrimaryRequest { - - /** InitShardPrimaryRequest keyspace */ - keyspace?: (string|null); - - /** InitShardPrimaryRequest shard */ - shard?: (string|null); + /** VEventType enum. */ + enum VEventType { + UNKNOWN = 0, + GTID = 1, + BEGIN = 2, + COMMIT = 3, + ROLLBACK = 4, + DDL = 5, + INSERT = 6, + REPLACE = 7, + UPDATE = 8, + DELETE = 9, + SET = 10, + OTHER = 11, + ROW = 12, + FIELD = 13, + HEARTBEAT = 14, + VGTID = 15, + JOURNAL = 16, + VERSION = 17, + LASTPK = 18, + SAVEPOINT = 19 + } - /** InitShardPrimaryRequest primary_elect_tablet_alias */ - primary_elect_tablet_alias?: (topodata.ITabletAlias|null); + /** Properties of a RowChange. */ + interface IRowChange { - /** InitShardPrimaryRequest force */ - force?: (boolean|null); + /** RowChange before */ + before?: (query.IRow|null); - /** InitShardPrimaryRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); + /** RowChange after */ + after?: (query.IRow|null); } - /** Represents an InitShardPrimaryRequest. */ - class InitShardPrimaryRequest implements IInitShardPrimaryRequest { + /** Represents a RowChange. */ + class RowChange implements IRowChange { /** - * Constructs a new InitShardPrimaryRequest. + * Constructs a new RowChange. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IInitShardPrimaryRequest); - - /** InitShardPrimaryRequest keyspace. */ - public keyspace: string; - - /** InitShardPrimaryRequest shard. */ - public shard: string; - - /** InitShardPrimaryRequest primary_elect_tablet_alias. */ - public primary_elect_tablet_alias?: (topodata.ITabletAlias|null); + constructor(properties?: binlogdata.IRowChange); - /** InitShardPrimaryRequest force. */ - public force: boolean; + /** RowChange before. */ + public before?: (query.IRow|null); - /** InitShardPrimaryRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); + /** RowChange after. */ + public after?: (query.IRow|null); /** - * Creates a new InitShardPrimaryRequest instance using the specified properties. + * Creates a new RowChange instance using the specified properties. * @param [properties] Properties to set - * @returns InitShardPrimaryRequest instance + * @returns RowChange instance */ - public static create(properties?: vtctldata.IInitShardPrimaryRequest): vtctldata.InitShardPrimaryRequest; + public static create(properties?: binlogdata.IRowChange): binlogdata.RowChange; /** - * 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 RowChange message. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. + * @param message RowChange 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: binlogdata.IRowChange, 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 RowChange message, length delimited. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. + * @param message RowChange 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: binlogdata.IRowChange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. + * Decodes a RowChange 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 RowChange * @throws {Error} If the payload is not 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): binlogdata.RowChange; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. + * Decodes a RowChange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InitShardPrimaryRequest + * @returns RowChange * @throws {Error} If the payload 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)): binlogdata.RowChange; /** - * Verifies an InitShardPrimaryRequest message. + * Verifies a RowChange message. * @param message Plain object 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 RowChange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InitShardPrimaryRequest + * @returns RowChange */ - public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.RowChange; /** - * 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 RowChange message. Also converts values to other types if specified. + * @param message RowChange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.InitShardPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.RowChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InitShardPrimaryRequest to JSON. + * Converts this RowChange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an InitShardPrimaryResponse. */ - interface IInitShardPrimaryResponse { + /** Properties of a RowEvent. */ + interface IRowEvent { - /** InitShardPrimaryResponse events */ - events?: (logutil.IEvent[]|null); + /** RowEvent table_name */ + table_name?: (string|null); + + /** RowEvent row_changes */ + row_changes?: (binlogdata.IRowChange[]|null); } - /** Represents an InitShardPrimaryResponse. */ - class InitShardPrimaryResponse implements IInitShardPrimaryResponse { + /** Represents a RowEvent. */ + class RowEvent implements IRowEvent { /** - * Constructs a new InitShardPrimaryResponse. + * Constructs a new RowEvent. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IInitShardPrimaryResponse); + constructor(properties?: binlogdata.IRowEvent); - /** InitShardPrimaryResponse events. */ - public events: logutil.IEvent[]; + /** RowEvent table_name. */ + public table_name: string; + + /** RowEvent row_changes. */ + public row_changes: binlogdata.IRowChange[]; /** - * Creates a new InitShardPrimaryResponse instance using the specified properties. + * Creates a new RowEvent instance using the specified properties. * @param [properties] Properties to set - * @returns InitShardPrimaryResponse instance + * @returns RowEvent instance */ - public static create(properties?: vtctldata.IInitShardPrimaryResponse): vtctldata.InitShardPrimaryResponse; + public static create(properties?: binlogdata.IRowEvent): binlogdata.RowEvent; /** - * 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 RowEvent message. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. + * @param message RowEvent 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: binlogdata.IRowEvent, 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 RowEvent message, length delimited. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. + * @param message RowEvent 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: binlogdata.IRowEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. + * Decodes a RowEvent 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 RowEvent * @throws {Error} If the payload is not 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): binlogdata.RowEvent; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. + * Decodes a RowEvent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InitShardPrimaryResponse + * @returns RowEvent * @throws {Error} If the payload 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)): binlogdata.RowEvent; /** - * Verifies an InitShardPrimaryResponse message. + * Verifies a RowEvent message. * @param message Plain object 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 RowEvent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InitShardPrimaryResponse + * @returns RowEvent */ - public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.RowEvent; /** - * 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 RowEvent message. Also converts values to other types if specified. + * @param message RowEvent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.InitShardPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.RowEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InitShardPrimaryResponse to JSON. + * Converts this RowEvent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PlannedReparentShardRequest. */ - interface IPlannedReparentShardRequest { - - /** PlannedReparentShardRequest keyspace */ - keyspace?: (string|null); - - /** PlannedReparentShardRequest shard */ - shard?: (string|null); - - /** PlannedReparentShardRequest new_primary */ - new_primary?: (topodata.ITabletAlias|null); + /** Properties of a FieldEvent. */ + interface IFieldEvent { - /** PlannedReparentShardRequest avoid_primary */ - avoid_primary?: (topodata.ITabletAlias|null); + /** FieldEvent table_name */ + table_name?: (string|null); - /** PlannedReparentShardRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); + /** FieldEvent fields */ + fields?: (query.IField[]|null); } - /** Represents a PlannedReparentShardRequest. */ - class PlannedReparentShardRequest implements IPlannedReparentShardRequest { + /** Represents a FieldEvent. */ + class FieldEvent implements IFieldEvent { /** - * Constructs a new PlannedReparentShardRequest. + * Constructs a new FieldEvent. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IPlannedReparentShardRequest); - - /** PlannedReparentShardRequest keyspace. */ - public keyspace: string; - - /** PlannedReparentShardRequest shard. */ - public shard: string; + constructor(properties?: binlogdata.IFieldEvent); - /** PlannedReparentShardRequest new_primary. */ - public new_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardRequest avoid_primary. */ - public avoid_primary?: (topodata.ITabletAlias|null); + /** FieldEvent table_name. */ + public table_name: string; - /** PlannedReparentShardRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); + /** FieldEvent fields. */ + public fields: query.IField[]; /** - * Creates a new PlannedReparentShardRequest instance using the specified properties. + * Creates a new FieldEvent instance using the specified properties. * @param [properties] Properties to set - * @returns PlannedReparentShardRequest instance + * @returns FieldEvent instance */ - public static create(properties?: vtctldata.IPlannedReparentShardRequest): vtctldata.PlannedReparentShardRequest; + public static create(properties?: binlogdata.IFieldEvent): binlogdata.FieldEvent; /** - * 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 FieldEvent message. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. + * @param message FieldEvent 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: binlogdata.IFieldEvent, 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 FieldEvent message, length delimited. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. + * @param message FieldEvent 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: binlogdata.IFieldEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. + * Decodes a FieldEvent 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 FieldEvent * @throws {Error} If the payload is not 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): binlogdata.FieldEvent; /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. + * Decodes a FieldEvent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PlannedReparentShardRequest + * @returns FieldEvent * @throws {Error} If the payload 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)): binlogdata.FieldEvent; /** - * Verifies a PlannedReparentShardRequest message. + * Verifies a FieldEvent message. * @param message Plain object 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 FieldEvent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PlannedReparentShardRequest + * @returns FieldEvent */ - public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.FieldEvent; /** - * 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 FieldEvent message. Also converts values to other types if specified. + * @param message FieldEvent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.PlannedReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.FieldEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PlannedReparentShardRequest to JSON. + * Converts this FieldEvent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PlannedReparentShardResponse. */ - interface IPlannedReparentShardResponse { + /** Properties of a ShardGtid. */ + interface IShardGtid { - /** PlannedReparentShardResponse keyspace */ + /** ShardGtid keyspace */ keyspace?: (string|null); - /** PlannedReparentShardResponse shard */ + /** ShardGtid shard */ shard?: (string|null); - /** PlannedReparentShardResponse promoted_primary */ - promoted_primary?: (topodata.ITabletAlias|null); + /** ShardGtid gtid */ + gtid?: (string|null); - /** PlannedReparentShardResponse events */ - events?: (logutil.IEvent[]|null); + /** ShardGtid table_p_ks */ + table_p_ks?: (binlogdata.ITableLastPK[]|null); } - /** Represents a PlannedReparentShardResponse. */ - class PlannedReparentShardResponse implements IPlannedReparentShardResponse { + /** Represents a ShardGtid. */ + class ShardGtid implements IShardGtid { /** - * Constructs a new PlannedReparentShardResponse. + * Constructs a new ShardGtid. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IPlannedReparentShardResponse); + constructor(properties?: binlogdata.IShardGtid); - /** PlannedReparentShardResponse keyspace. */ + /** ShardGtid keyspace. */ public keyspace: string; - /** PlannedReparentShardResponse shard. */ + /** ShardGtid shard. */ public shard: string; - /** PlannedReparentShardResponse promoted_primary. */ - public promoted_primary?: (topodata.ITabletAlias|null); + /** ShardGtid gtid. */ + public gtid: string; - /** PlannedReparentShardResponse events. */ - public events: logutil.IEvent[]; + /** ShardGtid table_p_ks. */ + public table_p_ks: binlogdata.ITableLastPK[]; /** - * Creates a new PlannedReparentShardResponse instance using the specified properties. + * Creates a new ShardGtid instance using the specified properties. * @param [properties] Properties to set - * @returns PlannedReparentShardResponse instance + * @returns ShardGtid instance */ - public static create(properties?: vtctldata.IPlannedReparentShardResponse): vtctldata.PlannedReparentShardResponse; + public static create(properties?: binlogdata.IShardGtid): binlogdata.ShardGtid; /** - * 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 ShardGtid message. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. + * @param message ShardGtid 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: binlogdata.IShardGtid, 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 ShardGtid message, length delimited. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. + * @param message ShardGtid 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: binlogdata.IShardGtid, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. + * Decodes a ShardGtid 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 ShardGtid * @throws {Error} If the payload is not 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): binlogdata.ShardGtid; /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. + * Decodes a ShardGtid message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PlannedReparentShardResponse + * @returns ShardGtid * @throws {Error} If the payload 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)): binlogdata.ShardGtid; /** - * Verifies a PlannedReparentShardResponse message. + * Verifies a ShardGtid message. * @param message Plain object 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 ShardGtid message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PlannedReparentShardResponse + * @returns ShardGtid */ - public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.ShardGtid; /** - * 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 ShardGtid message. Also converts values to other types if specified. + * @param message ShardGtid * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.PlannedReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.ShardGtid, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PlannedReparentShardResponse to JSON. + * Converts this ShardGtid to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RemoveKeyspaceCellRequest. */ - interface IRemoveKeyspaceCellRequest { - - /** RemoveKeyspaceCellRequest keyspace */ - keyspace?: (string|null); - - /** RemoveKeyspaceCellRequest cell */ - cell?: (string|null); + /** Properties of a VGtid. */ + interface IVGtid { - /** RemoveKeyspaceCellRequest force */ - force?: (boolean|null); - - /** RemoveKeyspaceCellRequest recursive */ - recursive?: (boolean|null); + /** VGtid shard_gtids */ + shard_gtids?: (binlogdata.IShardGtid[]|null); } - /** Represents a RemoveKeyspaceCellRequest. */ - class RemoveKeyspaceCellRequest implements IRemoveKeyspaceCellRequest { + /** Represents a VGtid. */ + class VGtid implements IVGtid { /** - * Constructs a new RemoveKeyspaceCellRequest. + * Constructs a new VGtid. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveKeyspaceCellRequest); - - /** RemoveKeyspaceCellRequest keyspace. */ - public keyspace: string; - - /** RemoveKeyspaceCellRequest cell. */ - public cell: string; - - /** RemoveKeyspaceCellRequest force. */ - public force: boolean; + constructor(properties?: binlogdata.IVGtid); - /** RemoveKeyspaceCellRequest recursive. */ - public recursive: boolean; + /** VGtid shard_gtids. */ + public shard_gtids: binlogdata.IShardGtid[]; /** - * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. + * Creates a new VGtid instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveKeyspaceCellRequest instance + * @returns VGtid instance */ - public static create(properties?: vtctldata.IRemoveKeyspaceCellRequest): vtctldata.RemoveKeyspaceCellRequest; + public static create(properties?: binlogdata.IVGtid): binlogdata.VGtid; /** - * 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 VGtid message. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. + * @param message VGtid 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: binlogdata.IVGtid, 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 VGtid message, length delimited. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. + * @param message VGtid 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: binlogdata.IVGtid, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. + * Decodes a VGtid 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 VGtid * @throws {Error} If the payload is not 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): binlogdata.VGtid; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. + * Decodes a VGtid message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveKeyspaceCellRequest + * @returns VGtid * @throws {Error} If the payload 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)): binlogdata.VGtid; /** - * Verifies a RemoveKeyspaceCellRequest message. + * Verifies a VGtid message. * @param message Plain object 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 VGtid message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveKeyspaceCellRequest + * @returns VGtid */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.VGtid; /** - * 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 VGtid message. Also converts values to other types if specified. + * @param message VGtid * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.RemoveKeyspaceCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VGtid, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveKeyspaceCellRequest to JSON. + * Converts this VGtid to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RemoveKeyspaceCellResponse. */ - interface IRemoveKeyspaceCellResponse { + /** Properties of a KeyspaceShard. */ + interface IKeyspaceShard { + + /** KeyspaceShard keyspace */ + keyspace?: (string|null); + + /** KeyspaceShard shard */ + shard?: (string|null); } - /** Represents a RemoveKeyspaceCellResponse. */ - class RemoveKeyspaceCellResponse implements IRemoveKeyspaceCellResponse { + /** Represents a KeyspaceShard. */ + class KeyspaceShard implements IKeyspaceShard { /** - * Constructs a new RemoveKeyspaceCellResponse. + * Constructs a new KeyspaceShard. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveKeyspaceCellResponse); + constructor(properties?: binlogdata.IKeyspaceShard); + + /** KeyspaceShard keyspace. */ + public keyspace: string; + + /** KeyspaceShard shard. */ + public shard: string; /** - * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. + * Creates a new KeyspaceShard instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveKeyspaceCellResponse instance + * @returns KeyspaceShard instance */ - public static create(properties?: vtctldata.IRemoveKeyspaceCellResponse): vtctldata.RemoveKeyspaceCellResponse; + public static create(properties?: binlogdata.IKeyspaceShard): binlogdata.KeyspaceShard; /** - * 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 KeyspaceShard message. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. + * @param message KeyspaceShard 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: binlogdata.IKeyspaceShard, 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 KeyspaceShard message, length delimited. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. + * @param message KeyspaceShard 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: binlogdata.IKeyspaceShard, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. + * Decodes a KeyspaceShard 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 KeyspaceShard * @throws {Error} If the payload is not 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): binlogdata.KeyspaceShard; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. + * Decodes a KeyspaceShard message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveKeyspaceCellResponse + * @returns KeyspaceShard * @throws {Error} If the payload 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)): binlogdata.KeyspaceShard; /** - * Verifies a RemoveKeyspaceCellResponse message. + * Verifies a KeyspaceShard message. * @param message Plain object 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 KeyspaceShard message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveKeyspaceCellResponse + * @returns KeyspaceShard */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.KeyspaceShard; /** - * 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 KeyspaceShard message. Also converts values to other types if specified. + * @param message KeyspaceShard * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.RemoveKeyspaceCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.KeyspaceShard, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveKeyspaceCellResponse to JSON. + * Converts this KeyspaceShard to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RemoveShardCellRequest. */ - interface IRemoveShardCellRequest { + /** MigrationType enum. */ + enum MigrationType { + TABLES = 0, + SHARDS = 1 + } - /** RemoveShardCellRequest keyspace */ - keyspace?: (string|null); + /** Properties of a Journal. */ + interface IJournal { - /** RemoveShardCellRequest shard_name */ - shard_name?: (string|null); + /** Journal id */ + id?: (number|Long|null); - /** RemoveShardCellRequest cell */ - cell?: (string|null); + /** Journal migration_type */ + migration_type?: (binlogdata.MigrationType|null); - /** RemoveShardCellRequest force */ - force?: (boolean|null); + /** Journal tables */ + tables?: (string[]|null); - /** RemoveShardCellRequest recursive */ - recursive?: (boolean|null); + /** Journal local_position */ + local_position?: (string|null); + + /** Journal shard_gtids */ + shard_gtids?: (binlogdata.IShardGtid[]|null); + + /** Journal participants */ + participants?: (binlogdata.IKeyspaceShard[]|null); + + /** Journal source_workflows */ + source_workflows?: (string[]|null); } - /** Represents a RemoveShardCellRequest. */ - class RemoveShardCellRequest implements IRemoveShardCellRequest { + /** Represents a Journal. */ + class Journal implements IJournal { /** - * Constructs a new RemoveShardCellRequest. + * Constructs a new Journal. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveShardCellRequest); + constructor(properties?: binlogdata.IJournal); - /** RemoveShardCellRequest keyspace. */ - public keyspace: string; + /** Journal id. */ + public id: (number|Long); - /** RemoveShardCellRequest shard_name. */ - public shard_name: string; + /** Journal migration_type. */ + public migration_type: binlogdata.MigrationType; - /** RemoveShardCellRequest cell. */ - public cell: string; + /** Journal tables. */ + public tables: string[]; - /** RemoveShardCellRequest force. */ - public force: boolean; + /** Journal local_position. */ + public local_position: string; - /** RemoveShardCellRequest recursive. */ - public recursive: boolean; + /** Journal shard_gtids. */ + public shard_gtids: binlogdata.IShardGtid[]; + + /** Journal participants. */ + public participants: binlogdata.IKeyspaceShard[]; + + /** Journal source_workflows. */ + public source_workflows: string[]; /** - * Creates a new RemoveShardCellRequest instance using the specified properties. + * Creates a new Journal instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveShardCellRequest instance + * @returns Journal instance */ - public static create(properties?: vtctldata.IRemoveShardCellRequest): vtctldata.RemoveShardCellRequest; + public static create(properties?: binlogdata.IJournal): binlogdata.Journal; /** - * 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 Journal message. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. + * @param message Journal 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: binlogdata.IJournal, 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 Journal message, length delimited. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. + * @param message Journal 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: binlogdata.IJournal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer. + * Decodes a Journal 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 Journal * @throws {Error} If the payload is not 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): binlogdata.Journal; /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. + * Decodes a Journal message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveShardCellRequest + * @returns Journal * @throws {Error} If the payload 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)): binlogdata.Journal; /** - * Verifies a RemoveShardCellRequest message. + * Verifies a Journal message. * @param message Plain object 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 Journal message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveShardCellRequest + * @returns Journal */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.Journal; /** - * 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 Journal message. Also converts values to other types if specified. + * @param message Journal * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.RemoveShardCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.Journal, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveShardCellRequest to JSON. + * Converts this Journal to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RemoveShardCellResponse. */ - interface IRemoveShardCellResponse { + /** Properties of a VEvent. */ + interface IVEvent { + + /** VEvent type */ + type?: (binlogdata.VEventType|null); + + /** VEvent timestamp */ + timestamp?: (number|Long|null); + + /** VEvent gtid */ + gtid?: (string|null); + + /** VEvent statement */ + statement?: (string|null); + + /** VEvent row_event */ + row_event?: (binlogdata.IRowEvent|null); + + /** VEvent field_event */ + field_event?: (binlogdata.IFieldEvent|null); + + /** VEvent vgtid */ + vgtid?: (binlogdata.IVGtid|null); + + /** VEvent journal */ + journal?: (binlogdata.IJournal|null); + + /** VEvent dml */ + dml?: (string|null); + + /** VEvent current_time */ + current_time?: (number|Long|null); + + /** VEvent last_p_k_event */ + last_p_k_event?: (binlogdata.ILastPKEvent|null); } - /** Represents a RemoveShardCellResponse. */ - class RemoveShardCellResponse implements IRemoveShardCellResponse { + /** Represents a VEvent. */ + class VEvent implements IVEvent { /** - * Constructs a new RemoveShardCellResponse. + * Constructs a new VEvent. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveShardCellResponse); + constructor(properties?: binlogdata.IVEvent); + + /** VEvent type. */ + public type: binlogdata.VEventType; + + /** VEvent timestamp. */ + public timestamp: (number|Long); + + /** VEvent gtid. */ + public gtid: string; + + /** VEvent statement. */ + public statement: string; + + /** VEvent row_event. */ + public row_event?: (binlogdata.IRowEvent|null); + + /** VEvent field_event. */ + public field_event?: (binlogdata.IFieldEvent|null); + + /** VEvent vgtid. */ + public vgtid?: (binlogdata.IVGtid|null); + + /** VEvent journal. */ + public journal?: (binlogdata.IJournal|null); + + /** VEvent dml. */ + public dml: string; + + /** VEvent current_time. */ + public current_time: (number|Long); + + /** VEvent last_p_k_event. */ + public last_p_k_event?: (binlogdata.ILastPKEvent|null); /** - * Creates a new RemoveShardCellResponse instance using the specified properties. + * Creates a new VEvent instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveShardCellResponse instance + * @returns VEvent instance */ - public static create(properties?: vtctldata.IRemoveShardCellResponse): vtctldata.RemoveShardCellResponse; + public static create(properties?: binlogdata.IVEvent): binlogdata.VEvent; /** - * 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 VEvent message. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. + * @param message VEvent 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: binlogdata.IVEvent, 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 VEvent message, length delimited. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. + * @param message VEvent 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: binlogdata.IVEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer. + * Decodes a VEvent 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 VEvent * @throws {Error} If the payload is not 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): binlogdata.VEvent; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. + * Decodes a VEvent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveShardCellResponse + * @returns VEvent * @throws {Error} If the payload 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)): binlogdata.VEvent; /** - * Verifies a RemoveShardCellResponse message. + * Verifies a VEvent message. * @param message Plain object 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 VEvent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveShardCellResponse + * @returns VEvent */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.VEvent; /** - * 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 VEvent message. Also converts values to other types if specified. + * @param message VEvent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.RemoveShardCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveShardCellResponse to JSON. + * Converts this VEvent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReparentTabletRequest. */ - interface IReparentTabletRequest { + /** Properties of a MinimalTable. */ + interface IMinimalTable { - /** ReparentTabletRequest tablet */ - tablet?: (topodata.ITabletAlias|null); + /** MinimalTable name */ + name?: (string|null); + + /** MinimalTable fields */ + fields?: (query.IField[]|null); + + /** MinimalTable p_k_columns */ + p_k_columns?: ((number|Long)[]|null); } - /** Represents a ReparentTabletRequest. */ - class ReparentTabletRequest implements IReparentTabletRequest { + /** Represents a MinimalTable. */ + class MinimalTable implements IMinimalTable { /** - * Constructs a new ReparentTabletRequest. + * Constructs a new MinimalTable. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IReparentTabletRequest); + constructor(properties?: binlogdata.IMinimalTable); - /** ReparentTabletRequest tablet. */ - public tablet?: (topodata.ITabletAlias|null); + /** MinimalTable name. */ + public name: string; + + /** MinimalTable fields. */ + public fields: query.IField[]; + + /** MinimalTable p_k_columns. */ + public p_k_columns: (number|Long)[]; /** - * Creates a new ReparentTabletRequest instance using the specified properties. + * Creates a new MinimalTable instance using the specified properties. * @param [properties] Properties to set - * @returns ReparentTabletRequest instance + * @returns MinimalTable instance */ - public static create(properties?: vtctldata.IReparentTabletRequest): vtctldata.ReparentTabletRequest; + public static create(properties?: binlogdata.IMinimalTable): binlogdata.MinimalTable; /** - * 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 MinimalTable message. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. + * @param message MinimalTable 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: binlogdata.IMinimalTable, 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 MinimalTable message, length delimited. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. + * @param message MinimalTable 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: binlogdata.IMinimalTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer. + * Decodes a MinimalTable 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 MinimalTable * @throws {Error} If the payload is not 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): binlogdata.MinimalTable; /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. + * Decodes a MinimalTable message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReparentTabletRequest + * @returns MinimalTable * @throws {Error} If the payload 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)): binlogdata.MinimalTable; /** - * Verifies a ReparentTabletRequest message. + * Verifies a MinimalTable message. * @param message Plain object 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 MinimalTable message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReparentTabletRequest + * @returns MinimalTable */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.MinimalTable; /** - * 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 MinimalTable message. Also converts values to other types if specified. + * @param message MinimalTable * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ReparentTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.MinimalTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReparentTabletRequest to JSON. + * Converts this MinimalTable to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReparentTabletResponse. */ - interface IReparentTabletResponse { - - /** ReparentTabletResponse keyspace */ - keyspace?: (string|null); - - /** ReparentTabletResponse shard */ - shard?: (string|null); + /** Properties of a MinimalSchema. */ + interface IMinimalSchema { - /** ReparentTabletResponse primary */ - primary?: (topodata.ITabletAlias|null); + /** MinimalSchema tables */ + tables?: (binlogdata.IMinimalTable[]|null); } - /** Represents a ReparentTabletResponse. */ - class ReparentTabletResponse implements IReparentTabletResponse { + /** Represents a MinimalSchema. */ + class MinimalSchema implements IMinimalSchema { /** - * Constructs a new ReparentTabletResponse. + * Constructs a new MinimalSchema. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IReparentTabletResponse); - - /** ReparentTabletResponse keyspace. */ - public keyspace: string; - - /** ReparentTabletResponse shard. */ - public shard: string; + constructor(properties?: binlogdata.IMinimalSchema); - /** ReparentTabletResponse primary. */ - public primary?: (topodata.ITabletAlias|null); + /** MinimalSchema tables. */ + public tables: binlogdata.IMinimalTable[]; /** - * Creates a new ReparentTabletResponse instance using the specified properties. + * Creates a new MinimalSchema instance using the specified properties. * @param [properties] Properties to set - * @returns ReparentTabletResponse instance + * @returns MinimalSchema instance */ - public static create(properties?: vtctldata.IReparentTabletResponse): vtctldata.ReparentTabletResponse; + public static create(properties?: binlogdata.IMinimalSchema): binlogdata.MinimalSchema; /** - * 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 MinimalSchema message. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. + * @param message MinimalSchema 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: binlogdata.IMinimalSchema, 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 MinimalSchema message, length delimited. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. + * @param message MinimalSchema 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: binlogdata.IMinimalSchema, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer. + * Decodes a MinimalSchema 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 MinimalSchema * @throws {Error} If the payload is not 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): binlogdata.MinimalSchema; /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. + * Decodes a MinimalSchema message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReparentTabletResponse + * @returns MinimalSchema * @throws {Error} If the payload 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)): binlogdata.MinimalSchema; /** - * Verifies a ReparentTabletResponse message. + * Verifies a MinimalSchema message. * @param message Plain object 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 MinimalSchema message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReparentTabletResponse + * @returns MinimalSchema */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.MinimalSchema; /** - * 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 MinimalSchema message. Also converts values to other types if specified. + * @param message MinimalSchema * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ReparentTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.MinimalSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReparentTabletResponse to JSON. + * Converts this MinimalSchema to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TabletExternallyReparentedRequest. */ - interface ITabletExternallyReparentedRequest { + /** Properties of a VStreamRequest. */ + interface IVStreamRequest { - /** TabletExternallyReparentedRequest tablet */ - tablet?: (topodata.ITabletAlias|null); + /** VStreamRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** VStreamRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** VStreamRequest target */ + target?: (query.ITarget|null); + + /** VStreamRequest position */ + position?: (string|null); + + /** VStreamRequest filter */ + filter?: (binlogdata.IFilter|null); + + /** VStreamRequest table_last_p_ks */ + table_last_p_ks?: (binlogdata.ITableLastPK[]|null); } - /** Represents a TabletExternallyReparentedRequest. */ - class TabletExternallyReparentedRequest implements ITabletExternallyReparentedRequest { + /** Represents a VStreamRequest. */ + class VStreamRequest implements IVStreamRequest { /** - * Constructs a new TabletExternallyReparentedRequest. + * Constructs a new VStreamRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ITabletExternallyReparentedRequest); + constructor(properties?: binlogdata.IVStreamRequest); - /** TabletExternallyReparentedRequest tablet. */ - public tablet?: (topodata.ITabletAlias|null); + /** VStreamRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** VStreamRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** VStreamRequest target. */ + public target?: (query.ITarget|null); + + /** VStreamRequest position. */ + public position: string; + + /** VStreamRequest filter. */ + public filter?: (binlogdata.IFilter|null); + + /** VStreamRequest table_last_p_ks. */ + public table_last_p_ks: binlogdata.ITableLastPK[]; /** - * Creates a new TabletExternallyReparentedRequest instance using the specified properties. + * Creates a new VStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TabletExternallyReparentedRequest instance + * @returns VStreamRequest instance */ - public static create(properties?: vtctldata.ITabletExternallyReparentedRequest): vtctldata.TabletExternallyReparentedRequest; + public static create(properties?: binlogdata.IVStreamRequest): binlogdata.VStreamRequest; /** - * 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 VStreamRequest message. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. + * @param message VStreamRequest 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: binlogdata.IVStreamRequest, 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 VStreamRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. + * @param message VStreamRequest 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: binlogdata.IVStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. + * Decodes a VStreamRequest 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 VStreamRequest * @throws {Error} If the payload is not 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): binlogdata.VStreamRequest; /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. + * Decodes a VStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TabletExternallyReparentedRequest + * @returns VStreamRequest * @throws {Error} If the payload 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)): binlogdata.VStreamRequest; /** - * Verifies a TabletExternallyReparentedRequest message. + * Verifies a VStreamRequest message. * @param message Plain object 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 VStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TabletExternallyReparentedRequest + * @returns VStreamRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.VStreamRequest; /** - * 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 VStreamRequest message. Also converts values to other types if specified. + * @param message VStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.TabletExternallyReparentedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TabletExternallyReparentedRequest to JSON. + * Converts this VStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** 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 VStreamResponse. */ + interface IVStreamResponse { - /** TabletExternallyReparentedResponse old_primary */ - old_primary?: (topodata.ITabletAlias|null); + /** VStreamResponse events */ + events?: (binlogdata.IVEvent[]|null); } - /** Represents a TabletExternallyReparentedResponse. */ - class TabletExternallyReparentedResponse implements ITabletExternallyReparentedResponse { + /** Represents a VStreamResponse. */ + class VStreamResponse implements IVStreamResponse { /** - * Constructs a new TabletExternallyReparentedResponse. + * Constructs a new VStreamResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ITabletExternallyReparentedResponse); - - /** TabletExternallyReparentedResponse keyspace. */ - public keyspace: string; - - /** TabletExternallyReparentedResponse shard. */ - public shard: string; + constructor(properties?: binlogdata.IVStreamResponse); - /** TabletExternallyReparentedResponse new_primary. */ - public new_primary?: (topodata.ITabletAlias|null); - - /** TabletExternallyReparentedResponse old_primary. */ - public old_primary?: (topodata.ITabletAlias|null); + /** VStreamResponse events. */ + public events: binlogdata.IVEvent[]; /** - * Creates a new TabletExternallyReparentedResponse instance using the specified properties. + * Creates a new VStreamResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TabletExternallyReparentedResponse instance + * @returns VStreamResponse instance */ - public static create(properties?: vtctldata.ITabletExternallyReparentedResponse): vtctldata.TabletExternallyReparentedResponse; + public static create(properties?: binlogdata.IVStreamResponse): binlogdata.VStreamResponse; /** - * 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 VStreamResponse message. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. + * @param message VStreamResponse 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: binlogdata.IVStreamResponse, 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 VStreamResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. + * @param message VStreamResponse 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: binlogdata.IVStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. + * Decodes a VStreamResponse 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 VStreamResponse * @throws {Error} If the payload is not 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): binlogdata.VStreamResponse; /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. + * Decodes a VStreamResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TabletExternallyReparentedResponse + * @returns VStreamResponse * @throws {Error} If the payload 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)): binlogdata.VStreamResponse; /** - * Verifies a TabletExternallyReparentedResponse message. + * Verifies a VStreamResponse message. * @param message Plain object 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 VStreamResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TabletExternallyReparentedResponse + * @returns VStreamResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.VStreamResponse; /** - * 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 VStreamResponse message. Also converts values to other types if specified. + * @param message VStreamResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.TabletExternallyReparentedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VStreamResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TabletExternallyReparentedResponse to JSON. + * Converts this VStreamResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Keyspace. */ - interface IKeyspace { + /** Properties of a VStreamRowsRequest. */ + interface IVStreamRowsRequest { - /** Keyspace name */ - name?: (string|null); + /** VStreamRowsRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); - /** Keyspace keyspace */ - keyspace?: (topodata.IKeyspace|null); + /** VStreamRowsRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** VStreamRowsRequest target */ + target?: (query.ITarget|null); + + /** VStreamRowsRequest query */ + query?: (string|null); + + /** VStreamRowsRequest lastpk */ + lastpk?: (query.IQueryResult|null); } - /** Represents a Keyspace. */ - class Keyspace implements IKeyspace { + /** Represents a VStreamRowsRequest. */ + class VStreamRowsRequest implements IVStreamRowsRequest { /** - * Constructs a new Keyspace. + * Constructs a new VStreamRowsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IKeyspace); + constructor(properties?: binlogdata.IVStreamRowsRequest); - /** Keyspace name. */ - public name: string; + /** VStreamRowsRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); - /** Keyspace keyspace. */ - public keyspace?: (topodata.IKeyspace|null); + /** VStreamRowsRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** VStreamRowsRequest target. */ + public target?: (query.ITarget|null); + + /** VStreamRowsRequest query. */ + public query: string; + + /** VStreamRowsRequest lastpk. */ + public lastpk?: (query.IQueryResult|null); /** - * Creates a new Keyspace instance using the specified properties. + * Creates a new VStreamRowsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Keyspace instance + * @returns VStreamRowsRequest instance */ - public static create(properties?: vtctldata.IKeyspace): vtctldata.Keyspace; + public static create(properties?: binlogdata.IVStreamRowsRequest): binlogdata.VStreamRowsRequest; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode + * Encodes the specified VStreamRowsRequest message. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. + * @param message VStreamRowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IVStreamRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode + * Encodes the specified VStreamRowsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. + * @param message VStreamRowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IVStreamRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a VStreamRowsRequest 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 VStreamRowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Keyspace; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.VStreamRowsRequest; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * Decodes a VStreamRowsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Keyspace + * @returns VStreamRowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Keyspace; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.VStreamRowsRequest; /** - * Verifies a Keyspace message. + * Verifies a VStreamRowsRequest message. * @param message Plain object 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 VStreamRowsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Keyspace + * @returns VStreamRowsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.Keyspace; + public static fromObject(object: { [k: string]: any }): binlogdata.VStreamRowsRequest; /** - * 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 VStreamRowsRequest message. Also converts values to other types if specified. + * @param message VStreamRowsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VStreamRowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Keyspace to JSON. + * Converts this VStreamRowsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FindAllShardsInKeyspaceRequest. */ - interface IFindAllShardsInKeyspaceRequest { + /** Properties of a VStreamRowsResponse. */ + interface IVStreamRowsResponse { - /** FindAllShardsInKeyspaceRequest keyspace */ - keyspace?: (string|null); + /** VStreamRowsResponse fields */ + fields?: (query.IField[]|null); + + /** VStreamRowsResponse pkfields */ + pkfields?: (query.IField[]|null); + + /** VStreamRowsResponse gtid */ + gtid?: (string|null); + + /** VStreamRowsResponse rows */ + rows?: (query.IRow[]|null); + + /** VStreamRowsResponse lastpk */ + lastpk?: (query.IRow|null); } - /** Represents a FindAllShardsInKeyspaceRequest. */ - class FindAllShardsInKeyspaceRequest implements IFindAllShardsInKeyspaceRequest { + /** Represents a VStreamRowsResponse. */ + class VStreamRowsResponse implements IVStreamRowsResponse { /** - * Constructs a new FindAllShardsInKeyspaceRequest. + * Constructs a new VStreamRowsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IFindAllShardsInKeyspaceRequest); + constructor(properties?: binlogdata.IVStreamRowsResponse); - /** FindAllShardsInKeyspaceRequest keyspace. */ - public keyspace: string; + /** VStreamRowsResponse fields. */ + public fields: query.IField[]; + + /** VStreamRowsResponse pkfields. */ + public pkfields: query.IField[]; + + /** VStreamRowsResponse gtid. */ + public gtid: string; + + /** VStreamRowsResponse rows. */ + public rows: query.IRow[]; + + /** VStreamRowsResponse lastpk. */ + public lastpk?: (query.IRow|null); /** - * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. + * Creates a new VStreamRowsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns FindAllShardsInKeyspaceRequest instance + * @returns VStreamRowsResponse instance */ - public static create(properties?: vtctldata.IFindAllShardsInKeyspaceRequest): vtctldata.FindAllShardsInKeyspaceRequest; + public static create(properties?: binlogdata.IVStreamRowsResponse): binlogdata.VStreamRowsResponse; /** - * 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 VStreamRowsResponse message. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. + * @param message VStreamRowsResponse 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: binlogdata.IVStreamRowsResponse, 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 VStreamRowsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. + * @param message VStreamRowsResponse 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: binlogdata.IVStreamRowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. + * Decodes a VStreamRowsResponse 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 VStreamRowsResponse * @throws {Error} If the payload is not 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): binlogdata.VStreamRowsResponse; /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a VStreamRowsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FindAllShardsInKeyspaceRequest + * @returns VStreamRowsResponse * @throws {Error} If the payload 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)): binlogdata.VStreamRowsResponse; /** - * Verifies a FindAllShardsInKeyspaceRequest message. + * Verifies a VStreamRowsResponse message. * @param message Plain object 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 VStreamRowsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FindAllShardsInKeyspaceRequest + * @returns VStreamRowsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.VStreamRowsResponse; /** - * 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 VStreamRowsResponse message. Also converts values to other types if specified. + * @param message VStreamRowsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.FindAllShardsInKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VStreamRowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FindAllShardsInKeyspaceRequest to JSON. + * Converts this VStreamRowsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FindAllShardsInKeyspaceResponse. */ - interface IFindAllShardsInKeyspaceResponse { + /** Properties of a LastPKEvent. */ + interface ILastPKEvent { - /** FindAllShardsInKeyspaceResponse shards */ - shards?: ({ [k: string]: vtctldata.IShard }|null); + /** LastPKEvent table_last_p_k */ + table_last_p_k?: (binlogdata.ITableLastPK|null); + + /** LastPKEvent completed */ + completed?: (boolean|null); } - /** Represents a FindAllShardsInKeyspaceResponse. */ - class FindAllShardsInKeyspaceResponse implements IFindAllShardsInKeyspaceResponse { + /** Represents a LastPKEvent. */ + class LastPKEvent implements ILastPKEvent { /** - * Constructs a new FindAllShardsInKeyspaceResponse. + * Constructs a new LastPKEvent. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IFindAllShardsInKeyspaceResponse); + constructor(properties?: binlogdata.ILastPKEvent); - /** FindAllShardsInKeyspaceResponse shards. */ - public shards: { [k: string]: vtctldata.IShard }; + /** LastPKEvent table_last_p_k. */ + public table_last_p_k?: (binlogdata.ITableLastPK|null); + + /** LastPKEvent completed. */ + public completed: boolean; /** - * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. + * Creates a new LastPKEvent instance using the specified properties. * @param [properties] Properties to set - * @returns FindAllShardsInKeyspaceResponse instance + * @returns LastPKEvent instance */ - public static create(properties?: vtctldata.IFindAllShardsInKeyspaceResponse): vtctldata.FindAllShardsInKeyspaceResponse; + public static create(properties?: binlogdata.ILastPKEvent): binlogdata.LastPKEvent; /** - * 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 LastPKEvent message. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. + * @param message LastPKEvent 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: binlogdata.ILastPKEvent, 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 LastPKEvent message, length delimited. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. + * @param message LastPKEvent 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: binlogdata.ILastPKEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. + * Decodes a LastPKEvent 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 LastPKEvent * @throws {Error} If the payload is not 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): binlogdata.LastPKEvent; /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a LastPKEvent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FindAllShardsInKeyspaceResponse + * @returns LastPKEvent * @throws {Error} If the payload 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)): binlogdata.LastPKEvent; /** - * Verifies a FindAllShardsInKeyspaceResponse message. + * Verifies a LastPKEvent message. * @param message Plain object 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 LastPKEvent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FindAllShardsInKeyspaceResponse + * @returns LastPKEvent */ - public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.LastPKEvent; /** - * 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 LastPKEvent message. Also converts values to other types if specified. + * @param message LastPKEvent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.FindAllShardsInKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.LastPKEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FindAllShardsInKeyspaceResponse to JSON. + * Converts this LastPKEvent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Shard. */ - interface IShard { - - /** Shard keyspace */ - keyspace?: (string|null); + /** Properties of a TableLastPK. */ + interface ITableLastPK { - /** Shard name */ - name?: (string|null); + /** TableLastPK table_name */ + table_name?: (string|null); - /** Shard shard */ - shard?: (topodata.IShard|null); + /** TableLastPK lastpk */ + lastpk?: (query.IQueryResult|null); } - /** Represents a Shard. */ - class Shard implements IShard { + /** Represents a TableLastPK. */ + class TableLastPK implements ITableLastPK { /** - * Constructs a new Shard. + * Constructs a new TableLastPK. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IShard); + constructor(properties?: binlogdata.ITableLastPK); - /** Shard keyspace. */ - public keyspace: string; - - /** Shard name. */ - public name: string; + /** TableLastPK table_name. */ + public table_name: string; - /** Shard shard. */ - public shard?: (topodata.IShard|null); + /** TableLastPK lastpk. */ + public lastpk?: (query.IQueryResult|null); /** - * Creates a new Shard instance using the specified properties. + * Creates a new TableLastPK instance using the specified properties. * @param [properties] Properties to set - * @returns Shard instance + * @returns TableLastPK instance */ - public static create(properties?: vtctldata.IShard): vtctldata.Shard; + public static create(properties?: binlogdata.ITableLastPK): binlogdata.TableLastPK; /** - * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. - * @param message Shard message or plain object to encode + * Encodes the specified TableLastPK message. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. + * @param message TableLastPK message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.ITableLastPK, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. - * @param message Shard message or plain object to encode + * Encodes the specified TableLastPK message, length delimited. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. + * @param message TableLastPK message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.ITableLastPK, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Shard message from the specified reader or buffer. + * Decodes a TableLastPK 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 TableLastPK * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Shard; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.TableLastPK; /** - * Decodes a Shard message from the specified reader or buffer, length delimited. + * Decodes a TableLastPK message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Shard + * @returns TableLastPK * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Shard; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.TableLastPK; /** - * Verifies a Shard message. + * Verifies a TableLastPK message. * @param message Plain object 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 TableLastPK message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Shard + * @returns TableLastPK */ - public static fromObject(object: { [k: string]: any }): vtctldata.Shard; + public static fromObject(object: { [k: string]: any }): binlogdata.TableLastPK; /** - * 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 TableLastPK message. Also converts values to other types if specified. + * @param message TableLastPK * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.Shard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.TableLastPK, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Shard to JSON. + * Converts this TableLastPK to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TableMaterializeSettings. */ - interface ITableMaterializeSettings { + /** Properties of a VStreamResultsRequest. */ + interface IVStreamResultsRequest { - /** TableMaterializeSettings target_table */ - target_table?: (string|null); + /** VStreamResultsRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); - /** TableMaterializeSettings source_expression */ - source_expression?: (string|null); + /** VStreamResultsRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); - /** TableMaterializeSettings create_ddl */ - create_ddl?: (string|null); + /** VStreamResultsRequest target */ + target?: (query.ITarget|null); + + /** VStreamResultsRequest query */ + query?: (string|null); } - /** Represents a TableMaterializeSettings. */ - class TableMaterializeSettings implements ITableMaterializeSettings { + /** Represents a VStreamResultsRequest. */ + class VStreamResultsRequest implements IVStreamResultsRequest { /** - * Constructs a new TableMaterializeSettings. + * Constructs a new VStreamResultsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ITableMaterializeSettings); + constructor(properties?: binlogdata.IVStreamResultsRequest); - /** TableMaterializeSettings target_table. */ - public target_table: string; + /** VStreamResultsRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); - /** TableMaterializeSettings source_expression. */ - public source_expression: string; + /** VStreamResultsRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); - /** TableMaterializeSettings create_ddl. */ - public create_ddl: string; + /** VStreamResultsRequest target. */ + public target?: (query.ITarget|null); + + /** VStreamResultsRequest query. */ + public query: string; /** - * Creates a new TableMaterializeSettings instance using the specified properties. + * Creates a new VStreamResultsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TableMaterializeSettings instance + * @returns VStreamResultsRequest instance */ - public static create(properties?: vtctldata.ITableMaterializeSettings): vtctldata.TableMaterializeSettings; + public static create(properties?: binlogdata.IVStreamResultsRequest): binlogdata.VStreamResultsRequest; /** - * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. - * @param message TableMaterializeSettings message or plain object to encode + * Encodes the specified VStreamResultsRequest message. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. + * @param message VStreamResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IVStreamResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. - * @param message TableMaterializeSettings message or plain object to encode + * Encodes the specified VStreamResultsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. + * @param message VStreamResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IVStreamResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer. + * Decodes a VStreamResultsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TableMaterializeSettings + * @returns VStreamResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TableMaterializeSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.VStreamResultsRequest; /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. + * Decodes a VStreamResultsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TableMaterializeSettings + * @returns VStreamResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TableMaterializeSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.VStreamResultsRequest; /** - * Verifies a TableMaterializeSettings message. + * Verifies a VStreamResultsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. + * Creates a VStreamResultsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TableMaterializeSettings + * @returns VStreamResultsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.TableMaterializeSettings; + public static fromObject(object: { [k: string]: any }): binlogdata.VStreamResultsRequest; /** - * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. - * @param message TableMaterializeSettings + * Creates a plain object from a VStreamResultsRequest message. Also converts values to other types if specified. + * @param message VStreamResultsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.TableMaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VStreamResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TableMaterializeSettings to JSON. + * Converts this VStreamResultsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MaterializeSettings. */ - interface IMaterializeSettings { - - /** MaterializeSettings workflow */ - workflow?: (string|null); - - /** MaterializeSettings source_keyspace */ - source_keyspace?: (string|null); - - /** MaterializeSettings target_keyspace */ - target_keyspace?: (string|null); - - /** MaterializeSettings stop_after_copy */ - stop_after_copy?: (boolean|null); - - /** MaterializeSettings table_settings */ - table_settings?: (vtctldata.ITableMaterializeSettings[]|null); + /** Properties of a VStreamResultsResponse. */ + interface IVStreamResultsResponse { - /** MaterializeSettings cell */ - cell?: (string|null); + /** VStreamResultsResponse fields */ + fields?: (query.IField[]|null); - /** MaterializeSettings tablet_types */ - tablet_types?: (string|null); + /** VStreamResultsResponse gtid */ + gtid?: (string|null); - /** MaterializeSettings external_cluster */ - external_cluster?: (string|null); + /** VStreamResultsResponse rows */ + rows?: (query.IRow[]|null); } - /** Represents a MaterializeSettings. */ - class MaterializeSettings implements IMaterializeSettings { + /** Represents a VStreamResultsResponse. */ + class VStreamResultsResponse implements IVStreamResultsResponse { /** - * Constructs a new MaterializeSettings. + * Constructs a new VStreamResultsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMaterializeSettings); - - /** MaterializeSettings workflow. */ - public workflow: string; - - /** MaterializeSettings source_keyspace. */ - public source_keyspace: string; - - /** MaterializeSettings target_keyspace. */ - public target_keyspace: string; - - /** MaterializeSettings stop_after_copy. */ - public stop_after_copy: boolean; - - /** MaterializeSettings table_settings. */ - public table_settings: vtctldata.ITableMaterializeSettings[]; + constructor(properties?: binlogdata.IVStreamResultsResponse); - /** MaterializeSettings cell. */ - public cell: string; + /** VStreamResultsResponse fields. */ + public fields: query.IField[]; - /** MaterializeSettings tablet_types. */ - public tablet_types: string; + /** VStreamResultsResponse gtid. */ + public gtid: string; - /** MaterializeSettings external_cluster. */ - public external_cluster: string; + /** VStreamResultsResponse rows. */ + public rows: query.IRow[]; /** - * Creates a new MaterializeSettings instance using the specified properties. + * Creates a new VStreamResultsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MaterializeSettings instance + * @returns VStreamResultsResponse instance */ - public static create(properties?: vtctldata.IMaterializeSettings): vtctldata.MaterializeSettings; + public static create(properties?: binlogdata.IVStreamResultsResponse): binlogdata.VStreamResultsResponse; /** - * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. - * @param message MaterializeSettings message or plain object to encode + * Encodes the specified VStreamResultsResponse message. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. + * @param message VStreamResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IVStreamResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. - * @param message MaterializeSettings message or plain object to encode + * Encodes the specified VStreamResultsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. + * @param message VStreamResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IVStreamResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MaterializeSettings message from the specified reader or buffer. + * Decodes a VStreamResultsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MaterializeSettings + * @returns VStreamResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.VStreamResultsResponse; /** - * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. + * Decodes a VStreamResultsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MaterializeSettings + * @returns VStreamResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.VStreamResultsResponse; /** - * Verifies a MaterializeSettings message. + * Verifies a VStreamResultsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MaterializeSettings message from a plain object. Also converts values to their respective internal types. + * Creates a VStreamResultsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MaterializeSettings + * @returns VStreamResultsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeSettings; + public static fromObject(object: { [k: string]: any }): binlogdata.VStreamResultsResponse; /** - * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. - * @param message MaterializeSettings + * Creates a plain object from a VStreamResultsResponse message. Also converts values to other types if specified. + * @param message VStreamResultsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.MaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VStreamResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MaterializeSettings to JSON. + * Converts this VStreamResultsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; diff --git a/web/vtadmin/src/proto/vtadmin.js b/web/vtadmin/src/proto/vtadmin.js index 2b81fea9b98..0946f07d665 100644 --- a/web/vtadmin/src/proto/vtadmin.js +++ b/web/vtadmin/src/proto/vtadmin.js @@ -49044,26 +49044,26 @@ $root.vtctldata = (function() { return ExecuteVtctlCommandResponse; })(); - vtctldata.ChangeTabletTypeRequest = (function() { + vtctldata.TableMaterializeSettings = (function() { /** - * Properties of a ChangeTabletTypeRequest. + * Properties of a TableMaterializeSettings. * @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 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 ChangeTabletTypeRequest. + * Constructs a new TableMaterializeSettings. * @memberof vtctldata - * @classdesc Represents a ChangeTabletTypeRequest. - * @implements IChangeTabletTypeRequest + * @classdesc Represents a TableMaterializeSettings. + * @implements ITableMaterializeSettings * @constructor - * @param {vtctldata.IChangeTabletTypeRequest=} [properties] Properties to set + * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set */ - function ChangeTabletTypeRequest(properties) { + function TableMaterializeSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49071,101 +49071,101 @@ $root.vtctldata = (function() { } /** - * ChangeTabletTypeRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.ChangeTabletTypeRequest + * TableMaterializeSettings target_table. + * @member {string} target_table + * @memberof vtctldata.TableMaterializeSettings * @instance */ - ChangeTabletTypeRequest.prototype.tablet_alias = null; + TableMaterializeSettings.prototype.target_table = ""; /** - * ChangeTabletTypeRequest db_type. - * @member {topodata.TabletType} db_type - * @memberof vtctldata.ChangeTabletTypeRequest + * TableMaterializeSettings source_expression. + * @member {string} source_expression + * @memberof vtctldata.TableMaterializeSettings * @instance */ - ChangeTabletTypeRequest.prototype.db_type = 0; + TableMaterializeSettings.prototype.source_expression = ""; /** - * ChangeTabletTypeRequest dry_run. - * @member {boolean} dry_run - * @memberof vtctldata.ChangeTabletTypeRequest + * TableMaterializeSettings create_ddl. + * @member {string} create_ddl + * @memberof vtctldata.TableMaterializeSettings * @instance */ - ChangeTabletTypeRequest.prototype.dry_run = false; + TableMaterializeSettings.prototype.create_ddl = ""; /** - * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * Creates a new TableMaterializeSettings instance using the specified properties. * @function create - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.TableMaterializeSettings * @static - * @param {vtctldata.IChangeTabletTypeRequest=} [properties] Properties to set - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest instance + * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings instance */ - ChangeTabletTypeRequest.create = function create(properties) { - return new ChangeTabletTypeRequest(properties); + TableMaterializeSettings.create = function create(properties) { + return new TableMaterializeSettings(properties); }; /** - * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. * @function encode - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.TableMaterializeSettings * @static - * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode + * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeRequest.encode = function encode(message, writer) { + TableMaterializeSettings.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.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 ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.TableMaterializeSettings * @static - * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode + * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + TableMaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * Decodes a TableMaterializeSettings message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ChangeTabletTypeRequest + * @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.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @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 */ - ChangeTabletTypeRequest.decode = function decode(reader, length) { + TableMaterializeSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TableMaterializeSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.target_table = reader.string(); break; case 2: - message.db_type = reader.int32(); + message.source_expression = reader.string(); break; case 3: - message.dry_run = reader.bool(); + message.create_ddl = reader.string(); break; default: reader.skipType(tag & 7); @@ -49176,184 +49176,132 @@ $root.vtctldata = (function() { }; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.TableMaterializeSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @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 */ - ChangeTabletTypeRequest.decodeDelimited = function decodeDelimited(reader) { + TableMaterializeSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTabletTypeRequest message. + * Verifies a TableMaterializeSettings message. * @function verify - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.TableMaterializeSettings * @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) { + TableMaterializeSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.db_type != null && message.hasOwnProperty("db_type")) - switch (message.db_type) { - default: - return "db_type: 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.dry_run != null && message.hasOwnProperty("dry_run")) - if (typeof message.dry_run !== "boolean") - return "dry_run: boolean 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 ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.TableMaterializeSettings * @static * @param {Object.} object Plain object - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings */ - ChangeTabletTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ChangeTabletTypeRequest) + TableMaterializeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TableMaterializeSettings) return object; - var 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) { - case "UNKNOWN": - case 0: - message.db_type = 0; - 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); + var message = new $root.vtctldata.TableMaterializeSettings(); + if (object.target_table != null) + message.target_table = String(object.target_table); + if (object.source_expression != null) + message.source_expression = String(object.source_expression); + if (object.create_ddl != null) + message.create_ddl = String(object.create_ddl); return message; }; /** - * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.TableMaterializeSettings * @static - * @param {vtctldata.ChangeTabletTypeRequest} message ChangeTabletTypeRequest + * @param {vtctldata.TableMaterializeSettings} message TableMaterializeSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTabletTypeRequest.toObject = function toObject(message, options) { + TableMaterializeSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.tablet_alias = null; - object.db_type = options.enums === String ? "UNKNOWN" : 0; - object.dry_run = false; + object.target_table = ""; + object.source_expression = ""; + object.create_ddl = ""; } - 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] : message.db_type; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - object.dry_run = message.dry_run; + 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 ChangeTabletTypeRequest to JSON. + * Converts this TableMaterializeSettings to JSON. * @function toJSON - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.TableMaterializeSettings * @instance * @returns {Object.} JSON object */ - ChangeTabletTypeRequest.prototype.toJSON = function toJSON() { + TableMaterializeSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChangeTabletTypeRequest; + return TableMaterializeSettings; })(); - vtctldata.ChangeTabletTypeResponse = (function() { + vtctldata.MaterializeSettings = (function() { /** - * Properties of a ChangeTabletTypeResponse. + * Properties of a MaterializeSettings. * @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 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 */ /** - * Constructs a new ChangeTabletTypeResponse. + * Constructs a new MaterializeSettings. * @memberof vtctldata - * @classdesc Represents a ChangeTabletTypeResponse. - * @implements IChangeTabletTypeResponse + * @classdesc Represents a MaterializeSettings. + * @implements IMaterializeSettings * @constructor - * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set + * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set */ - function ChangeTabletTypeResponse(properties) { + function MaterializeSettings(properties) { + this.table_settings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49361,101 +49309,169 @@ $root.vtctldata = (function() { } /** - * ChangeTabletTypeResponse before_tablet. - * @member {topodata.ITablet|null|undefined} before_tablet - * @memberof vtctldata.ChangeTabletTypeResponse + * MaterializeSettings workflow. + * @member {string} workflow + * @memberof vtctldata.MaterializeSettings * @instance */ - ChangeTabletTypeResponse.prototype.before_tablet = null; + MaterializeSettings.prototype.workflow = ""; /** - * ChangeTabletTypeResponse after_tablet. - * @member {topodata.ITablet|null|undefined} after_tablet - * @memberof vtctldata.ChangeTabletTypeResponse + * MaterializeSettings source_keyspace. + * @member {string} source_keyspace + * @memberof vtctldata.MaterializeSettings * @instance */ - ChangeTabletTypeResponse.prototype.after_tablet = null; + MaterializeSettings.prototype.source_keyspace = ""; /** - * ChangeTabletTypeResponse was_dry_run. - * @member {boolean} was_dry_run - * @memberof vtctldata.ChangeTabletTypeResponse + * MaterializeSettings target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.MaterializeSettings * @instance */ - ChangeTabletTypeResponse.prototype.was_dry_run = false; + MaterializeSettings.prototype.target_keyspace = ""; /** - * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * 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 = ""; + + /** + * Creates a new MaterializeSettings instance using the specified properties. * @function create - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.MaterializeSettings * @static - * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse instance + * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set + * @returns {vtctldata.MaterializeSettings} MaterializeSettings instance */ - ChangeTabletTypeResponse.create = function create(properties) { - return new ChangeTabletTypeResponse(properties); + MaterializeSettings.create = function create(properties) { + return new MaterializeSettings(properties); }; /** - * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. * @function encode - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.MaterializeSettings * @static - * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse message or plain object to encode + * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeResponse.encode = function encode(message, writer) { + MaterializeSettings.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); + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.source_keyspace != null && Object.hasOwnProperty.call(message, "source_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_keyspace); + if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); + if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.stop_after_copy); + if (message.table_settings != null && message.table_settings.length) + for (var i = 0; i < message.table_settings.length; ++i) + $root.vtctldata.TableMaterializeSettings.encode(message.table_settings[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.cell); + if (message.tablet_types != null && Object.hasOwnProperty.call(message, "tablet_types")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.tablet_types); + if (message.external_cluster != null && Object.hasOwnProperty.call(message, "external_cluster")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.external_cluster); return writer; }; /** - * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.MaterializeSettings * @static - * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse message or plain object to encode + * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeResponse.encodeDelimited = function encodeDelimited(message, writer) { + MaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. + * Decodes a MaterializeSettings message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ChangeTabletTypeResponse + * @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.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @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 */ - ChangeTabletTypeResponse.decode = function decode(reader, length) { + MaterializeSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTypeResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.before_tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + message.workflow = reader.string(); break; case 2: - message.after_tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + message.source_keyspace = reader.string(); break; case 3: - message.was_dry_run = reader.bool(); + 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; default: reader.skipType(tag & 7); @@ -49466,143 +49482,183 @@ $root.vtctldata = (function() { }; /** - * Decodes a ChangeTabletTypeResponse 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.ChangeTabletTypeResponse + * @memberof vtctldata.MaterializeSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @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 */ - ChangeTabletTypeResponse.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 ChangeTabletTypeResponse message. + * Verifies a MaterializeSettings message. * @function verify - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.MaterializeSettings * @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) { + MaterializeSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before_tablet != null && message.hasOwnProperty("before_tablet")) { - var error = $root.topodata.Tablet.verify(message.before_tablet); - if (error) - return "before_tablet." + error; - } - if (message.after_tablet != null && message.hasOwnProperty("after_tablet")) { - var error = $root.topodata.Tablet.verify(message.after_tablet); - if (error) - return "after_tablet." + 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.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + if (typeof message.stop_after_copy !== "boolean") + return "stop_after_copy: boolean expected"; + if (message.table_settings != null && message.hasOwnProperty("table_settings")) { + if (!Array.isArray(message.table_settings)) + return "table_settings: array expected"; + for (var i = 0; i < message.table_settings.length; ++i) { + var error = $root.vtctldata.TableMaterializeSettings.verify(message.table_settings[i]); + if (error) + return "table_settings." + error; + } } - if (message.was_dry_run != null && message.hasOwnProperty("was_dry_run")) - if (typeof message.was_dry_run !== "boolean") - return "was_dry_run: boolean expected"; + 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"; return null; }; /** - * Creates a ChangeTabletTypeResponse 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.ChangeTabletTypeResponse + * @memberof vtctldata.MaterializeSettings * @static * @param {Object.} object Plain object - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @returns {vtctldata.MaterializeSettings} MaterializeSettings */ - ChangeTabletTypeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ChangeTabletTypeResponse) + MaterializeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MaterializeSettings) return object; - var 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; - }; - - /** - * 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 + var message = new $root.vtctldata.MaterializeSettings(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.source_keyspace != null) + message.source_keyspace = String(object.source_keyspace); + if (object.target_keyspace != null) + message.target_keyspace = String(object.target_keyspace); + if (object.stop_after_copy != null) + message.stop_after_copy = Boolean(object.stop_after_copy); + if (object.table_settings) { + if (!Array.isArray(object.table_settings)) + throw TypeError(".vtctldata.MaterializeSettings.table_settings: array expected"); + message.table_settings = []; + for (var i = 0; i < object.table_settings.length; ++i) { + if (typeof object.table_settings[i] !== "object") + throw TypeError(".vtctldata.MaterializeSettings.table_settings: object expected"); + message.table_settings[i] = $root.vtctldata.TableMaterializeSettings.fromObject(object.table_settings[i]); + } + } + if (object.cell != null) + message.cell = String(object.cell); + if (object.tablet_types != null) + message.tablet_types = String(object.tablet_types); + if (object.external_cluster != null) + message.external_cluster = String(object.external_cluster); + return message; + }; + + /** + * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.MaterializeSettings + * @static + * @param {vtctldata.MaterializeSettings} message MaterializeSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTabletTypeResponse.toObject = function toObject(message, options) { + MaterializeSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.table_settings = []; if (options.defaults) { - object.before_tablet = null; - object.after_tablet = null; - object.was_dry_run = false; + object.workflow = ""; + object.source_keyspace = ""; + object.target_keyspace = ""; + object.stop_after_copy = false; + object.cell = ""; + object.tablet_types = ""; + object.external_cluster = ""; } - 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; + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) + object.source_keyspace = message.source_keyspace; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + object.target_keyspace = message.target_keyspace; + if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + object.stop_after_copy = message.stop_after_copy; + if (message.table_settings && message.table_settings.length) { + object.table_settings = []; + for (var j = 0; j < message.table_settings.length; ++j) + object.table_settings[j] = $root.vtctldata.TableMaterializeSettings.toObject(message.table_settings[j], options); + } + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) + object.tablet_types = message.tablet_types; + if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) + object.external_cluster = message.external_cluster; return object; }; /** - * Converts this ChangeTabletTypeResponse to JSON. + * Converts this MaterializeSettings to JSON. * @function toJSON - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.MaterializeSettings * @instance * @returns {Object.} JSON object */ - ChangeTabletTypeResponse.prototype.toJSON = function toJSON() { + MaterializeSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChangeTabletTypeResponse; + return MaterializeSettings; })(); - vtctldata.CreateKeyspaceRequest = (function() { + vtctldata.Keyspace = (function() { /** - * Properties of a CreateKeyspaceRequest. + * Properties of a Keyspace. * @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 {string|null} [sharding_column_name] CreateKeyspaceRequest sharding_column_name - * @property {topodata.KeyspaceIdType|null} [sharding_column_type] CreateKeyspaceRequest sharding_column_type - * @property {Array.|null} [served_froms] CreateKeyspaceRequest served_froms - * @property {topodata.KeyspaceType|null} [type] CreateKeyspaceRequest type - * @property {string|null} [base_keyspace] CreateKeyspaceRequest base_keyspace - * @property {vttime.ITime|null} [snapshot_time] CreateKeyspaceRequest snapshot_time + * @interface IKeyspace + * @property {string|null} [name] Keyspace name + * @property {topodata.IKeyspace|null} [keyspace] Keyspace keyspace */ /** - * Constructs a new CreateKeyspaceRequest. + * Constructs a new Keyspace. * @memberof vtctldata - * @classdesc Represents a CreateKeyspaceRequest. - * @implements ICreateKeyspaceRequest + * @classdesc Represents a Keyspace. + * @implements IKeyspace * @constructor - * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IKeyspace=} [properties] Properties to set */ - function CreateKeyspaceRequest(properties) { - this.served_froms = []; + function Keyspace(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49610,151 +49666,80 @@ $root.vtctldata = (function() { } /** - * CreateKeyspaceRequest name. + * Keyspace 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 sharding_column_name. - * @member {string} sharding_column_name - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.sharding_column_name = ""; - - /** - * CreateKeyspaceRequest sharding_column_type. - * @member {topodata.KeyspaceIdType} sharding_column_type - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.sharding_column_type = 0; - - /** - * CreateKeyspaceRequest served_froms. - * @member {Array.} served_froms - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.served_froms = $util.emptyArray; - - /** - * CreateKeyspaceRequest type. - * @member {topodata.KeyspaceType} type - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.type = 0; - - /** - * CreateKeyspaceRequest base_keyspace. - * @member {string} base_keyspace - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.Keyspace * @instance */ - CreateKeyspaceRequest.prototype.base_keyspace = ""; + Keyspace.prototype.name = ""; /** - * CreateKeyspaceRequest snapshot_time. - * @member {vttime.ITime|null|undefined} snapshot_time - * @memberof vtctldata.CreateKeyspaceRequest + * Keyspace keyspace. + * @member {topodata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.Keyspace * @instance */ - CreateKeyspaceRequest.prototype.snapshot_time = null; + Keyspace.prototype.keyspace = null; /** - * Creates a new CreateKeyspaceRequest instance using the specified properties. + * Creates a new Keyspace instance using the specified properties. * @function create - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.Keyspace * @static - * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest instance + * @param {vtctldata.IKeyspace=} [properties] Properties to set + * @returns {vtctldata.Keyspace} Keyspace instance */ - CreateKeyspaceRequest.create = function create(properties) { - return new CreateKeyspaceRequest(properties); + Keyspace.create = function create(properties) { + return new Keyspace(properties); }; /** - * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.Keyspace * @static - * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest 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 */ - CreateKeyspaceRequest.encode = function encode(message, writer) { + Keyspace.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.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.sharding_column_name != null && Object.hasOwnProperty.call(message, "sharding_column_name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.sharding_column_name); - if (message.sharding_column_type != null && Object.hasOwnProperty.call(message, "sharding_column_type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.sharding_column_type); - if (message.served_froms != null && message.served_froms.length) - for (var i = 0; i < message.served_froms.length; ++i) - $root.topodata.Keyspace.ServedFrom.encode(message.served_froms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - 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.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 CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.Keyspace * @static - * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest 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 */ - CreateKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + Keyspace.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * Decodes a Keyspace message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateKeyspaceRequest + * @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.CreateKeyspaceRequest} CreateKeyspaceRequest + * @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 */ - CreateKeyspaceRequest.decode = function decode(reader, length) { + Keyspace.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Keyspace(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -49762,33 +49747,10 @@ $root.vtctldata = (function() { message.name = reader.string(); break; case 2: - message.force = reader.bool(); - break; - case 3: - message.allow_empty_v_schema = reader.bool(); - break; - case 4: - message.sharding_column_name = reader.string(); - break; - case 5: - message.sharding_column_type = reader.int32(); + message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); break; - case 6: - if (!(message.served_froms && message.served_froms.length)) - message.served_froms = []; - message.served_froms.push($root.topodata.Keyspace.ServedFrom.decode(reader, reader.uint32())); - 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; - default: - reader.skipType(tag & 7); + default: + reader.skipType(tag & 7); break; } } @@ -49796,226 +49758,123 @@ $root.vtctldata = (function() { }; /** - * Decodes a CreateKeyspaceRequest 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.CreateKeyspaceRequest + * @memberof vtctldata.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest + * @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 */ - CreateKeyspaceRequest.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 CreateKeyspaceRequest message. + * Verifies a Keyspace message. * @function verify - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.Keyspace * @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) { + Keyspace.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.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.sharding_column_name != null && message.hasOwnProperty("sharding_column_name")) - if (!$util.isString(message.sharding_column_name)) - return "sharding_column_name: string expected"; - if (message.sharding_column_type != null && message.hasOwnProperty("sharding_column_type")) - switch (message.sharding_column_type) { - default: - return "sharding_column_type: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.served_froms != null && message.hasOwnProperty("served_froms")) { - if (!Array.isArray(message.served_froms)) - return "served_froms: array expected"; - for (var i = 0; i < message.served_froms.length; ++i) { - var error = $root.topodata.Keyspace.ServedFrom.verify(message.served_froms[i]); - if (error) - return "served_froms." + error; - } - } - 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")) { - var error = $root.vttime.Time.verify(message.snapshot_time); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.topodata.Keyspace.verify(message.keyspace); if (error) - return "snapshot_time." + error; + return "keyspace." + error; } return null; }; /** - * Creates a CreateKeyspaceRequest 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.CreateKeyspaceRequest + * @memberof vtctldata.Keyspace * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest + * @returns {vtctldata.Keyspace} Keyspace */ - CreateKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateKeyspaceRequest) + Keyspace.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Keyspace) return object; - var message = new $root.vtctldata.CreateKeyspaceRequest(); + var message = new $root.vtctldata.Keyspace(); 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); - if (object.sharding_column_name != null) - message.sharding_column_name = String(object.sharding_column_name); - switch (object.sharding_column_type) { - case "UNSET": - case 0: - message.sharding_column_type = 0; - break; - case "UINT64": - case 1: - message.sharding_column_type = 1; - break; - case "BYTES": - case 2: - message.sharding_column_type = 2; - break; - } - if (object.served_froms) { - if (!Array.isArray(object.served_froms)) - throw TypeError(".vtctldata.CreateKeyspaceRequest.served_froms: array expected"); - message.served_froms = []; - for (var i = 0; i < object.served_froms.length; ++i) { - if (typeof object.served_froms[i] !== "object") - throw TypeError(".vtctldata.CreateKeyspaceRequest.served_froms: object expected"); - message.served_froms[i] = $root.topodata.Keyspace.ServedFrom.fromObject(object.served_froms[i]); - } - } - switch (object.type) { - 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.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 CreateKeyspaceRequest 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.CreateKeyspaceRequest + * @memberof vtctldata.Keyspace * @static - * @param {vtctldata.CreateKeyspaceRequest} message CreateKeyspaceRequest + * @param {vtctldata.Keyspace} message Keyspace * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateKeyspaceRequest.toObject = function toObject(message, options) { + Keyspace.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.served_froms = []; if (options.defaults) { object.name = ""; - object.force = false; - object.allow_empty_v_schema = false; - object.sharding_column_name = ""; - object.sharding_column_type = options.enums === String ? "UNSET" : 0; - object.type = options.enums === String ? "NORMAL" : 0; - object.base_keyspace = ""; - object.snapshot_time = null; + object.keyspace = 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.sharding_column_name != null && message.hasOwnProperty("sharding_column_name")) - object.sharding_column_name = message.sharding_column_name; - if (message.sharding_column_type != null && message.hasOwnProperty("sharding_column_type")) - object.sharding_column_type = options.enums === String ? $root.topodata.KeyspaceIdType[message.sharding_column_type] : message.sharding_column_type; - if (message.served_froms && message.served_froms.length) { - object.served_froms = []; - for (var j = 0; j < message.served_froms.length; ++j) - object.served_froms[j] = $root.topodata.Keyspace.ServedFrom.toObject(message.served_froms[j], options); - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $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.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.topodata.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this CreateKeyspaceRequest to JSON. + * Converts this Keyspace to JSON. * @function toJSON - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.Keyspace * @instance * @returns {Object.} JSON object */ - CreateKeyspaceRequest.prototype.toJSON = function toJSON() { + Keyspace.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateKeyspaceRequest; + return Keyspace; })(); - vtctldata.CreateKeyspaceResponse = (function() { + vtctldata.Shard = (function() { /** - * Properties of a CreateKeyspaceResponse. + * Properties of a Shard. * @memberof vtctldata - * @interface ICreateKeyspaceResponse - * @property {vtctldata.IKeyspace|null} [keyspace] CreateKeyspaceResponse keyspace + * @interface IShard + * @property {string|null} [keyspace] Shard keyspace + * @property {string|null} [name] Shard name + * @property {topodata.IShard|null} [shard] Shard shard */ /** - * Constructs a new CreateKeyspaceResponse. + * Constructs a new Shard. * @memberof vtctldata - * @classdesc Represents a CreateKeyspaceResponse. - * @implements ICreateKeyspaceResponse + * @classdesc Represents a Shard. + * @implements IShard * @constructor - * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IShard=} [properties] Properties to set */ - function CreateKeyspaceResponse(properties) { + function Shard(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50023,75 +49882,101 @@ $root.vtctldata = (function() { } /** - * CreateKeyspaceResponse keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.CreateKeyspaceResponse + * Shard keyspace. + * @member {string} keyspace + * @memberof vtctldata.Shard * @instance */ - CreateKeyspaceResponse.prototype.keyspace = null; + Shard.prototype.keyspace = ""; /** - * Creates a new CreateKeyspaceResponse instance using the specified properties. + * Shard name. + * @member {string} name + * @memberof vtctldata.Shard + * @instance + */ + Shard.prototype.name = ""; + + /** + * Shard shard. + * @member {topodata.IShard|null|undefined} shard + * @memberof vtctldata.Shard + * @instance + */ + Shard.prototype.shard = null; + + /** + * Creates a new Shard instance using the specified properties. * @function create - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.Shard * @static - * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse instance + * @param {vtctldata.IShard=} [properties] Properties to set + * @returns {vtctldata.Shard} Shard instance */ - CreateKeyspaceResponse.create = function create(properties) { - return new CreateKeyspaceResponse(properties); + Shard.create = function create(properties) { + return new Shard(properties); }; /** - * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.Shard * @static - * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode + * @param {vtctldata.IShard} message Shard message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceResponse.encode = function encode(message, writer) { + Shard.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(); + 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 CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.Shard * @static - * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode + * @param {vtctldata.IShard} message Shard message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + Shard.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * Decodes a Shard message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateKeyspaceResponse + * @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.CreateKeyspaceResponse} CreateKeyspaceResponse + * @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 */ - CreateKeyspaceResponse.decode = function decode(reader, length) { + Shard.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Shard(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); + 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); @@ -50102,115 +49987,134 @@ $root.vtctldata = (function() { }; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a Shard message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.Shard * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse + * @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 */ - CreateKeyspaceResponse.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 CreateKeyspaceResponse message. + * Verifies a Shard message. * @function verify - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.Shard * @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) { + Shard.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.vtctldata.Keyspace.verify(message.keyspace); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) { + var error = $root.topodata.Shard.verify(message.shard); if (error) - return "keyspace." + error; + return "shard." + error; } return null; }; /** - * Creates a CreateKeyspaceResponse 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 vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.Shard * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse + * @returns {vtctldata.Shard} Shard */ - CreateKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateKeyspaceResponse) + Shard.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Shard) return object; - var 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); + var message = new $root.vtctldata.Shard(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.name != null) + message.name = String(object.name); + if (object.shard != null) { + if (typeof object.shard !== "object") + throw TypeError(".vtctldata.Shard.shard: object expected"); + message.shard = $root.topodata.Shard.fromObject(object.shard); } return message; }; /** - * Creates a plain object from a CreateKeyspaceResponse 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 vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.Shard * @static - * @param {vtctldata.CreateKeyspaceResponse} message CreateKeyspaceResponse + * @param {vtctldata.Shard} message Shard * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateKeyspaceResponse.toObject = function toObject(message, options) { + Shard.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.keyspace = null; + if (options.defaults) { + object.keyspace = ""; + object.name = ""; + object.shard = null; + } if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); + object.keyspace = message.keyspace; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = $root.topodata.Shard.toObject(message.shard, options); return object; }; /** - * Converts this CreateKeyspaceResponse to JSON. + * Converts this Shard to JSON. * @function toJSON - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.Shard * @instance * @returns {Object.} JSON object */ - CreateKeyspaceResponse.prototype.toJSON = function toJSON() { + Shard.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateKeyspaceResponse; + return Shard; })(); - vtctldata.CreateShardRequest = (function() { + vtctldata.Workflow = (function() { /** - * Properties of a CreateShardRequest. + * Properties of a Workflow. * @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 IWorkflow + * @property {string|null} [name] Workflow name + * @property {vtctldata.Workflow.IReplicationLocation|null} [source] Workflow source + * @property {vtctldata.Workflow.IReplicationLocation|null} [target] Workflow target + * @property {number|Long|null} [max_v_replication_lag] Workflow max_v_replication_lag + * @property {Object.|null} [shard_streams] Workflow shard_streams */ /** - * Constructs a new CreateShardRequest. + * Constructs a new Workflow. * @memberof vtctldata - * @classdesc Represents a CreateShardRequest. - * @implements ICreateShardRequest + * @classdesc Represents a Workflow. + * @implements IWorkflow * @constructor - * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set + * @param {vtctldata.IWorkflow=} [properties] Properties to set */ - function CreateShardRequest(properties) { + function Workflow(properties) { + this.shard_streams = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50218,114 +50122,149 @@ $root.vtctldata = (function() { } /** - * CreateShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.CreateShardRequest + * Workflow name. + * @member {string} name + * @memberof vtctldata.Workflow * @instance */ - CreateShardRequest.prototype.keyspace = ""; + Workflow.prototype.name = ""; /** - * CreateShardRequest shard_name. - * @member {string} shard_name - * @memberof vtctldata.CreateShardRequest + * Workflow source. + * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} source + * @memberof vtctldata.Workflow * @instance */ - CreateShardRequest.prototype.shard_name = ""; + Workflow.prototype.source = null; /** - * CreateShardRequest force. - * @member {boolean} force - * @memberof vtctldata.CreateShardRequest + * Workflow target. + * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} target + * @memberof vtctldata.Workflow * @instance */ - CreateShardRequest.prototype.force = false; + Workflow.prototype.target = null; /** - * CreateShardRequest include_parent. - * @member {boolean} include_parent - * @memberof vtctldata.CreateShardRequest + * Workflow max_v_replication_lag. + * @member {number|Long} max_v_replication_lag + * @memberof vtctldata.Workflow * @instance */ - CreateShardRequest.prototype.include_parent = false; + Workflow.prototype.max_v_replication_lag = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new CreateShardRequest instance using the specified properties. + * Workflow shard_streams. + * @member {Object.} shard_streams + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.shard_streams = $util.emptyObject; + + /** + * Creates a new Workflow instance using the specified properties. * @function create - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.Workflow * @static - * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set - * @returns {vtctldata.CreateShardRequest} CreateShardRequest instance + * @param {vtctldata.IWorkflow=} [properties] Properties to set + * @returns {vtctldata.Workflow} Workflow instance */ - CreateShardRequest.create = function create(properties) { - return new CreateShardRequest(properties); + Workflow.create = function create(properties) { + return new Workflow(properties); }; /** - * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.Workflow * @static - * @param {vtctldata.ICreateShardRequest} message CreateShardRequest message or plain object to encode + * @param {vtctldata.IWorkflow} message Workflow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardRequest.encode = function encode(message, writer) { + Workflow.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.vtctldata.Workflow.ReplicationLocation.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.vtctldata.Workflow.ReplicationLocation.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.max_v_replication_lag != null && Object.hasOwnProperty.call(message, "max_v_replication_lag")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.max_v_replication_lag); + if (message.shard_streams != null && Object.hasOwnProperty.call(message, "shard_streams")) + for (var keys = Object.keys(message.shard_streams), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.Workflow.ShardStream.encode(message.shard_streams[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.Workflow * @static - * @param {vtctldata.ICreateShardRequest} message CreateShardRequest message or plain object to encode + * @param {vtctldata.IWorkflow} message Workflow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + Workflow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateShardRequest message from the specified reader or buffer. + * Decodes a Workflow message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateShardRequest + * @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.CreateShardRequest} CreateShardRequest + * @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 */ - CreateShardRequest.decode = function decode(reader, length) { + Workflow.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.name = reader.string(); break; case 2: - message.shard_name = reader.string(); + message.source = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); break; case 3: - message.force = reader.bool(); + message.target = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); break; case 4: - message.include_parent = reader.bool(); + message.max_v_replication_lag = reader.int64(); + break; + case 5: + if (message.shard_streams === $util.emptyObject) + message.shard_streams = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.Workflow.ShardStream.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.shard_streams[key] = value; break; default: reader.skipType(tag & 7); @@ -50336,93 +50275,2742 @@ $root.vtctldata = (function() { }; /** - * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. + * Decodes a Workflow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.Workflow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateShardRequest} CreateShardRequest + * @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 */ - CreateShardRequest.decodeDelimited = function decodeDelimited(reader) { + Workflow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateShardRequest message. + * Verifies a Workflow message. * @function verify - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.Workflow * @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) { + Workflow.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.source != null && message.hasOwnProperty("source")) { + var error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.source); + if (error) + return "source." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.target); + if (error) + return "target." + error; + } + if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) + if (!$util.isInteger(message.max_v_replication_lag) && !(message.max_v_replication_lag && $util.isInteger(message.max_v_replication_lag.low) && $util.isInteger(message.max_v_replication_lag.high))) + return "max_v_replication_lag: integer|Long expected"; + if (message.shard_streams != null && message.hasOwnProperty("shard_streams")) { + if (!$util.isObject(message.shard_streams)) + return "shard_streams: object expected"; + var key = Object.keys(message.shard_streams); + for (var i = 0; i < key.length; ++i) { + var error = $root.vtctldata.Workflow.ShardStream.verify(message.shard_streams[key[i]]); + if (error) + return "shard_streams." + error; + } + } return null; }; /** - * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Workflow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.Workflow * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateShardRequest} CreateShardRequest + * @returns {vtctldata.Workflow} Workflow */ - CreateShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateShardRequest) + Workflow.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow) return object; - var 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); + var message = new $root.vtctldata.Workflow(); + if (object.name != null) + message.name = String(object.name); + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".vtctldata.Workflow.source: object expected"); + message.source = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.source); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".vtctldata.Workflow.target: object expected"); + message.target = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.target); + } + if (object.max_v_replication_lag != null) + if ($util.Long) + (message.max_v_replication_lag = $util.Long.fromValue(object.max_v_replication_lag)).unsigned = false; + else if (typeof object.max_v_replication_lag === "string") + message.max_v_replication_lag = parseInt(object.max_v_replication_lag, 10); + else if (typeof object.max_v_replication_lag === "number") + message.max_v_replication_lag = object.max_v_replication_lag; + else if (typeof object.max_v_replication_lag === "object") + message.max_v_replication_lag = new $util.LongBits(object.max_v_replication_lag.low >>> 0, object.max_v_replication_lag.high >>> 0).toNumber(); + if (object.shard_streams) { + if (typeof object.shard_streams !== "object") + throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); + message.shard_streams = {}; + for (var keys = Object.keys(object.shard_streams), i = 0; i < keys.length; ++i) { + if (typeof object.shard_streams[keys[i]] !== "object") + throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); + message.shard_streams[keys[i]] = $root.vtctldata.Workflow.ShardStream.fromObject(object.shard_streams[keys[i]]); + } + } return message; }; /** - * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a Workflow message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.Workflow * @static - * @param {vtctldata.CreateShardRequest} message CreateShardRequest + * @param {vtctldata.Workflow} message Workflow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateShardRequest.toObject = function toObject(message, options) { + Workflow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.shard_streams = {}; if (options.defaults) { - object.keyspace = ""; - object.shard_name = ""; - object.force = false; - object.include_parent = false; + object.name = ""; + object.source = null; + object.target = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.max_v_replication_lag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_v_replication_lag = options.longs === String ? "0" : 0; } - if (message.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.source != null && message.hasOwnProperty("source")) + object.source = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.source, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.target, options); + if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) + if (typeof message.max_v_replication_lag === "number") + object.max_v_replication_lag = options.longs === String ? String(message.max_v_replication_lag) : message.max_v_replication_lag; + else + object.max_v_replication_lag = options.longs === String ? $util.Long.prototype.toString.call(message.max_v_replication_lag) : options.longs === Number ? new $util.LongBits(message.max_v_replication_lag.low >>> 0, message.max_v_replication_lag.high >>> 0).toNumber() : message.max_v_replication_lag; + var keys2; + if (message.shard_streams && (keys2 = Object.keys(message.shard_streams)).length) { + object.shard_streams = {}; + for (var j = 0; j < keys2.length; ++j) + object.shard_streams[keys2[j]] = $root.vtctldata.Workflow.ShardStream.toObject(message.shard_streams[keys2[j]], options); + } + return object; + }; + + /** + * Converts this Workflow to JSON. + * @function toJSON + * @memberof vtctldata.Workflow + * @instance + * @returns {Object.} JSON object + */ + Workflow.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Workflow.ReplicationLocation = (function() { + + /** + * Properties of a ReplicationLocation. + * @memberof vtctldata.Workflow + * @interface IReplicationLocation + * @property {string|null} [keyspace] ReplicationLocation keyspace + * @property {Array.|null} [shards] ReplicationLocation shards + */ + + /** + * Constructs a new ReplicationLocation. + * @memberof vtctldata.Workflow + * @classdesc Represents a ReplicationLocation. + * @implements IReplicationLocation + * @constructor + * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set + */ + function ReplicationLocation(properties) { + this.shards = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReplicationLocation keyspace. + * @member {string} keyspace + * @memberof vtctldata.Workflow.ReplicationLocation + * @instance + */ + ReplicationLocation.prototype.keyspace = ""; + + /** + * ReplicationLocation shards. + * @member {Array.} shards + * @memberof vtctldata.Workflow.ReplicationLocation + * @instance + */ + ReplicationLocation.prototype.shards = $util.emptyArray; + + /** + * Creates a new ReplicationLocation instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation instance + */ + ReplicationLocation.create = function create(properties) { + return new ReplicationLocation(properties); + }; + + /** + * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReplicationLocation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shards != null && message.shards.length) + for (var i = 0; i < message.shards.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shards[i]); + return writer; + }; + + /** + * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReplicationLocation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReplicationLocation message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReplicationLocation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ReplicationLocation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; + case 2: + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReplicationLocation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReplicationLocation message. + * @function verify + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReplicationLocation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (var i = 0; i < message.shards.length; ++i) + if (!$util.isString(message.shards[i])) + return "shards: string[] expected"; + } + return null; + }; + + /** + * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation + */ + ReplicationLocation.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.ReplicationLocation) + return object; + var message = new $root.vtctldata.Workflow.ReplicationLocation(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.Workflow.ReplicationLocation.shards: array expected"); + message.shards = []; + for (var i = 0; i < object.shards.length; ++i) + message.shards[i] = String(object.shards[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.ReplicationLocation} message ReplicationLocation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReplicationLocation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.shards = []; + if (options.defaults) + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shards && message.shards.length) { + object.shards = []; + for (var j = 0; j < message.shards.length; ++j) + object.shards[j] = message.shards[j]; + } + return object; + }; + + /** + * Converts this ReplicationLocation to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.ReplicationLocation + * @instance + * @returns {Object.} JSON object + */ + ReplicationLocation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ReplicationLocation; + })(); + + Workflow.ShardStream = (function() { + + /** + * Properties of a ShardStream. + * @memberof vtctldata.Workflow + * @interface IShardStream + * @property {Array.|null} [streams] ShardStream streams + * @property {Array.|null} [tablet_controls] ShardStream tablet_controls + * @property {boolean|null} [is_primary_serving] ShardStream is_primary_serving + */ + + /** + * Constructs a new ShardStream. + * @memberof vtctldata.Workflow + * @classdesc Represents a ShardStream. + * @implements IShardStream + * @constructor + * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set + */ + function ShardStream(properties) { + this.streams = []; + this.tablet_controls = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ShardStream streams. + * @member {Array.} streams + * @memberof vtctldata.Workflow.ShardStream + * @instance + */ + ShardStream.prototype.streams = $util.emptyArray; + + /** + * ShardStream tablet_controls. + * @member {Array.} tablet_controls + * @memberof vtctldata.Workflow.ShardStream + * @instance + */ + ShardStream.prototype.tablet_controls = $util.emptyArray; + + /** + * ShardStream is_primary_serving. + * @member {boolean} is_primary_serving + * @memberof vtctldata.Workflow.ShardStream + * @instance + */ + ShardStream.prototype.is_primary_serving = false; + + /** + * Creates a new ShardStream instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set + * @returns {vtctldata.Workflow.ShardStream} ShardStream instance + */ + ShardStream.create = function create(properties) { + return new ShardStream(properties); + }; + + /** + * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardStream.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.streams != null && message.streams.length) + for (var i = 0; i < message.streams.length; ++i) + $root.vtctldata.Workflow.Stream.encode(message.streams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tablet_controls != null && message.tablet_controls.length) + for (var i = 0; i < message.tablet_controls.length; ++i) + $root.topodata.Shard.TabletControl.encode(message.tablet_controls[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.is_primary_serving != null && Object.hasOwnProperty.call(message, "is_primary_serving")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.is_primary_serving); + return writer; + }; + + /** + * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ShardStream message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.ShardStream} ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardStream.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ShardStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.streams && message.streams.length)) + message.streams = []; + message.streams.push($root.vtctldata.Workflow.Stream.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.tablet_controls && message.tablet_controls.length)) + message.tablet_controls = []; + message.tablet_controls.push($root.topodata.Shard.TabletControl.decode(reader, reader.uint32())); + break; + case 3: + message.is_primary_serving = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ShardStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.ShardStream} ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ShardStream message. + * @function verify + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ShardStream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.streams != null && message.hasOwnProperty("streams")) { + if (!Array.isArray(message.streams)) + return "streams: array expected"; + for (var i = 0; i < message.streams.length; ++i) { + var error = $root.vtctldata.Workflow.Stream.verify(message.streams[i]); + if (error) + return "streams." + error; + } + } + if (message.tablet_controls != null && message.hasOwnProperty("tablet_controls")) { + if (!Array.isArray(message.tablet_controls)) + return "tablet_controls: array expected"; + for (var i = 0; i < message.tablet_controls.length; ++i) { + var error = $root.topodata.Shard.TabletControl.verify(message.tablet_controls[i]); + if (error) + return "tablet_controls." + error; + } + } + if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) + if (typeof message.is_primary_serving !== "boolean") + return "is_primary_serving: boolean expected"; + return null; + }; + + /** + * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.ShardStream} ShardStream + */ + ShardStream.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.ShardStream) + return object; + var message = new $root.vtctldata.Workflow.ShardStream(); + if (object.streams) { + if (!Array.isArray(object.streams)) + throw TypeError(".vtctldata.Workflow.ShardStream.streams: array expected"); + message.streams = []; + for (var i = 0; i < object.streams.length; ++i) { + if (typeof object.streams[i] !== "object") + throw TypeError(".vtctldata.Workflow.ShardStream.streams: object expected"); + message.streams[i] = $root.vtctldata.Workflow.Stream.fromObject(object.streams[i]); + } + } + if (object.tablet_controls) { + if (!Array.isArray(object.tablet_controls)) + throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: array expected"); + message.tablet_controls = []; + for (var i = 0; i < object.tablet_controls.length; ++i) { + if (typeof object.tablet_controls[i] !== "object") + throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: object expected"); + message.tablet_controls[i] = $root.topodata.Shard.TabletControl.fromObject(object.tablet_controls[i]); + } + } + if (object.is_primary_serving != null) + message.is_primary_serving = Boolean(object.is_primary_serving); + return message; + }; + + /** + * Creates a plain object from a ShardStream message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.ShardStream} message ShardStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ShardStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.streams = []; + object.tablet_controls = []; + } + if (options.defaults) + object.is_primary_serving = false; + if (message.streams && message.streams.length) { + object.streams = []; + for (var j = 0; j < message.streams.length; ++j) + object.streams[j] = $root.vtctldata.Workflow.Stream.toObject(message.streams[j], options); + } + if (message.tablet_controls && message.tablet_controls.length) { + object.tablet_controls = []; + for (var j = 0; j < message.tablet_controls.length; ++j) + object.tablet_controls[j] = $root.topodata.Shard.TabletControl.toObject(message.tablet_controls[j], options); + } + if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) + object.is_primary_serving = message.is_primary_serving; + return object; + }; + + /** + * Converts this ShardStream to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.ShardStream + * @instance + * @returns {Object.} JSON object + */ + ShardStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ShardStream; + })(); + + Workflow.Stream = (function() { + + /** + * Properties of a Stream. + * @memberof vtctldata.Workflow + * @interface IStream + * @property {number|Long|null} [id] Stream id + * @property {string|null} [shard] Stream shard + * @property {topodata.ITabletAlias|null} [tablet] Stream tablet + * @property {binlogdata.IBinlogSource|null} [binlog_source] Stream binlog_source + * @property {string|null} [position] Stream position + * @property {string|null} [stop_position] Stream stop_position + * @property {string|null} [state] Stream state + * @property {string|null} [db_name] Stream db_name + * @property {vttime.ITime|null} [transaction_timestamp] Stream transaction_timestamp + * @property {vttime.ITime|null} [time_updated] Stream time_updated + * @property {string|null} [message] Stream message + * @property {Array.|null} [copy_states] Stream copy_states + */ + + /** + * 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 = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Stream id. + * @member {number|Long} id + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Stream shard. + * @member {string} shard + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.shard = ""; + + /** + * Stream tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.tablet = null; + + /** + * Stream binlog_source. + * @member {binlogdata.IBinlogSource|null|undefined} binlog_source + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.binlog_source = null; + + /** + * Stream position. + * @member {string} position + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.position = ""; + + /** + * Stream stop_position. + * @member {string} stop_position + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.stop_position = ""; + + /** + * Stream state. + * @member {string} state + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.state = ""; + + /** + * Stream db_name. + * @member {string} db_name + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.db_name = ""; + + /** + * Stream transaction_timestamp. + * @member {vttime.ITime|null|undefined} transaction_timestamp + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.transaction_timestamp = null; + + /** + * Stream time_updated. + * @member {vttime.ITime|null|undefined} time_updated + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.time_updated = null; + + /** + * Stream message. + * @member {string} message + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.message = ""; + + /** + * Stream copy_states. + * @member {Array.} copy_states + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.copy_states = $util.emptyArray; + + /** + * Creates a new Stream instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.IStream=} [properties] Properties to set + * @returns {vtctldata.Workflow.Stream} Stream instance + */ + Stream.create = function create(properties) { + return new Stream(properties); + }; + + /** + * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Stream.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) + $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.binlog_source != null && Object.hasOwnProperty.call(message, "binlog_source")) + $root.binlogdata.BinlogSource.encode(message.binlog_source, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.position); + if (message.stop_position != null && Object.hasOwnProperty.call(message, "stop_position")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.stop_position); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.state); + if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.db_name); + if (message.transaction_timestamp != null && Object.hasOwnProperty.call(message, "transaction_timestamp")) + $root.vttime.Time.encode(message.transaction_timestamp, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.time_updated != null && Object.hasOwnProperty.call(message, "time_updated")) + $root.vttime.Time.encode(message.time_updated, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.message); + if (message.copy_states != null && message.copy_states.length) + for (var i = 0; i < message.copy_states.length; ++i) + $root.vtctldata.Workflow.Stream.CopyState.encode(message.copy_states[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Stream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Stream message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.Stream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.Stream} Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Stream.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.int64(); + break; + case 2: + message.shard = reader.string(); + break; + case 3: + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 4: + message.binlog_source = $root.binlogdata.BinlogSource.decode(reader, reader.uint32()); + break; + case 5: + message.position = reader.string(); + break; + case 6: + message.stop_position = reader.string(); + break; + case 7: + message.state = reader.string(); + break; + case 8: + message.db_name = reader.string(); + break; + case 9: + message.transaction_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); + break; + case 10: + message.time_updated = $root.vttime.Time.decode(reader, reader.uint32()); + break; + case 11: + message.message = reader.string(); + break; + case 12: + if (!(message.copy_states && message.copy_states.length)) + message.copy_states = []; + message.copy_states.push($root.vtctldata.Workflow.Stream.CopyState.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Stream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.Stream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.Stream} Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Stream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Stream message. + * @function verify + * @memberof vtctldata.Workflow.Stream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Stream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.TabletAlias.verify(message.tablet); + if (error) + return "tablet." + error; + } + if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) { + var error = $root.binlogdata.BinlogSource.verify(message.binlog_source); + if (error) + return "binlog_source." + error; + } + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.stop_position != null && message.hasOwnProperty("stop_position")) + if (!$util.isString(message.stop_position)) + return "stop_position: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + if (!$util.isString(message.state)) + return "state: string expected"; + if (message.db_name != null && message.hasOwnProperty("db_name")) + if (!$util.isString(message.db_name)) + return "db_name: string expected"; + if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) { + var error = $root.vttime.Time.verify(message.transaction_timestamp); + if (error) + return "transaction_timestamp." + error; + } + if (message.time_updated != null && message.hasOwnProperty("time_updated")) { + var error = $root.vttime.Time.verify(message.time_updated); + if (error) + return "time_updated." + error; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.copy_states != null && message.hasOwnProperty("copy_states")) { + if (!Array.isArray(message.copy_states)) + return "copy_states: array expected"; + for (var i = 0; i < message.copy_states.length; ++i) { + var error = $root.vtctldata.Workflow.Stream.CopyState.verify(message.copy_states[i]); + if (error) + return "copy_states." + error; + } + } + return null; + }; + + /** + * Creates a Stream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.Stream + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.Stream} Stream + */ + Stream.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.Stream) + return object; + var message = new $root.vtctldata.Workflow.Stream(); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = false; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); + if (object.shard != null) + message.shard = String(object.shard); + if (object.tablet != null) { + if (typeof object.tablet !== "object") + throw TypeError(".vtctldata.Workflow.Stream.tablet: object expected"); + message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); + } + if (object.binlog_source != null) { + if (typeof object.binlog_source !== "object") + throw TypeError(".vtctldata.Workflow.Stream.binlog_source: object expected"); + message.binlog_source = $root.binlogdata.BinlogSource.fromObject(object.binlog_source); + } + if (object.position != null) + message.position = String(object.position); + if (object.stop_position != null) + message.stop_position = String(object.stop_position); + if (object.state != null) + message.state = String(object.state); + if (object.db_name != null) + message.db_name = String(object.db_name); + if (object.transaction_timestamp != null) { + if (typeof object.transaction_timestamp !== "object") + throw TypeError(".vtctldata.Workflow.Stream.transaction_timestamp: object expected"); + message.transaction_timestamp = $root.vttime.Time.fromObject(object.transaction_timestamp); + } + if (object.time_updated != null) { + if (typeof object.time_updated !== "object") + throw TypeError(".vtctldata.Workflow.Stream.time_updated: object expected"); + message.time_updated = $root.vttime.Time.fromObject(object.time_updated); + } + if (object.message != null) + message.message = String(object.message); + if (object.copy_states) { + if (!Array.isArray(object.copy_states)) + throw TypeError(".vtctldata.Workflow.Stream.copy_states: array expected"); + message.copy_states = []; + for (var i = 0; i < object.copy_states.length; ++i) { + if (typeof object.copy_states[i] !== "object") + throw TypeError(".vtctldata.Workflow.Stream.copy_states: object expected"); + message.copy_states[i] = $root.vtctldata.Workflow.Stream.CopyState.fromObject(object.copy_states[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Stream message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.Stream} message Stream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Stream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.copy_states = []; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.id = options.longs === String ? "0" : 0; + object.shard = ""; + object.tablet = null; + object.binlog_source = null; + object.position = ""; + object.stop_position = ""; + object.state = ""; + object.db_name = ""; + object.transaction_timestamp = null; + object.time_updated = null; + object.message = ""; + } + if (message.id != null && message.hasOwnProperty("id")) + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); + if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) + object.binlog_source = $root.binlogdata.BinlogSource.toObject(message.binlog_source, options); + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.stop_position != null && message.hasOwnProperty("stop_position")) + object.stop_position = message.stop_position; + if (message.state != null && message.hasOwnProperty("state")) + object.state = message.state; + if (message.db_name != null && message.hasOwnProperty("db_name")) + object.db_name = message.db_name; + if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) + object.transaction_timestamp = $root.vttime.Time.toObject(message.transaction_timestamp, options); + if (message.time_updated != null && message.hasOwnProperty("time_updated")) + object.time_updated = $root.vttime.Time.toObject(message.time_updated, options); + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.copy_states && message.copy_states.length) { + object.copy_states = []; + for (var j = 0; j < message.copy_states.length; ++j) + object.copy_states[j] = $root.vtctldata.Workflow.Stream.CopyState.toObject(message.copy_states[j], options); + } + return object; + }; + + /** + * Converts this Stream to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.Stream + * @instance + * @returns {Object.} JSON object + */ + Stream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Stream.CopyState = (function() { + + /** + * Properties of a CopyState. + * @memberof vtctldata.Workflow.Stream + * @interface ICopyState + * @property {string|null} [table] CopyState table + * @property {string|null} [last_pk] CopyState last_pk + */ + + /** + * Constructs a new CopyState. + * @memberof vtctldata.Workflow.Stream + * @classdesc Represents a CopyState. + * @implements ICopyState + * @constructor + * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set + */ + function CopyState(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CopyState table. + * @member {string} table + * @memberof vtctldata.Workflow.Stream.CopyState + * @instance + */ + CopyState.prototype.table = ""; + + /** + * CopyState last_pk. + * @member {string} last_pk + * @memberof vtctldata.Workflow.Stream.CopyState + * @instance + */ + CopyState.prototype.last_pk = ""; + + /** + * Creates a new CopyState instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState instance + */ + CopyState.create = function create(properties) { + return new CopyState(properties); + }; + + /** + * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.table != null && Object.hasOwnProperty.call(message, "table")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.table); + if (message.last_pk != null && Object.hasOwnProperty.call(message, "last_pk")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.last_pk); + return writer; + }; + + /** + * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CopyState message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.CopyState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.table = reader.string(); + break; + case 2: + message.last_pk = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CopyState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CopyState message. + * @function verify + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.table != null && message.hasOwnProperty("table")) + if (!$util.isString(message.table)) + return "table: string expected"; + if (message.last_pk != null && message.hasOwnProperty("last_pk")) + if (!$util.isString(message.last_pk)) + return "last_pk: string expected"; + return null; + }; + + /** + * Creates a CopyState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState + */ + CopyState.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.Stream.CopyState) + return object; + var message = new $root.vtctldata.Workflow.Stream.CopyState(); + if (object.table != null) + message.table = String(object.table); + if (object.last_pk != null) + message.last_pk = String(object.last_pk); + return message; + }; + + /** + * Creates a plain object from a CopyState message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.CopyState} message CopyState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.table = ""; + object.last_pk = ""; + } + if (message.table != null && message.hasOwnProperty("table")) + object.table = message.table; + if (message.last_pk != null && message.hasOwnProperty("last_pk")) + object.last_pk = message.last_pk; + return object; + }; + + /** + * Converts this CopyState to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.Stream.CopyState + * @instance + * @returns {Object.} JSON object + */ + CopyState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CopyState; + })(); + + return Stream; + })(); + + return Workflow; + })(); + + 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 (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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 + * @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); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTypeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 2: + message.db_type = reader.int32(); + break; + case 3: + message.dry_run = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * 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()); + }; + + /** + * 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")) { + var 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 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; + }; + + /** + * 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; + var 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) { + case "UNKNOWN": + case 0: + message.db_type = 0; + 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; + }; + + /** + * 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 = {}; + var 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] : message.db_type; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + object.dry_run = message.dry_run; + return object; + }; + + /** + * 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); + }; + + return ChangeTabletTypeRequest; + })(); + + vtctldata.ChangeTabletTypeResponse = (function() { + + /** + * 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 + */ + + /** + * 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 (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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. + * @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); + }; + + /** + * 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; + }; + + /** + * 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); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTypeResponse(); + while (reader.pos < end) { + var 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; + } + } + return message; + }; + + /** + * 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()); + }; + + /** + * 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")) { + var error = $root.topodata.Tablet.verify(message.before_tablet); + if (error) + return "before_tablet." + error; + } + if (message.after_tablet != null && message.hasOwnProperty("after_tablet")) { + var 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. + * @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; + var 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; + }; + + /** + * 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 = {}; + var 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; + }; + + /** + * 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); + }; + + return ChangeTabletTypeResponse; + })(); + + vtctldata.CreateKeyspaceRequest = (function() { + + /** + * Properties of a CreateKeyspaceRequest. + * @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 {string|null} [sharding_column_name] CreateKeyspaceRequest sharding_column_name + * @property {topodata.KeyspaceIdType|null} [sharding_column_type] CreateKeyspaceRequest sharding_column_type + * @property {Array.|null} [served_froms] CreateKeyspaceRequest served_froms + * @property {topodata.KeyspaceType|null} [type] CreateKeyspaceRequest type + * @property {string|null} [base_keyspace] CreateKeyspaceRequest base_keyspace + * @property {vttime.ITime|null} [snapshot_time] CreateKeyspaceRequest snapshot_time + */ + + /** + * Constructs a new CreateKeyspaceRequest. + * @memberof vtctldata + * @classdesc Represents a CreateKeyspaceRequest. + * @implements ICreateKeyspaceRequest + * @constructor + * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set + */ + function CreateKeyspaceRequest(properties) { + this.served_froms = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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 sharding_column_name. + * @member {string} sharding_column_name + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.sharding_column_name = ""; + + /** + * CreateKeyspaceRequest sharding_column_type. + * @member {topodata.KeyspaceIdType} sharding_column_type + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.sharding_column_type = 0; + + /** + * CreateKeyspaceRequest served_froms. + * @member {Array.} served_froms + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.served_froms = $util.emptyArray; + + /** + * 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; + + /** + * Creates a new CreateKeyspaceRequest instance using the specified properties. + * @function create + * @memberof vtctldata.CreateKeyspaceRequest + * @static + * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest instance + */ + CreateKeyspaceRequest.create = function create(properties) { + return new CreateKeyspaceRequest(properties); + }; + + /** + * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.CreateKeyspaceRequest + * @static + * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} 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.sharding_column_name != null && Object.hasOwnProperty.call(message, "sharding_column_name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.sharding_column_name); + if (message.sharding_column_type != null && Object.hasOwnProperty.call(message, "sharding_column_type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.sharding_column_type); + if (message.served_froms != null && message.served_froms.length) + for (var i = 0; i < message.served_froms.length; ++i) + $root.topodata.Keyspace.ServedFrom.encode(message.served_froms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + 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(); + return writer; + }; + + /** + * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.CreateKeyspaceRequest + * @static + * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * @function decode + * @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.CreateKeyspaceRequest} CreateKeyspaceRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceRequest(); + while (reader.pos < end) { + var 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 4: + message.sharding_column_name = reader.string(); + break; + case 5: + message.sharding_column_type = reader.int32(); + break; + case 6: + if (!(message.served_froms && message.served_froms.length)) + message.served_froms = []; + message.served_froms.push($root.topodata.Keyspace.ServedFrom.decode(reader, reader.uint32())); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.CreateKeyspaceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + CreateKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateKeyspaceRequest message. + * @function verify + * @memberof vtctldata.CreateKeyspaceRequest + * @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) { + 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.sharding_column_name != null && message.hasOwnProperty("sharding_column_name")) + if (!$util.isString(message.sharding_column_name)) + return "sharding_column_name: string expected"; + if (message.sharding_column_type != null && message.hasOwnProperty("sharding_column_type")) + switch (message.sharding_column_type) { + default: + return "sharding_column_type: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.served_froms != null && message.hasOwnProperty("served_froms")) { + if (!Array.isArray(message.served_froms)) + return "served_froms: array expected"; + for (var i = 0; i < message.served_froms.length; ++i) { + var error = $root.topodata.Keyspace.ServedFrom.verify(message.served_froms[i]); + if (error) + return "served_froms." + error; + } + } + 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")) { + var error = $root.vttime.Time.verify(message.snapshot_time); + if (error) + return "snapshot_time." + error; + } + return null; + }; + + /** + * Creates a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.CreateKeyspaceRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest + */ + CreateKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateKeyspaceRequest) + return object; + var 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); + if (object.sharding_column_name != null) + message.sharding_column_name = String(object.sharding_column_name); + switch (object.sharding_column_type) { + case "UNSET": + case 0: + message.sharding_column_type = 0; + break; + case "UINT64": + case 1: + message.sharding_column_type = 1; + break; + case "BYTES": + case 2: + message.sharding_column_type = 2; + break; + } + if (object.served_froms) { + if (!Array.isArray(object.served_froms)) + throw TypeError(".vtctldata.CreateKeyspaceRequest.served_froms: array expected"); + message.served_froms = []; + for (var i = 0; i < object.served_froms.length; ++i) { + if (typeof object.served_froms[i] !== "object") + throw TypeError(".vtctldata.CreateKeyspaceRequest.served_froms: object expected"); + message.served_froms[i] = $root.topodata.Keyspace.ServedFrom.fromObject(object.served_froms[i]); + } + } + switch (object.type) { + 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); + } + return message; + }; + + /** + * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.CreateKeyspaceRequest + * @static + * @param {vtctldata.CreateKeyspaceRequest} message CreateKeyspaceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateKeyspaceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.served_froms = []; + if (options.defaults) { + object.name = ""; + object.force = false; + object.allow_empty_v_schema = false; + object.sharding_column_name = ""; + object.sharding_column_type = options.enums === String ? "UNSET" : 0; + object.type = options.enums === String ? "NORMAL" : 0; + object.base_keyspace = ""; + object.snapshot_time = 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.sharding_column_name != null && message.hasOwnProperty("sharding_column_name")) + object.sharding_column_name = message.sharding_column_name; + if (message.sharding_column_type != null && message.hasOwnProperty("sharding_column_type")) + object.sharding_column_type = options.enums === String ? $root.topodata.KeyspaceIdType[message.sharding_column_type] : message.sharding_column_type; + if (message.served_froms && message.served_froms.length) { + object.served_froms = []; + for (var j = 0; j < message.served_froms.length; ++j) + object.served_froms[j] = $root.topodata.Keyspace.ServedFrom.toObject(message.served_froms[j], options); + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $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); + return object; + }; + + /** + * Converts this CreateKeyspaceRequest to JSON. + * @function toJSON + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + * @returns {Object.} JSON object + */ + CreateKeyspaceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateKeyspaceRequest; + })(); + + vtctldata.CreateKeyspaceResponse = (function() { + + /** + * Properties of a CreateKeyspaceResponse. + * @memberof vtctldata + * @interface ICreateKeyspaceResponse + * @property {vtctldata.IKeyspace|null} [keyspace] CreateKeyspaceResponse keyspace + */ + + /** + * Constructs a new CreateKeyspaceResponse. + * @memberof vtctldata + * @classdesc Represents a CreateKeyspaceResponse. + * @implements ICreateKeyspaceResponse + * @constructor + * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set + */ + function CreateKeyspaceResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateKeyspaceResponse keyspace. + * @member {vtctldata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.CreateKeyspaceResponse + * @instance + */ + CreateKeyspaceResponse.prototype.keyspace = null; + + /** + * Creates a new CreateKeyspaceResponse instance using the specified properties. + * @function create + * @memberof vtctldata.CreateKeyspaceResponse + * @static + * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse instance + */ + CreateKeyspaceResponse.create = function create(properties) { + return new CreateKeyspaceResponse(properties); + }; + + /** + * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.CreateKeyspaceResponse + * @static + * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateKeyspaceResponse.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 CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.CreateKeyspaceResponse + * @static + * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * @function decode + * @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.CreateKeyspaceResponse} CreateKeyspaceResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.CreateKeyspaceResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + CreateKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateKeyspaceResponse message. + * @function verify + * @memberof vtctldata.CreateKeyspaceResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.vtctldata.Keyspace.verify(message.keyspace); + if (error) + return "keyspace." + error; + } + return null; + }; + + /** + * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.CreateKeyspaceResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse + */ + CreateKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateKeyspaceResponse) + return object; + var 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); + } + return message; + }; + + /** + * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.CreateKeyspaceResponse + * @static + * @param {vtctldata.CreateKeyspaceResponse} message CreateKeyspaceResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateKeyspaceResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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; + }; + + /** + * Converts this CreateKeyspaceResponse to JSON. + * @function toJSON + * @memberof vtctldata.CreateKeyspaceResponse + * @instance + * @returns {Object.} JSON object + */ + CreateKeyspaceResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateKeyspaceResponse; + })(); + + vtctldata.CreateShardRequest = (function() { + + /** + * Properties of a CreateShardRequest. + * @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 + */ + + /** + * Constructs a new CreateShardRequest. + * @memberof vtctldata + * @classdesc Represents a CreateShardRequest. + * @implements ICreateShardRequest + * @constructor + * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set + */ + function CreateShardRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateShardRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.CreateShardRequest + * @instance + */ + CreateShardRequest.prototype.keyspace = ""; + + /** + * CreateShardRequest shard_name. + * @member {string} shard_name + * @memberof vtctldata.CreateShardRequest + * @instance + */ + CreateShardRequest.prototype.shard_name = ""; + + /** + * 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.CreateShardRequest + * @static + * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set + * @returns {vtctldata.CreateShardRequest} CreateShardRequest instance + */ + CreateShardRequest.create = function create(properties) { + return new CreateShardRequest(properties); + }; + + /** + * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.CreateShardRequest + * @static + * @param {vtctldata.ICreateShardRequest} message CreateShardRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateShardRequest.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); + return writer; + }; + + /** + * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.CreateShardRequest + * @static + * @param {vtctldata.ICreateShardRequest} message CreateShardRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateShardRequest message from the specified reader or buffer. + * @function decode + * @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.CreateShardRequest} CreateShardRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; + case 2: + message.shard_name = reader.string(); + break; + case 3: + message.force = reader.bool(); + break; + case 4: + message.include_parent = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.CreateShardRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + CreateShardRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateShardRequest message. + * @function verify + * @memberof vtctldata.CreateShardRequest + * @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) { + 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"; + return null; + }; + + /** + * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.CreateShardRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.CreateShardRequest} CreateShardRequest + */ + CreateShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateShardRequest) + return object; + var 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 a CreateShardRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.CreateShardRequest + * @static + * @param {vtctldata.CreateShardRequest} message CreateShardRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateShardRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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")) @@ -50431,39 +53019,5494 @@ $root.vtctldata = (function() { }; /** - * Converts this CreateShardRequest to JSON. + * Converts this CreateShardRequest to JSON. + * @function toJSON + * @memberof vtctldata.CreateShardRequest + * @instance + * @returns {Object.} JSON object + */ + CreateShardRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateShardRequest; + })(); + + vtctldata.CreateShardResponse = (function() { + + /** + * Properties of a CreateShardResponse. + * @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 + */ + + /** + * Constructs a new CreateShardResponse. + * @memberof vtctldata + * @classdesc Represents a CreateShardResponse. + * @implements ICreateShardResponse + * @constructor + * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set + */ + function CreateShardResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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 + * @instance + */ + CreateShardResponse.prototype.shard_already_exists = false; + + /** + * Creates a new CreateShardResponse instance using the specified properties. + * @function create + * @memberof vtctldata.CreateShardResponse + * @static + * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set + * @returns {vtctldata.CreateShardResponse} CreateShardResponse instance + */ + CreateShardResponse.create = function create(properties) { + return new CreateShardResponse(properties); + }; + + /** + * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.CreateShardResponse + * @static + * @param {vtctldata.ICreateShardResponse} message CreateShardResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateShardResponse.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); + return writer; + }; + + /** + * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.CreateShardResponse + * @static + * @param {vtctldata.ICreateShardResponse} message CreateShardResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateShardResponse message from the specified reader or buffer. + * @function decode + * @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.CreateShardResponse} CreateShardResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardResponse(); + while (reader.pos < end) { + var 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.CreateShardResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + CreateShardResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateShardResponse message. + * @function verify + * @memberof vtctldata.CreateShardResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.vtctldata.Keyspace.verify(message.keyspace); + if (error) + return "keyspace." + error; + } + if (message.shard != null && message.hasOwnProperty("shard")) { + var error = $root.vtctldata.Shard.verify(message.shard); + if (error) + return "shard." + 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. + * @function fromObject + * @memberof vtctldata.CreateShardResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.CreateShardResponse} CreateShardResponse + */ + CreateShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateShardResponse) + return object; + var 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); + } + 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. + * @function toObject + * @memberof vtctldata.CreateShardResponse + * @static + * @param {vtctldata.CreateShardResponse} message CreateShardResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateShardResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyspace = null; + object.shard = null; + object.shard_already_exists = false; + } + 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. + * @function toJSON + * @memberof vtctldata.CreateShardResponse + * @instance + * @returns {Object.} JSON object + */ + CreateShardResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateShardResponse; + })(); + + vtctldata.DeleteKeyspaceRequest = (function() { + + /** + * Properties of a DeleteKeyspaceRequest. + * @memberof vtctldata + * @interface IDeleteKeyspaceRequest + * @property {string|null} [keyspace] DeleteKeyspaceRequest keyspace + * @property {boolean|null} [recursive] DeleteKeyspaceRequest recursive + */ + + /** + * Constructs a new DeleteKeyspaceRequest. + * @memberof vtctldata + * @classdesc Represents a DeleteKeyspaceRequest. + * @implements IDeleteKeyspaceRequest + * @constructor + * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set + */ + function DeleteKeyspaceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteKeyspaceRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.DeleteKeyspaceRequest + * @instance + */ + DeleteKeyspaceRequest.prototype.keyspace = ""; + + /** + * DeleteKeyspaceRequest recursive. + * @member {boolean} recursive + * @memberof vtctldata.DeleteKeyspaceRequest + * @instance + */ + DeleteKeyspaceRequest.prototype.recursive = false; + + /** + * Creates a new DeleteKeyspaceRequest instance using the specified properties. + * @function create + * @memberof vtctldata.DeleteKeyspaceRequest + * @static + * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest instance + */ + DeleteKeyspaceRequest.create = function create(properties) { + return new DeleteKeyspaceRequest(properties); + }; + + /** + * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.DeleteKeyspaceRequest + * @static + * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} 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.recursive != null && Object.hasOwnProperty.call(message, "recursive")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recursive); + return writer; + }; + + /** + * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.DeleteKeyspaceRequest + * @static + * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. + * @function decode + * @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.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; + case 2: + message.recursive = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.DeleteKeyspaceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DeleteKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteKeyspaceRequest message. + * @function verify + * @memberof vtctldata.DeleteKeyspaceRequest + * @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) { + 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"; + return null; + }; + + /** + * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.DeleteKeyspaceRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest + */ + DeleteKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteKeyspaceRequest) + return object; + var message = new $root.vtctldata.DeleteKeyspaceRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.recursive != null) + message.recursive = Boolean(object.recursive); + return message; + }; + + /** + * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.DeleteKeyspaceRequest + * @static + * @param {vtctldata.DeleteKeyspaceRequest} message DeleteKeyspaceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteKeyspaceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyspace = ""; + object.recursive = false; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.recursive != null && message.hasOwnProperty("recursive")) + object.recursive = message.recursive; + return object; + }; + + /** + * Converts this DeleteKeyspaceRequest to JSON. + * @function toJSON + * @memberof vtctldata.DeleteKeyspaceRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteKeyspaceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteKeyspaceRequest; + })(); + + vtctldata.DeleteKeyspaceResponse = (function() { + + /** + * Properties of a DeleteKeyspaceResponse. + * @memberof vtctldata + * @interface IDeleteKeyspaceResponse + */ + + /** + * Constructs a new DeleteKeyspaceResponse. + * @memberof vtctldata + * @classdesc Represents a DeleteKeyspaceResponse. + * @implements IDeleteKeyspaceResponse + * @constructor + * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set + */ + function DeleteKeyspaceResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new DeleteKeyspaceResponse instance using the specified properties. + * @function create + * @memberof vtctldata.DeleteKeyspaceResponse + * @static + * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse instance + */ + DeleteKeyspaceResponse.create = function create(properties) { + return new DeleteKeyspaceResponse(properties); + }; + + /** + * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.DeleteKeyspaceResponse + * @static + * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteKeyspaceResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.DeleteKeyspaceResponse + * @static + * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. + * @function decode + * @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.DeleteKeyspaceResponse} DeleteKeyspaceResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.DeleteKeyspaceResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DeleteKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteKeyspaceResponse message. + * @function verify + * @memberof vtctldata.DeleteKeyspaceResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.DeleteKeyspaceResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse + */ + DeleteKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteKeyspaceResponse) + return object; + return new $root.vtctldata.DeleteKeyspaceResponse(); + }; + + /** + * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.DeleteKeyspaceResponse + * @static + * @param {vtctldata.DeleteKeyspaceResponse} message DeleteKeyspaceResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteKeyspaceResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this DeleteKeyspaceResponse to JSON. + * @function toJSON + * @memberof vtctldata.DeleteKeyspaceResponse + * @instance + * @returns {Object.} JSON object + */ + DeleteKeyspaceResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteKeyspaceResponse; + })(); + + vtctldata.DeleteShardsRequest = (function() { + + /** + * Properties of a DeleteShardsRequest. + * @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 + */ + + /** + * Constructs a new DeleteShardsRequest. + * @memberof vtctldata + * @classdesc Represents a DeleteShardsRequest. + * @implements IDeleteShardsRequest + * @constructor + * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set + */ + function DeleteShardsRequest(properties) { + this.shards = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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; + + /** + * Creates a new DeleteShardsRequest instance using the specified properties. + * @function create + * @memberof vtctldata.DeleteShardsRequest + * @static + * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest instance + */ + DeleteShardsRequest.create = function create(properties) { + return new DeleteShardsRequest(properties); + }; + + /** + * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.DeleteShardsRequest + * @static + * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteShardsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.shards != null && message.shards.length) + for (var 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); + return writer; + }; + + /** + * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.DeleteShardsRequest + * @static + * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteShardsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteShardsRequest message from the specified reader or buffer. + * @function decode + * @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.DeleteShardsRequest} DeleteShardsRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsRequest(); + while (reader.pos < end) { + var 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.DeleteShardsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DeleteShardsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteShardsRequest message. + * @function verify + * @memberof vtctldata.DeleteShardsRequest + * @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) { + 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 (var i = 0; i < message.shards.length; ++i) { + var 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"; + return null; + }; + + /** + * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.DeleteShardsRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest + */ + DeleteShardsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteShardsRequest) + return object; + var message = new $root.vtctldata.DeleteShardsRequest(); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.DeleteShardsRequest.shards: array expected"); + message.shards = []; + for (var 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); + return message; + }; + + /** + * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.DeleteShardsRequest + * @static + * @param {vtctldata.DeleteShardsRequest} message DeleteShardsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteShardsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.shards = []; + if (options.defaults) { + object.recursive = false; + object.even_if_serving = false; + } + if (message.shards && message.shards.length) { + object.shards = []; + for (var 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; + return object; + }; + + /** + * Converts this DeleteShardsRequest to JSON. + * @function toJSON + * @memberof vtctldata.DeleteShardsRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteShardsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteShardsRequest; + })(); + + vtctldata.DeleteShardsResponse = (function() { + + /** + * Properties of a DeleteShardsResponse. + * @memberof vtctldata + * @interface IDeleteShardsResponse + */ + + /** + * Constructs a new DeleteShardsResponse. + * @memberof vtctldata + * @classdesc Represents a DeleteShardsResponse. + * @implements IDeleteShardsResponse + * @constructor + * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set + */ + function DeleteShardsResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new DeleteShardsResponse instance using the specified properties. + * @function create + * @memberof vtctldata.DeleteShardsResponse + * @static + * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse instance + */ + DeleteShardsResponse.create = function create(properties) { + return new DeleteShardsResponse(properties); + }; + + /** + * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.DeleteShardsResponse + * @static + * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteShardsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.DeleteShardsResponse + * @static + * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteShardsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteShardsResponse message from the specified reader or buffer. + * @function decode + * @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.DeleteShardsResponse} DeleteShardsResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.DeleteShardsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DeleteShardsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteShardsResponse message. + * @function verify + * @memberof vtctldata.DeleteShardsResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.DeleteShardsResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse + */ + DeleteShardsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteShardsResponse) + return object; + return new $root.vtctldata.DeleteShardsResponse(); + }; + + /** + * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.DeleteShardsResponse + * @static + * @param {vtctldata.DeleteShardsResponse} message DeleteShardsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteShardsResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this DeleteShardsResponse to JSON. + * @function toJSON + * @memberof vtctldata.DeleteShardsResponse + * @instance + * @returns {Object.} JSON object + */ + DeleteShardsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteShardsResponse; + })(); + + vtctldata.DeleteTabletsRequest = (function() { + + /** + * Properties of a DeleteTabletsRequest. + * @memberof vtctldata + * @interface IDeleteTabletsRequest + * @property {Array.|null} [tablet_aliases] DeleteTabletsRequest tablet_aliases + * @property {boolean|null} [allow_primary] DeleteTabletsRequest allow_primary + */ + + /** + * Constructs a new DeleteTabletsRequest. + * @memberof vtctldata + * @classdesc Represents a DeleteTabletsRequest. + * @implements IDeleteTabletsRequest + * @constructor + * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set + */ + function DeleteTabletsRequest(properties) { + this.tablet_aliases = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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. + * @function create + * @memberof vtctldata.DeleteTabletsRequest + * @static + * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest instance + */ + DeleteTabletsRequest.create = function create(properties) { + return new DeleteTabletsRequest(properties); + }; + + /** + * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.DeleteTabletsRequest + * @static + * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteTabletsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tablet_aliases != null && message.tablet_aliases.length) + for (var 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. + * @function encodeDelimited + * @memberof vtctldata.DeleteTabletsRequest + * @static + * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteTabletsRequest message from the specified reader or buffer. + * @function decode + * @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.DeleteTabletsRequest} DeleteTabletsRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsRequest(); + while (reader.pos < end) { + var 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; + } + } + return message; + }; + + /** + * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.DeleteTabletsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DeleteTabletsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteTabletsRequest message. + * @function verify + * @memberof vtctldata.DeleteTabletsRequest + * @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) { + 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 (var i = 0; i < message.tablet_aliases.length; ++i) { + var 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. + * @function fromObject + * @memberof vtctldata.DeleteTabletsRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest + */ + DeleteTabletsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteTabletsRequest) + return object; + var 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 (var 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; + }; + + /** + * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.DeleteTabletsRequest + * @static + * @param {vtctldata.DeleteTabletsRequest} message DeleteTabletsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteTabletsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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 (var 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; + }; + + /** + * Converts this DeleteTabletsRequest to JSON. + * @function toJSON + * @memberof vtctldata.DeleteTabletsRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteTabletsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteTabletsRequest; + })(); + + vtctldata.DeleteTabletsResponse = (function() { + + /** + * Properties of a DeleteTabletsResponse. + * @memberof vtctldata + * @interface IDeleteTabletsResponse + */ + + /** + * Constructs a new DeleteTabletsResponse. + * @memberof vtctldata + * @classdesc Represents a DeleteTabletsResponse. + * @implements IDeleteTabletsResponse + * @constructor + * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set + */ + function DeleteTabletsResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new DeleteTabletsResponse instance using the specified properties. + * @function create + * @memberof vtctldata.DeleteTabletsResponse + * @static + * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse instance + */ + DeleteTabletsResponse.create = function create(properties) { + return new DeleteTabletsResponse(properties); + }; + + /** + * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.DeleteTabletsResponse + * @static + * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteTabletsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.DeleteTabletsResponse + * @static + * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteTabletsResponse message from the specified reader or buffer. + * @function decode + * @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.DeleteTabletsResponse} DeleteTabletsResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.DeleteTabletsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DeleteTabletsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteTabletsResponse message. + * @function verify + * @memberof vtctldata.DeleteTabletsResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.DeleteTabletsResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse + */ + DeleteTabletsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteTabletsResponse) + return object; + return new $root.vtctldata.DeleteTabletsResponse(); + }; + + /** + * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.DeleteTabletsResponse + * @static + * @param {vtctldata.DeleteTabletsResponse} message DeleteTabletsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteTabletsResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this DeleteTabletsResponse to JSON. + * @function toJSON + * @memberof vtctldata.DeleteTabletsResponse + * @instance + * @returns {Object.} JSON object + */ + DeleteTabletsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteTabletsResponse; + })(); + + vtctldata.EmergencyReparentShardRequest = (function() { + + /** + * Properties of an EmergencyReparentShardRequest. + * @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 + */ + + /** + * Constructs a new EmergencyReparentShardRequest. + * @memberof vtctldata + * @classdesc Represents an EmergencyReparentShardRequest. + * @implements IEmergencyReparentShardRequest + * @constructor + * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set + */ + function EmergencyReparentShardRequest(properties) { + this.ignore_replicas = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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; + + /** + * Creates a new EmergencyReparentShardRequest instance using the specified properties. + * @function create + * @memberof vtctldata.EmergencyReparentShardRequest + * @static + * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set + * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest instance + */ + EmergencyReparentShardRequest.create = function create(properties) { + return new EmergencyReparentShardRequest(properties); + }; + + /** + * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.EmergencyReparentShardRequest + * @static + * @param {vtctldata.IEmergencyReparentShardRequest} message EmergencyReparentShardRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} 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.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 (var 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(); + return writer; + }; + + /** + * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.EmergencyReparentShardRequest + * @static + * @param {vtctldata.IEmergencyReparentShardRequest} message EmergencyReparentShardRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmergencyReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. + * @function decode + * @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.EmergencyReparentShardRequest} EmergencyReparentShardRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardRequest(); + while (reader.pos < end) { + var 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.EmergencyReparentShardRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + EmergencyReparentShardRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EmergencyReparentShardRequest message. + * @function verify + * @memberof vtctldata.EmergencyReparentShardRequest + * @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) { + 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")) { + var 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 (var i = 0; i < message.ignore_replicas.length; ++i) { + var 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")) { + var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; + } + return null; + }; + + /** + * Creates an EmergencyReparentShardRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.EmergencyReparentShardRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest + */ + EmergencyReparentShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.EmergencyReparentShardRequest) + return object; + var 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 (var 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); + } + return message; + }; + + /** + * Creates a plain object from an EmergencyReparentShardRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.EmergencyReparentShardRequest + * @static + * @param {vtctldata.EmergencyReparentShardRequest} message EmergencyReparentShardRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EmergencyReparentShardRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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; + } + 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 (var 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); + return object; + }; + + /** + * Converts this EmergencyReparentShardRequest to JSON. + * @function toJSON + * @memberof vtctldata.EmergencyReparentShardRequest + * @instance + * @returns {Object.} JSON object + */ + EmergencyReparentShardRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EmergencyReparentShardRequest; + })(); + + vtctldata.EmergencyReparentShardResponse = (function() { + + /** + * Properties of an EmergencyReparentShardResponse. + * @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 + */ + + /** + * Constructs a new EmergencyReparentShardResponse. + * @memberof vtctldata + * @classdesc Represents an EmergencyReparentShardResponse. + * @implements IEmergencyReparentShardResponse + * @constructor + * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set + */ + function EmergencyReparentShardResponse(properties) { + this.events = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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 + * @instance + */ + EmergencyReparentShardResponse.prototype.events = $util.emptyArray; + + /** + * Creates a new EmergencyReparentShardResponse instance using the specified properties. + * @function create + * @memberof vtctldata.EmergencyReparentShardResponse + * @static + * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set + * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse instance + */ + EmergencyReparentShardResponse.create = function create(properties) { + return new EmergencyReparentShardResponse(properties); + }; + + /** + * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.EmergencyReparentShardResponse + * @static + * @param {vtctldata.IEmergencyReparentShardResponse} message EmergencyReparentShardResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmergencyReparentShardResponse.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 (var 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 EmergencyReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.EmergencyReparentShardResponse + * @static + * @param {vtctldata.IEmergencyReparentShardResponse} message EmergencyReparentShardResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmergencyReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. + * @function decode + * @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.EmergencyReparentShardResponse} EmergencyReparentShardResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardResponse(); + while (reader.pos < end) { + var 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; + } + } + return message; + }; + + /** + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.EmergencyReparentShardResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + EmergencyReparentShardResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EmergencyReparentShardResponse message. + * @function verify + * @memberof vtctldata.EmergencyReparentShardResponse + * @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) { + 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")) { + var 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 (var i = 0; i < message.events.length; ++i) { + var error = $root.logutil.Event.verify(message.events[i]); + if (error) + return "events." + error; + } + } + return null; + }; + + /** + * Creates an EmergencyReparentShardResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.EmergencyReparentShardResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse + */ + EmergencyReparentShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.EmergencyReparentShardResponse) + return object; + var 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 (var 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 an EmergencyReparentShardResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.EmergencyReparentShardResponse + * @static + * @param {vtctldata.EmergencyReparentShardResponse} message EmergencyReparentShardResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EmergencyReparentShardResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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 (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); + } + return object; + }; + + /** + * Converts this EmergencyReparentShardResponse to JSON. + * @function toJSON + * @memberof vtctldata.EmergencyReparentShardResponse + * @instance + * @returns {Object.} JSON object + */ + EmergencyReparentShardResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EmergencyReparentShardResponse; + })(); + + vtctldata.FindAllShardsInKeyspaceRequest = (function() { + + /** + * Properties of a FindAllShardsInKeyspaceRequest. + * @memberof vtctldata + * @interface IFindAllShardsInKeyspaceRequest + * @property {string|null} [keyspace] FindAllShardsInKeyspaceRequest keyspace + */ + + /** + * Constructs a new FindAllShardsInKeyspaceRequest. + * @memberof vtctldata + * @classdesc Represents a FindAllShardsInKeyspaceRequest. + * @implements IFindAllShardsInKeyspaceRequest + * @constructor + * @param {vtctldata.IFindAllShardsInKeyspaceRequest=} [properties] Properties to set + */ + function FindAllShardsInKeyspaceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FindAllShardsInKeyspaceRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @instance + */ + FindAllShardsInKeyspaceRequest.prototype.keyspace = ""; + + /** + * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. + * @function create + * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @static + * @param {vtctldata.IFindAllShardsInKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest instance + */ + FindAllShardsInKeyspaceRequest.create = function create(properties) { + return new FindAllShardsInKeyspaceRequest(properties); + }; + + /** + * Encodes the specified FindAllShardsInKeyspaceRequest message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @static + * @param {vtctldata.IFindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FindAllShardsInKeyspaceRequest.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. + * @function encodeDelimited + * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @static + * @param {vtctldata.IFindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FindAllShardsInKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. + * @function decode + * @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.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.FindAllShardsInKeyspaceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + FindAllShardsInKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FindAllShardsInKeyspaceRequest message. + * @function verify + * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @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) { + 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. + * @function fromObject + * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest + */ + FindAllShardsInKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.FindAllShardsInKeyspaceRequest) + return object; + var message = new $root.vtctldata.FindAllShardsInKeyspaceRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + return message; + }; + + /** + * Creates a plain object from a FindAllShardsInKeyspaceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @static + * @param {vtctldata.FindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FindAllShardsInKeyspaceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + return object; + }; + + /** + * Converts this FindAllShardsInKeyspaceRequest to JSON. + * @function toJSON + * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @instance + * @returns {Object.} JSON object + */ + FindAllShardsInKeyspaceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FindAllShardsInKeyspaceRequest; + })(); + + vtctldata.FindAllShardsInKeyspaceResponse = (function() { + + /** + * Properties of a FindAllShardsInKeyspaceResponse. + * @memberof vtctldata + * @interface IFindAllShardsInKeyspaceResponse + * @property {Object.|null} [shards] FindAllShardsInKeyspaceResponse shards + */ + + /** + * Constructs a new FindAllShardsInKeyspaceResponse. + * @memberof vtctldata + * @classdesc Represents a FindAllShardsInKeyspaceResponse. + * @implements IFindAllShardsInKeyspaceResponse + * @constructor + * @param {vtctldata.IFindAllShardsInKeyspaceResponse=} [properties] Properties to set + */ + function FindAllShardsInKeyspaceResponse(properties) { + this.shards = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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.FindAllShardsInKeyspaceResponse + * @static + * @param {vtctldata.IFindAllShardsInKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse instance + */ + FindAllShardsInKeyspaceResponse.create = function create(properties) { + return new FindAllShardsInKeyspaceResponse(properties); + }; + + /** + * Encodes the specified FindAllShardsInKeyspaceResponse message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @static + * @param {vtctldata.IFindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FindAllShardsInKeyspaceResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.shards != null && Object.hasOwnProperty.call(message, "shards")) + for (var 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 FindAllShardsInKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @static + * @param {vtctldata.IFindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FindAllShardsInKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. + * @function decode + * @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.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.FindAllShardsInKeyspaceResponse(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (message.shards === $util.emptyObject) + message.shards = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.Shard.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.shards[key] = value; + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + FindAllShardsInKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FindAllShardsInKeyspaceResponse message. + * @function verify + * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @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) { + 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"; + var key = Object.keys(message.shards); + for (var i = 0; i < key.length; ++i) { + var error = $root.vtctldata.Shard.verify(message.shards[key[i]]); + if (error) + return "shards." + error; + } + } + return null; + }; + + /** + * Creates a FindAllShardsInKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse + */ + FindAllShardsInKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.FindAllShardsInKeyspaceResponse) + return object; + var message = new $root.vtctldata.FindAllShardsInKeyspaceResponse(); + if (object.shards) { + if (typeof object.shards !== "object") + throw TypeError(".vtctldata.FindAllShardsInKeyspaceResponse.shards: object expected"); + message.shards = {}; + for (var 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 FindAllShardsInKeyspaceResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @static + * @param {vtctldata.FindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FindAllShardsInKeyspaceResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.shards = {}; + var keys2; + if (message.shards && (keys2 = Object.keys(message.shards)).length) { + object.shards = {}; + for (var j = 0; j < keys2.length; ++j) + object.shards[keys2[j]] = $root.vtctldata.Shard.toObject(message.shards[keys2[j]], options); + } + return object; + }; + + /** + * Converts this FindAllShardsInKeyspaceResponse to JSON. + * @function toJSON + * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @instance + * @returns {Object.} JSON object + */ + FindAllShardsInKeyspaceResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FindAllShardsInKeyspaceResponse; + })(); + + vtctldata.GetBackupsRequest = (function() { + + /** + * Properties of a GetBackupsRequest. + * @memberof vtctldata + * @interface IGetBackupsRequest + * @property {string|null} [keyspace] GetBackupsRequest keyspace + * @property {string|null} [shard] GetBackupsRequest shard + */ + + /** + * Constructs a new GetBackupsRequest. + * @memberof vtctldata + * @classdesc Represents a GetBackupsRequest. + * @implements IGetBackupsRequest + * @constructor + * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set + */ + function GetBackupsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetBackupsRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetBackupsRequest + * @instance + */ + GetBackupsRequest.prototype.keyspace = ""; + + /** + * GetBackupsRequest shard. + * @member {string} shard + * @memberof vtctldata.GetBackupsRequest + * @instance + */ + GetBackupsRequest.prototype.shard = ""; + + /** + * Creates a new GetBackupsRequest instance using the specified properties. + * @function create + * @memberof vtctldata.GetBackupsRequest + * @static + * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set + * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest instance + */ + GetBackupsRequest.create = function create(properties) { + return new GetBackupsRequest(properties); + }; + + /** + * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetBackupsRequest + * @static + * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} 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.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + return writer; + }; + + /** + * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetBackupsRequest + * @static + * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetBackupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetBackupsRequest message from the specified reader or buffer. + * @function decode + * @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.GetBackupsRequest} GetBackupsRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsRequest(); + while (reader.pos < end) { + var 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; + } + } + return message; + }; + + /** + * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetBackupsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetBackupsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetBackupsRequest message. + * @function verify + * @memberof vtctldata.GetBackupsRequest + * @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) { + 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 GetBackupsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetBackupsRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest + */ + GetBackupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetBackupsRequest) + return object; + var message = new $root.vtctldata.GetBackupsRequest(); + 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 GetBackupsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetBackupsRequest + * @static + * @param {vtctldata.GetBackupsRequest} message GetBackupsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetBackupsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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; + }; + + /** + * Converts this GetBackupsRequest to JSON. + * @function toJSON + * @memberof vtctldata.GetBackupsRequest + * @instance + * @returns {Object.} JSON object + */ + GetBackupsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetBackupsRequest; + })(); + + vtctldata.GetBackupsResponse = (function() { + + /** + * Properties of a GetBackupsResponse. + * @memberof vtctldata + * @interface IGetBackupsResponse + * @property {Array.|null} [backups] GetBackupsResponse backups + */ + + /** + * Constructs a new GetBackupsResponse. + * @memberof vtctldata + * @classdesc Represents a GetBackupsResponse. + * @implements IGetBackupsResponse + * @constructor + * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set + */ + function GetBackupsResponse(properties) { + this.backups = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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.GetBackupsResponse + * @static + * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set + * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse instance + */ + GetBackupsResponse.create = function create(properties) { + return new GetBackupsResponse(properties); + }; + + /** + * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetBackupsResponse + * @static + * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetBackupsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.backups != null && message.backups.length) + for (var 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 GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetBackupsResponse + * @static + * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetBackupsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetBackupsResponse message from the specified reader or buffer. + * @function decode + * @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.GetBackupsResponse} GetBackupsResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsResponse(); + while (reader.pos < end) { + var 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; + } + } + return message; + }; + + /** + * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetBackupsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetBackupsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetBackupsResponse message. + * @function verify + * @memberof vtctldata.GetBackupsResponse + * @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) { + 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 (var i = 0; i < message.backups.length; ++i) { + var error = $root.mysqlctl.BackupInfo.verify(message.backups[i]); + if (error) + return "backups." + error; + } + } + return null; + }; + + /** + * Creates a GetBackupsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetBackupsResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse + */ + GetBackupsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetBackupsResponse) + return object; + var message = new $root.vtctldata.GetBackupsResponse(); + if (object.backups) { + if (!Array.isArray(object.backups)) + throw TypeError(".vtctldata.GetBackupsResponse.backups: array expected"); + message.backups = []; + for (var 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 GetBackupsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetBackupsResponse + * @static + * @param {vtctldata.GetBackupsResponse} message GetBackupsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetBackupsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.backups = []; + if (message.backups && message.backups.length) { + object.backups = []; + for (var j = 0; j < message.backups.length; ++j) + object.backups[j] = $root.mysqlctl.BackupInfo.toObject(message.backups[j], options); + } + return object; + }; + + /** + * Converts this GetBackupsResponse to JSON. + * @function toJSON + * @memberof vtctldata.GetBackupsResponse + * @instance + * @returns {Object.} JSON object + */ + GetBackupsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetBackupsResponse; + })(); + + vtctldata.GetCellInfoNamesRequest = (function() { + + /** + * Properties of a GetCellInfoNamesRequest. + * @memberof vtctldata + * @interface IGetCellInfoNamesRequest + */ + + /** + * Constructs a new GetCellInfoNamesRequest. + * @memberof vtctldata + * @classdesc Represents a GetCellInfoNamesRequest. + * @implements IGetCellInfoNamesRequest + * @constructor + * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set + */ + function GetCellInfoNamesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new GetCellInfoNamesRequest instance using the specified properties. + * @function create + * @memberof vtctldata.GetCellInfoNamesRequest + * @static + * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest instance + */ + GetCellInfoNamesRequest.create = function create(properties) { + return new GetCellInfoNamesRequest(properties); + }; + + /** + * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetCellInfoNamesRequest + * @static + * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCellInfoNamesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetCellInfoNamesRequest + * @static + * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCellInfoNamesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. + * @function decode + * @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.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetCellInfoNamesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetCellInfoNamesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCellInfoNamesRequest message. + * @function verify + * @memberof vtctldata.GetCellInfoNamesRequest + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetCellInfoNamesRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest + */ + GetCellInfoNamesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoNamesRequest) + return object; + return new $root.vtctldata.GetCellInfoNamesRequest(); + }; + + /** + * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetCellInfoNamesRequest + * @static + * @param {vtctldata.GetCellInfoNamesRequest} message GetCellInfoNamesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCellInfoNamesRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this GetCellInfoNamesRequest to JSON. + * @function toJSON + * @memberof vtctldata.GetCellInfoNamesRequest + * @instance + * @returns {Object.} JSON object + */ + GetCellInfoNamesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCellInfoNamesRequest; + })(); + + vtctldata.GetCellInfoNamesResponse = (function() { + + /** + * Properties of a GetCellInfoNamesResponse. + * @memberof vtctldata + * @interface IGetCellInfoNamesResponse + * @property {Array.|null} [names] GetCellInfoNamesResponse names + */ + + /** + * Constructs a new GetCellInfoNamesResponse. + * @memberof vtctldata + * @classdesc Represents a GetCellInfoNamesResponse. + * @implements IGetCellInfoNamesResponse + * @constructor + * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set + */ + function GetCellInfoNamesResponse(properties) { + this.names = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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.GetCellInfoNamesResponse + * @static + * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse instance + */ + GetCellInfoNamesResponse.create = function create(properties) { + return new GetCellInfoNamesResponse(properties); + }; + + /** + * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetCellInfoNamesResponse + * @static + * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCellInfoNamesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); + return writer; + }; + + /** + * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetCellInfoNamesResponse + * @static + * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCellInfoNamesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. + * @function decode + * @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.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesResponse(); + while (reader.pos < end) { + var 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 GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetCellInfoNamesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetCellInfoNamesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCellInfoNamesResponse message. + * @function verify + * @memberof vtctldata.GetCellInfoNamesResponse + * @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) { + 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 (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } + return null; + }; + + /** + * Creates a GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetCellInfoNamesResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse + */ + GetCellInfoNamesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoNamesResponse) + return object; + var message = new $root.vtctldata.GetCellInfoNamesResponse(); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".vtctldata.GetCellInfoNamesResponse.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } + return message; + }; + + /** + * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetCellInfoNamesResponse + * @static + * @param {vtctldata.GetCellInfoNamesResponse} message GetCellInfoNamesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCellInfoNamesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.names = []; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } + return object; + }; + + /** + * Converts this GetCellInfoNamesResponse to JSON. + * @function toJSON + * @memberof vtctldata.GetCellInfoNamesResponse + * @instance + * @returns {Object.} JSON object + */ + GetCellInfoNamesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCellInfoNamesResponse; + })(); + + vtctldata.GetCellInfoRequest = (function() { + + /** + * Properties of a GetCellInfoRequest. + * @memberof vtctldata + * @interface IGetCellInfoRequest + * @property {string|null} [cell] GetCellInfoRequest cell + */ + + /** + * Constructs a new GetCellInfoRequest. + * @memberof vtctldata + * @classdesc Represents a GetCellInfoRequest. + * @implements IGetCellInfoRequest + * @constructor + * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set + */ + function GetCellInfoRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetCellInfoRequest cell. + * @member {string} cell + * @memberof vtctldata.GetCellInfoRequest + * @instance + */ + GetCellInfoRequest.prototype.cell = ""; + + /** + * Creates a new GetCellInfoRequest instance using the specified properties. + * @function create + * @memberof vtctldata.GetCellInfoRequest + * @static + * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest instance + */ + GetCellInfoRequest.create = function create(properties) { + return new GetCellInfoRequest(properties); + }; + + /** + * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetCellInfoRequest + * @static + * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCellInfoRequest.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 GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetCellInfoRequest + * @static + * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCellInfoRequest message from the specified reader or buffer. + * @function decode + * @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.GetCellInfoRequest} GetCellInfoRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cell = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetCellInfoRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCellInfoRequest message. + * @function verify + * @memberof vtctldata.GetCellInfoRequest + * @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) { + 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 GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetCellInfoRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest + */ + GetCellInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoRequest) + return object; + var message = new $root.vtctldata.GetCellInfoRequest(); + if (object.cell != null) + message.cell = String(object.cell); + return message; + }; + + /** + * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetCellInfoRequest + * @static + * @param {vtctldata.GetCellInfoRequest} message GetCellInfoRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCellInfoRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.cell = ""; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; + return object; + }; + + /** + * Converts this GetCellInfoRequest to JSON. + * @function toJSON + * @memberof vtctldata.GetCellInfoRequest + * @instance + * @returns {Object.} JSON object + */ + GetCellInfoRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCellInfoRequest; + })(); + + vtctldata.GetCellInfoResponse = (function() { + + /** + * Properties of a GetCellInfoResponse. + * @memberof vtctldata + * @interface IGetCellInfoResponse + * @property {topodata.ICellInfo|null} [cell_info] GetCellInfoResponse cell_info + */ + + /** + * Constructs a new GetCellInfoResponse. + * @memberof vtctldata + * @classdesc Represents a GetCellInfoResponse. + * @implements IGetCellInfoResponse + * @constructor + * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set + */ + function GetCellInfoResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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.GetCellInfoResponse + * @static + * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse instance + */ + GetCellInfoResponse.create = function create(properties) { + return new GetCellInfoResponse(properties); + }; + + /** + * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetCellInfoResponse + * @static + * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} 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 GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetCellInfoResponse + * @static + * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCellInfoResponse message from the specified reader or buffer. + * @function decode + * @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.GetCellInfoResponse} GetCellInfoResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoResponse(); + while (reader.pos < end) { + var 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; + } + } + return message; + }; + + /** + * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetCellInfoResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCellInfoResponse message. + * @function verify + * @memberof vtctldata.GetCellInfoResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cell_info != null && message.hasOwnProperty("cell_info")) { + var error = $root.topodata.CellInfo.verify(message.cell_info); + if (error) + return "cell_info." + error; + } + return null; + }; + + /** + * Creates a GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetCellInfoResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse + */ + GetCellInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoResponse) + return object; + var 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 GetCellInfoResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetCellInfoResponse + * @static + * @param {vtctldata.GetCellInfoResponse} message GetCellInfoResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCellInfoResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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 GetCellInfoResponse to JSON. + * @function toJSON + * @memberof vtctldata.GetCellInfoResponse + * @instance + * @returns {Object.} JSON object + */ + GetCellInfoResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCellInfoResponse; + })(); + + vtctldata.GetCellsAliasesRequest = (function() { + + /** + * Properties of a GetCellsAliasesRequest. + * @memberof vtctldata + * @interface IGetCellsAliasesRequest + */ + + /** + * Constructs a new GetCellsAliasesRequest. + * @memberof vtctldata + * @classdesc Represents a GetCellsAliasesRequest. + * @implements IGetCellsAliasesRequest + * @constructor + * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set + */ + function GetCellsAliasesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new GetCellsAliasesRequest instance using the specified properties. + * @function create + * @memberof vtctldata.GetCellsAliasesRequest + * @static + * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set + * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest instance + */ + GetCellsAliasesRequest.create = function create(properties) { + return new GetCellsAliasesRequest(properties); + }; + + /** + * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetCellsAliasesRequest + * @static + * @param {vtctldata.IGetCellsAliasesRequest} message GetCellsAliasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCellsAliasesRequest.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. + * @function encodeDelimited + * @memberof vtctldata.GetCellsAliasesRequest + * @static + * @param {vtctldata.IGetCellsAliasesRequest} message GetCellsAliasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCellsAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. + * @function decode + * @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.GetCellsAliasesRequest} GetCellsAliasesRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetCellsAliasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetCellsAliasesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCellsAliasesRequest message. + * @function verify + * @memberof vtctldata.GetCellsAliasesRequest + * @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) { + 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. + * @function fromObject + * @memberof vtctldata.GetCellsAliasesRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest + */ + GetCellsAliasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellsAliasesRequest) + return object; + return new $root.vtctldata.GetCellsAliasesRequest(); + }; + + /** + * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetCellsAliasesRequest + * @static + * @param {vtctldata.GetCellsAliasesRequest} message GetCellsAliasesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCellsAliasesRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this GetCellsAliasesRequest to JSON. + * @function toJSON + * @memberof vtctldata.GetCellsAliasesRequest + * @instance + * @returns {Object.} JSON object + */ + GetCellsAliasesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCellsAliasesRequest; + })(); + + vtctldata.GetCellsAliasesResponse = (function() { + + /** + * Properties of a GetCellsAliasesResponse. + * @memberof vtctldata + * @interface IGetCellsAliasesResponse + * @property {Object.|null} [aliases] GetCellsAliasesResponse aliases + */ + + /** + * Constructs a new GetCellsAliasesResponse. + * @memberof vtctldata + * @classdesc Represents a GetCellsAliasesResponse. + * @implements IGetCellsAliasesResponse + * @constructor + * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set + */ + function GetCellsAliasesResponse(properties) { + this.aliases = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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.GetCellsAliasesResponse + * @static + * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set + * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse instance + */ + GetCellsAliasesResponse.create = function create(properties) { + return new GetCellsAliasesResponse(properties); + }; + + /** + * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetCellsAliasesResponse + * @static + * @param {vtctldata.IGetCellsAliasesResponse} message GetCellsAliasesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCellsAliasesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.aliases != null && Object.hasOwnProperty.call(message, "aliases")) + for (var 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 GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetCellsAliasesResponse + * @static + * @param {vtctldata.IGetCellsAliasesResponse} message GetCellsAliasesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetCellsAliasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. + * @function decode + * @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.GetCellsAliasesResponse} GetCellsAliasesResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesResponse(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (message.aliases === $util.emptyObject) + message.aliases = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.topodata.CellsAlias.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.aliases[key] = value; + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetCellsAliasesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetCellsAliasesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetCellsAliasesResponse message. + * @function verify + * @memberof vtctldata.GetCellsAliasesResponse + * @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) { + 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"; + var key = Object.keys(message.aliases); + for (var i = 0; i < key.length; ++i) { + var error = $root.topodata.CellsAlias.verify(message.aliases[key[i]]); + if (error) + return "aliases." + error; + } + } + return null; + }; + + /** + * Creates a GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetCellsAliasesResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse + */ + GetCellsAliasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellsAliasesResponse) + return object; + var message = new $root.vtctldata.GetCellsAliasesResponse(); + if (object.aliases) { + if (typeof object.aliases !== "object") + throw TypeError(".vtctldata.GetCellsAliasesResponse.aliases: object expected"); + message.aliases = {}; + for (var 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 GetCellsAliasesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetCellsAliasesResponse + * @static + * @param {vtctldata.GetCellsAliasesResponse} message GetCellsAliasesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetCellsAliasesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.aliases = {}; + var keys2; + if (message.aliases && (keys2 = Object.keys(message.aliases)).length) { + object.aliases = {}; + for (var j = 0; j < keys2.length; ++j) + object.aliases[keys2[j]] = $root.topodata.CellsAlias.toObject(message.aliases[keys2[j]], options); + } + return object; + }; + + /** + * Converts this GetCellsAliasesResponse to JSON. + * @function toJSON + * @memberof vtctldata.GetCellsAliasesResponse + * @instance + * @returns {Object.} JSON object + */ + GetCellsAliasesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetCellsAliasesResponse; + })(); + + vtctldata.GetKeyspacesRequest = (function() { + + /** + * Properties of a GetKeyspacesRequest. + * @memberof vtctldata + * @interface IGetKeyspacesRequest + */ + + /** + * Constructs a new GetKeyspacesRequest. + * @memberof vtctldata + * @classdesc Represents a GetKeyspacesRequest. + * @implements IGetKeyspacesRequest + * @constructor + * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set + */ + function GetKeyspacesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new GetKeyspacesRequest instance using the specified properties. + * @function create + * @memberof vtctldata.GetKeyspacesRequest + * @static + * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set + * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest instance + */ + GetKeyspacesRequest.create = function create(properties) { + return new GetKeyspacesRequest(properties); + }; + + /** + * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetKeyspacesRequest + * @static + * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetKeyspacesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetKeyspacesRequest + * @static + * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetKeyspacesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetKeyspacesRequest message from the specified reader or buffer. + * @function decode + * @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.GetKeyspacesRequest} GetKeyspacesRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetKeyspacesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetKeyspacesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetKeyspacesRequest message. + * @function verify + * @memberof vtctldata.GetKeyspacesRequest + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetKeyspacesRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest + */ + GetKeyspacesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspacesRequest) + return object; + return new $root.vtctldata.GetKeyspacesRequest(); + }; + + /** + * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetKeyspacesRequest + * @static + * @param {vtctldata.GetKeyspacesRequest} message GetKeyspacesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetKeyspacesRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this GetKeyspacesRequest to JSON. + * @function toJSON + * @memberof vtctldata.GetKeyspacesRequest + * @instance + * @returns {Object.} JSON object + */ + GetKeyspacesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetKeyspacesRequest; + })(); + + vtctldata.GetKeyspacesResponse = (function() { + + /** + * Properties of a GetKeyspacesResponse. + * @memberof vtctldata + * @interface IGetKeyspacesResponse + * @property {Array.|null} [keyspaces] GetKeyspacesResponse keyspaces + */ + + /** + * Constructs a new GetKeyspacesResponse. + * @memberof vtctldata + * @classdesc Represents a GetKeyspacesResponse. + * @implements IGetKeyspacesResponse + * @constructor + * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set + */ + function GetKeyspacesResponse(properties) { + this.keyspaces = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetKeyspacesResponse keyspaces. + * @member {Array.} keyspaces + * @memberof vtctldata.GetKeyspacesResponse + * @instance + */ + GetKeyspacesResponse.prototype.keyspaces = $util.emptyArray; + + /** + * Creates a new GetKeyspacesResponse instance using the specified properties. + * @function create + * @memberof vtctldata.GetKeyspacesResponse + * @static + * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set + * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse instance + */ + GetKeyspacesResponse.create = function create(properties) { + return new GetKeyspacesResponse(properties); + }; + + /** + * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetKeyspacesResponse + * @static + * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetKeyspacesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspaces != null && message.keyspaces.length) + for (var 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 GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetKeyspacesResponse + * @static + * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetKeyspacesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetKeyspacesResponse message from the specified reader or buffer. + * @function decode + * @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.GetKeyspacesResponse} GetKeyspacesResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesResponse(); + while (reader.pos < end) { + var 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())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetKeyspacesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetKeyspacesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetKeyspacesResponse message. + * @function verify + * @memberof vtctldata.GetKeyspacesResponse + * @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) { + 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 (var i = 0; i < message.keyspaces.length; ++i) { + var error = $root.vtctldata.Keyspace.verify(message.keyspaces[i]); + if (error) + return "keyspaces." + error; + } + } + return null; + }; + + /** + * Creates a GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetKeyspacesResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse + */ + GetKeyspacesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspacesResponse) + return object; + var message = new $root.vtctldata.GetKeyspacesResponse(); + if (object.keyspaces) { + if (!Array.isArray(object.keyspaces)) + throw TypeError(".vtctldata.GetKeyspacesResponse.keyspaces: array expected"); + message.keyspaces = []; + for (var 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 a GetKeyspacesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetKeyspacesResponse + * @static + * @param {vtctldata.GetKeyspacesResponse} message GetKeyspacesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetKeyspacesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.keyspaces = []; + if (message.keyspaces && message.keyspaces.length) { + object.keyspaces = []; + for (var j = 0; j < message.keyspaces.length; ++j) + object.keyspaces[j] = $root.vtctldata.Keyspace.toObject(message.keyspaces[j], options); + } + return object; + }; + + /** + * Converts this GetKeyspacesResponse to JSON. + * @function toJSON + * @memberof vtctldata.GetKeyspacesResponse + * @instance + * @returns {Object.} JSON object + */ + GetKeyspacesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetKeyspacesResponse; + })(); + + vtctldata.GetKeyspaceRequest = (function() { + + /** + * Properties of a GetKeyspaceRequest. + * @memberof vtctldata + * @interface IGetKeyspaceRequest + * @property {string|null} [keyspace] GetKeyspaceRequest keyspace + */ + + /** + * Constructs a new GetKeyspaceRequest. + * @memberof vtctldata + * @classdesc Represents a GetKeyspaceRequest. + * @implements IGetKeyspaceRequest + * @constructor + * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set + */ + function GetKeyspaceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetKeyspaceRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetKeyspaceRequest + * @instance + */ + GetKeyspaceRequest.prototype.keyspace = ""; + + /** + * Creates a new GetKeyspaceRequest instance using the specified properties. + * @function create + * @memberof vtctldata.GetKeyspaceRequest + * @static + * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest instance + */ + GetKeyspaceRequest.create = function create(properties) { + return new GetKeyspaceRequest(properties); + }; + + /** + * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetKeyspaceRequest + * @static + * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetKeyspaceRequest.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 GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetKeyspaceRequest + * @static + * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetKeyspaceRequest message from the specified reader or buffer. + * @function decode + * @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.GetKeyspaceRequest} GetKeyspaceRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetKeyspaceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetKeyspaceRequest message. + * @function verify + * @memberof vtctldata.GetKeyspaceRequest + * @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) { + 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 GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetKeyspaceRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest + */ + GetKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspaceRequest) + return object; + var message = new $root.vtctldata.GetKeyspaceRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + return message; + }; + + /** + * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetKeyspaceRequest + * @static + * @param {vtctldata.GetKeyspaceRequest} message GetKeyspaceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetKeyspaceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + return object; + }; + + /** + * Converts this GetKeyspaceRequest to JSON. + * @function toJSON + * @memberof vtctldata.GetKeyspaceRequest + * @instance + * @returns {Object.} JSON object + */ + GetKeyspaceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetKeyspaceRequest; + })(); + + vtctldata.GetKeyspaceResponse = (function() { + + /** + * Properties of a GetKeyspaceResponse. + * @memberof vtctldata + * @interface IGetKeyspaceResponse + * @property {vtctldata.IKeyspace|null} [keyspace] GetKeyspaceResponse keyspace + */ + + /** + * Constructs a new GetKeyspaceResponse. + * @memberof vtctldata + * @classdesc Represents a GetKeyspaceResponse. + * @implements IGetKeyspaceResponse + * @constructor + * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set + */ + function GetKeyspaceResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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. + * @function create + * @memberof vtctldata.GetKeyspaceResponse + * @static + * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse instance + */ + GetKeyspaceResponse.create = function create(properties) { + return new GetKeyspaceResponse(properties); + }; + + /** + * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetKeyspaceResponse + * @static + * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetKeyspaceResponse.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. + * @function encodeDelimited + * @memberof vtctldata.GetKeyspaceResponse + * @static + * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetKeyspaceResponse message from the specified reader or buffer. + * @function decode + * @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.GetKeyspaceResponse} GetKeyspaceResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetKeyspaceResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetKeyspaceResponse message. + * @function verify + * @memberof vtctldata.GetKeyspaceResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var 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. + * @function fromObject + * @memberof vtctldata.GetKeyspaceResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse + */ + GetKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspaceResponse) + return object; + var 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 a GetKeyspaceResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetKeyspaceResponse + * @static + * @param {vtctldata.GetKeyspaceResponse} message GetKeyspaceResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetKeyspaceResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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; + }; + + /** + * Converts this GetKeyspaceResponse to JSON. + * @function toJSON + * @memberof vtctldata.GetKeyspaceResponse + * @instance + * @returns {Object.} JSON object + */ + GetKeyspaceResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetKeyspaceResponse; + })(); + + vtctldata.GetSchemaRequest = (function() { + + /** + * Properties of a GetSchemaRequest. + * @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 + */ + + /** + * Constructs a new GetSchemaRequest. + * @memberof vtctldata + * @classdesc Represents a GetSchemaRequest. + * @implements IGetSchemaRequest + * @constructor + * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set + */ + function GetSchemaRequest(properties) { + this.tables = []; + this.exclude_tables = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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 + * @instance + */ + GetSchemaRequest.prototype.tables = $util.emptyArray; + + /** + * GetSchemaRequest exclude_tables. + * @member {Array.} exclude_tables + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.exclude_tables = $util.emptyArray; + + /** + * 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; + + /** + * Creates a new GetSchemaRequest instance using the specified properties. + * @function create + * @memberof vtctldata.GetSchemaRequest + * @static + * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest instance + */ + GetSchemaRequest.create = function create(properties) { + return new GetSchemaRequest(properties); + }; + + /** + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetSchemaRequest + * @static + * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSchemaRequest.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 (var 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 (var 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); + return writer; + }; + + /** + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetSchemaRequest + * @static + * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer. + * @function decode + * @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.GetSchemaRequest} GetSchemaRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.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; + case 5: + message.table_names_only = reader.bool(); + break; + case 6: + message.table_sizes_only = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetSchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetSchemaRequest message. + * @function verify + * @memberof vtctldata.GetSchemaRequest + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (var 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 (var 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"; + return null; + }; + + /** + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetSchemaRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest + */ + GetSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSchemaRequest) + return object; + var 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 (var 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 (var 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); + return message; + }; + + /** + * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetSchemaRequest + * @static + * @param {vtctldata.GetSchemaRequest} message GetSchemaRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetSchemaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.tables = []; + object.exclude_tables = []; + } + if (options.defaults) { + object.tablet_alias = null; + object.include_views = false; + object.table_names_only = false; + object.table_sizes_only = false; + } + 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 (var 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 (var 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; + return object; + }; + + /** + * Converts this GetSchemaRequest to JSON. + * @function toJSON + * @memberof vtctldata.GetSchemaRequest + * @instance + * @returns {Object.} JSON object + */ + GetSchemaRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetSchemaRequest; + })(); + + vtctldata.GetSchemaResponse = (function() { + + /** + * Properties of a GetSchemaResponse. + * @memberof vtctldata + * @interface IGetSchemaResponse + * @property {tabletmanagerdata.ISchemaDefinition|null} [schema] GetSchemaResponse schema + */ + + /** + * Constructs a new GetSchemaResponse. + * @memberof vtctldata + * @classdesc Represents a GetSchemaResponse. + * @implements IGetSchemaResponse + * @constructor + * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set + */ + function GetSchemaResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetSchemaResponse schema. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} schema + * @memberof vtctldata.GetSchemaResponse + * @instance + */ + GetSchemaResponse.prototype.schema = null; + + /** + * Creates a new GetSchemaResponse instance using the specified properties. + * @function create + * @memberof vtctldata.GetSchemaResponse + * @static + * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse instance + */ + GetSchemaResponse.create = function create(properties) { + return new GetSchemaResponse(properties); + }; + + /** + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetSchemaResponse + * @static + * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSchemaResponse.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(); + return writer; + }; + + /** + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetSchemaResponse + * @static + * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetSchemaResponse message from the specified reader or buffer. + * @function decode + * @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.GetSchemaResponse} GetSchemaResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetSchemaResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetSchemaResponse message. + * @function verify + * @memberof vtctldata.GetSchemaResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.schema != null && message.hasOwnProperty("schema")) { + var error = $root.tabletmanagerdata.SchemaDefinition.verify(message.schema); + if (error) + return "schema." + error; + } + return null; + }; + + /** + * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetSchemaResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse + */ + GetSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSchemaResponse) + return object; + var 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 GetSchemaResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetSchemaResponse + * @static + * @param {vtctldata.GetSchemaResponse} message GetSchemaResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetSchemaResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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 GetSchemaResponse to JSON. + * @function toJSON + * @memberof vtctldata.GetSchemaResponse + * @instance + * @returns {Object.} JSON object + */ + GetSchemaResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetSchemaResponse; + })(); + + vtctldata.GetShardRequest = (function() { + + /** + * Properties of a GetShardRequest. + * @memberof vtctldata + * @interface IGetShardRequest + * @property {string|null} [keyspace] GetShardRequest keyspace + * @property {string|null} [shard_name] GetShardRequest shard_name + */ + + /** + * Constructs a new GetShardRequest. + * @memberof vtctldata + * @classdesc Represents a GetShardRequest. + * @implements IGetShardRequest + * @constructor + * @param {vtctldata.IGetShardRequest=} [properties] Properties to set + */ + function GetShardRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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.GetShardRequest + * @static + * @param {vtctldata.IGetShardRequest=} [properties] Properties to set + * @returns {vtctldata.GetShardRequest} GetShardRequest instance + */ + GetShardRequest.create = function create(properties) { + return new GetShardRequest(properties); + }; + + /** + * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.GetShardRequest + * @static + * @param {vtctldata.IGetShardRequest} message GetShardRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} 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 GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.GetShardRequest + * @static + * @param {vtctldata.IGetShardRequest} message GetShardRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetShardRequest message from the specified reader or buffer. + * @function decode + * @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.GetShardRequest} GetShardRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardRequest(); + while (reader.pos < end) { + var 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; + } + } + return message; + }; + + /** + * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.GetShardRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetShardRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetShardRequest message. + * @function verify + * @memberof vtctldata.GetShardRequest + * @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) { + 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 GetShardRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.GetShardRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.GetShardRequest} GetShardRequest + */ + GetShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetShardRequest) + return object; + var 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 GetShardRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.GetShardRequest + * @static + * @param {vtctldata.GetShardRequest} message GetShardRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetShardRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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 GetShardRequest to JSON. * @function toJSON - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.GetShardRequest * @instance * @returns {Object.} JSON object */ - CreateShardRequest.prototype.toJSON = function toJSON() { + GetShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateShardRequest; + return GetShardRequest; })(); - vtctldata.CreateShardResponse = (function() { + vtctldata.GetShardResponse = (function() { /** - * Properties of a CreateShardResponse. + * Properties of a GetShardResponse. * @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 IGetShardResponse + * @property {vtctldata.IShard|null} [shard] GetShardResponse shard */ /** - * Constructs a new CreateShardResponse. + * Constructs a new GetShardResponse. * @memberof vtctldata - * @classdesc Represents a CreateShardResponse. - * @implements ICreateShardResponse + * @classdesc Represents a GetShardResponse. + * @implements IGetShardResponse * @constructor - * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set + * @param {vtctldata.IGetShardResponse=} [properties] Properties to set */ - function CreateShardResponse(properties) { + function GetShardResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50471,102 +58514,76 @@ $root.vtctldata = (function() { } /** - * CreateShardResponse keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.CreateShardResponse - * @instance - */ - CreateShardResponse.prototype.keyspace = null; - - /** - * CreateShardResponse shard. + * GetShardResponse 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 + * @memberof vtctldata.GetShardResponse * @instance */ - CreateShardResponse.prototype.shard_already_exists = false; + GetShardResponse.prototype.shard = null; /** - * Creates a new CreateShardResponse instance using the specified properties. + * Creates a new GetShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set - * @returns {vtctldata.CreateShardResponse} CreateShardResponse instance + * @param {vtctldata.IGetShardResponse=} [properties] Properties to set + * @returns {vtctldata.GetShardResponse} GetShardResponse instance */ - CreateShardResponse.create = function create(properties) { - return new CreateShardResponse(properties); + GetShardResponse.create = function create(properties) { + return new GetShardResponse(properties); }; /** - * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.ICreateShardResponse} message CreateShardResponse 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 */ - CreateShardResponse.encode = function encode(message, writer) { + GetShardResponse.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); + $root.vtctldata.Shard.encode(message.shard, 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 GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.ICreateShardResponse} message CreateShardResponse 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 */ - CreateShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateShardResponse message from the specified reader or buffer. + * Decodes a GetShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateShardResponse + * @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.CreateShardResponse} CreateShardResponse + * @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 */ - CreateShardResponse.decode = function decode(reader, length) { + GetShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardResponse(); while (reader.pos < end) { var 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(); - break; default: reader.skipType(tag & 7); break; @@ -50576,135 +58593,112 @@ $root.vtctldata = (function() { }; /** - * Decodes a CreateShardResponse 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.CreateShardResponse + * @memberof vtctldata.GetShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateShardResponse} CreateShardResponse + * @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 */ - CreateShardResponse.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 CreateShardResponse message. + * Verifies a GetShardResponse message. * @function verify - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.GetShardResponse * @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) { + GetShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.vtctldata.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + error; - } if (message.shard != null && message.hasOwnProperty("shard")) { var error = $root.vtctldata.Shard.verify(message.shard); if (error) return "shard." + 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 a GetShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.GetShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateShardResponse} CreateShardResponse + * @returns {vtctldata.GetShardResponse} GetShardResponse */ - CreateShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateShardResponse) + GetShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetShardResponse) return object; - var 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); - } + var message = new $root.vtctldata.GetShardResponse(); if (object.shard != null) { if (typeof object.shard !== "object") - throw TypeError(".vtctldata.CreateShardResponse.shard: object expected"); + throw TypeError(".vtctldata.GetShardResponse.shard: object expected"); message.shard = $root.vtctldata.Shard.fromObject(object.shard); } - 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 a GetShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.CreateShardResponse} message CreateShardResponse + * @param {vtctldata.GetShardResponse} message GetShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateShardResponse.toObject = function toObject(message, options) { + GetShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = null; + if (options.defaults) object.shard = null; - object.shard_already_exists = false; - } - 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 GetShardResponse to JSON. * @function toJSON - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.GetShardResponse * @instance * @returns {Object.} JSON object */ - CreateShardResponse.prototype.toJSON = function toJSON() { + GetShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateShardResponse; + return GetShardResponse; })(); - vtctldata.DeleteKeyspaceRequest = (function() { + vtctldata.GetSrvVSchemaRequest = (function() { /** - * Properties of a DeleteKeyspaceRequest. + * Properties of a GetSrvVSchemaRequest. * @memberof vtctldata - * @interface IDeleteKeyspaceRequest - * @property {string|null} [keyspace] DeleteKeyspaceRequest keyspace - * @property {boolean|null} [recursive] DeleteKeyspaceRequest recursive + * @interface IGetSrvVSchemaRequest + * @property {string|null} [cell] GetSrvVSchemaRequest cell */ /** - * Constructs a new DeleteKeyspaceRequest. + * Constructs a new GetSrvVSchemaRequest. * @memberof vtctldata - * @classdesc Represents a DeleteKeyspaceRequest. - * @implements IDeleteKeyspaceRequest + * @classdesc Represents a GetSrvVSchemaRequest. + * @implements IGetSrvVSchemaRequest * @constructor - * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set */ - function DeleteKeyspaceRequest(properties) { + function GetSrvVSchemaRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50712,88 +58706,75 @@ $root.vtctldata = (function() { } /** - * DeleteKeyspaceRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.DeleteKeyspaceRequest - * @instance - */ - DeleteKeyspaceRequest.prototype.keyspace = ""; - - /** - * DeleteKeyspaceRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.DeleteKeyspaceRequest + * GetSrvVSchemaRequest cell. + * @member {string} cell + * @memberof vtctldata.GetSrvVSchemaRequest * @instance */ - DeleteKeyspaceRequest.prototype.recursive = false; + GetSrvVSchemaRequest.prototype.cell = ""; /** - * Creates a new DeleteKeyspaceRequest instance using the specified properties. + * Creates a new GetSrvVSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest instance + * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest instance */ - DeleteKeyspaceRequest.create = function create(properties) { - return new DeleteKeyspaceRequest(properties); + GetSrvVSchemaRequest.create = function create(properties) { + return new GetSrvVSchemaRequest(properties); }; /** - * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest 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 */ - DeleteKeyspaceRequest.encode = function encode(message, writer) { + GetSrvVSchemaRequest.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.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); return writer; }; /** - * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * Encodes the specified GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest 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 */ - DeleteKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteKeyspaceRequest + * @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.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @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 */ - DeleteKeyspaceRequest.decode = function decode(reader, length) { + GetSrvVSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); - break; - case 2: - message.recursive = reader.bool(); + message.cell = reader.string(); break; default: reader.skipType(tag & 7); @@ -50804,115 +58785,107 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteKeyspaceRequest 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.DeleteKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @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 */ - DeleteKeyspaceRequest.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 DeleteKeyspaceRequest message. + * Verifies a GetSrvVSchemaRequest message. * @function verify - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @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) { + GetSrvVSchemaRequest.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.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; return null; }; /** - * Creates a DeleteKeyspaceRequest 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.DeleteKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest */ - DeleteKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteKeyspaceRequest) + GetSrvVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvVSchemaRequest) return object; - var message = new $root.vtctldata.DeleteKeyspaceRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.recursive != null) - message.recursive = Boolean(object.recursive); + var message = new $root.vtctldata.GetSrvVSchemaRequest(); + if (object.cell != null) + message.cell = String(object.cell); return message; }; /** - * Creates a plain object from a DeleteKeyspaceRequest 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.DeleteKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.DeleteKeyspaceRequest} message DeleteKeyspaceRequest + * @param {vtctldata.GetSrvVSchemaRequest} message GetSrvVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteKeyspaceRequest.toObject = function toObject(message, options) { + GetSrvVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.recursive = false; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.recursive != null && message.hasOwnProperty("recursive")) - object.recursive = message.recursive; + if (options.defaults) + object.cell = ""; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; return object; }; /** - * Converts this DeleteKeyspaceRequest to JSON. + * Converts this GetSrvVSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @instance * @returns {Object.} JSON object */ - DeleteKeyspaceRequest.prototype.toJSON = function toJSON() { + GetSrvVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteKeyspaceRequest; + return GetSrvVSchemaRequest; })(); - vtctldata.DeleteKeyspaceResponse = (function() { + vtctldata.GetSrvVSchemaResponse = (function() { /** - * Properties of a DeleteKeyspaceResponse. + * Properties of a GetSrvVSchemaResponse. * @memberof vtctldata - * @interface IDeleteKeyspaceResponse + * @interface IGetSrvVSchemaResponse + * @property {vschema.ISrvVSchema|null} [srv_v_schema] GetSrvVSchemaResponse srv_v_schema */ /** - * Constructs a new DeleteKeyspaceResponse. + * Constructs a new GetSrvVSchemaResponse. * @memberof vtctldata - * @classdesc Represents a DeleteKeyspaceResponse. - * @implements IDeleteKeyspaceResponse + * @classdesc Represents a GetSrvVSchemaResponse. + * @implements IGetSrvVSchemaResponse * @constructor - * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set */ - function DeleteKeyspaceResponse(properties) { + function GetSrvVSchemaResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50920,63 +58893,76 @@ $root.vtctldata = (function() { } /** - * Creates a new DeleteKeyspaceResponse instance using the specified properties. + * GetSrvVSchemaResponse srv_v_schema. + * @member {vschema.ISrvVSchema|null|undefined} srv_v_schema + * @memberof vtctldata.GetSrvVSchemaResponse + * @instance + */ + GetSrvVSchemaResponse.prototype.srv_v_schema = null; + + /** + * Creates a new GetSrvVSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse instance + * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse instance */ - DeleteKeyspaceResponse.create = function create(properties) { - return new DeleteKeyspaceResponse(properties); + GetSrvVSchemaResponse.create = function create(properties) { + return new GetSrvVSchemaResponse(properties); }; /** - * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse 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 */ - DeleteKeyspaceResponse.encode = function encode(message, writer) { + GetSrvVSchemaResponse.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(); return writer; }; /** - * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * Encodes the specified GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse 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 */ - DeleteKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteKeyspaceResponse + * @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.DeleteKeyspaceResponse} DeleteKeyspaceResponse + * @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 */ - DeleteKeyspaceResponse.decode = function decode(reader, length) { + GetSrvVSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.srv_v_schema = $root.vschema.SrvVSchema.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -50986,97 +58972,112 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteKeyspaceResponse 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.DeleteKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse + * @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 */ - DeleteKeyspaceResponse.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 DeleteKeyspaceResponse message. + * Verifies a GetSrvVSchemaResponse message. * @function verify - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @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) { + GetSrvVSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) { + var error = $root.vschema.SrvVSchema.verify(message.srv_v_schema); + if (error) + return "srv_v_schema." + error; + } return null; }; /** - * Creates a DeleteKeyspaceResponse 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.DeleteKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse + * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse */ - DeleteKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteKeyspaceResponse) + GetSrvVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvVSchemaResponse) return object; - return new $root.vtctldata.DeleteKeyspaceResponse(); + var 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 DeleteKeyspaceResponse 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.DeleteKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.DeleteKeyspaceResponse} message DeleteKeyspaceResponse + * @param {vtctldata.GetSrvVSchemaResponse} message GetSrvVSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object - */ - DeleteKeyspaceResponse.toObject = function toObject() { - return {}; + */ + GetSrvVSchemaResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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); + return object; }; /** - * Converts this DeleteKeyspaceResponse to JSON. + * Converts this GetSrvVSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @instance * @returns {Object.} JSON object */ - DeleteKeyspaceResponse.prototype.toJSON = function toJSON() { + GetSrvVSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteKeyspaceResponse; + return GetSrvVSchemaResponse; })(); - vtctldata.DeleteShardsRequest = (function() { + vtctldata.GetTabletRequest = (function() { /** - * Properties of a DeleteShardsRequest. + * Properties of a GetTabletRequest. * @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 + * @interface IGetTabletRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] GetTabletRequest tablet_alias */ /** - * Constructs a new DeleteShardsRequest. + * Constructs a new GetTabletRequest. * @memberof vtctldata - * @classdesc Represents a DeleteShardsRequest. - * @implements IDeleteShardsRequest + * @classdesc Represents a GetTabletRequest. + * @implements IGetTabletRequest * @constructor - * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set + * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set */ - function DeleteShardsRequest(properties) { - this.shards = []; + function GetTabletRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51084,104 +59085,75 @@ $root.vtctldata = (function() { } /** - * 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 + * GetTabletRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.GetTabletRequest * @instance */ - DeleteShardsRequest.prototype.even_if_serving = false; + GetTabletRequest.prototype.tablet_alias = null; /** - * Creates a new DeleteShardsRequest instance using the specified properties. + * Creates a new GetTabletRequest instance using the specified properties. * @function create - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest instance + * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set + * @returns {vtctldata.GetTabletRequest} GetTabletRequest instance */ - DeleteShardsRequest.create = function create(properties) { - return new DeleteShardsRequest(properties); + GetTabletRequest.create = function create(properties) { + return new GetTabletRequest(properties); }; /** - * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest 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 */ - DeleteShardsRequest.encode = function encode(message, writer) { + GetTabletRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shards != null && message.shards.length) - for (var 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.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 DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest 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 */ - DeleteShardsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer. + * Decodes a GetTabletRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteShardsRequest + * @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.DeleteShardsRequest} DeleteShardsRequest + * @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 */ - DeleteShardsRequest.decode = function decode(reader, length) { + GetTabletRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletRequest(); while (reader.pos < end) { var 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(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -51192,141 +59164,112 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteShardsRequest 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.DeleteShardsRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest + * @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 */ - DeleteShardsRequest.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 DeleteShardsRequest message. + * Verifies a GetTabletRequest message. * @function verify - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetTabletRequest * @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) { + GetTabletRequest.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 (var i = 0; i < message.shards.length; ++i) { - var error = $root.vtctldata.Shard.verify(message.shards[i]); - if (error) - return "shards." + error; - } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; } - if (message.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"; return null; }; /** - * Creates a DeleteShardsRequest 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.DeleteShardsRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest + * @returns {vtctldata.GetTabletRequest} GetTabletRequest */ - DeleteShardsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteShardsRequest) + GetTabletRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletRequest) return object; - var message = new $root.vtctldata.DeleteShardsRequest(); - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.DeleteShardsRequest.shards: array expected"); - message.shards = []; - for (var 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]); - } + var 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); } - if (object.recursive != null) - message.recursive = Boolean(object.recursive); - if (object.even_if_serving != null) - message.even_if_serving = Boolean(object.even_if_serving); return message; }; /** - * Creates a plain object from a DeleteShardsRequest 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.DeleteShardsRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.DeleteShardsRequest} message DeleteShardsRequest + * @param {vtctldata.GetTabletRequest} message GetTabletRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteShardsRequest.toObject = function toObject(message, options) { + GetTabletRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.shards = []; - if (options.defaults) { - object.recursive = false; - object.even_if_serving = false; - } - if (message.shards && message.shards.length) { - object.shards = []; - for (var 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 (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 DeleteShardsRequest to JSON. + * Converts this GetTabletRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetTabletRequest * @instance * @returns {Object.} JSON object */ - DeleteShardsRequest.prototype.toJSON = function toJSON() { + GetTabletRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteShardsRequest; + return GetTabletRequest; })(); - vtctldata.DeleteShardsResponse = (function() { + vtctldata.GetTabletResponse = (function() { /** - * Properties of a DeleteShardsResponse. + * Properties of a GetTabletResponse. * @memberof vtctldata - * @interface IDeleteShardsResponse + * @interface IGetTabletResponse + * @property {topodata.ITablet|null} [tablet] GetTabletResponse tablet */ /** - * Constructs a new DeleteShardsResponse. + * Constructs a new GetTabletResponse. * @memberof vtctldata - * @classdesc Represents a DeleteShardsResponse. - * @implements IDeleteShardsResponse + * @classdesc Represents a GetTabletResponse. + * @implements IGetTabletResponse * @constructor - * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set + * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set */ - function DeleteShardsResponse(properties) { + function GetTabletResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51334,63 +59277,76 @@ $root.vtctldata = (function() { } /** - * Creates a new DeleteShardsResponse instance using the specified properties. + * GetTabletResponse tablet. + * @member {topodata.ITablet|null|undefined} tablet + * @memberof vtctldata.GetTabletResponse + * @instance + */ + GetTabletResponse.prototype.tablet = null; + + /** + * Creates a new GetTabletResponse instance using the specified properties. * @function create - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse instance + * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set + * @returns {vtctldata.GetTabletResponse} GetTabletResponse instance */ - DeleteShardsResponse.create = function create(properties) { - return new DeleteShardsResponse(properties); + GetTabletResponse.create = function create(properties) { + return new GetTabletResponse(properties); }; /** - * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse 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 */ - DeleteShardsResponse.encode = function encode(message, writer) { + GetTabletResponse.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(); return writer; }; /** - * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * Encodes the specified GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse 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 */ - DeleteShardsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer. + * Decodes a GetTabletResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteShardsResponse + * @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.DeleteShardsResponse} DeleteShardsResponse + * @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 */ - DeleteShardsResponse.decode = function decode(reader, length) { + GetTabletResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -51400,96 +59356,115 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteShardsResponse 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.DeleteShardsResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse + * @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 */ - DeleteShardsResponse.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 DeleteShardsResponse message. + * Verifies a GetTabletResponse message. * @function verify - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetTabletResponse * @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) { + GetTabletResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.Tablet.verify(message.tablet); + if (error) + return "tablet." + error; + } return null; }; /** - * Creates a DeleteShardsResponse 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.DeleteShardsResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse + * @returns {vtctldata.GetTabletResponse} GetTabletResponse */ - DeleteShardsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteShardsResponse) + GetTabletResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletResponse) return object; - return new $root.vtctldata.DeleteShardsResponse(); + var 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 DeleteShardsResponse 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.DeleteShardsResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.DeleteShardsResponse} message DeleteShardsResponse + * @param {vtctldata.GetTabletResponse} message GetTabletResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteShardsResponse.toObject = function toObject() { - return {}; + GetTabletResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.tablet = null; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.Tablet.toObject(message.tablet, options); + return object; }; /** - * Converts this DeleteShardsResponse to JSON. + * Converts this GetTabletResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetTabletResponse * @instance * @returns {Object.} JSON object */ - DeleteShardsResponse.prototype.toJSON = function toJSON() { + GetTabletResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteShardsResponse; + return GetTabletResponse; })(); - vtctldata.DeleteTabletsRequest = (function() { + vtctldata.GetTabletsRequest = (function() { /** - * Properties of a DeleteTabletsRequest. + * Properties of a GetTabletsRequest. * @memberof vtctldata - * @interface IDeleteTabletsRequest - * @property {Array.|null} [tablet_aliases] DeleteTabletsRequest tablet_aliases - * @property {boolean|null} [allow_primary] DeleteTabletsRequest allow_primary + * @interface IGetTabletsRequest + * @property {string|null} [keyspace] GetTabletsRequest keyspace + * @property {string|null} [shard] GetTabletsRequest shard + * @property {Array.|null} [cells] GetTabletsRequest cells */ /** - * Constructs a new DeleteTabletsRequest. + * Constructs a new GetTabletsRequest. * @memberof vtctldata - * @classdesc Represents a DeleteTabletsRequest. - * @implements IDeleteTabletsRequest + * @classdesc Represents a GetTabletsRequest. + * @implements IGetTabletsRequest * @constructor - * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set + * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set */ - function DeleteTabletsRequest(properties) { - this.tablet_aliases = []; + function GetTabletsRequest(properties) { + this.cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51497,91 +59472,104 @@ $root.vtctldata = (function() { } /** - * DeleteTabletsRequest tablet_aliases. - * @member {Array.} tablet_aliases - * @memberof vtctldata.DeleteTabletsRequest + * GetTabletsRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetTabletsRequest * @instance */ - DeleteTabletsRequest.prototype.tablet_aliases = $util.emptyArray; + GetTabletsRequest.prototype.keyspace = ""; /** - * DeleteTabletsRequest allow_primary. - * @member {boolean} allow_primary - * @memberof vtctldata.DeleteTabletsRequest + * GetTabletsRequest shard. + * @member {string} shard + * @memberof vtctldata.GetTabletsRequest * @instance */ - DeleteTabletsRequest.prototype.allow_primary = false; + GetTabletsRequest.prototype.shard = ""; /** - * Creates a new DeleteTabletsRequest instance using the specified properties. + * GetTabletsRequest cells. + * @member {Array.} cells + * @memberof vtctldata.GetTabletsRequest + * @instance + */ + GetTabletsRequest.prototype.cells = $util.emptyArray; + + /** + * Creates a new GetTabletsRequest instance using the specified properties. * @function create - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest instance + * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set + * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest instance */ - DeleteTabletsRequest.create = function create(properties) { - return new DeleteTabletsRequest(properties); + GetTabletsRequest.create = function create(properties) { + return new GetTabletsRequest(properties); }; /** - * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest 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 */ - DeleteTabletsRequest.encode = function encode(message, writer) { + GetTabletsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_aliases != null && message.tablet_aliases.length) - for (var 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); + 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 (var i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); return writer; }; /** - * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest 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 */ - DeleteTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer. + * Decodes a GetTabletsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteTabletsRequest + * @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.DeleteTabletsRequest} DeleteTabletsRequest + * @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 */ - DeleteTabletsRequest.decode = function decode(reader, length) { + GetTabletsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsRequest(); while (reader.pos < end) { var 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())); + message.keyspace = reader.string(); break; case 2: - message.allow_primary = reader.bool(); + message.shard = reader.string(); + break; + case 3: + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -51592,132 +59580,138 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteTabletsRequest 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.DeleteTabletsRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest + * @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 */ - DeleteTabletsRequest.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 DeleteTabletsRequest message. + * Verifies a GetTabletsRequest message. * @function verify - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetTabletsRequest * @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) { + GetTabletsRequest.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 (var i = 0; i < message.tablet_aliases.length; ++i) { - var error = $root.topodata.TabletAlias.verify(message.tablet_aliases[i]); - if (error) - return "tablet_aliases." + 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.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (var i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; } - if (message.allow_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 GetTabletsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest + * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest */ - DeleteTabletsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteTabletsRequest) + GetTabletsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletsRequest) return object; - var 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 (var 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]); - } + var 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 (var i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); } - if (object.allow_primary != null) - message.allow_primary = Boolean(object.allow_primary); return message; }; /** - * Creates a plain object from a DeleteTabletsRequest 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.DeleteTabletsRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.DeleteTabletsRequest} message DeleteTabletsRequest + * @param {vtctldata.GetTabletsRequest} message GetTabletsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTabletsRequest.toObject = function toObject(message, options) { + GetTabletsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var 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 (var j = 0; j < message.tablet_aliases.length; ++j) - object.tablet_aliases[j] = $root.topodata.TabletAlias.toObject(message.tablet_aliases[j], options); + 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 (var j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; } - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - object.allow_primary = message.allow_primary; return object; }; /** - * Converts this DeleteTabletsRequest to JSON. + * Converts this GetTabletsRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetTabletsRequest * @instance * @returns {Object.} JSON object */ - DeleteTabletsRequest.prototype.toJSON = function toJSON() { + GetTabletsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTabletsRequest; + return GetTabletsRequest; })(); - vtctldata.DeleteTabletsResponse = (function() { + vtctldata.GetTabletsResponse = (function() { /** - * Properties of a DeleteTabletsResponse. + * Properties of a GetTabletsResponse. * @memberof vtctldata - * @interface IDeleteTabletsResponse + * @interface IGetTabletsResponse + * @property {Array.|null} [tablets] GetTabletsResponse tablets */ /** - * Constructs a new DeleteTabletsResponse. + * Constructs a new GetTabletsResponse. * @memberof vtctldata - * @classdesc Represents a DeleteTabletsResponse. - * @implements IDeleteTabletsResponse + * @classdesc Represents a GetTabletsResponse. + * @implements IGetTabletsResponse * @constructor - * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set + * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set */ - function DeleteTabletsResponse(properties) { + function GetTabletsResponse(properties) { + this.tablets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51725,63 +59719,79 @@ $root.vtctldata = (function() { } /** - * Creates a new DeleteTabletsResponse instance using the specified properties. + * GetTabletsResponse tablets. + * @member {Array.} tablets + * @memberof vtctldata.GetTabletsResponse + * @instance + */ + GetTabletsResponse.prototype.tablets = $util.emptyArray; + + /** + * Creates a new GetTabletsResponse instance using the specified properties. * @function create - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse instance + * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set + * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse instance */ - DeleteTabletsResponse.create = function create(properties) { - return new DeleteTabletsResponse(properties); + GetTabletsResponse.create = function create(properties) { + return new GetTabletsResponse(properties); }; /** - * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse 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 */ - DeleteTabletsResponse.encode = function encode(message, writer) { + GetTabletsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.tablets != null && message.tablets.length) + for (var 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 DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse 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 */ - DeleteTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer. + * Decodes a GetTabletsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteTabletsResponse + * @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.DeleteTabletsResponse} DeleteTabletsResponse + * @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 */ - DeleteTabletsResponse.decode = function decode(reader, length) { + GetTabletsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsResponse(); while (reader.pos < end) { var 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())); + break; default: reader.skipType(tag & 7); break; @@ -51791,99 +59801,124 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteTabletsResponse 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.DeleteTabletsResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse + * @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 */ - DeleteTabletsResponse.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 DeleteTabletsResponse message. + * Verifies a GetTabletsResponse message. * @function verify - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetTabletsResponse * @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) { + GetTabletsResponse.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 (var i = 0; i < message.tablets.length; ++i) { + var error = $root.topodata.Tablet.verify(message.tablets[i]); + if (error) + return "tablets." + error; + } + } return null; }; /** - * Creates a DeleteTabletsResponse 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.DeleteTabletsResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse + * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse */ - DeleteTabletsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteTabletsResponse) + GetTabletsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletsResponse) return object; - return new $root.vtctldata.DeleteTabletsResponse(); + var message = new $root.vtctldata.GetTabletsResponse(); + if (object.tablets) { + if (!Array.isArray(object.tablets)) + throw TypeError(".vtctldata.GetTabletsResponse.tablets: array expected"); + message.tablets = []; + for (var 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 DeleteTabletsResponse 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.DeleteTabletsResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.DeleteTabletsResponse} message DeleteTabletsResponse + * @param {vtctldata.GetTabletsResponse} message GetTabletsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTabletsResponse.toObject = function toObject() { - return {}; + GetTabletsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.tablets = []; + if (message.tablets && message.tablets.length) { + object.tablets = []; + for (var j = 0; j < message.tablets.length; ++j) + object.tablets[j] = $root.topodata.Tablet.toObject(message.tablets[j], options); + } + return object; }; /** - * Converts this DeleteTabletsResponse to JSON. + * Converts this GetTabletsResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetTabletsResponse * @instance * @returns {Object.} JSON object */ - DeleteTabletsResponse.prototype.toJSON = function toJSON() { + GetTabletsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTabletsResponse; + return GetTabletsResponse; })(); - vtctldata.EmergencyReparentShardRequest = (function() { + vtctldata.GetVSchemaRequest = (function() { /** - * Properties of an EmergencyReparentShardRequest. + * Properties of a GetVSchemaRequest. * @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 + * @interface IGetVSchemaRequest + * @property {string|null} [keyspace] GetVSchemaRequest keyspace */ /** - * Constructs a new EmergencyReparentShardRequest. + * Constructs a new GetVSchemaRequest. * @memberof vtctldata - * @classdesc Represents an EmergencyReparentShardRequest. - * @implements IEmergencyReparentShardRequest + * @classdesc Represents a GetVSchemaRequest. + * @implements IGetVSchemaRequest * @constructor - * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set + * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set */ - function EmergencyReparentShardRequest(properties) { - this.ignore_replicas = []; + function GetVSchemaRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51891,131 +59926,76 @@ $root.vtctldata = (function() { } /** - * EmergencyReparentShardRequest keyspace. + * GetVSchemaRequest 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 + * @memberof vtctldata.GetVSchemaRequest * @instance */ - EmergencyReparentShardRequest.prototype.wait_replicas_timeout = null; + GetVSchemaRequest.prototype.keyspace = ""; /** - * Creates a new EmergencyReparentShardRequest instance using the specified properties. + * Creates a new GetVSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetVSchemaRequest * @static - * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set - * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest instance + * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest instance */ - EmergencyReparentShardRequest.create = function create(properties) { - return new EmergencyReparentShardRequest(properties); + GetVSchemaRequest.create = function create(properties) { + return new GetVSchemaRequest(properties); }; /** - * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetVSchemaRequest * @static - * @param {vtctldata.IEmergencyReparentShardRequest} message EmergencyReparentShardRequest message or plain object to encode + * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmergencyReparentShardRequest.encode = function encode(message, writer) { + 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); - 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 (var 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(); return writer; }; /** - * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetVSchemaRequest * @static - * @param {vtctldata.IEmergencyReparentShardRequest} message EmergencyReparentShardRequest message or plain object to encode + * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmergencyReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. + * Decodes a GetVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.EmergencyReparentShardRequest + * @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.EmergencyReparentShardRequest} EmergencyReparentShardRequest + * @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 */ - EmergencyReparentShardRequest.decode = function decode(reader, length) { + GetVSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaRequest(); while (reader.pos < end) { var 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; default: reader.skipType(tag & 7); break; @@ -52025,172 +60005,107 @@ $root.vtctldata = (function() { }; /** - * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest + * @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 */ - EmergencyReparentShardRequest.decodeDelimited = function decodeDelimited(reader) { + GetVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EmergencyReparentShardRequest message. + * Verifies a GetVSchemaRequest message. * @function verify - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetVSchemaRequest * @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) { + 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"; - 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")) { - var 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 (var i = 0; i < message.ignore_replicas.length; ++i) { - var 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")) { - var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); - if (error) - return "wait_replicas_timeout." + error; - } return null; }; /** - * Creates an EmergencyReparentShardRequest 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. * @function fromObject - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest + * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest */ - EmergencyReparentShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.EmergencyReparentShardRequest) + GetVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetVSchemaRequest) return object; - var message = new $root.vtctldata.EmergencyReparentShardRequest(); + var message = new $root.vtctldata.GetVSchemaRequest(); 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 (var 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); - } return message; }; /** - * Creates a plain object from an EmergencyReparentShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetVSchemaRequest * @static - * @param {vtctldata.EmergencyReparentShardRequest} message EmergencyReparentShardRequest + * @param {vtctldata.GetVSchemaRequest} message GetVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmergencyReparentShardRequest.toObject = function toObject(message, options) { + GetVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.ignore_replicas = []; - if (options.defaults) { + if (options.defaults) object.keyspace = ""; - object.shard = ""; - object.new_primary = null; - 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.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 (var 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); return object; }; /** - * Converts this EmergencyReparentShardRequest to JSON. + * Converts this GetVSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.GetVSchemaRequest * @instance * @returns {Object.} JSON object */ - EmergencyReparentShardRequest.prototype.toJSON = function toJSON() { + GetVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EmergencyReparentShardRequest; + return GetVSchemaRequest; })(); - vtctldata.EmergencyReparentShardResponse = (function() { + vtctldata.GetVSchemaResponse = (function() { /** - * Properties of an EmergencyReparentShardResponse. + * Properties of a GetVSchemaResponse. * @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 IGetVSchemaResponse + * @property {vschema.IKeyspace|null} [v_schema] GetVSchemaResponse v_schema */ /** - * Constructs a new EmergencyReparentShardResponse. + * Constructs a new GetVSchemaResponse. * @memberof vtctldata - * @classdesc Represents an EmergencyReparentShardResponse. - * @implements IEmergencyReparentShardResponse + * @classdesc Represents a GetVSchemaResponse. + * @implements IGetVSchemaResponse * @constructor - * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set + * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set */ - function EmergencyReparentShardResponse(properties) { - this.events = []; + function GetVSchemaResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52198,117 +60113,75 @@ $root.vtctldata = (function() { } /** - * 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 + * GetVSchemaResponse v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtctldata.GetVSchemaResponse * @instance */ - EmergencyReparentShardResponse.prototype.events = $util.emptyArray; + GetVSchemaResponse.prototype.v_schema = null; /** - * Creates a new EmergencyReparentShardResponse instance using the specified properties. + * Creates a new GetVSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set - * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse instance + * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse instance */ - EmergencyReparentShardResponse.create = function create(properties) { - return new EmergencyReparentShardResponse(properties); + GetVSchemaResponse.create = function create(properties) { + return new GetVSchemaResponse(properties); }; /** - * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.IEmergencyReparentShardResponse} message EmergencyReparentShardResponse 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 */ - EmergencyReparentShardResponse.encode = function encode(message, writer) { + GetVSchemaResponse.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 (var 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.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 EmergencyReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.IEmergencyReparentShardResponse} message EmergencyReparentShardResponse 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 */ - EmergencyReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. + * Decodes a GetVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.EmergencyReparentShardResponse + * @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.EmergencyReparentShardResponse} EmergencyReparentShardResponse + * @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 */ - EmergencyReparentShardResponse.decode = function decode(reader, length) { + GetVSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaResponse(); while (reader.pos < end) { var 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.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -52319,156 +60192,113 @@ $root.vtctldata = (function() { }; /** - * Decodes an EmergencyReparentShardResponse 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.EmergencyReparentShardResponse + * @memberof vtctldata.GetVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse + * @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 */ - EmergencyReparentShardResponse.decodeDelimited = function decodeDelimited(reader) { + GetVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EmergencyReparentShardResponse message. + * Verifies a GetVSchemaResponse message. * @function verify - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetVSchemaResponse * @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) { + GetVSchemaResponse.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")) { - var error = $root.topodata.TabletAlias.verify(message.promoted_primary); + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + var error = $root.vschema.Keyspace.verify(message.v_schema); if (error) - return "promoted_primary." + error; - } - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.logutil.Event.verify(message.events[i]); - if (error) - return "events." + error; - } + return "v_schema." + error; } return null; }; /** - * Creates an EmergencyReparentShardResponse 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.EmergencyReparentShardResponse + * @memberof vtctldata.GetVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse + * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse */ - EmergencyReparentShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.EmergencyReparentShardResponse) + GetVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetVSchemaResponse) return object; - var 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 (var 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]); - } + var 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 an EmergencyReparentShardResponse 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.EmergencyReparentShardResponse + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.EmergencyReparentShardResponse} message EmergencyReparentShardResponse + * @param {vtctldata.GetVSchemaResponse} message GetVSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmergencyReparentShardResponse.toObject = function toObject(message, options) { + GetVSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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 (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.logutil.Event.toObject(message.events[j], options); - } + if (options.defaults) + object.v_schema = null; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); return object; }; /** - * Converts this EmergencyReparentShardResponse to JSON. + * Converts this GetVSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.GetVSchemaResponse * @instance * @returns {Object.} JSON object */ - EmergencyReparentShardResponse.prototype.toJSON = function toJSON() { + GetVSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EmergencyReparentShardResponse; + return GetVSchemaResponse; })(); - vtctldata.GetBackupsRequest = (function() { + vtctldata.GetWorkflowsRequest = (function() { /** - * Properties of a GetBackupsRequest. + * Properties of a GetWorkflowsRequest. * @memberof vtctldata - * @interface IGetBackupsRequest - * @property {string|null} [keyspace] GetBackupsRequest keyspace - * @property {string|null} [shard] GetBackupsRequest shard + * @interface IGetWorkflowsRequest + * @property {string|null} [keyspace] GetWorkflowsRequest keyspace + * @property {boolean|null} [active_only] GetWorkflowsRequest active_only */ /** - * Constructs a new GetBackupsRequest. + * Constructs a new GetWorkflowsRequest. * @memberof vtctldata - * @classdesc Represents a GetBackupsRequest. - * @implements IGetBackupsRequest + * @classdesc Represents a GetWorkflowsRequest. + * @implements IGetWorkflowsRequest * @constructor - * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set + * @param {vtctldata.IGetWorkflowsRequest=} [properties] Properties to set */ - function GetBackupsRequest(properties) { + function GetWorkflowsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52476,80 +60306,80 @@ $root.vtctldata = (function() { } /** - * GetBackupsRequest keyspace. + * GetWorkflowsRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetWorkflowsRequest * @instance */ - GetBackupsRequest.prototype.keyspace = ""; + GetWorkflowsRequest.prototype.keyspace = ""; /** - * GetBackupsRequest shard. - * @member {string} shard - * @memberof vtctldata.GetBackupsRequest + * GetWorkflowsRequest active_only. + * @member {boolean} active_only + * @memberof vtctldata.GetWorkflowsRequest * @instance */ - GetBackupsRequest.prototype.shard = ""; + GetWorkflowsRequest.prototype.active_only = false; /** - * Creates a new GetBackupsRequest instance using the specified properties. + * Creates a new GetWorkflowsRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetWorkflowsRequest * @static - * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest instance + * @param {vtctldata.IGetWorkflowsRequest=} [properties] Properties to set + * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest instance */ - GetBackupsRequest.create = function create(properties) { - return new GetBackupsRequest(properties); + GetWorkflowsRequest.create = function create(properties) { + return new GetWorkflowsRequest(properties); }; /** - * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * Encodes the specified GetWorkflowsRequest message. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetWorkflowsRequest * @static - * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest 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 */ - GetBackupsRequest.encode = function encode(message, writer) { + GetWorkflowsRequest.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.active_only != null && Object.hasOwnProperty.call(message, "active_only")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.active_only); return writer; }; /** - * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * Encodes the specified GetWorkflowsRequest message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetWorkflowsRequest * @static - * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest 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 */ - GetBackupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBackupsRequest message from the specified reader or buffer. + * Decodes a GetWorkflowsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetBackupsRequest + * @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.GetBackupsRequest} GetBackupsRequest + * @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 */ - GetBackupsRequest.decode = function decode(reader, length) { + GetWorkflowsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetWorkflowsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -52557,7 +60387,7 @@ $root.vtctldata = (function() { message.keyspace = reader.string(); break; case 2: - message.shard = reader.string(); + message.active_only = reader.bool(); break; default: reader.skipType(tag & 7); @@ -52568,117 +60398,117 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetBackupsRequest 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.GetBackupsRequest + * @memberof vtctldata.GetWorkflowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest + * @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 */ - GetBackupsRequest.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 GetBackupsRequest message. + * Verifies a GetWorkflowsRequest message. * @function verify - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetWorkflowsRequest * @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) { + GetWorkflowsRequest.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.active_only != null && message.hasOwnProperty("active_only")) + if (typeof message.active_only !== "boolean") + return "active_only: boolean expected"; return null; }; /** - * Creates a GetBackupsRequest 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.GetBackupsRequest + * @memberof vtctldata.GetWorkflowsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest + * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest */ - GetBackupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetBackupsRequest) + GetWorkflowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetWorkflowsRequest) return object; - var message = new $root.vtctldata.GetBackupsRequest(); + var message = new $root.vtctldata.GetWorkflowsRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); + if (object.active_only != null) + message.active_only = Boolean(object.active_only); return message; }; /** - * Creates a plain object from a GetBackupsRequest 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.GetBackupsRequest + * @memberof vtctldata.GetWorkflowsRequest * @static - * @param {vtctldata.GetBackupsRequest} message GetBackupsRequest + * @param {vtctldata.GetWorkflowsRequest} message GetWorkflowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBackupsRequest.toObject = function toObject(message, options) { + GetWorkflowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.keyspace = ""; - object.shard = ""; + object.active_only = 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.active_only != null && message.hasOwnProperty("active_only")) + object.active_only = message.active_only; return object; }; /** - * Converts this GetBackupsRequest to JSON. + * Converts this GetWorkflowsRequest to JSON. * @function toJSON - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetWorkflowsRequest * @instance * @returns {Object.} JSON object */ - GetBackupsRequest.prototype.toJSON = function toJSON() { + GetWorkflowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetBackupsRequest; + return GetWorkflowsRequest; })(); - vtctldata.GetBackupsResponse = (function() { + vtctldata.GetWorkflowsResponse = (function() { /** - * Properties of a GetBackupsResponse. + * Properties of a GetWorkflowsResponse. * @memberof vtctldata - * @interface IGetBackupsResponse - * @property {Array.|null} [backups] GetBackupsResponse backups + * @interface IGetWorkflowsResponse + * @property {Array.|null} [workflows] GetWorkflowsResponse workflows */ /** - * Constructs a new GetBackupsResponse. + * Constructs a new GetWorkflowsResponse. * @memberof vtctldata - * @classdesc Represents a GetBackupsResponse. - * @implements IGetBackupsResponse + * @classdesc Represents a GetWorkflowsResponse. + * @implements IGetWorkflowsResponse * @constructor - * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set + * @param {vtctldata.IGetWorkflowsResponse=} [properties] Properties to set */ - function GetBackupsResponse(properties) { - this.backups = []; + function GetWorkflowsResponse(properties) { + this.workflows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52686,78 +60516,78 @@ $root.vtctldata = (function() { } /** - * GetBackupsResponse backups. - * @member {Array.} backups - * @memberof vtctldata.GetBackupsResponse + * GetWorkflowsResponse workflows. + * @member {Array.} workflows + * @memberof vtctldata.GetWorkflowsResponse * @instance */ - GetBackupsResponse.prototype.backups = $util.emptyArray; + GetWorkflowsResponse.prototype.workflows = $util.emptyArray; /** - * Creates a new GetBackupsResponse instance using the specified properties. + * Creates a new GetWorkflowsResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetWorkflowsResponse * @static - * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse instance + * @param {vtctldata.IGetWorkflowsResponse=} [properties] Properties to set + * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse instance */ - GetBackupsResponse.create = function create(properties) { - return new GetBackupsResponse(properties); + GetWorkflowsResponse.create = function create(properties) { + return new GetWorkflowsResponse(properties); }; /** - * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * Encodes the specified GetWorkflowsResponse message. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetWorkflowsResponse * @static - * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse 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 */ - GetBackupsResponse.encode = function encode(message, writer) { + GetWorkflowsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.backups != null && message.backups.length) - for (var 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.workflows != null && message.workflows.length) + for (var 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 GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * Encodes the specified GetWorkflowsResponse message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetWorkflowsResponse * @static - * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse 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 */ - GetBackupsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBackupsResponse message from the specified reader or buffer. + * Decodes a GetWorkflowsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetBackupsResponse + * @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.GetBackupsResponse} GetBackupsResponse + * @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 */ - GetBackupsResponse.decode = function decode(reader, length) { + GetWorkflowsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetWorkflowsResponse(); while (reader.pos < end) { var 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.workflows && message.workflows.length)) + message.workflows = []; + message.workflows.push($root.vtctldata.Workflow.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -52768,123 +60598,128 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetBackupsResponse 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.GetBackupsResponse + * @memberof vtctldata.GetWorkflowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse + * @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 */ - GetBackupsResponse.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 GetBackupsResponse message. + * Verifies a GetWorkflowsResponse message. * @function verify - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetWorkflowsResponse * @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) { + GetWorkflowsResponse.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 (var i = 0; i < message.backups.length; ++i) { - var error = $root.mysqlctl.BackupInfo.verify(message.backups[i]); + if (message.workflows != null && message.hasOwnProperty("workflows")) { + if (!Array.isArray(message.workflows)) + return "workflows: array expected"; + for (var i = 0; i < message.workflows.length; ++i) { + var error = $root.vtctldata.Workflow.verify(message.workflows[i]); if (error) - return "backups." + error; + return "workflows." + error; } } return null; }; /** - * Creates a GetBackupsResponse 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.GetBackupsResponse + * @memberof vtctldata.GetWorkflowsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse + * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse */ - GetBackupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetBackupsResponse) + GetWorkflowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetWorkflowsResponse) return object; - var message = new $root.vtctldata.GetBackupsResponse(); - if (object.backups) { - if (!Array.isArray(object.backups)) - throw TypeError(".vtctldata.GetBackupsResponse.backups: array expected"); - message.backups = []; - for (var 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]); + var message = new $root.vtctldata.GetWorkflowsResponse(); + if (object.workflows) { + if (!Array.isArray(object.workflows)) + throw TypeError(".vtctldata.GetWorkflowsResponse.workflows: array expected"); + message.workflows = []; + for (var 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 GetBackupsResponse 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.GetBackupsResponse + * @memberof vtctldata.GetWorkflowsResponse * @static - * @param {vtctldata.GetBackupsResponse} message GetBackupsResponse + * @param {vtctldata.GetWorkflowsResponse} message GetWorkflowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBackupsResponse.toObject = function toObject(message, options) { + GetWorkflowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.backups = []; - if (message.backups && message.backups.length) { - object.backups = []; - for (var j = 0; j < message.backups.length; ++j) - object.backups[j] = $root.mysqlctl.BackupInfo.toObject(message.backups[j], options); + object.workflows = []; + if (message.workflows && message.workflows.length) { + object.workflows = []; + for (var j = 0; j < message.workflows.length; ++j) + object.workflows[j] = $root.vtctldata.Workflow.toObject(message.workflows[j], options); } return object; }; /** - * Converts this GetBackupsResponse to JSON. + * Converts this GetWorkflowsResponse to JSON. * @function toJSON - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetWorkflowsResponse * @instance * @returns {Object.} JSON object */ - GetBackupsResponse.prototype.toJSON = function toJSON() { + GetWorkflowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetBackupsResponse; + return GetWorkflowsResponse; })(); - vtctldata.GetCellInfoNamesRequest = (function() { + vtctldata.InitShardPrimaryRequest = (function() { /** - * Properties of a GetCellInfoNamesRequest. + * Properties of an InitShardPrimaryRequest. * @memberof vtctldata - * @interface IGetCellInfoNamesRequest + * @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 GetCellInfoNamesRequest. + * Constructs a new InitShardPrimaryRequest. * @memberof vtctldata - * @classdesc Represents a GetCellInfoNamesRequest. - * @implements IGetCellInfoNamesRequest + * @classdesc Represents an InitShardPrimaryRequest. + * @implements IInitShardPrimaryRequest * @constructor - * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set + * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set */ - function GetCellInfoNamesRequest(properties) { + function InitShardPrimaryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52892,63 +60727,128 @@ $root.vtctldata = (function() { } /** - * Creates a new GetCellInfoNamesRequest instance using the specified properties. + * 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 + * @instance + */ + InitShardPrimaryRequest.prototype.wait_replicas_timeout = null; + + /** + * Creates a new InitShardPrimaryRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest instance + * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set + * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest instance */ - GetCellInfoNamesRequest.create = function create(properties) { - return new GetCellInfoNamesRequest(properties); + InitShardPrimaryRequest.create = function create(properties) { + return new InitShardPrimaryRequest(properties); }; /** - * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest 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 */ - GetCellInfoNamesRequest.encode = function encode(message, writer) { + InitShardPrimaryRequest.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(); return writer; }; /** - * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest 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 */ - GetCellInfoNamesRequest.encodeDelimited = function encodeDelimited(message, writer) { + InitShardPrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoNamesRequest + * @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.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @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 */ - GetCellInfoNamesRequest.decode = function decode(reader, length) { + InitShardPrimaryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryRequest(); while (reader.pos < end) { var 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()); + break; default: reader.skipType(tag & 7); break; @@ -52958,95 +60858,151 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellInfoNamesRequest 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.GetCellInfoNamesRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @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 */ - GetCellInfoNamesRequest.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 GetCellInfoNamesRequest message. + * Verifies an InitShardPrimaryRequest message. * @function verify - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.InitShardPrimaryRequest * @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) { + InitShardPrimaryRequest.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")) { + var 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")) { + var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; + } return null; }; /** - * Creates a GetCellInfoNamesRequest 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.GetCellInfoNamesRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest */ - GetCellInfoNamesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoNamesRequest) + InitShardPrimaryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.InitShardPrimaryRequest) return object; - return new $root.vtctldata.GetCellInfoNamesRequest(); + var 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 GetCellInfoNamesRequest 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.GetCellInfoNamesRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.GetCellInfoNamesRequest} message GetCellInfoNamesRequest + * @param {vtctldata.InitShardPrimaryRequest} message InitShardPrimaryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoNamesRequest.toObject = function toObject() { - return {}; + InitShardPrimaryRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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); + return object; }; /** - * Converts this GetCellInfoNamesRequest to JSON. + * Converts this InitShardPrimaryRequest to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.InitShardPrimaryRequest * @instance * @returns {Object.} JSON object */ - GetCellInfoNamesRequest.prototype.toJSON = function toJSON() { + InitShardPrimaryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellInfoNamesRequest; + return InitShardPrimaryRequest; })(); - vtctldata.GetCellInfoNamesResponse = (function() { + vtctldata.InitShardPrimaryResponse = (function() { /** - * Properties of a GetCellInfoNamesResponse. + * Properties of an InitShardPrimaryResponse. * @memberof vtctldata - * @interface IGetCellInfoNamesResponse - * @property {Array.|null} [names] GetCellInfoNamesResponse names + * @interface IInitShardPrimaryResponse + * @property {Array.|null} [events] InitShardPrimaryResponse events */ /** - * Constructs a new GetCellInfoNamesResponse. + * Constructs a new InitShardPrimaryResponse. * @memberof vtctldata - * @classdesc Represents a GetCellInfoNamesResponse. - * @implements IGetCellInfoNamesResponse + * @classdesc Represents an InitShardPrimaryResponse. + * @implements IInitShardPrimaryResponse * @constructor - * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set + * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set */ - function GetCellInfoNamesResponse(properties) { - this.names = []; + function InitShardPrimaryResponse(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53054,78 +61010,78 @@ $root.vtctldata = (function() { } /** - * GetCellInfoNamesResponse names. - * @member {Array.} names - * @memberof vtctldata.GetCellInfoNamesResponse + * InitShardPrimaryResponse events. + * @member {Array.} events + * @memberof vtctldata.InitShardPrimaryResponse * @instance */ - GetCellInfoNamesResponse.prototype.names = $util.emptyArray; + InitShardPrimaryResponse.prototype.events = $util.emptyArray; /** - * Creates a new GetCellInfoNamesResponse instance using the specified properties. + * Creates a new InitShardPrimaryResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse instance + * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set + * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse instance */ - GetCellInfoNamesResponse.create = function create(properties) { - return new GetCellInfoNamesResponse(properties); + InitShardPrimaryResponse.create = function create(properties) { + return new InitShardPrimaryResponse(properties); }; /** - * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse 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 */ - GetCellInfoNamesResponse.encode = function encode(message, writer) { + InitShardPrimaryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.names != null && message.names.length) - for (var 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 (var 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 GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse 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 */ - GetCellInfoNamesResponse.encodeDelimited = function encodeDelimited(message, writer) { + InitShardPrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoNamesResponse + * @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.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @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 */ - GetCellInfoNamesResponse.decode = function decode(reader, length) { + InitShardPrimaryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.logutil.Event.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -53136,119 +61092,128 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellInfoNamesResponse 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.GetCellInfoNamesResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @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 */ - GetCellInfoNamesResponse.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 GetCellInfoNamesResponse message. + * Verifies an InitShardPrimaryResponse message. * @function verify - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.InitShardPrimaryResponse * @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) { + InitShardPrimaryResponse.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 (var 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 (var i = 0; i < message.events.length; ++i) { + var error = $root.logutil.Event.verify(message.events[i]); + if (error) + return "events." + error; + } } return null; }; /** - * Creates a GetCellInfoNamesResponse 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.GetCellInfoNamesResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse */ - GetCellInfoNamesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoNamesResponse) + InitShardPrimaryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.InitShardPrimaryResponse) return object; - var message = new $root.vtctldata.GetCellInfoNamesResponse(); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".vtctldata.GetCellInfoNamesResponse.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); + var message = new $root.vtctldata.InitShardPrimaryResponse(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".vtctldata.InitShardPrimaryResponse.events: array expected"); + message.events = []; + for (var 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 GetCellInfoNamesResponse 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.GetCellInfoNamesResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.GetCellInfoNamesResponse} message GetCellInfoNamesResponse + * @param {vtctldata.InitShardPrimaryResponse} message InitShardPrimaryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoNamesResponse.toObject = function toObject(message, options) { + InitShardPrimaryResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.names = []; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; + object.events = []; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); } return object; }; /** - * Converts this GetCellInfoNamesResponse to JSON. + * Converts this InitShardPrimaryResponse to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.InitShardPrimaryResponse * @instance * @returns {Object.} JSON object */ - GetCellInfoNamesResponse.prototype.toJSON = function toJSON() { + InitShardPrimaryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellInfoNamesResponse; + return InitShardPrimaryResponse; })(); - vtctldata.GetCellInfoRequest = (function() { + vtctldata.PlannedReparentShardRequest = (function() { /** - * Properties of a GetCellInfoRequest. + * Properties of a PlannedReparentShardRequest. * @memberof vtctldata - * @interface IGetCellInfoRequest - * @property {string|null} [cell] GetCellInfoRequest cell + * @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 */ /** - * Constructs a new GetCellInfoRequest. + * Constructs a new PlannedReparentShardRequest. * @memberof vtctldata - * @classdesc Represents a GetCellInfoRequest. - * @implements IGetCellInfoRequest + * @classdesc Represents a PlannedReparentShardRequest. + * @implements IPlannedReparentShardRequest * @constructor - * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set + * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set */ - function GetCellInfoRequest(properties) { + function PlannedReparentShardRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53256,75 +61221,127 @@ $root.vtctldata = (function() { } /** - * GetCellInfoRequest cell. - * @member {string} cell - * @memberof vtctldata.GetCellInfoRequest + * PlannedReparentShardRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.PlannedReparentShardRequest * @instance */ - GetCellInfoRequest.prototype.cell = ""; + PlannedReparentShardRequest.prototype.keyspace = ""; /** - * Creates a new GetCellInfoRequest instance using the specified properties. + * PlannedReparentShardRequest 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; + + /** + * Creates a new PlannedReparentShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest instance + * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set + * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest instance */ - GetCellInfoRequest.create = function create(properties) { - return new GetCellInfoRequest(properties); + PlannedReparentShardRequest.create = function create(properties) { + return new PlannedReparentShardRequest(properties); }; /** - * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest 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 */ - GetCellInfoRequest.encode = function encode(message, writer) { + PlannedReparentShardRequest.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.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(); return writer; }; /** - * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * Encodes the specified PlannedReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest 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 */ - GetCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + PlannedReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer. + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoRequest + * @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.GetCellInfoRequest} GetCellInfoRequest + * @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 */ - GetCellInfoRequest.decode = function decode(reader, length) { + PlannedReparentShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardRequest(); while (reader.pos < end) { var 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: + 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; default: reader.skipType(tag & 7); @@ -53335,107 +61352,159 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellInfoRequest 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.GetCellInfoRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest + * @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 */ - GetCellInfoRequest.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 GetCellInfoRequest message. + * Verifies a PlannedReparentShardRequest message. * @function verify - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.PlannedReparentShardRequest * @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) { + PlannedReparentShardRequest.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.new_primary != null && message.hasOwnProperty("new_primary")) { + var error = $root.topodata.TabletAlias.verify(message.new_primary); + if (error) + return "new_primary." + error; + } + if (message.avoid_primary != null && message.hasOwnProperty("avoid_primary")) { + var 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")) { + var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; + } return null; }; /** - * Creates a GetCellInfoRequest 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.GetCellInfoRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest + * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest */ - GetCellInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoRequest) + PlannedReparentShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.PlannedReparentShardRequest) return object; - var message = new $root.vtctldata.GetCellInfoRequest(); - if (object.cell != null) - message.cell = String(object.cell); + var message = new $root.vtctldata.PlannedReparentShardRequest(); + 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); + } return message; }; /** - * Creates a plain object from a GetCellInfoRequest 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.GetCellInfoRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {vtctldata.GetCellInfoRequest} message GetCellInfoRequest + * @param {vtctldata.PlannedReparentShardRequest} message PlannedReparentShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoRequest.toObject = function toObject(message, options) { + PlannedReparentShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.cell = ""; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.new_primary = null; + object.avoid_primary = null; + 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.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); return object; }; /** - * Converts this GetCellInfoRequest to JSON. + * Converts this PlannedReparentShardRequest to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.PlannedReparentShardRequest * @instance * @returns {Object.} JSON object */ - GetCellInfoRequest.prototype.toJSON = function toJSON() { + PlannedReparentShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellInfoRequest; + return PlannedReparentShardRequest; })(); - vtctldata.GetCellInfoResponse = (function() { + vtctldata.PlannedReparentShardResponse = (function() { /** - * Properties of a GetCellInfoResponse. + * Properties of a PlannedReparentShardResponse. * @memberof vtctldata - * @interface IGetCellInfoResponse - * @property {topodata.ICellInfo|null} [cell_info] GetCellInfoResponse cell_info + * @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 GetCellInfoResponse. + * Constructs a new PlannedReparentShardResponse. * @memberof vtctldata - * @classdesc Represents a GetCellInfoResponse. - * @implements IGetCellInfoResponse + * @classdesc Represents a PlannedReparentShardResponse. + * @implements IPlannedReparentShardResponse * @constructor - * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set + * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set */ - function GetCellInfoResponse(properties) { + function PlannedReparentShardResponse(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53443,75 +61512,117 @@ $root.vtctldata = (function() { } /** - * GetCellInfoResponse cell_info. - * @member {topodata.ICellInfo|null|undefined} cell_info - * @memberof vtctldata.GetCellInfoResponse + * PlannedReparentShardResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.PlannedReparentShardResponse * @instance */ - GetCellInfoResponse.prototype.cell_info = null; + PlannedReparentShardResponse.prototype.keyspace = ""; /** - * Creates a new GetCellInfoResponse instance using the specified properties. + * 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.GetCellInfoResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse instance + * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set + * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse instance */ - GetCellInfoResponse.create = function create(properties) { - return new GetCellInfoResponse(properties); + PlannedReparentShardResponse.create = function create(properties) { + return new PlannedReparentShardResponse(properties); }; /** - * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse 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 */ - GetCellInfoResponse.encode = function encode(message, writer) { + PlannedReparentShardResponse.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.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 (var 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 GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * Encodes the specified PlannedReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse 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 */ - GetCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + PlannedReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer. + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoResponse + * @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.GetCellInfoResponse} GetCellInfoResponse + * @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 */ - GetCellInfoResponse.decode = function decode(reader, length) { + PlannedReparentShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); + 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); @@ -53522,111 +61633,158 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellInfoResponse 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.GetCellInfoResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse + * @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 */ - GetCellInfoResponse.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 GetCellInfoResponse message. + * Verifies a PlannedReparentShardResponse message. * @function verify - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.PlannedReparentShardResponse * @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) { + PlannedReparentShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) { - var error = $root.topodata.CellInfo.verify(message.cell_info); + 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")) { + var error = $root.topodata.TabletAlias.verify(message.promoted_primary); if (error) - return "cell_info." + error; + return "promoted_primary." + error; + } + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.logutil.Event.verify(message.events[i]); + if (error) + return "events." + error; + } } return null; }; /** - * Creates a GetCellInfoResponse 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.GetCellInfoResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse + * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse */ - GetCellInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoResponse) + PlannedReparentShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.PlannedReparentShardResponse) return object; - var 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); + var 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 (var 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 GetCellInfoResponse 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.GetCellInfoResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {vtctldata.GetCellInfoResponse} message GetCellInfoResponse + * @param {vtctldata.PlannedReparentShardResponse} message PlannedReparentShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoResponse.toObject = function toObject(message, options) { + PlannedReparentShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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.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 (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); + } return object; }; /** - * Converts this GetCellInfoResponse to JSON. + * Converts this PlannedReparentShardResponse to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.PlannedReparentShardResponse * @instance * @returns {Object.} JSON object */ - GetCellInfoResponse.prototype.toJSON = function toJSON() { + PlannedReparentShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellInfoResponse; + return PlannedReparentShardResponse; })(); - vtctldata.GetCellsAliasesRequest = (function() { + vtctldata.RemoveKeyspaceCellRequest = (function() { /** - * Properties of a GetCellsAliasesRequest. + * Properties of a RemoveKeyspaceCellRequest. * @memberof vtctldata - * @interface IGetCellsAliasesRequest + * @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 GetCellsAliasesRequest. + * Constructs a new RemoveKeyspaceCellRequest. * @memberof vtctldata - * @classdesc Represents a GetCellsAliasesRequest. - * @implements IGetCellsAliasesRequest + * @classdesc Represents a RemoveKeyspaceCellRequest. + * @implements IRemoveKeyspaceCellRequest * @constructor - * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set + * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set */ - function GetCellsAliasesRequest(properties) { + function RemoveKeyspaceCellRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53634,63 +61792,115 @@ $root.vtctldata = (function() { } /** - * Creates a new GetCellsAliasesRequest instance using the specified properties. + * RemoveKeyspaceCellRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @instance + */ + RemoveKeyspaceCellRequest.prototype.keyspace = ""; + + /** + * RemoveKeyspaceCellRequest cell. + * @member {string} cell + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @instance + */ + RemoveKeyspaceCellRequest.prototype.cell = ""; + + /** + * RemoveKeyspaceCellRequest force. + * @member {boolean} force + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @instance + */ + RemoveKeyspaceCellRequest.prototype.force = false; + + /** + * RemoveKeyspaceCellRequest recursive. + * @member {boolean} recursive + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @instance + */ + RemoveKeyspaceCellRequest.prototype.recursive = false; + + /** + * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static - * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest instance + * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set + * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest instance */ - GetCellsAliasesRequest.create = function create(properties) { - return new GetCellsAliasesRequest(properties); + RemoveKeyspaceCellRequest.create = function create(properties) { + return new RemoveKeyspaceCellRequest(properties); }; /** - * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static - * @param {vtctldata.IGetCellsAliasesRequest} message GetCellsAliasesRequest message or plain object to encode + * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellsAliasesRequest.encode = function encode(message, writer) { + 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; }; /** - * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static - * @param {vtctldata.IGetCellsAliasesRequest} message GetCellsAliasesRequest message or plain object to encode + * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellsAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveKeyspaceCellRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellsAliasesRequest + * @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.GetCellsAliasesRequest} GetCellsAliasesRequest + * @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 */ - GetCellsAliasesRequest.decode = function decode(reader, length) { + RemoveKeyspaceCellRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellRequest(); while (reader.pos < end) { var 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; @@ -53700,95 +61910,131 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest + * @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 */ - GetCellsAliasesRequest.decodeDelimited = function decodeDelimited(reader) { + RemoveKeyspaceCellRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellsAliasesRequest message. + * Verifies a RemoveKeyspaceCellRequest message. * @function verify - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @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) { + 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 GetCellsAliasesRequest 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. * @function fromObject - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest + * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest */ - GetCellsAliasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellsAliasesRequest) + RemoveKeyspaceCellRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveKeyspaceCellRequest) return object; - return new $root.vtctldata.GetCellsAliasesRequest(); + var 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 GetCellsAliasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static - * @param {vtctldata.GetCellsAliasesRequest} message GetCellsAliasesRequest + * @param {vtctldata.RemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellsAliasesRequest.toObject = function toObject() { - return {}; + RemoveKeyspaceCellRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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 GetCellsAliasesRequest to JSON. + * Converts this RemoveKeyspaceCellRequest to JSON. * @function toJSON - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @instance * @returns {Object.} JSON object */ - GetCellsAliasesRequest.prototype.toJSON = function toJSON() { + RemoveKeyspaceCellRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellsAliasesRequest; + return RemoveKeyspaceCellRequest; })(); - vtctldata.GetCellsAliasesResponse = (function() { + vtctldata.RemoveKeyspaceCellResponse = (function() { /** - * Properties of a GetCellsAliasesResponse. + * Properties of a RemoveKeyspaceCellResponse. * @memberof vtctldata - * @interface IGetCellsAliasesResponse - * @property {Object.|null} [aliases] GetCellsAliasesResponse aliases + * @interface IRemoveKeyspaceCellResponse */ /** - * Constructs a new GetCellsAliasesResponse. + * Constructs a new RemoveKeyspaceCellResponse. * @memberof vtctldata - * @classdesc Represents a GetCellsAliasesResponse. - * @implements IGetCellsAliasesResponse + * @classdesc Represents a RemoveKeyspaceCellResponse. + * @implements IRemoveKeyspaceCellResponse * @constructor - * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set + * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set */ - function GetCellsAliasesResponse(properties) { - this.aliases = {}; + function RemoveKeyspaceCellResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53796,98 +62042,63 @@ $root.vtctldata = (function() { } /** - * GetCellsAliasesResponse aliases. - * @member {Object.} aliases - * @memberof vtctldata.GetCellsAliasesResponse - * @instance - */ - GetCellsAliasesResponse.prototype.aliases = $util.emptyObject; - - /** - * Creates a new GetCellsAliasesResponse instance using the specified properties. + * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static - * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse instance + * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set + * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse instance */ - GetCellsAliasesResponse.create = function create(properties) { - return new GetCellsAliasesResponse(properties); + RemoveKeyspaceCellResponse.create = function create(properties) { + return new RemoveKeyspaceCellResponse(properties); }; /** - * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static - * @param {vtctldata.IGetCellsAliasesResponse} message GetCellsAliasesResponse 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 */ - GetCellsAliasesResponse.encode = function encode(message, writer) { + RemoveKeyspaceCellResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.aliases != null && Object.hasOwnProperty.call(message, "aliases")) - for (var 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 GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * Encodes the specified RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static - * @param {vtctldata.IGetCellsAliasesResponse} message GetCellsAliasesResponse 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 */ - GetCellsAliasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + RemoveKeyspaceCellResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellsAliasesResponse + * @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.GetCellsAliasesResponse} GetCellsAliasesResponse + * @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 */ - GetCellsAliasesResponse.decode = function decode(reader, length) { + RemoveKeyspaceCellResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesResponse(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (message.aliases === $util.emptyObject) - message.aliases = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.topodata.CellsAlias.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.aliases[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -53897,125 +62108,98 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellsAliasesResponse 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.GetCellsAliasesResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse + * @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 */ - GetCellsAliasesResponse.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 GetCellsAliasesResponse message. + * Verifies a RemoveKeyspaceCellResponse message. * @function verify - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @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) { + RemoveKeyspaceCellResponse.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"; - var key = Object.keys(message.aliases); - for (var i = 0; i < key.length; ++i) { - var error = $root.topodata.CellsAlias.verify(message.aliases[key[i]]); - if (error) - return "aliases." + error; - } - } return null; }; /** - * Creates a GetCellsAliasesResponse 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.GetCellsAliasesResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse + * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse */ - GetCellsAliasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellsAliasesResponse) + RemoveKeyspaceCellResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveKeyspaceCellResponse) return object; - var message = new $root.vtctldata.GetCellsAliasesResponse(); - if (object.aliases) { - if (typeof object.aliases !== "object") - throw TypeError(".vtctldata.GetCellsAliasesResponse.aliases: object expected"); - message.aliases = {}; - for (var 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; + return new $root.vtctldata.RemoveKeyspaceCellResponse(); }; /** - * Creates a plain object from a GetCellsAliasesResponse 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.GetCellsAliasesResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static - * @param {vtctldata.GetCellsAliasesResponse} message GetCellsAliasesResponse + * @param {vtctldata.RemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellsAliasesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.aliases = {}; - var keys2; - if (message.aliases && (keys2 = Object.keys(message.aliases)).length) { - object.aliases = {}; - for (var j = 0; j < keys2.length; ++j) - object.aliases[keys2[j]] = $root.topodata.CellsAlias.toObject(message.aliases[keys2[j]], options); - } - return object; + RemoveKeyspaceCellResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetCellsAliasesResponse to JSON. + * Converts this RemoveKeyspaceCellResponse to JSON. * @function toJSON - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @instance * @returns {Object.} JSON object */ - GetCellsAliasesResponse.prototype.toJSON = function toJSON() { + RemoveKeyspaceCellResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellsAliasesResponse; + return RemoveKeyspaceCellResponse; })(); - vtctldata.GetKeyspacesRequest = (function() { + vtctldata.RemoveShardCellRequest = (function() { /** - * Properties of a GetKeyspacesRequest. + * Properties of a RemoveShardCellRequest. * @memberof vtctldata - * @interface IGetKeyspacesRequest + * @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 GetKeyspacesRequest. + * Constructs a new RemoveShardCellRequest. * @memberof vtctldata - * @classdesc Represents a GetKeyspacesRequest. - * @implements IGetKeyspacesRequest + * @classdesc Represents a RemoveShardCellRequest. + * @implements IRemoveShardCellRequest * @constructor - * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set + * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set */ - function GetKeyspacesRequest(properties) { + function RemoveShardCellRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54023,63 +62207,128 @@ $root.vtctldata = (function() { } /** - * Creates a new GetKeyspacesRequest instance using the specified properties. + * RemoveShardCellRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.RemoveShardCellRequest + * @instance + */ + RemoveShardCellRequest.prototype.keyspace = ""; + + /** + * RemoveShardCellRequest shard_name. + * @member {string} shard_name + * @memberof vtctldata.RemoveShardCellRequest + * @instance + */ + RemoveShardCellRequest.prototype.shard_name = ""; + + /** + * 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.GetKeyspacesRequest + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest instance + * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set + * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest instance */ - GetKeyspacesRequest.create = function create(properties) { - return new GetKeyspacesRequest(properties); + RemoveShardCellRequest.create = function create(properties) { + return new RemoveShardCellRequest(properties); }; /** - * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest 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 */ - GetKeyspacesRequest.encode = function encode(message, writer) { + RemoveShardCellRequest.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.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 GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * Encodes the specified RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest 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 */ - GetKeyspacesRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveShardCellRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer. + * Decodes a RemoveShardCellRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspacesRequest + * @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.GetKeyspacesRequest} GetKeyspacesRequest + * @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 */ - GetKeyspacesRequest.decode = function decode(reader, length) { + RemoveShardCellRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellRequest(); while (reader.pos < end) { var 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; @@ -54089,95 +62338,139 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetKeyspacesRequest 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.GetKeyspacesRequest + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest + * @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 */ - GetKeyspacesRequest.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 GetKeyspacesRequest message. + * Verifies a RemoveShardCellRequest message. * @function verify - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.RemoveShardCellRequest * @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) { + 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 GetKeyspacesRequest 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.GetKeyspacesRequest + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest + * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest */ - GetKeyspacesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspacesRequest) + RemoveShardCellRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveShardCellRequest) return object; - return new $root.vtctldata.GetKeyspacesRequest(); + var 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 GetKeyspacesRequest 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.GetKeyspacesRequest + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {vtctldata.GetKeyspacesRequest} message GetKeyspacesRequest + * @param {vtctldata.RemoveShardCellRequest} message RemoveShardCellRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspacesRequest.toObject = function toObject() { - return {}; + RemoveShardCellRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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 GetKeyspacesRequest to JSON. + * Converts this RemoveShardCellRequest to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.RemoveShardCellRequest * @instance * @returns {Object.} JSON object */ - GetKeyspacesRequest.prototype.toJSON = function toJSON() { + RemoveShardCellRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetKeyspacesRequest; + return RemoveShardCellRequest; })(); - vtctldata.GetKeyspacesResponse = (function() { + vtctldata.RemoveShardCellResponse = (function() { /** - * Properties of a GetKeyspacesResponse. + * Properties of a RemoveShardCellResponse. * @memberof vtctldata - * @interface IGetKeyspacesResponse - * @property {Array.|null} [keyspaces] GetKeyspacesResponse keyspaces + * @interface IRemoveShardCellResponse */ /** - * Constructs a new GetKeyspacesResponse. + * Constructs a new RemoveShardCellResponse. * @memberof vtctldata - * @classdesc Represents a GetKeyspacesResponse. - * @implements IGetKeyspacesResponse + * @classdesc Represents a RemoveShardCellResponse. + * @implements IRemoveShardCellResponse * @constructor - * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set + * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set */ - function GetKeyspacesResponse(properties) { - this.keyspaces = []; + function RemoveShardCellResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54185,79 +62478,63 @@ $root.vtctldata = (function() { } /** - * GetKeyspacesResponse keyspaces. - * @member {Array.} keyspaces - * @memberof vtctldata.GetKeyspacesResponse - * @instance - */ - GetKeyspacesResponse.prototype.keyspaces = $util.emptyArray; - - /** - * Creates a new GetKeyspacesResponse instance using the specified properties. + * Creates a new RemoveShardCellResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse instance + * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set + * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse instance */ - GetKeyspacesResponse.create = function create(properties) { - return new GetKeyspacesResponse(properties); + RemoveShardCellResponse.create = function create(properties) { + return new RemoveShardCellResponse(properties); }; /** - * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse 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 */ - GetKeyspacesResponse.encode = function encode(message, writer) { + RemoveShardCellResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspaces != null && message.keyspaces.length) - for (var 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 GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse 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 */ - GetKeyspacesResponse.encodeDelimited = function encodeDelimited(message, writer) { + RemoveShardCellResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer. + * Decodes a RemoveShardCellResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspacesResponse + * @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.GetKeyspacesResponse} GetKeyspacesResponse + * @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 */ - GetKeyspacesResponse.decode = function decode(reader, length) { + RemoveShardCellResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellResponse(); while (reader.pos < end) { var 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())); - break; default: reader.skipType(tag & 7); break; @@ -54267,124 +62544,94 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetKeyspacesResponse 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.GetKeyspacesResponse + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse + * @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 */ - GetKeyspacesResponse.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 GetKeyspacesResponse message. + * Verifies a RemoveShardCellResponse message. * @function verify - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.RemoveShardCellResponse * @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) { + RemoveShardCellResponse.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 (var i = 0; i < message.keyspaces.length; ++i) { - var error = $root.vtctldata.Keyspace.verify(message.keyspaces[i]); - if (error) - return "keyspaces." + error; - } - } return null; }; /** - * Creates a GetKeyspacesResponse 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.GetKeyspacesResponse + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse + * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse */ - GetKeyspacesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspacesResponse) + RemoveShardCellResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveShardCellResponse) return object; - var message = new $root.vtctldata.GetKeyspacesResponse(); - if (object.keyspaces) { - if (!Array.isArray(object.keyspaces)) - throw TypeError(".vtctldata.GetKeyspacesResponse.keyspaces: array expected"); - message.keyspaces = []; - for (var 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; + return new $root.vtctldata.RemoveShardCellResponse(); }; /** - * Creates a plain object from a GetKeyspacesResponse 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.GetKeyspacesResponse + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {vtctldata.GetKeyspacesResponse} message GetKeyspacesResponse + * @param {vtctldata.RemoveShardCellResponse} message RemoveShardCellResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspacesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.keyspaces = []; - if (message.keyspaces && message.keyspaces.length) { - object.keyspaces = []; - for (var j = 0; j < message.keyspaces.length; ++j) - object.keyspaces[j] = $root.vtctldata.Keyspace.toObject(message.keyspaces[j], options); - } - return object; + RemoveShardCellResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetKeyspacesResponse to JSON. + * Converts this RemoveShardCellResponse to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.RemoveShardCellResponse * @instance * @returns {Object.} JSON object */ - GetKeyspacesResponse.prototype.toJSON = function toJSON() { + RemoveShardCellResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetKeyspacesResponse; + return RemoveShardCellResponse; })(); - vtctldata.GetKeyspaceRequest = (function() { + vtctldata.ReparentTabletRequest = (function() { /** - * Properties of a GetKeyspaceRequest. + * Properties of a ReparentTabletRequest. * @memberof vtctldata - * @interface IGetKeyspaceRequest - * @property {string|null} [keyspace] GetKeyspaceRequest keyspace + * @interface IReparentTabletRequest + * @property {topodata.ITabletAlias|null} [tablet] ReparentTabletRequest tablet */ /** - * Constructs a new GetKeyspaceRequest. + * Constructs a new ReparentTabletRequest. * @memberof vtctldata - * @classdesc Represents a GetKeyspaceRequest. - * @implements IGetKeyspaceRequest + * @classdesc Represents a ReparentTabletRequest. + * @implements IReparentTabletRequest * @constructor - * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set */ - function GetKeyspaceRequest(properties) { + function ReparentTabletRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54392,75 +62639,75 @@ $root.vtctldata = (function() { } /** - * GetKeyspaceRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetKeyspaceRequest + * ReparentTabletRequest tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.ReparentTabletRequest * @instance */ - GetKeyspaceRequest.prototype.keyspace = ""; + ReparentTabletRequest.prototype.tablet = null; /** - * Creates a new GetKeyspaceRequest instance using the specified properties. + * Creates a new ReparentTabletRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest instance + * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set + * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest instance */ - GetKeyspaceRequest.create = function create(properties) { - return new GetKeyspaceRequest(properties); + ReparentTabletRequest.create = function create(properties) { + return new ReparentTabletRequest(properties); }; /** - * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest 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 */ - GetKeyspaceRequest.encode = function encode(message, writer) { + ReparentTabletRequest.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.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 GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * Encodes the specified ReparentTabletRequest message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest 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 */ - GetKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReparentTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer. + * Decodes a ReparentTabletRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspaceRequest + * @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.GetKeyspaceRequest} GetKeyspaceRequest + * @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 */ - GetKeyspaceRequest.decode = function decode(reader, length) { + ReparentTabletRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -54471,107 +62718,114 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetKeyspaceRequest 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.GetKeyspaceRequest + * @memberof vtctldata.ReparentTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest + * @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 */ - GetKeyspaceRequest.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 GetKeyspaceRequest message. + * Verifies a ReparentTabletRequest message. * @function verify - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.ReparentTabletRequest * @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) { + ReparentTabletRequest.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.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.TabletAlias.verify(message.tablet); + if (error) + return "tablet." + error; + } return null; }; /** - * Creates a GetKeyspaceRequest 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.GetKeyspaceRequest + * @memberof vtctldata.ReparentTabletRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest + * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest */ - GetKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspaceRequest) + ReparentTabletRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReparentTabletRequest) return object; - var message = new $root.vtctldata.GetKeyspaceRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); + var 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 GetKeyspaceRequest 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.GetKeyspaceRequest + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {vtctldata.GetKeyspaceRequest} message GetKeyspaceRequest + * @param {vtctldata.ReparentTabletRequest} message ReparentTabletRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspaceRequest.toObject = function toObject(message, options) { + ReparentTabletRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; + object.tablet = null; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); return object; }; /** - * Converts this GetKeyspaceRequest to JSON. + * Converts this ReparentTabletRequest to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.ReparentTabletRequest * @instance * @returns {Object.} JSON object */ - GetKeyspaceRequest.prototype.toJSON = function toJSON() { + ReparentTabletRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetKeyspaceRequest; + return ReparentTabletRequest; })(); - vtctldata.GetKeyspaceResponse = (function() { + vtctldata.ReparentTabletResponse = (function() { /** - * Properties of a GetKeyspaceResponse. + * Properties of a ReparentTabletResponse. * @memberof vtctldata - * @interface IGetKeyspaceResponse - * @property {vtctldata.IKeyspace|null} [keyspace] GetKeyspaceResponse keyspace + * @interface IReparentTabletResponse + * @property {string|null} [keyspace] ReparentTabletResponse keyspace + * @property {string|null} [shard] ReparentTabletResponse shard + * @property {topodata.ITabletAlias|null} [primary] ReparentTabletResponse primary */ /** - * Constructs a new GetKeyspaceResponse. + * Constructs a new ReparentTabletResponse. * @memberof vtctldata - * @classdesc Represents a GetKeyspaceResponse. - * @implements IGetKeyspaceResponse + * @classdesc Represents a ReparentTabletResponse. + * @implements IReparentTabletResponse * @constructor - * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set */ - function GetKeyspaceResponse(properties) { + function ReparentTabletResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54579,75 +62833,101 @@ $root.vtctldata = (function() { } /** - * GetKeyspaceResponse keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.GetKeyspaceResponse + * ReparentTabletResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.ReparentTabletResponse * @instance */ - GetKeyspaceResponse.prototype.keyspace = null; + ReparentTabletResponse.prototype.keyspace = ""; /** - * Creates a new GetKeyspaceResponse instance using the specified properties. + * ReparentTabletResponse shard. + * @member {string} shard + * @memberof vtctldata.ReparentTabletResponse + * @instance + */ + ReparentTabletResponse.prototype.shard = ""; + + /** + * ReparentTabletResponse primary. + * @member {topodata.ITabletAlias|null|undefined} primary + * @memberof vtctldata.ReparentTabletResponse + * @instance + */ + ReparentTabletResponse.prototype.primary = null; + + /** + * Creates a new ReparentTabletResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse instance + * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set + * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse instance */ - GetKeyspaceResponse.create = function create(properties) { - return new GetKeyspaceResponse(properties); + ReparentTabletResponse.create = function create(properties) { + return new ReparentTabletResponse(properties); }; /** - * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse 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 */ - GetKeyspaceResponse.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")) - $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * Encodes the specified ReparentTabletResponse message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse 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 */ - GetKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReparentTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer. + * Decodes a ReparentTabletResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspaceResponse + * @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.GetKeyspaceResponse} GetKeyspaceResponse + * @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 */ - GetKeyspaceResponse.decode = function decode(reader, length) { + ReparentTabletResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + case 2: + message.shard = reader.string(); + break; + case 3: + message.primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -54658,119 +62938,129 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetKeyspaceResponse 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.GetKeyspaceResponse + * @memberof vtctldata.ReparentTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse + * @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 */ - GetKeyspaceResponse.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 GetKeyspaceResponse message. + * Verifies a ReparentTabletResponse message. * @function verify - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.ReparentTabletResponse * @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) { + ReparentTabletResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.vtctldata.Keyspace.verify(message.keyspace); + 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 != null && message.hasOwnProperty("primary")) { + var error = $root.topodata.TabletAlias.verify(message.primary); if (error) - return "keyspace." + error; + return "primary." + error; } return null; }; /** - * Creates a GetKeyspaceResponse 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.GetKeyspaceResponse + * @memberof vtctldata.ReparentTabletResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse + * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse */ - GetKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspaceResponse) + ReparentTabletResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReparentTabletResponse) return object; - var 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); + var 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.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 GetKeyspaceResponse 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.GetKeyspaceResponse + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {vtctldata.GetKeyspaceResponse} message GetKeyspaceResponse + * @param {vtctldata.ReparentTabletResponse} message ReparentTabletResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspaceResponse.toObject = function toObject(message, options) { + ReparentTabletResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.keyspace = null; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.primary = null; + } if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); + 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 GetKeyspaceResponse to JSON. + * Converts this ReparentTabletResponse to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.ReparentTabletResponse * @instance * @returns {Object.} JSON object */ - GetKeyspaceResponse.prototype.toJSON = function toJSON() { + ReparentTabletResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetKeyspaceResponse; + return ReparentTabletResponse; })(); - vtctldata.GetSchemaRequest = (function() { + vtctldata.TabletExternallyReparentedRequest = (function() { /** - * Properties of a GetSchemaRequest. + * Properties of a TabletExternallyReparentedRequest. * @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 + * @interface ITabletExternallyReparentedRequest + * @property {topodata.ITabletAlias|null} [tablet] TabletExternallyReparentedRequest tablet */ /** - * Constructs a new GetSchemaRequest. + * Constructs a new TabletExternallyReparentedRequest. * @memberof vtctldata - * @classdesc Represents a GetSchemaRequest. - * @implements IGetSchemaRequest + * @classdesc Represents a TabletExternallyReparentedRequest. + * @implements ITabletExternallyReparentedRequest * @constructor - * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set + * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set */ - function GetSchemaRequest(properties) { - this.tables = []; - this.exclude_tables = []; + function TabletExternallyReparentedRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54778,146 +63068,75 @@ $root.vtctldata = (function() { } /** - * 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 - * @instance - */ - GetSchemaRequest.prototype.tables = $util.emptyArray; - - /** - * GetSchemaRequest exclude_tables. - * @member {Array.} exclude_tables - * @memberof vtctldata.GetSchemaRequest - * @instance - */ - GetSchemaRequest.prototype.exclude_tables = $util.emptyArray; - - /** - * 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 + * TabletExternallyReparentedRequest tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.TabletExternallyReparentedRequest * @instance */ - GetSchemaRequest.prototype.table_sizes_only = false; + TabletExternallyReparentedRequest.prototype.tablet = null; /** - * Creates a new GetSchemaRequest instance using the specified properties. + * Creates a new TabletExternallyReparentedRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest instance + * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set + * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest instance */ - GetSchemaRequest.create = function create(properties) { - return new GetSchemaRequest(properties); + TabletExternallyReparentedRequest.create = function create(properties) { + return new TabletExternallyReparentedRequest(properties); }; /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest 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 */ - GetSchemaRequest.encode = function encode(message, writer) { + TabletExternallyReparentedRequest.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 (var 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 (var 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.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 GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedRequest message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest 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 */ - GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + TabletExternallyReparentedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. - * @function decode - * @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.GetSchemaRequest} GetSchemaRequest - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.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; - case 5: - message.table_names_only = reader.bool(); - break; - case 6: - message.table_sizes_only = reader.bool(); + /** + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. + * @function decode + * @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.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -54928,179 +63147,115 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetSchemaRequest 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.GetSchemaRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest + * @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 */ - GetSchemaRequest.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 GetSchemaRequest message. + * Verifies a TabletExternallyReparentedRequest message. * @function verify - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @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) { + TabletExternallyReparentedRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (message.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.TabletAlias.verify(message.tablet); if (error) - return "tablet_alias." + error; - } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (var 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 (var i = 0; i < message.exclude_tables.length; ++i) - if (!$util.isString(message.exclude_tables[i])) - return "exclude_tables: string[] expected"; + return "tablet." + 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"; return null; }; /** - * Creates a GetSchemaRequest 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.GetSchemaRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest + * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest */ - GetSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSchemaRequest) + TabletExternallyReparentedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TabletExternallyReparentedRequest) return object; - var 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 (var 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 (var i = 0; i < object.exclude_tables.length; ++i) - message.exclude_tables[i] = String(object.exclude_tables[i]); + var 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); } - 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); return message; }; /** - * Creates a plain object from a GetSchemaRequest 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.GetSchemaRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {vtctldata.GetSchemaRequest} message GetSchemaRequest + * @param {vtctldata.TabletExternallyReparentedRequest} message TabletExternallyReparentedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaRequest.toObject = function toObject(message, options) { + TabletExternallyReparentedRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.tables = []; - object.exclude_tables = []; - } - if (options.defaults) { - object.tablet_alias = null; - object.include_views = false; - object.table_names_only = false; - object.table_sizes_only = false; - } - 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 (var 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 (var 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 (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 GetSchemaRequest to JSON. + * Converts this TabletExternallyReparentedRequest to JSON. * @function toJSON - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @instance * @returns {Object.} JSON object */ - GetSchemaRequest.prototype.toJSON = function toJSON() { + TabletExternallyReparentedRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSchemaRequest; + return TabletExternallyReparentedRequest; })(); - vtctldata.GetSchemaResponse = (function() { + vtctldata.TabletExternallyReparentedResponse = (function() { /** - * Properties of a GetSchemaResponse. + * Properties of a TabletExternallyReparentedResponse. * @memberof vtctldata - * @interface IGetSchemaResponse - * @property {tabletmanagerdata.ISchemaDefinition|null} [schema] GetSchemaResponse schema + * @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 GetSchemaResponse. + * Constructs a new TabletExternallyReparentedResponse. * @memberof vtctldata - * @classdesc Represents a GetSchemaResponse. - * @implements IGetSchemaResponse + * @classdesc Represents a TabletExternallyReparentedResponse. + * @implements ITabletExternallyReparentedResponse * @constructor - * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set + * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set */ - function GetSchemaResponse(properties) { + function TabletExternallyReparentedResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55108,75 +63263,114 @@ $root.vtctldata = (function() { } /** - * GetSchemaResponse schema. - * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} schema - * @memberof vtctldata.GetSchemaResponse + * TabletExternallyReparentedResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.TabletExternallyReparentedResponse * @instance */ - GetSchemaResponse.prototype.schema = null; + TabletExternallyReparentedResponse.prototype.keyspace = ""; /** - * Creates a new GetSchemaResponse 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.GetSchemaResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse instance + * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set + * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse instance */ - GetSchemaResponse.create = function create(properties) { - return new GetSchemaResponse(properties); + TabletExternallyReparentedResponse.create = function create(properties) { + return new TabletExternallyReparentedResponse(properties); }; /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse 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 */ - GetSchemaResponse.encode = function encode(message, writer) { + TabletExternallyReparentedResponse.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.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(); return writer; }; /** - * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedResponse message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse 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 */ - GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + TabletExternallyReparentedResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSchemaResponse + * @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.GetSchemaResponse} GetSchemaResponse + * @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 */ - GetSchemaResponse.decode = function decode(reader, length) { + TabletExternallyReparentedResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.schema = $root.tabletmanagerdata.SchemaDefinition.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: reader.skipType(tag & 7); @@ -55187,113 +63381,156 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetSchemaResponse 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.GetSchemaResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse + * @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 */ - GetSchemaResponse.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 GetSchemaResponse message. + * Verifies a TabletExternallyReparentedResponse message. * @function verify - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @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) { + TabletExternallyReparentedResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.schema != null && message.hasOwnProperty("schema")) { - var error = $root.tabletmanagerdata.SchemaDefinition.verify(message.schema); + 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")) { + var error = $root.topodata.TabletAlias.verify(message.new_primary); if (error) - return "schema." + error; + return "new_primary." + error; + } + if (message.old_primary != null && message.hasOwnProperty("old_primary")) { + var error = $root.topodata.TabletAlias.verify(message.old_primary); + if (error) + return "old_primary." + error; } return null; }; /** - * Creates a GetSchemaResponse 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.GetSchemaResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse + * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse */ - GetSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSchemaResponse) + TabletExternallyReparentedResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TabletExternallyReparentedResponse) return object; - var 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); + var 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 GetSchemaResponse 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.GetSchemaResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {vtctldata.GetSchemaResponse} message GetSchemaResponse + * @param {vtctldata.TabletExternallyReparentedResponse} message TabletExternallyReparentedResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaResponse.toObject = function toObject(message, options) { + TabletExternallyReparentedResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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.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 = 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 GetSchemaResponse to JSON. + * Converts this TabletExternallyReparentedResponse to JSON. * @function toJSON - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @instance * @returns {Object.} JSON object */ - GetSchemaResponse.prototype.toJSON = function toJSON() { + TabletExternallyReparentedResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSchemaResponse; + return TabletExternallyReparentedResponse; })(); - vtctldata.GetShardRequest = (function() { + return vtctldata; +})(); + +$root.binlogdata = (function() { + + /** + * Namespace binlogdata. + * @exports binlogdata + * @namespace + */ + var binlogdata = {}; + + binlogdata.Charset = (function() { /** - * Properties of a GetShardRequest. - * @memberof vtctldata - * @interface IGetShardRequest - * @property {string|null} [keyspace] GetShardRequest keyspace - * @property {string|null} [shard_name] GetShardRequest shard_name + * 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 */ /** - * Constructs a new GetShardRequest. - * @memberof vtctldata - * @classdesc Represents a GetShardRequest. - * @implements IGetShardRequest + * Constructs a new Charset. + * @memberof binlogdata + * @classdesc Represents a Charset. + * @implements ICharset * @constructor - * @param {vtctldata.IGetShardRequest=} [properties] Properties to set + * @param {binlogdata.ICharset=} [properties] Properties to set */ - function GetShardRequest(properties) { + function Charset(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55301,88 +63538,101 @@ $root.vtctldata = (function() { } /** - * GetShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetShardRequest + * Charset client. + * @member {number} client + * @memberof binlogdata.Charset * @instance */ - GetShardRequest.prototype.keyspace = ""; + Charset.prototype.client = 0; /** - * GetShardRequest shard_name. - * @member {string} shard_name - * @memberof vtctldata.GetShardRequest + * Charset conn. + * @member {number} conn + * @memberof binlogdata.Charset * @instance */ - GetShardRequest.prototype.shard_name = ""; + Charset.prototype.conn = 0; /** - * Creates a new GetShardRequest instance using the specified properties. + * Charset server. + * @member {number} server + * @memberof binlogdata.Charset + * @instance + */ + Charset.prototype.server = 0; + + /** + * Creates a new Charset instance using the specified properties. * @function create - * @memberof vtctldata.GetShardRequest + * @memberof binlogdata.Charset * @static - * @param {vtctldata.IGetShardRequest=} [properties] Properties to set - * @returns {vtctldata.GetShardRequest} GetShardRequest instance + * @param {binlogdata.ICharset=} [properties] Properties to set + * @returns {binlogdata.Charset} Charset instance */ - GetShardRequest.create = function create(properties) { - return new GetShardRequest(properties); + Charset.create = function create(properties) { + return new Charset(properties); }; /** - * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * Encodes the specified Charset message. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. * @function encode - * @memberof vtctldata.GetShardRequest + * @memberof binlogdata.Charset * @static - * @param {vtctldata.IGetShardRequest} message GetShardRequest 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 */ - GetShardRequest.encode = function encode(message, writer) { + Charset.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.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 GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * Encodes the specified Charset message, length delimited. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetShardRequest + * @memberof binlogdata.Charset * @static - * @param {vtctldata.IGetShardRequest} message GetShardRequest 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 */ - GetShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + Charset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShardRequest message from the specified reader or buffer. + * Decodes a Charset message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetShardRequest + * @memberof binlogdata.Charset * @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 {binlogdata.Charset} Charset * @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) { + Charset.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Charset(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.client = reader.int32(); break; case 2: - message.shard_name = reader.string(); + message.conn = reader.int32(); + break; + case 3: + message.server = reader.int32(); break; default: reader.skipType(tag & 7); @@ -55393,116 +63643,126 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. + * Decodes a Charset message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetShardRequest + * @memberof binlogdata.Charset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetShardRequest} GetShardRequest + * @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 */ - GetShardRequest.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 GetShardRequest message. + * Verifies a Charset message. * @function verify - * @memberof vtctldata.GetShardRequest + * @memberof binlogdata.Charset * @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) { + Charset.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.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 GetShardRequest 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 vtctldata.GetShardRequest + * @memberof binlogdata.Charset * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetShardRequest} GetShardRequest + * @returns {binlogdata.Charset} Charset */ - GetShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetShardRequest) + Charset.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.Charset) return object; - var 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); + var 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 GetShardRequest 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 vtctldata.GetShardRequest + * @memberof binlogdata.Charset * @static - * @param {vtctldata.GetShardRequest} message GetShardRequest + * @param {binlogdata.Charset} message Charset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShardRequest.toObject = function toObject(message, options) { + Charset.toObject = function toObject(message, options) { if (!options) options = {}; var 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; + 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 GetShardRequest to JSON. + * Converts this Charset to JSON. * @function toJSON - * @memberof vtctldata.GetShardRequest + * @memberof binlogdata.Charset * @instance * @returns {Object.} JSON object */ - GetShardRequest.prototype.toJSON = function toJSON() { + Charset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetShardRequest; + return Charset; })(); - vtctldata.GetShardResponse = (function() { + binlogdata.BinlogTransaction = (function() { /** - * Properties of a GetShardResponse. - * @memberof vtctldata - * @interface IGetShardResponse - * @property {vtctldata.IShard|null} [shard] GetShardResponse shard + * 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 GetShardResponse. - * @memberof vtctldata - * @classdesc Represents a GetShardResponse. - * @implements IGetShardResponse + * Constructs a new BinlogTransaction. + * @memberof binlogdata + * @classdesc Represents a BinlogTransaction. + * @implements IBinlogTransaction * @constructor - * @param {vtctldata.IGetShardResponse=} [properties] Properties to set + * @param {binlogdata.IBinlogTransaction=} [properties] Properties to set */ - function GetShardResponse(properties) { + function BinlogTransaction(properties) { + this.statements = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55510,75 +63770,91 @@ $root.vtctldata = (function() { } /** - * GetShardResponse shard. - * @member {vtctldata.IShard|null|undefined} shard - * @memberof vtctldata.GetShardResponse + * BinlogTransaction statements. + * @member {Array.} statements + * @memberof binlogdata.BinlogTransaction * @instance */ - GetShardResponse.prototype.shard = null; + BinlogTransaction.prototype.statements = $util.emptyArray; /** - * Creates a new GetShardResponse instance using the specified properties. + * 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 vtctldata.GetShardResponse + * @memberof binlogdata.BinlogTransaction * @static - * @param {vtctldata.IGetShardResponse=} [properties] Properties to set - * @returns {vtctldata.GetShardResponse} GetShardResponse instance + * @param {binlogdata.IBinlogTransaction=} [properties] Properties to set + * @returns {binlogdata.BinlogTransaction} BinlogTransaction instance */ - GetShardResponse.create = function create(properties) { - return new GetShardResponse(properties); + BinlogTransaction.create = function create(properties) { + return new BinlogTransaction(properties); }; /** - * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * Encodes the specified BinlogTransaction message. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. * @function encode - * @memberof vtctldata.GetShardResponse + * @memberof binlogdata.BinlogTransaction * @static - * @param {vtctldata.IGetShardResponse} message GetShardResponse 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 */ - GetShardResponse.encode = function encode(message, writer) { + BinlogTransaction.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.statements != null && message.statements.length) + for (var 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 GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * Encodes the specified BinlogTransaction message, length delimited. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetShardResponse + * @memberof binlogdata.BinlogTransaction * @static - * @param {vtctldata.IGetShardResponse} message GetShardResponse 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 */ - GetShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + BinlogTransaction.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShardResponse message from the specified reader or buffer. + * Decodes a BinlogTransaction message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetShardResponse + * @memberof binlogdata.BinlogTransaction * @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 {binlogdata.BinlogTransaction} BinlogTransaction * @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) { + BinlogTransaction.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogTransaction(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.shard = $root.vtctldata.Shard.decode(reader, reader.uint32()); + if (!(message.statements && message.statements.length)) + message.statements = []; + message.statements.push($root.binlogdata.BinlogTransaction.Statement.decode(reader, reader.uint32())); + break; + case 4: + message.event_token = $root.query.EventToken.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -55589,299 +63865,469 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. + * Decodes a BinlogTransaction message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetShardResponse + * @memberof binlogdata.BinlogTransaction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetShardResponse} GetShardResponse + * @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 */ - GetShardResponse.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 GetShardResponse message. + * Verifies a BinlogTransaction message. * @function verify - * @memberof vtctldata.GetShardResponse + * @memberof binlogdata.BinlogTransaction * @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) { + BinlogTransaction.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard != null && message.hasOwnProperty("shard")) { - var error = $root.vtctldata.Shard.verify(message.shard); + if (message.statements != null && message.hasOwnProperty("statements")) { + if (!Array.isArray(message.statements)) + return "statements: array expected"; + for (var i = 0; i < message.statements.length; ++i) { + var error = $root.binlogdata.BinlogTransaction.Statement.verify(message.statements[i]); + if (error) + return "statements." + error; + } + } + if (message.event_token != null && message.hasOwnProperty("event_token")) { + var error = $root.query.EventToken.verify(message.event_token); if (error) - return "shard." + error; + return "event_token." + error; } return null; }; /** - * Creates a GetShardResponse 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 vtctldata.GetShardResponse + * @memberof binlogdata.BinlogTransaction * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetShardResponse} GetShardResponse + * @returns {binlogdata.BinlogTransaction} BinlogTransaction */ - GetShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetShardResponse) + BinlogTransaction.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.BinlogTransaction) return object; - var 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); + var message = new $root.binlogdata.BinlogTransaction(); + if (object.statements) { + if (!Array.isArray(object.statements)) + throw TypeError(".binlogdata.BinlogTransaction.statements: array expected"); + message.statements = []; + for (var 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]); + } + } + 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); } return message; }; /** - * Creates a plain object from a GetShardResponse 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 vtctldata.GetShardResponse + * @memberof binlogdata.BinlogTransaction * @static - * @param {vtctldata.GetShardResponse} message GetShardResponse + * @param {binlogdata.BinlogTransaction} message BinlogTransaction * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShardResponse.toObject = function toObject(message, options) { + BinlogTransaction.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.statements = []; if (options.defaults) - object.shard = null; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = $root.vtctldata.Shard.toObject(message.shard, options); + object.event_token = null; + if (message.statements && message.statements.length) { + object.statements = []; + for (var j = 0; j < message.statements.length; ++j) + object.statements[j] = $root.binlogdata.BinlogTransaction.Statement.toObject(message.statements[j], options); + } + if (message.event_token != null && message.hasOwnProperty("event_token")) + object.event_token = $root.query.EventToken.toObject(message.event_token, options); return object; }; /** - * Converts this GetShardResponse to JSON. + * Converts this BinlogTransaction to JSON. * @function toJSON - * @memberof vtctldata.GetShardResponse + * @memberof binlogdata.BinlogTransaction * @instance * @returns {Object.} JSON object */ - GetShardResponse.prototype.toJSON = function toJSON() { + BinlogTransaction.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetShardResponse; - })(); + BinlogTransaction.Statement = (function() { - vtctldata.GetSrvVSchemaRequest = (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 GetSrvVSchemaRequest. - * @memberof vtctldata - * @interface IGetSrvVSchemaRequest - * @property {string|null} [cell] GetSrvVSchemaRequest cell - */ + /** + * 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 (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new GetSrvVSchemaRequest. - * @memberof vtctldata - * @classdesc Represents a GetSrvVSchemaRequest. - * @implements IGetSrvVSchemaRequest - * @constructor - * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set - */ - function GetSrvVSchemaRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Statement category. + * @member {binlogdata.BinlogTransaction.Statement.Category} category + * @memberof binlogdata.BinlogTransaction.Statement + * @instance + */ + Statement.prototype.category = 0; - /** - * GetSrvVSchemaRequest cell. - * @member {string} cell - * @memberof vtctldata.GetSrvVSchemaRequest - * @instance - */ - GetSrvVSchemaRequest.prototype.cell = ""; + /** + * Statement charset. + * @member {binlogdata.ICharset|null|undefined} charset + * @memberof binlogdata.BinlogTransaction.Statement + * @instance + */ + Statement.prototype.charset = null; - /** - * Creates a new GetSrvVSchemaRequest instance using the specified properties. - * @function create - * @memberof vtctldata.GetSrvVSchemaRequest - * @static - * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest instance - */ - GetSrvVSchemaRequest.create = function create(properties) { - return new GetSrvVSchemaRequest(properties); - }; + /** + * Statement sql. + * @member {Uint8Array} sql + * @memberof binlogdata.BinlogTransaction.Statement + * @instance + */ + Statement.prototype.sql = $util.newBuffer([]); - /** - * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. - * @function encode - * @memberof vtctldata.GetSrvVSchemaRequest - * @static - * @param {vtctldata.IGetSrvVSchemaRequest} message GetSrvVSchemaRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetSrvVSchemaRequest.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; - }; + /** + * 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); + }; - /** - * Encodes the specified GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.GetSrvVSchemaRequest - * @static - * @param {vtctldata.IGetSrvVSchemaRequest} message GetSrvVSchemaRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetSrvVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogTransaction.Statement(); + while (reader.pos < end) { + var 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; + }; + + /** + * 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()); + }; + + /** + * 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")) { + var 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; + }; - /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. - * @function decode - * @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.GetSrvVSchemaRequest} GetSrvVSchemaRequest - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { + /** + * Creates a Statement message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof 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; + var message = new $root.binlogdata.BinlogTransaction.Statement(); + switch (object.category) { + case "BL_UNRECOGNIZED": + case 0: + message.category = 0; + break; + case "BL_BEGIN": case 1: - message.cell = reader.string(); + message.category = 1; break; - default: - reader.skipType(tag & 7); + 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; } - } - return message; - }; - - /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.GetSrvVSchemaRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - GetSrvVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetSrvVSchemaRequest message. - * @function verify - * @memberof vtctldata.GetSrvVSchemaRequest - * @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) { - 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; - }; + 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) + message.sql = object.sql; + return message; + }; - /** - * Creates a GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.GetSrvVSchemaRequest - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest - */ - GetSrvVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvVSchemaRequest) + /** + * 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 = {}; + var 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] : 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; - var message = new $root.vtctldata.GetSrvVSchemaRequest(); - if (object.cell != null) - message.cell = String(object.cell); - return message; - }; + }; - /** - * Creates a plain object from a GetSrvVSchemaRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.GetSrvVSchemaRequest - * @static - * @param {vtctldata.GetSrvVSchemaRequest} message GetSrvVSchemaRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetSrvVSchemaRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.cell = ""; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; - return object; - }; + /** + * 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); + }; - /** - * Converts this GetSrvVSchemaRequest to JSON. - * @function toJSON - * @memberof vtctldata.GetSrvVSchemaRequest - * @instance - * @returns {Object.} JSON object - */ - GetSrvVSchemaRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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() { + var 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 GetSrvVSchemaRequest; + return Statement; + })(); + + return BinlogTransaction; })(); - vtctldata.GetSrvVSchemaResponse = (function() { + binlogdata.StreamKeyRangeRequest = (function() { /** - * Properties of a GetSrvVSchemaResponse. - * @memberof vtctldata - * @interface IGetSrvVSchemaResponse - * @property {vschema.ISrvVSchema|null} [srv_v_schema] GetSrvVSchemaResponse srv_v_schema + * 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 */ /** - * Constructs a new GetSrvVSchemaResponse. - * @memberof vtctldata - * @classdesc Represents a GetSrvVSchemaResponse. - * @implements IGetSrvVSchemaResponse + * Constructs a new StreamKeyRangeRequest. + * @memberof binlogdata + * @classdesc Represents a StreamKeyRangeRequest. + * @implements IStreamKeyRangeRequest * @constructor - * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set + * @param {binlogdata.IStreamKeyRangeRequest=} [properties] Properties to set */ - function GetSrvVSchemaResponse(properties) { + function StreamKeyRangeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55889,75 +64335,101 @@ $root.vtctldata = (function() { } /** - * GetSrvVSchemaResponse srv_v_schema. - * @member {vschema.ISrvVSchema|null|undefined} srv_v_schema - * @memberof vtctldata.GetSrvVSchemaResponse + * StreamKeyRangeRequest position. + * @member {string} position + * @memberof binlogdata.StreamKeyRangeRequest * @instance */ - GetSrvVSchemaResponse.prototype.srv_v_schema = null; + StreamKeyRangeRequest.prototype.position = ""; /** - * Creates a new GetSrvVSchemaResponse instance using the specified properties. + * 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. * @function create - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof binlogdata.StreamKeyRangeRequest * @static - * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse instance + * @param {binlogdata.IStreamKeyRangeRequest=} [properties] Properties to set + * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest instance */ - GetSrvVSchemaResponse.create = function create(properties) { - return new GetSrvVSchemaResponse(properties); + StreamKeyRangeRequest.create = function create(properties) { + return new StreamKeyRangeRequest(properties); }; /** - * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * Encodes the specified StreamKeyRangeRequest message. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof binlogdata.StreamKeyRangeRequest * @static - * @param {vtctldata.IGetSrvVSchemaResponse} message GetSrvVSchemaResponse 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 */ - GetSrvVSchemaResponse.encode = function encode(message, writer) { + StreamKeyRangeRequest.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.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 GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * Encodes the specified StreamKeyRangeRequest message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof binlogdata.StreamKeyRangeRequest * @static - * @param {vtctldata.IGetSrvVSchemaResponse} message GetSrvVSchemaResponse 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 */ - GetSrvVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamKeyRangeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. + * Decodes a StreamKeyRangeRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof binlogdata.StreamKeyRangeRequest * @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 {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest * @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) { + StreamKeyRangeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamKeyRangeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.srv_v_schema = $root.vschema.SrvVSchema.decode(reader, reader.uint32()); + 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); @@ -55968,112 +64440,134 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamKeyRangeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof binlogdata.StreamKeyRangeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse + * @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 */ - GetSrvVSchemaResponse.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 GetSrvVSchemaResponse message. + * Verifies a StreamKeyRangeRequest message. * @function verify - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof binlogdata.StreamKeyRangeRequest * @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) { + StreamKeyRangeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) { - var error = $root.vschema.SrvVSchema.verify(message.srv_v_schema); + 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")) { + var error = $root.topodata.KeyRange.verify(message.key_range); if (error) - return "srv_v_schema." + error; + return "key_range." + error; + } + if (message.charset != null && message.hasOwnProperty("charset")) { + var error = $root.binlogdata.Charset.verify(message.charset); + if (error) + return "charset." + error; } return null; }; /** - * Creates a GetSrvVSchemaResponse 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 vtctldata.GetSrvVSchemaResponse + * @memberof binlogdata.StreamKeyRangeRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse + * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest */ - GetSrvVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvVSchemaResponse) + StreamKeyRangeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.StreamKeyRangeRequest) return object; - var 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); + var 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; }; /** - * Creates a plain object from a GetSrvVSchemaResponse 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 vtctldata.GetSrvVSchemaResponse + * @memberof binlogdata.StreamKeyRangeRequest * @static - * @param {vtctldata.GetSrvVSchemaResponse} message GetSrvVSchemaResponse + * @param {binlogdata.StreamKeyRangeRequest} message StreamKeyRangeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvVSchemaResponse.toObject = function toObject(message, options) { + StreamKeyRangeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var 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.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; }; /** - * Converts this GetSrvVSchemaResponse to JSON. + * Converts this StreamKeyRangeRequest to JSON. * @function toJSON - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof binlogdata.StreamKeyRangeRequest * @instance * @returns {Object.} JSON object */ - GetSrvVSchemaResponse.prototype.toJSON = function toJSON() { + StreamKeyRangeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSrvVSchemaResponse; + return StreamKeyRangeRequest; })(); - vtctldata.GetTabletRequest = (function() { + binlogdata.StreamKeyRangeResponse = (function() { /** - * Properties of a GetTabletRequest. - * @memberof vtctldata - * @interface IGetTabletRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] GetTabletRequest tablet_alias + * Properties of a StreamKeyRangeResponse. + * @memberof binlogdata + * @interface IStreamKeyRangeResponse + * @property {binlogdata.IBinlogTransaction|null} [binlog_transaction] StreamKeyRangeResponse binlog_transaction */ /** - * Constructs a new GetTabletRequest. - * @memberof vtctldata - * @classdesc Represents a GetTabletRequest. - * @implements IGetTabletRequest + * Constructs a new StreamKeyRangeResponse. + * @memberof binlogdata + * @classdesc Represents a StreamKeyRangeResponse. + * @implements IStreamKeyRangeResponse * @constructor - * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set + * @param {binlogdata.IStreamKeyRangeResponse=} [properties] Properties to set */ - function GetTabletRequest(properties) { + function StreamKeyRangeResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56081,75 +64575,75 @@ $root.vtctldata = (function() { } /** - * GetTabletRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.GetTabletRequest + * StreamKeyRangeResponse binlog_transaction. + * @member {binlogdata.IBinlogTransaction|null|undefined} binlog_transaction + * @memberof binlogdata.StreamKeyRangeResponse * @instance */ - GetTabletRequest.prototype.tablet_alias = null; + StreamKeyRangeResponse.prototype.binlog_transaction = null; /** - * Creates a new GetTabletRequest instance using the specified properties. + * Creates a new StreamKeyRangeResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletRequest + * @memberof binlogdata.StreamKeyRangeResponse * @static - * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set - * @returns {vtctldata.GetTabletRequest} GetTabletRequest instance + * @param {binlogdata.IStreamKeyRangeResponse=} [properties] Properties to set + * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse instance */ - GetTabletRequest.create = function create(properties) { - return new GetTabletRequest(properties); + StreamKeyRangeResponse.create = function create(properties) { + return new StreamKeyRangeResponse(properties); }; /** - * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * Encodes the specified StreamKeyRangeResponse message. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletRequest + * @memberof binlogdata.StreamKeyRangeResponse * @static - * @param {vtctldata.IGetTabletRequest} message GetTabletRequest 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 */ - GetTabletRequest.encode = function encode(message, writer) { + StreamKeyRangeResponse.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.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 GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * Encodes the specified StreamKeyRangeResponse message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletRequest + * @memberof binlogdata.StreamKeyRangeResponse * @static - * @param {vtctldata.IGetTabletRequest} message GetTabletRequest 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 */ - GetTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamKeyRangeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletRequest message from the specified reader or buffer. + * Decodes a StreamKeyRangeResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletRequest + * @memberof binlogdata.StreamKeyRangeResponse * @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 {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse * @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) { + StreamKeyRangeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamKeyRangeResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.binlog_transaction = $root.binlogdata.BinlogTransaction.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56160,112 +64654,115 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamKeyRangeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTabletRequest + * @memberof binlogdata.StreamKeyRangeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletRequest} GetTabletRequest + * @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 */ - GetTabletRequest.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 GetTabletRequest message. + * Verifies a StreamKeyRangeResponse message. * @function verify - * @memberof vtctldata.GetTabletRequest + * @memberof binlogdata.StreamKeyRangeResponse * @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) { + StreamKeyRangeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) { + var error = $root.binlogdata.BinlogTransaction.verify(message.binlog_transaction); if (error) - return "tablet_alias." + error; + return "binlog_transaction." + error; } return null; }; /** - * Creates a GetTabletRequest 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 vtctldata.GetTabletRequest + * @memberof binlogdata.StreamKeyRangeResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletRequest} GetTabletRequest + * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse */ - GetTabletRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletRequest) + StreamKeyRangeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.StreamKeyRangeResponse) return object; - var 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); + var 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 GetTabletRequest 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 vtctldata.GetTabletRequest + * @memberof binlogdata.StreamKeyRangeResponse * @static - * @param {vtctldata.GetTabletRequest} message GetTabletRequest + * @param {binlogdata.StreamKeyRangeResponse} message StreamKeyRangeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletRequest.toObject = function toObject(message, options) { + StreamKeyRangeResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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.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 GetTabletRequest to JSON. + * Converts this StreamKeyRangeResponse to JSON. * @function toJSON - * @memberof vtctldata.GetTabletRequest + * @memberof binlogdata.StreamKeyRangeResponse * @instance * @returns {Object.} JSON object */ - GetTabletRequest.prototype.toJSON = function toJSON() { + StreamKeyRangeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTabletRequest; + return StreamKeyRangeResponse; })(); - vtctldata.GetTabletResponse = (function() { + binlogdata.StreamTablesRequest = (function() { /** - * Properties of a GetTabletResponse. - * @memberof vtctldata - * @interface IGetTabletResponse - * @property {topodata.ITablet|null} [tablet] GetTabletResponse tablet + * 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 */ /** - * Constructs a new GetTabletResponse. - * @memberof vtctldata - * @classdesc Represents a GetTabletResponse. - * @implements IGetTabletResponse + * Constructs a new StreamTablesRequest. + * @memberof binlogdata + * @classdesc Represents a StreamTablesRequest. + * @implements IStreamTablesRequest * @constructor - * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set + * @param {binlogdata.IStreamTablesRequest=} [properties] Properties to set */ - function GetTabletResponse(properties) { + function StreamTablesRequest(properties) { + this.tables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56273,75 +64770,104 @@ $root.vtctldata = (function() { } /** - * GetTabletResponse tablet. - * @member {topodata.ITablet|null|undefined} tablet - * @memberof vtctldata.GetTabletResponse + * StreamTablesRequest position. + * @member {string} position + * @memberof binlogdata.StreamTablesRequest * @instance */ - GetTabletResponse.prototype.tablet = null; + StreamTablesRequest.prototype.position = ""; /** - * Creates a new GetTabletResponse instance using the specified properties. + * StreamTablesRequest tables. + * @member {Array.} tables + * @memberof binlogdata.StreamTablesRequest + * @instance + */ + StreamTablesRequest.prototype.tables = $util.emptyArray; + + /** + * StreamTablesRequest charset. + * @member {binlogdata.ICharset|null|undefined} charset + * @memberof binlogdata.StreamTablesRequest + * @instance + */ + StreamTablesRequest.prototype.charset = null; + + /** + * Creates a new StreamTablesRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletResponse + * @memberof binlogdata.StreamTablesRequest * @static - * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set - * @returns {vtctldata.GetTabletResponse} GetTabletResponse instance + * @param {binlogdata.IStreamTablesRequest=} [properties] Properties to set + * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest instance */ - GetTabletResponse.create = function create(properties) { - return new GetTabletResponse(properties); + StreamTablesRequest.create = function create(properties) { + return new StreamTablesRequest(properties); }; /** - * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * Encodes the specified StreamTablesRequest message. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletResponse + * @memberof binlogdata.StreamTablesRequest * @static - * @param {vtctldata.IGetTabletResponse} message GetTabletResponse 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 */ - GetTabletResponse.encode = function encode(message, writer) { + StreamTablesRequest.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.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 (var 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 GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * Encodes the specified StreamTablesRequest message, length delimited. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletResponse + * @memberof binlogdata.StreamTablesRequest * @static - * @param {vtctldata.IGetTabletResponse} message GetTabletResponse 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 */ - GetTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletResponse message from the specified reader or buffer. + * Decodes a StreamTablesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletResponse + * @memberof binlogdata.StreamTablesRequest * @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 {binlogdata.StreamTablesRequest} StreamTablesRequest * @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) { + StreamTablesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamTablesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + message.position = reader.string(); + break; + case 2: + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); + break; + case 3: + message.charset = $root.binlogdata.Charset.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56352,115 +64878,142 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamTablesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTabletResponse + * @memberof binlogdata.StreamTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletResponse} GetTabletResponse + * @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 */ - GetTabletResponse.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 GetTabletResponse message. + * Verifies a StreamTablesRequest message. * @function verify - * @memberof vtctldata.GetTabletResponse + * @memberof binlogdata.StreamTablesRequest * @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) { + StreamTablesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - var error = $root.topodata.Tablet.verify(message.tablet); + 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 (var i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; + } + if (message.charset != null && message.hasOwnProperty("charset")) { + var error = $root.binlogdata.Charset.verify(message.charset); if (error) - return "tablet." + error; + return "charset." + error; } return null; }; /** - * Creates a GetTabletResponse 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 vtctldata.GetTabletResponse + * @memberof binlogdata.StreamTablesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletResponse} GetTabletResponse + * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest */ - GetTabletResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletResponse) + StreamTablesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.StreamTablesRequest) return object; - var 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); + var 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 (var 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); } return message; }; /** - * Creates a plain object from a GetTabletResponse 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 vtctldata.GetTabletResponse + * @memberof binlogdata.StreamTablesRequest * @static - * @param {vtctldata.GetTabletResponse} message GetTabletResponse + * @param {binlogdata.StreamTablesRequest} message StreamTablesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletResponse.toObject = function toObject(message, options) { + StreamTablesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var 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.arrays || options.defaults) + object.tables = []; + if (options.defaults) { + object.position = ""; + object.charset = null; + } + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.tables && message.tables.length) { + object.tables = []; + for (var j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; + } + if (message.charset != null && message.hasOwnProperty("charset")) + object.charset = $root.binlogdata.Charset.toObject(message.charset, options); return object; }; /** - * Converts this GetTabletResponse to JSON. + * Converts this StreamTablesRequest to JSON. * @function toJSON - * @memberof vtctldata.GetTabletResponse + * @memberof binlogdata.StreamTablesRequest * @instance * @returns {Object.} JSON object */ - GetTabletResponse.prototype.toJSON = function toJSON() { + StreamTablesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTabletResponse; + return StreamTablesRequest; })(); - vtctldata.GetTabletsRequest = (function() { + binlogdata.StreamTablesResponse = (function() { /** - * Properties of a GetTabletsRequest. - * @memberof vtctldata - * @interface IGetTabletsRequest - * @property {string|null} [keyspace] GetTabletsRequest keyspace - * @property {string|null} [shard] GetTabletsRequest shard - * @property {Array.|null} [cells] GetTabletsRequest cells + * Properties of a StreamTablesResponse. + * @memberof binlogdata + * @interface IStreamTablesResponse + * @property {binlogdata.IBinlogTransaction|null} [binlog_transaction] StreamTablesResponse binlog_transaction */ /** - * Constructs a new GetTabletsRequest. - * @memberof vtctldata - * @classdesc Represents a GetTabletsRequest. - * @implements IGetTabletsRequest + * Constructs a new StreamTablesResponse. + * @memberof binlogdata + * @classdesc Represents a StreamTablesResponse. + * @implements IStreamTablesResponse * @constructor - * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set + * @param {binlogdata.IStreamTablesResponse=} [properties] Properties to set */ - function GetTabletsRequest(properties) { - this.cells = []; + function StreamTablesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56468,104 +65021,75 @@ $root.vtctldata = (function() { } /** - * 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 + * StreamTablesResponse binlog_transaction. + * @member {binlogdata.IBinlogTransaction|null|undefined} binlog_transaction + * @memberof binlogdata.StreamTablesResponse * @instance */ - GetTabletsRequest.prototype.cells = $util.emptyArray; + StreamTablesResponse.prototype.binlog_transaction = null; /** - * Creates a new GetTabletsRequest instance using the specified properties. + * Creates a new StreamTablesResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletsRequest + * @memberof binlogdata.StreamTablesResponse * @static - * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest instance + * @param {binlogdata.IStreamTablesResponse=} [properties] Properties to set + * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse instance */ - GetTabletsRequest.create = function create(properties) { - return new GetTabletsRequest(properties); + StreamTablesResponse.create = function create(properties) { + return new StreamTablesResponse(properties); }; /** - * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * Encodes the specified StreamTablesResponse message. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletsRequest + * @memberof binlogdata.StreamTablesResponse * @static - * @param {vtctldata.IGetTabletsRequest} message GetTabletsRequest 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 */ - GetTabletsRequest.encode = function encode(message, writer) { + StreamTablesResponse.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 (var i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); + 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 GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * Encodes the specified StreamTablesResponse message, length delimited. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletsRequest + * @memberof binlogdata.StreamTablesResponse * @static - * @param {vtctldata.IGetTabletsRequest} message GetTabletsRequest 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 */ - GetTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletsRequest message from the specified reader or buffer. + * Decodes a StreamTablesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletsRequest + * @memberof binlogdata.StreamTablesResponse * @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 {binlogdata.StreamTablesResponse} StreamTablesResponse * @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) { + StreamTablesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamTablesResponse(); while (reader.pos < end) { var 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()); + message.binlog_transaction = $root.binlogdata.BinlogTransaction.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56576,138 +65100,113 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamTablesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTabletsRequest + * @memberof binlogdata.StreamTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest + * @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 */ - GetTabletsRequest.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 GetTabletsRequest message. + * Verifies a StreamTablesResponse message. * @function verify - * @memberof vtctldata.GetTabletsRequest + * @memberof binlogdata.StreamTablesResponse * @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) { + StreamTablesResponse.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 (var i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) { + var error = $root.binlogdata.BinlogTransaction.verify(message.binlog_transaction); + if (error) + return "binlog_transaction." + error; } return null; }; /** - * Creates a GetTabletsRequest 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 vtctldata.GetTabletsRequest + * @memberof binlogdata.StreamTablesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest + * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse */ - GetTabletsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletsRequest) + StreamTablesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.StreamTablesResponse) return object; - var 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 (var i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + var 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); } return message; }; /** - * Creates a plain object from a GetTabletsRequest 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 vtctldata.GetTabletsRequest + * @memberof binlogdata.StreamTablesResponse * @static - * @param {vtctldata.GetTabletsRequest} message GetTabletsRequest + * @param {binlogdata.StreamTablesResponse} message StreamTablesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletsRequest.toObject = function toObject(message, options) { + StreamTablesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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 (var j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } + 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 GetTabletsRequest to JSON. + * Converts this StreamTablesResponse to JSON. * @function toJSON - * @memberof vtctldata.GetTabletsRequest + * @memberof binlogdata.StreamTablesResponse * @instance * @returns {Object.} JSON object */ - GetTabletsRequest.prototype.toJSON = function toJSON() { + StreamTablesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTabletsRequest; + return StreamTablesResponse; })(); - vtctldata.GetTabletsResponse = (function() { + binlogdata.Rule = (function() { /** - * Properties of a GetTabletsResponse. - * @memberof vtctldata - * @interface IGetTabletsResponse - * @property {Array.|null} [tablets] GetTabletsResponse tablets + * Properties of a Rule. + * @memberof binlogdata + * @interface IRule + * @property {string|null} [match] Rule match + * @property {string|null} [filter] Rule filter */ /** - * Constructs a new GetTabletsResponse. - * @memberof vtctldata - * @classdesc Represents a GetTabletsResponse. - * @implements IGetTabletsResponse + * Constructs a new Rule. + * @memberof binlogdata + * @classdesc Represents a Rule. + * @implements IRule * @constructor - * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set + * @param {binlogdata.IRule=} [properties] Properties to set */ - function GetTabletsResponse(properties) { - this.tablets = []; + function Rule(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56715,78 +65214,88 @@ $root.vtctldata = (function() { } /** - * GetTabletsResponse tablets. - * @member {Array.} tablets - * @memberof vtctldata.GetTabletsResponse + * Rule match. + * @member {string} match + * @memberof binlogdata.Rule * @instance */ - GetTabletsResponse.prototype.tablets = $util.emptyArray; + Rule.prototype.match = ""; /** - * Creates a new GetTabletsResponse instance using the specified properties. + * Rule filter. + * @member {string} filter + * @memberof binlogdata.Rule + * @instance + */ + Rule.prototype.filter = ""; + + /** + * Creates a new Rule instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletsResponse + * @memberof binlogdata.Rule * @static - * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse instance + * @param {binlogdata.IRule=} [properties] Properties to set + * @returns {binlogdata.Rule} Rule instance */ - GetTabletsResponse.create = function create(properties) { - return new GetTabletsResponse(properties); + Rule.create = function create(properties) { + return new Rule(properties); }; /** - * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * Encodes the specified Rule message. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletsResponse + * @memberof binlogdata.Rule * @static - * @param {vtctldata.IGetTabletsResponse} message GetTabletsResponse 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 */ - GetTabletsResponse.encode = function encode(message, writer) { + Rule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablets != null && message.tablets.length) - for (var 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.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); return writer; }; /** - * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * Encodes the specified Rule message, length delimited. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletsResponse + * @memberof binlogdata.Rule * @static - * @param {vtctldata.IGetTabletsResponse} message GetTabletsResponse 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 */ - GetTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { + Rule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer. + * Decodes a Rule message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletsResponse + * @memberof binlogdata.Rule * @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 {binlogdata.Rule} Rule * @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) { + Rule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Rule(); while (reader.pos < end) { var 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.match = reader.string(); + break; + case 2: + message.filter = reader.string(); break; default: reader.skipType(tag & 7); @@ -56797,124 +65306,118 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. + * Decodes a Rule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTabletsResponse + * @memberof binlogdata.Rule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse + * @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 */ - GetTabletsResponse.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 GetTabletsResponse message. + * Verifies a Rule message. * @function verify - * @memberof vtctldata.GetTabletsResponse + * @memberof binlogdata.Rule * @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) { + Rule.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 (var i = 0; i < message.tablets.length; ++i) { - var error = $root.topodata.Tablet.verify(message.tablets[i]); - if (error) - return "tablets." + error; - } - } + 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"; return null; }; /** - * Creates a GetTabletsResponse 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 vtctldata.GetTabletsResponse + * @memberof binlogdata.Rule * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse + * @returns {binlogdata.Rule} Rule */ - GetTabletsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletsResponse) + Rule.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.Rule) return object; - var message = new $root.vtctldata.GetTabletsResponse(); - if (object.tablets) { - if (!Array.isArray(object.tablets)) - throw TypeError(".vtctldata.GetTabletsResponse.tablets: array expected"); - message.tablets = []; - for (var 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]); - } - } + var message = new $root.binlogdata.Rule(); + if (object.match != null) + message.match = String(object.match); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a GetTabletsResponse 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 vtctldata.GetTabletsResponse + * @memberof binlogdata.Rule * @static - * @param {vtctldata.GetTabletsResponse} message GetTabletsResponse + * @param {binlogdata.Rule} message Rule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletsResponse.toObject = function toObject(message, options) { + Rule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.tablets = []; - if (message.tablets && message.tablets.length) { - object.tablets = []; - for (var j = 0; j < message.tablets.length; ++j) - object.tablets[j] = $root.topodata.Tablet.toObject(message.tablets[j], options); + if (options.defaults) { + object.match = ""; + object.filter = ""; } + if (message.match != null && message.hasOwnProperty("match")) + object.match = message.match; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this GetTabletsResponse to JSON. + * Converts this Rule to JSON. * @function toJSON - * @memberof vtctldata.GetTabletsResponse + * @memberof binlogdata.Rule * @instance * @returns {Object.} JSON object */ - GetTabletsResponse.prototype.toJSON = function toJSON() { + Rule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTabletsResponse; + return Rule; })(); - vtctldata.GetVSchemaRequest = (function() { + binlogdata.Filter = (function() { /** - * Properties of a GetVSchemaRequest. - * @memberof vtctldata - * @interface IGetVSchemaRequest - * @property {string|null} [keyspace] GetVSchemaRequest keyspace + * Properties of a Filter. + * @memberof binlogdata + * @interface IFilter + * @property {Array.|null} [rules] Filter rules + * @property {binlogdata.Filter.FieldEventMode|null} [fieldEventMode] Filter fieldEventMode */ /** - * Constructs a new GetVSchemaRequest. - * @memberof vtctldata - * @classdesc Represents a GetVSchemaRequest. - * @implements IGetVSchemaRequest + * Constructs a new Filter. + * @memberof binlogdata + * @classdesc Represents a Filter. + * @implements IFilter * @constructor - * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set + * @param {binlogdata.IFilter=} [properties] Properties to set */ - function GetVSchemaRequest(properties) { + function Filter(properties) { + this.rules = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56922,75 +65425,91 @@ $root.vtctldata = (function() { } /** - * GetVSchemaRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetVSchemaRequest + * Filter rules. + * @member {Array.} rules + * @memberof binlogdata.Filter * @instance */ - GetVSchemaRequest.prototype.keyspace = ""; + Filter.prototype.rules = $util.emptyArray; /** - * Creates a new GetVSchemaRequest instance using the specified properties. + * Filter fieldEventMode. + * @member {binlogdata.Filter.FieldEventMode} fieldEventMode + * @memberof binlogdata.Filter + * @instance + */ + Filter.prototype.fieldEventMode = 0; + + /** + * Creates a new Filter instance using the specified properties. * @function create - * @memberof vtctldata.GetVSchemaRequest + * @memberof binlogdata.Filter * @static - * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest instance + * @param {binlogdata.IFilter=} [properties] Properties to set + * @returns {binlogdata.Filter} Filter instance */ - GetVSchemaRequest.create = function create(properties) { - return new GetVSchemaRequest(properties); + Filter.create = function create(properties) { + return new Filter(properties); }; /** - * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * Encodes the specified Filter message. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. * @function encode - * @memberof vtctldata.GetVSchemaRequest + * @memberof binlogdata.Filter * @static - * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest 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 */ - GetVSchemaRequest.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.rules != null && message.rules.length) + for (var 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.fieldEventMode != null && Object.hasOwnProperty.call(message, "fieldEventMode")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.fieldEventMode); return writer; }; /** - * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * Encodes the specified Filter message, length delimited. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetVSchemaRequest + * @memberof binlogdata.Filter * @static - * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest 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 */ - GetVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + Filter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer. + * Decodes a Filter message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetVSchemaRequest + * @memberof binlogdata.Filter * @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 {binlogdata.Filter} Filter * @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) { + Filter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Filter(); while (reader.pos < end) { var 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.fieldEventMode = reader.int32(); break; default: reader.skipType(tag & 7); @@ -57001,107 +65520,188 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a Filter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetVSchemaRequest + * @memberof binlogdata.Filter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest + * @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 */ - GetVSchemaRequest.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 GetVSchemaRequest message. + * Verifies a Filter message. * @function verify - * @memberof vtctldata.GetVSchemaRequest + * @memberof binlogdata.Filter * @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) { + 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.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.binlogdata.Rule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.fieldEventMode != null && message.hasOwnProperty("fieldEventMode")) + switch (message.fieldEventMode) { + default: + return "fieldEventMode: enum value expected"; + case 0: + case 1: + break; + } return null; }; /** - * Creates a GetVSchemaRequest 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 vtctldata.GetVSchemaRequest + * @memberof binlogdata.Filter * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest + * @returns {binlogdata.Filter} Filter */ - GetVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetVSchemaRequest) + Filter.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.Filter) return object; - var message = new $root.vtctldata.GetVSchemaRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); + var message = new $root.binlogdata.Filter(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".binlogdata.Filter.rules: array expected"); + message.rules = []; + for (var 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.fieldEventMode) { + case "ERR_ON_MISMATCH": + case 0: + message.fieldEventMode = 0; + break; + case "BEST_EFFORT": + case 1: + message.fieldEventMode = 1; + break; + } return message; }; /** - * Creates a plain object from a GetVSchemaRequest 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 vtctldata.GetVSchemaRequest + * @memberof binlogdata.Filter * @static - * @param {vtctldata.GetVSchemaRequest} message GetVSchemaRequest + * @param {binlogdata.Filter} message Filter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVSchemaRequest.toObject = function toObject(message, options) { + Filter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.rules = []; if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; + object.fieldEventMode = options.enums === String ? "ERR_ON_MISMATCH" : 0; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.binlogdata.Rule.toObject(message.rules[j], options); + } + if (message.fieldEventMode != null && message.hasOwnProperty("fieldEventMode")) + object.fieldEventMode = options.enums === String ? $root.binlogdata.Filter.FieldEventMode[message.fieldEventMode] : message.fieldEventMode; return object; }; /** - * Converts this GetVSchemaRequest to JSON. + * Converts this Filter to JSON. * @function toJSON - * @memberof vtctldata.GetVSchemaRequest + * @memberof binlogdata.Filter * @instance * @returns {Object.} JSON object */ - GetVSchemaRequest.prototype.toJSON = function toJSON() { + Filter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetVSchemaRequest; + /** + * 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() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ERR_ON_MISMATCH"] = 0; + values[valuesById[1] = "BEST_EFFORT"] = 1; + return values; + })(); + + return Filter; })(); - vtctldata.GetVSchemaResponse = (function() { + /** + * 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() { + var 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; + })(); + + binlogdata.BinlogSource = (function() { /** - * Properties of a GetVSchemaResponse. - * @memberof vtctldata - * @interface IGetVSchemaResponse - * @property {vschema.IKeyspace|null} [v_schema] GetVSchemaResponse v_schema + * 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 */ /** - * Constructs a new GetVSchemaResponse. - * @memberof vtctldata - * @classdesc Represents a GetVSchemaResponse. - * @implements IGetVSchemaResponse + * Constructs a new BinlogSource. + * @memberof binlogdata + * @classdesc Represents a BinlogSource. + * @implements IBinlogSource * @constructor - * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set + * @param {binlogdata.IBinlogSource=} [properties] Properties to set */ - function GetVSchemaResponse(properties) { + function BinlogSource(properties) { + this.tables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57109,75 +65709,195 @@ $root.vtctldata = (function() { } /** - * GetVSchemaResponse v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtctldata.GetVSchemaResponse + * BinlogSource keyspace. + * @member {string} keyspace + * @memberof binlogdata.BinlogSource * @instance */ - GetVSchemaResponse.prototype.v_schema = null; + BinlogSource.prototype.keyspace = ""; /** - * Creates a new GetVSchemaResponse instance using the specified properties. + * BinlogSource shard. + * @member {string} shard + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.shard = ""; + + /** + * 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.BinlogSource + * @instance + */ + BinlogSource.prototype.tables = $util.emptyArray; + + /** + * BinlogSource filter. + * @member {binlogdata.IFilter|null|undefined} filter + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.filter = null; + + /** + * BinlogSource on_ddl. + * @member {binlogdata.OnDDLAction} on_ddl + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.on_ddl = 0; + + /** + * BinlogSource external_mysql. + * @member {string} external_mysql + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.external_mysql = ""; + + /** + * BinlogSource stop_after_copy. + * @member {boolean} stop_after_copy + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.stop_after_copy = false; + + /** + * BinlogSource external_cluster. + * @member {string} external_cluster + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.external_cluster = ""; + + /** + * Creates a new BinlogSource instance using the specified properties. * @function create - * @memberof vtctldata.GetVSchemaResponse + * @memberof binlogdata.BinlogSource * @static - * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse instance + * @param {binlogdata.IBinlogSource=} [properties] Properties to set + * @returns {binlogdata.BinlogSource} BinlogSource instance */ - GetVSchemaResponse.create = function create(properties) { - return new GetVSchemaResponse(properties); + BinlogSource.create = function create(properties) { + return new BinlogSource(properties); }; /** - * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * Encodes the specified BinlogSource message. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. * @function encode - * @memberof vtctldata.GetVSchemaResponse + * @memberof binlogdata.BinlogSource * @static - * @param {vtctldata.IGetVSchemaResponse} message GetVSchemaResponse 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 */ - GetVSchemaResponse.encode = function encode(message, writer) { + BinlogSource.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) - $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.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 (var 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); return writer; }; /** - * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * Encodes the specified BinlogSource message, length delimited. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetVSchemaResponse + * @memberof binlogdata.BinlogSource * @static - * @param {vtctldata.IGetVSchemaResponse} message GetVSchemaResponse 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 */ - GetVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + BinlogSource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer. + * Decodes a BinlogSource message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetVSchemaResponse + * @memberof binlogdata.BinlogSource * @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 {binlogdata.BinlogSource} BinlogSource * @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) { + BinlogSource.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogSource(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + case 2: + message.shard = reader.string(); + break; + case 3: + message.tablet_type = reader.int32(); + break; + case 4: + message.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; default: reader.skipType(tag & 7); @@ -57188,116 +65908,330 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a BinlogSource message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetVSchemaResponse + * @memberof binlogdata.BinlogSource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse + * @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 */ - GetVSchemaResponse.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 GetVSchemaResponse message. + * Verifies a BinlogSource message. * @function verify - * @memberof vtctldata.GetVSchemaResponse + * @memberof binlogdata.BinlogSource * @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) { + BinlogSource.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) { - var error = $root.vschema.Keyspace.verify(message.v_schema); + if (message.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 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")) { + var error = $root.topodata.KeyRange.verify(message.key_range); if (error) - return "v_schema." + error; + return "key_range." + error; + } + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (var i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; + } + if (message.filter != null && message.hasOwnProperty("filter")) { + var error = $root.binlogdata.Filter.verify(message.filter); + if (error) + return "filter." + 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"; return null; }; /** - * Creates a GetVSchemaResponse 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 vtctldata.GetVSchemaResponse + * @memberof binlogdata.BinlogSource * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse + * @returns {binlogdata.BinlogSource} BinlogSource */ - GetVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetVSchemaResponse) + BinlogSource.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.BinlogSource) return object; - var 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); + var 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) { + case "UNKNOWN": + case 0: + message.tablet_type = 0; + 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.BinlogSource.tables: array expected"); + message.tables = []; + for (var 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) { + 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.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); return message; }; /** - * Creates a plain object from a GetVSchemaResponse 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 vtctldata.GetVSchemaResponse + * @memberof binlogdata.BinlogSource * @static - * @param {vtctldata.GetVSchemaResponse} message GetVSchemaResponse + * @param {binlogdata.BinlogSource} message BinlogSource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVSchemaResponse.toObject = function toObject(message, options) { + BinlogSource.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.v_schema = null; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + if (options.arrays || options.defaults) + object.tables = []; + if (options.defaults) { + 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 = ""; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] : message.tablet_type; + if (message.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 (var 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] : 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; return object; }; /** - * Converts this GetVSchemaResponse to JSON. + * Converts this BinlogSource to JSON. * @function toJSON - * @memberof vtctldata.GetVSchemaResponse + * @memberof binlogdata.BinlogSource * @instance * @returns {Object.} JSON object */ - GetVSchemaResponse.prototype.toJSON = function toJSON() { + BinlogSource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetVSchemaResponse; + return BinlogSource; })(); - vtctldata.InitShardPrimaryRequest = (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 + */ + binlogdata.VEventType = (function() { + var 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; + return values; + })(); + + binlogdata.RowChange = (function() { /** - * Properties of an InitShardPrimaryRequest. - * @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 + * Properties of a RowChange. + * @memberof binlogdata + * @interface IRowChange + * @property {query.IRow|null} [before] RowChange before + * @property {query.IRow|null} [after] RowChange after */ /** - * Constructs a new InitShardPrimaryRequest. - * @memberof vtctldata - * @classdesc Represents an InitShardPrimaryRequest. - * @implements IInitShardPrimaryRequest + * Constructs a new RowChange. + * @memberof binlogdata + * @classdesc Represents a RowChange. + * @implements IRowChange * @constructor - * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set + * @param {binlogdata.IRowChange=} [properties] Properties to set */ - function InitShardPrimaryRequest(properties) { + function RowChange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57305,127 +66239,88 @@ $root.vtctldata = (function() { } /** - * 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 + * RowChange before. + * @member {query.IRow|null|undefined} before + * @memberof binlogdata.RowChange * @instance */ - InitShardPrimaryRequest.prototype.force = false; + RowChange.prototype.before = null; /** - * InitShardPrimaryRequest wait_replicas_timeout. - * @member {vttime.IDuration|null|undefined} wait_replicas_timeout - * @memberof vtctldata.InitShardPrimaryRequest + * RowChange after. + * @member {query.IRow|null|undefined} after + * @memberof binlogdata.RowChange * @instance */ - InitShardPrimaryRequest.prototype.wait_replicas_timeout = null; + RowChange.prototype.after = null; /** - * Creates a new InitShardPrimaryRequest instance using the specified properties. + * Creates a new RowChange instance using the specified properties. * @function create - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof binlogdata.RowChange * @static - * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest instance + * @param {binlogdata.IRowChange=} [properties] Properties to set + * @returns {binlogdata.RowChange} RowChange instance */ - InitShardPrimaryRequest.create = function create(properties) { - return new InitShardPrimaryRequest(properties); + RowChange.create = function create(properties) { + return new RowChange(properties); }; /** - * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * Encodes the specified RowChange message. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. * @function encode - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof binlogdata.RowChange * @static - * @param {vtctldata.IInitShardPrimaryRequest} message InitShardPrimaryRequest 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 */ - InitShardPrimaryRequest.encode = function encode(message, writer) { + RowChange.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.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(); return writer; }; /** - * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * Encodes the specified RowChange message, length delimited. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof binlogdata.RowChange * @static - * @param {vtctldata.IInitShardPrimaryRequest} message InitShardPrimaryRequest 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 */ - InitShardPrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { + RowChange.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. + * Decodes a RowChange message from the specified reader or buffer. * @function decode - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof binlogdata.RowChange * @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 {binlogdata.RowChange} RowChange * @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) { + RowChange.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.RowChange(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.before = $root.query.Row.decode(reader, reader.uint32()); 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.after = $root.query.Row.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -57436,151 +66331,128 @@ $root.vtctldata = (function() { }; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. + * Decodes a RowChange message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof binlogdata.RowChange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest + * @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 */ - InitShardPrimaryRequest.decodeDelimited = function decodeDelimited(reader) { + RowChange.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InitShardPrimaryRequest message. + * Verifies a RowChange message. * @function verify - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof binlogdata.RowChange * @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) { + RowChange.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")) { - var error = $root.topodata.TabletAlias.verify(message.primary_elect_tablet_alias); + if (message.before != null && message.hasOwnProperty("before")) { + var error = $root.query.Row.verify(message.before); if (error) - return "primary_elect_tablet_alias." + error; + return "before." + 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")) { - var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (message.after != null && message.hasOwnProperty("after")) { + var error = $root.query.Row.verify(message.after); if (error) - return "wait_replicas_timeout." + error; + return "after." + error; } return null; }; /** - * Creates an InitShardPrimaryRequest 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 vtctldata.InitShardPrimaryRequest + * @memberof binlogdata.RowChange * @static * @param {Object.} object Plain object - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest + * @returns {binlogdata.RowChange} RowChange */ - InitShardPrimaryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.InitShardPrimaryRequest) + RowChange.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.RowChange) return object; - var 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); + var 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.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); + if (object.after != null) { + if (typeof object.after !== "object") + throw TypeError(".binlogdata.RowChange.after: object expected"); + message.after = $root.query.Row.fromObject(object.after); } return message; }; /** - * Creates a plain object from an InitShardPrimaryRequest 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 vtctldata.InitShardPrimaryRequest + * @memberof binlogdata.RowChange * @static - * @param {vtctldata.InitShardPrimaryRequest} message InitShardPrimaryRequest + * @param {binlogdata.RowChange} message RowChange * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitShardPrimaryRequest.toObject = function toObject(message, options) { + RowChange.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.primary_elect_tablet_alias = null; - object.force = false; - object.wait_replicas_timeout = null; + object.before = null; + object.after = 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 (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); return object; }; /** - * Converts this InitShardPrimaryRequest to JSON. + * Converts this RowChange to JSON. * @function toJSON - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof binlogdata.RowChange * @instance * @returns {Object.} JSON object */ - InitShardPrimaryRequest.prototype.toJSON = function toJSON() { + RowChange.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InitShardPrimaryRequest; + return RowChange; })(); - vtctldata.InitShardPrimaryResponse = (function() { + binlogdata.RowEvent = (function() { /** - * Properties of an InitShardPrimaryResponse. - * @memberof vtctldata - * @interface IInitShardPrimaryResponse - * @property {Array.|null} [events] InitShardPrimaryResponse events + * Properties of a RowEvent. + * @memberof binlogdata + * @interface IRowEvent + * @property {string|null} [table_name] RowEvent table_name + * @property {Array.|null} [row_changes] RowEvent row_changes */ /** - * Constructs a new InitShardPrimaryResponse. - * @memberof vtctldata - * @classdesc Represents an InitShardPrimaryResponse. - * @implements IInitShardPrimaryResponse + * Constructs a new RowEvent. + * @memberof binlogdata + * @classdesc Represents a RowEvent. + * @implements IRowEvent * @constructor - * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set + * @param {binlogdata.IRowEvent=} [properties] Properties to set */ - function InitShardPrimaryResponse(properties) { - this.events = []; + function RowEvent(properties) { + this.row_changes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57588,78 +66460,91 @@ $root.vtctldata = (function() { } /** - * InitShardPrimaryResponse events. - * @member {Array.} events - * @memberof vtctldata.InitShardPrimaryResponse + * RowEvent table_name. + * @member {string} table_name + * @memberof binlogdata.RowEvent * @instance */ - InitShardPrimaryResponse.prototype.events = $util.emptyArray; + RowEvent.prototype.table_name = ""; /** - * Creates a new InitShardPrimaryResponse instance using the specified properties. + * RowEvent row_changes. + * @member {Array.} row_changes + * @memberof binlogdata.RowEvent + * @instance + */ + RowEvent.prototype.row_changes = $util.emptyArray; + + /** + * Creates a new RowEvent instance using the specified properties. * @function create - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof binlogdata.RowEvent * @static - * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse instance + * @param {binlogdata.IRowEvent=} [properties] Properties to set + * @returns {binlogdata.RowEvent} RowEvent instance */ - InitShardPrimaryResponse.create = function create(properties) { - return new InitShardPrimaryResponse(properties); + RowEvent.create = function create(properties) { + return new RowEvent(properties); }; /** - * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * Encodes the specified RowEvent message. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. * @function encode - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof binlogdata.RowEvent * @static - * @param {vtctldata.IInitShardPrimaryResponse} message InitShardPrimaryResponse 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 */ - InitShardPrimaryResponse.encode = function encode(message, writer) { + RowEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.events != null && message.events.length) - for (var 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.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 (var 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(); return writer; }; /** - * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * Encodes the specified RowEvent message, length delimited. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof binlogdata.RowEvent * @static - * @param {vtctldata.IInitShardPrimaryResponse} message InitShardPrimaryResponse 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 */ - InitShardPrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { + RowEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. + * Decodes a RowEvent message from the specified reader or buffer. * @function decode - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof binlogdata.RowEvent * @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 {binlogdata.RowEvent} RowEvent * @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) { + RowEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.RowEvent(); while (reader.pos < end) { var 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.table_name = 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())); break; default: reader.skipType(tag & 7); @@ -57670,128 +66555,135 @@ $root.vtctldata = (function() { }; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. + * Decodes a RowEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof binlogdata.RowEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse + * @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 */ - InitShardPrimaryResponse.decodeDelimited = function decodeDelimited(reader) { + RowEvent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InitShardPrimaryResponse message. + * Verifies a RowEvent message. * @function verify - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof binlogdata.RowEvent * @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) { + RowEvent.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 (var i = 0; i < message.events.length; ++i) { - var error = $root.logutil.Event.verify(message.events[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 (var i = 0; i < message.row_changes.length; ++i) { + var error = $root.binlogdata.RowChange.verify(message.row_changes[i]); if (error) - return "events." + error; + return "row_changes." + error; } } return null; }; /** - * Creates an InitShardPrimaryResponse 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 vtctldata.InitShardPrimaryResponse + * @memberof binlogdata.RowEvent * @static * @param {Object.} object Plain object - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse + * @returns {binlogdata.RowEvent} RowEvent */ - InitShardPrimaryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.InitShardPrimaryResponse) + RowEvent.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.RowEvent) return object; - var message = new $root.vtctldata.InitShardPrimaryResponse(); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".vtctldata.InitShardPrimaryResponse.events: array expected"); - message.events = []; - for (var 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]); + var 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 (var 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]); } } return message; }; /** - * Creates a plain object from an InitShardPrimaryResponse 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 vtctldata.InitShardPrimaryResponse + * @memberof binlogdata.RowEvent * @static - * @param {vtctldata.InitShardPrimaryResponse} message InitShardPrimaryResponse + * @param {binlogdata.RowEvent} message RowEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitShardPrimaryResponse.toObject = function toObject(message, options) { + RowEvent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.events = []; - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.logutil.Event.toObject(message.events[j], options); + object.row_changes = []; + if (options.defaults) + object.table_name = ""; + 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 (var j = 0; j < message.row_changes.length; ++j) + object.row_changes[j] = $root.binlogdata.RowChange.toObject(message.row_changes[j], options); } return object; }; /** - * Converts this InitShardPrimaryResponse to JSON. + * Converts this RowEvent to JSON. * @function toJSON - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof binlogdata.RowEvent * @instance * @returns {Object.} JSON object */ - InitShardPrimaryResponse.prototype.toJSON = function toJSON() { + RowEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InitShardPrimaryResponse; + return RowEvent; })(); - vtctldata.PlannedReparentShardRequest = (function() { + binlogdata.FieldEvent = (function() { /** - * Properties of a PlannedReparentShardRequest. - * @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 + * Properties of a FieldEvent. + * @memberof binlogdata + * @interface IFieldEvent + * @property {string|null} [table_name] FieldEvent table_name + * @property {Array.|null} [fields] FieldEvent fields */ /** - * Constructs a new PlannedReparentShardRequest. - * @memberof vtctldata - * @classdesc Represents a PlannedReparentShardRequest. - * @implements IPlannedReparentShardRequest + * Constructs a new FieldEvent. + * @memberof binlogdata + * @classdesc Represents a FieldEvent. + * @implements IFieldEvent * @constructor - * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set + * @param {binlogdata.IFieldEvent=} [properties] Properties to set */ - function PlannedReparentShardRequest(properties) { + function FieldEvent(properties) { + this.fields = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57799,127 +66691,91 @@ $root.vtctldata = (function() { } /** - * PlannedReparentShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.PlannedReparentShardRequest - * @instance - */ - PlannedReparentShardRequest.prototype.keyspace = ""; - - /** - * PlannedReparentShardRequest 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 + * FieldEvent table_name. + * @member {string} table_name + * @memberof binlogdata.FieldEvent * @instance */ - PlannedReparentShardRequest.prototype.avoid_primary = null; + FieldEvent.prototype.table_name = ""; /** - * PlannedReparentShardRequest wait_replicas_timeout. - * @member {vttime.IDuration|null|undefined} wait_replicas_timeout - * @memberof vtctldata.PlannedReparentShardRequest + * FieldEvent fields. + * @member {Array.} fields + * @memberof binlogdata.FieldEvent * @instance */ - PlannedReparentShardRequest.prototype.wait_replicas_timeout = null; + FieldEvent.prototype.fields = $util.emptyArray; /** - * Creates a new PlannedReparentShardRequest instance using the specified properties. + * Creates a new FieldEvent instance using the specified properties. * @function create - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof binlogdata.FieldEvent * @static - * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set - * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest instance + * @param {binlogdata.IFieldEvent=} [properties] Properties to set + * @returns {binlogdata.FieldEvent} FieldEvent instance */ - PlannedReparentShardRequest.create = function create(properties) { - return new PlannedReparentShardRequest(properties); + FieldEvent.create = function create(properties) { + return new FieldEvent(properties); }; /** - * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. + * Encodes the specified FieldEvent message. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. * @function encode - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof binlogdata.FieldEvent * @static - * @param {vtctldata.IPlannedReparentShardRequest} message PlannedReparentShardRequest 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 */ - PlannedReparentShardRequest.encode = function encode(message, writer) { + FieldEvent.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.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 (var i = 0; i < message.fields.length; ++i) + $root.query.Field.encode(message.fields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PlannedReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. + * Encodes the specified FieldEvent message, length delimited. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof binlogdata.FieldEvent * @static - * @param {vtctldata.IPlannedReparentShardRequest} message PlannedReparentShardRequest 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 */ - PlannedReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + FieldEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. + * Decodes a FieldEvent message from the specified reader or buffer. * @function decode - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof binlogdata.FieldEvent * @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 {binlogdata.FieldEvent} FieldEvent * @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) { + FieldEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.FieldEvent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.table_name = 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.avoid_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 5: - message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.query.Field.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -57930,159 +66786,137 @@ $root.vtctldata = (function() { }; /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. + * Decodes a FieldEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof binlogdata.FieldEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest + * @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 */ - PlannedReparentShardRequest.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 PlannedReparentShardRequest message. - * @function verify - * @memberof vtctldata.PlannedReparentShardRequest - * @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) { - 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")) { - var error = $root.topodata.TabletAlias.verify(message.new_primary); - if (error) - return "new_primary." + error; - } - if (message.avoid_primary != null && message.hasOwnProperty("avoid_primary")) { - var 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")) { - var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); - if (error) - return "wait_replicas_timeout." + error; + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldEvent message. + * @function verify + * @memberof binlogdata.FieldEvent + * @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) { + 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 (var i = 0; i < message.fields.length; ++i) { + var error = $root.query.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } } return null; }; /** - * Creates a PlannedReparentShardRequest 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 vtctldata.PlannedReparentShardRequest + * @memberof binlogdata.FieldEvent * @static * @param {Object.} object Plain object - * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest + * @returns {binlogdata.FieldEvent} FieldEvent */ - PlannedReparentShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.PlannedReparentShardRequest) + FieldEvent.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.FieldEvent) return object; - var message = new $root.vtctldata.PlannedReparentShardRequest(); - 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); + var 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 (var 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]); + } } return message; }; /** - * Creates a plain object from a PlannedReparentShardRequest 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 vtctldata.PlannedReparentShardRequest + * @memberof binlogdata.FieldEvent * @static - * @param {vtctldata.PlannedReparentShardRequest} message PlannedReparentShardRequest + * @param {binlogdata.FieldEvent} message FieldEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PlannedReparentShardRequest.toObject = function toObject(message, options) { + FieldEvent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.new_primary = null; - object.avoid_primary = null; - object.wait_replicas_timeout = null; + if (options.arrays || options.defaults) + object.fields = []; + if (options.defaults) + object.table_name = ""; + if (message.table_name != null && message.hasOwnProperty("table_name")) + object.table_name = message.table_name; + if (message.fields && message.fields.length) { + object.fields = []; + for (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); } - if (message.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); return object; }; /** - * Converts this PlannedReparentShardRequest to JSON. + * Converts this FieldEvent to JSON. * @function toJSON - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof binlogdata.FieldEvent * @instance * @returns {Object.} JSON object */ - PlannedReparentShardRequest.prototype.toJSON = function toJSON() { + FieldEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PlannedReparentShardRequest; + return FieldEvent; })(); - vtctldata.PlannedReparentShardResponse = (function() { + binlogdata.ShardGtid = (function() { /** - * Properties of a PlannedReparentShardResponse. - * @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 + * Properties of a ShardGtid. + * @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 */ /** - * Constructs a new PlannedReparentShardResponse. - * @memberof vtctldata - * @classdesc Represents a PlannedReparentShardResponse. - * @implements IPlannedReparentShardResponse + * Constructs a new ShardGtid. + * @memberof binlogdata + * @classdesc Represents a ShardGtid. + * @implements IShardGtid * @constructor - * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set + * @param {binlogdata.IShardGtid=} [properties] Properties to set */ - function PlannedReparentShardResponse(properties) { - this.events = []; + function ShardGtid(properties) { + this.table_p_ks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58090,101 +66924,101 @@ $root.vtctldata = (function() { } /** - * PlannedReparentShardResponse keyspace. + * ShardGtid keyspace. * @member {string} keyspace - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof binlogdata.ShardGtid * @instance */ - PlannedReparentShardResponse.prototype.keyspace = ""; + ShardGtid.prototype.keyspace = ""; /** - * PlannedReparentShardResponse shard. + * ShardGtid shard. * @member {string} shard - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof binlogdata.ShardGtid * @instance */ - PlannedReparentShardResponse.prototype.shard = ""; + ShardGtid.prototype.shard = ""; /** - * PlannedReparentShardResponse promoted_primary. - * @member {topodata.ITabletAlias|null|undefined} promoted_primary - * @memberof vtctldata.PlannedReparentShardResponse + * ShardGtid gtid. + * @member {string} gtid + * @memberof binlogdata.ShardGtid * @instance */ - PlannedReparentShardResponse.prototype.promoted_primary = null; + ShardGtid.prototype.gtid = ""; /** - * PlannedReparentShardResponse events. - * @member {Array.} events - * @memberof vtctldata.PlannedReparentShardResponse + * ShardGtid table_p_ks. + * @member {Array.} table_p_ks + * @memberof binlogdata.ShardGtid * @instance */ - PlannedReparentShardResponse.prototype.events = $util.emptyArray; + ShardGtid.prototype.table_p_ks = $util.emptyArray; /** - * Creates a new PlannedReparentShardResponse instance using the specified properties. + * Creates a new ShardGtid instance using the specified properties. * @function create - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof binlogdata.ShardGtid * @static - * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set - * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse instance + * @param {binlogdata.IShardGtid=} [properties] Properties to set + * @returns {binlogdata.ShardGtid} ShardGtid instance */ - PlannedReparentShardResponse.create = function create(properties) { - return new PlannedReparentShardResponse(properties); + ShardGtid.create = function create(properties) { + return new ShardGtid(properties); }; /** - * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. + * Encodes the specified ShardGtid message. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. * @function encode - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof binlogdata.ShardGtid * @static - * @param {vtctldata.IPlannedReparentShardResponse} message PlannedReparentShardResponse 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 */ - PlannedReparentShardResponse.encode = function encode(message, writer) { + ShardGtid.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 (var 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.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 (var 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 PlannedReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. + * Encodes the specified ShardGtid message, length delimited. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof binlogdata.ShardGtid * @static - * @param {vtctldata.IPlannedReparentShardResponse} message PlannedReparentShardResponse 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 */ - PlannedReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + ShardGtid.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. + * Decodes a ShardGtid message from the specified reader or buffer. * @function decode - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof binlogdata.ShardGtid * @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 {binlogdata.ShardGtid} ShardGtid * @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) { + ShardGtid.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.ShardGtid(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -58195,12 +67029,12 @@ $root.vtctldata = (function() { message.shard = reader.string(); break; case 3: - message.promoted_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.gtid = 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.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: reader.skipType(tag & 7); @@ -58211,30 +67045,30 @@ $root.vtctldata = (function() { }; /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. + * Decodes a ShardGtid message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof binlogdata.ShardGtid * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse + * @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 */ - PlannedReparentShardResponse.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 PlannedReparentShardResponse message. + * Verifies a ShardGtid message. * @function verify - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof binlogdata.ShardGtid * @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) { + ShardGtid.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) @@ -58243,126 +67077,119 @@ $root.vtctldata = (function() { 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")) { - var 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 (var i = 0; i < message.events.length; ++i) { - var error = $root.logutil.Event.verify(message.events[i]); + 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 (var i = 0; i < message.table_p_ks.length; ++i) { + var error = $root.binlogdata.TableLastPK.verify(message.table_p_ks[i]); if (error) - return "events." + error; + return "table_p_ks." + error; } } return null; }; /** - * Creates a PlannedReparentShardResponse 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 vtctldata.PlannedReparentShardResponse + * @memberof binlogdata.ShardGtid * @static * @param {Object.} object Plain object - * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse + * @returns {binlogdata.ShardGtid} ShardGtid */ - PlannedReparentShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.PlannedReparentShardResponse) + ShardGtid.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.ShardGtid) return object; - var message = new $root.vtctldata.PlannedReparentShardResponse(); + var 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.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 (var 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.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 (var 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 PlannedReparentShardResponse 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 vtctldata.PlannedReparentShardResponse + * @memberof binlogdata.ShardGtid * @static - * @param {vtctldata.PlannedReparentShardResponse} message PlannedReparentShardResponse + * @param {binlogdata.ShardGtid} message ShardGtid * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PlannedReparentShardResponse.toObject = function toObject(message, options) { + ShardGtid.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.events = []; + object.table_p_ks = []; if (options.defaults) { object.keyspace = ""; object.shard = ""; - object.promoted_primary = null; + 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.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 (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.logutil.Event.toObject(message.events[j], options); + 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 (var 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 PlannedReparentShardResponse to JSON. + * Converts this ShardGtid to JSON. * @function toJSON - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof binlogdata.ShardGtid * @instance * @returns {Object.} JSON object */ - PlannedReparentShardResponse.prototype.toJSON = function toJSON() { + ShardGtid.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PlannedReparentShardResponse; + return ShardGtid; })(); - vtctldata.RemoveKeyspaceCellRequest = (function() { + binlogdata.VGtid = (function() { /** - * Properties of a RemoveKeyspaceCellRequest. - * @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 + * Properties of a VGtid. + * @memberof binlogdata + * @interface IVGtid + * @property {Array.|null} [shard_gtids] VGtid shard_gtids */ /** - * Constructs a new RemoveKeyspaceCellRequest. - * @memberof vtctldata - * @classdesc Represents a RemoveKeyspaceCellRequest. - * @implements IRemoveKeyspaceCellRequest + * Constructs a new VGtid. + * @memberof binlogdata + * @classdesc Represents a VGtid. + * @implements IVGtid * @constructor - * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set + * @param {binlogdata.IVGtid=} [properties] Properties to set */ - function RemoveKeyspaceCellRequest(properties) { + function VGtid(properties) { + this.shard_gtids = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58370,114 +67197,78 @@ $root.vtctldata = (function() { } /** - * RemoveKeyspaceCellRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.RemoveKeyspaceCellRequest - * @instance - */ - RemoveKeyspaceCellRequest.prototype.keyspace = ""; - - /** - * RemoveKeyspaceCellRequest cell. - * @member {string} cell - * @memberof vtctldata.RemoveKeyspaceCellRequest - * @instance - */ - RemoveKeyspaceCellRequest.prototype.cell = ""; - - /** - * RemoveKeyspaceCellRequest force. - * @member {boolean} force - * @memberof vtctldata.RemoveKeyspaceCellRequest - * @instance - */ - RemoveKeyspaceCellRequest.prototype.force = false; - - /** - * RemoveKeyspaceCellRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.RemoveKeyspaceCellRequest + * VGtid shard_gtids. + * @member {Array.} shard_gtids + * @memberof binlogdata.VGtid * @instance */ - RemoveKeyspaceCellRequest.prototype.recursive = false; + VGtid.prototype.shard_gtids = $util.emptyArray; /** - * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. + * Creates a new VGtid instance using the specified properties. * @function create - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof binlogdata.VGtid * @static - * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest instance + * @param {binlogdata.IVGtid=} [properties] Properties to set + * @returns {binlogdata.VGtid} VGtid instance */ - RemoveKeyspaceCellRequest.create = function create(properties) { - return new RemoveKeyspaceCellRequest(properties); + VGtid.create = function create(properties) { + return new VGtid(properties); }; /** - * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * Encodes the specified VGtid message. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof binlogdata.VGtid * @static - * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest 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 - */ - 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); + * @returns {$protobuf.Writer} Writer + */ + VGtid.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.shard_gtids != null && message.shard_gtids.length) + for (var 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 RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * Encodes the specified VGtid message, length delimited. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof binlogdata.VGtid * @static - * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest 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 */ - RemoveKeyspaceCellRequest.encodeDelimited = function encodeDelimited(message, writer) { + VGtid.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. + * Decodes a VGtid message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof binlogdata.VGtid * @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 {binlogdata.VGtid} VGtid * @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) { + VGtid.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VGtid(); while (reader.pos < end) { var 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(); + if (!(message.shard_gtids && message.shard_gtids.length)) + message.shard_gtids = []; + message.shard_gtids.push($root.binlogdata.ShardGtid.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -58488,131 +67279,125 @@ $root.vtctldata = (function() { }; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. + * Decodes a VGtid message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof binlogdata.VGtid * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @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 */ - RemoveKeyspaceCellRequest.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 RemoveKeyspaceCellRequest message. + * Verifies a VGtid message. * @function verify - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof binlogdata.VGtid * @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) { + VGtid.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_gtids != null && message.hasOwnProperty("shard_gtids")) { + if (!Array.isArray(message.shard_gtids)) + return "shard_gtids: array expected"; + for (var i = 0; i < message.shard_gtids.length; ++i) { + var error = $root.binlogdata.ShardGtid.verify(message.shard_gtids[i]); + if (error) + return "shard_gtids." + error; + } + } return null; }; /** - * Creates a RemoveKeyspaceCellRequest 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 vtctldata.RemoveKeyspaceCellRequest + * @memberof binlogdata.VGtid * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @returns {binlogdata.VGtid} VGtid */ - RemoveKeyspaceCellRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveKeyspaceCellRequest) + VGtid.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VGtid) return object; - var 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); + var 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 (var 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]); + } + } return message; }; /** - * Creates a plain object from a RemoveKeyspaceCellRequest 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 vtctldata.RemoveKeyspaceCellRequest + * @memberof binlogdata.VGtid * @static - * @param {vtctldata.RemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest + * @param {binlogdata.VGtid} message VGtid * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveKeyspaceCellRequest.toObject = function toObject(message, options) { + VGtid.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.cell = ""; - object.force = false; - object.recursive = false; + if (options.arrays || options.defaults) + object.shard_gtids = []; + if (message.shard_gtids && message.shard_gtids.length) { + object.shard_gtids = []; + for (var j = 0; j < message.shard_gtids.length; ++j) + object.shard_gtids[j] = $root.binlogdata.ShardGtid.toObject(message.shard_gtids[j], options); } - 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. + * Converts this VGtid to JSON. * @function toJSON - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof binlogdata.VGtid * @instance * @returns {Object.} JSON object */ - RemoveKeyspaceCellRequest.prototype.toJSON = function toJSON() { + VGtid.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RemoveKeyspaceCellRequest; + return VGtid; })(); - vtctldata.RemoveKeyspaceCellResponse = (function() { + binlogdata.KeyspaceShard = (function() { /** - * Properties of a RemoveKeyspaceCellResponse. - * @memberof vtctldata - * @interface IRemoveKeyspaceCellResponse + * Properties of a KeyspaceShard. + * @memberof binlogdata + * @interface IKeyspaceShard + * @property {string|null} [keyspace] KeyspaceShard keyspace + * @property {string|null} [shard] KeyspaceShard shard */ /** - * Constructs a new RemoveKeyspaceCellResponse. - * @memberof vtctldata - * @classdesc Represents a RemoveKeyspaceCellResponse. - * @implements IRemoveKeyspaceCellResponse + * Constructs a new KeyspaceShard. + * @memberof binlogdata + * @classdesc Represents a KeyspaceShard. + * @implements IKeyspaceShard * @constructor - * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set + * @param {binlogdata.IKeyspaceShard=} [properties] Properties to set */ - function RemoveKeyspaceCellResponse(properties) { + function KeyspaceShard(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58620,63 +67405,89 @@ $root.vtctldata = (function() { } /** - * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. + * KeyspaceShard keyspace. + * @member {string} keyspace + * @memberof binlogdata.KeyspaceShard + * @instance + */ + KeyspaceShard.prototype.keyspace = ""; + + /** + * KeyspaceShard shard. + * @member {string} shard + * @memberof binlogdata.KeyspaceShard + * @instance + */ + KeyspaceShard.prototype.shard = ""; + + /** + * Creates a new KeyspaceShard instance using the specified properties. * @function create - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof binlogdata.KeyspaceShard * @static - * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse instance + * @param {binlogdata.IKeyspaceShard=} [properties] Properties to set + * @returns {binlogdata.KeyspaceShard} KeyspaceShard instance */ - RemoveKeyspaceCellResponse.create = function create(properties) { - return new RemoveKeyspaceCellResponse(properties); + KeyspaceShard.create = function create(properties) { + return new KeyspaceShard(properties); }; /** - * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * Encodes the specified KeyspaceShard message. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof binlogdata.KeyspaceShard * @static - * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse 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 */ - RemoveKeyspaceCellResponse.encode = function encode(message, writer) { + KeyspaceShard.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 RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * Encodes the specified KeyspaceShard message, length delimited. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof binlogdata.KeyspaceShard * @static - * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse 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 */ - RemoveKeyspaceCellResponse.encodeDelimited = function encodeDelimited(message, writer) { + KeyspaceShard.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. + * Decodes a KeyspaceShard message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof binlogdata.KeyspaceShard * @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 {binlogdata.KeyspaceShard} KeyspaceShard * @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) { + KeyspaceShard.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.KeyspaceShard(); while (reader.pos < end) { var 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; @@ -58686,98 +67497,140 @@ $root.vtctldata = (function() { }; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. + * Decodes a KeyspaceShard message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof binlogdata.KeyspaceShard * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + * @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 */ - RemoveKeyspaceCellResponse.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 RemoveKeyspaceCellResponse message. + * Verifies a KeyspaceShard message. * @function verify - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof binlogdata.KeyspaceShard * @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) { + KeyspaceShard.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 RemoveKeyspaceCellResponse 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 vtctldata.RemoveKeyspaceCellResponse + * @memberof binlogdata.KeyspaceShard * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + * @returns {binlogdata.KeyspaceShard} KeyspaceShard */ - RemoveKeyspaceCellResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveKeyspaceCellResponse) + KeyspaceShard.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.KeyspaceShard) return object; - return new $root.vtctldata.RemoveKeyspaceCellResponse(); + var 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 RemoveKeyspaceCellResponse 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 vtctldata.RemoveKeyspaceCellResponse + * @memberof binlogdata.KeyspaceShard * @static - * @param {vtctldata.RemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse + * @param {binlogdata.KeyspaceShard} message KeyspaceShard * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveKeyspaceCellResponse.toObject = function toObject() { - return {}; + KeyspaceShard.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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; }; /** - * Converts this RemoveKeyspaceCellResponse to JSON. + * Converts this KeyspaceShard to JSON. * @function toJSON - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof binlogdata.KeyspaceShard * @instance * @returns {Object.} JSON object */ - RemoveKeyspaceCellResponse.prototype.toJSON = function toJSON() { + KeyspaceShard.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RemoveKeyspaceCellResponse; + return KeyspaceShard; })(); - vtctldata.RemoveShardCellRequest = (function() { + /** + * MigrationType enum. + * @name binlogdata.MigrationType + * @enum {number} + * @property {number} TABLES=0 TABLES value + * @property {number} SHARDS=1 SHARDS value + */ + binlogdata.MigrationType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TABLES"] = 0; + values[valuesById[1] = "SHARDS"] = 1; + return values; + })(); + + binlogdata.Journal = (function() { /** - * Properties of a RemoveShardCellRequest. - * @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 + * Properties of a Journal. + * @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 */ /** - * Constructs a new RemoveShardCellRequest. - * @memberof vtctldata - * @classdesc Represents a RemoveShardCellRequest. - * @implements IRemoveShardCellRequest + * Constructs a new Journal. + * @memberof binlogdata + * @classdesc Represents a Journal. + * @implements IJournal * @constructor - * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set + * @param {binlogdata.IJournal=} [properties] Properties to set */ - function RemoveShardCellRequest(properties) { + function Journal(properties) { + this.tables = []; + this.shard_gtids = []; + this.participants = []; + this.source_workflows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58785,127 +67638,165 @@ $root.vtctldata = (function() { } /** - * RemoveShardCellRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.RemoveShardCellRequest + * Journal id. + * @member {number|Long} id + * @memberof binlogdata.Journal * @instance */ - RemoveShardCellRequest.prototype.keyspace = ""; + Journal.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * RemoveShardCellRequest shard_name. - * @member {string} shard_name - * @memberof vtctldata.RemoveShardCellRequest + * Journal migration_type. + * @member {binlogdata.MigrationType} migration_type + * @memberof binlogdata.Journal * @instance */ - RemoveShardCellRequest.prototype.shard_name = ""; + Journal.prototype.migration_type = 0; /** - * RemoveShardCellRequest cell. - * @member {string} cell - * @memberof vtctldata.RemoveShardCellRequest + * Journal tables. + * @member {Array.} tables + * @memberof binlogdata.Journal * @instance */ - RemoveShardCellRequest.prototype.cell = ""; + Journal.prototype.tables = $util.emptyArray; /** - * RemoveShardCellRequest force. - * @member {boolean} force - * @memberof vtctldata.RemoveShardCellRequest + * Journal local_position. + * @member {string} local_position + * @memberof binlogdata.Journal * @instance */ - RemoveShardCellRequest.prototype.force = false; + Journal.prototype.local_position = ""; /** - * RemoveShardCellRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.RemoveShardCellRequest + * Journal shard_gtids. + * @member {Array.} shard_gtids + * @memberof binlogdata.Journal * @instance */ - RemoveShardCellRequest.prototype.recursive = false; + Journal.prototype.shard_gtids = $util.emptyArray; /** - * Creates a new RemoveShardCellRequest instance using the specified properties. + * Journal participants. + * @member {Array.} participants + * @memberof binlogdata.Journal + * @instance + */ + Journal.prototype.participants = $util.emptyArray; + + /** + * 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 vtctldata.RemoveShardCellRequest + * @memberof binlogdata.Journal * @static - * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest instance + * @param {binlogdata.IJournal=} [properties] Properties to set + * @returns {binlogdata.Journal} Journal instance */ - RemoveShardCellRequest.create = function create(properties) { - return new RemoveShardCellRequest(properties); + Journal.create = function create(properties) { + return new Journal(properties); }; /** - * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * Encodes the specified Journal message. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveShardCellRequest + * @memberof binlogdata.Journal * @static - * @param {vtctldata.IRemoveShardCellRequest} message RemoveShardCellRequest 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 */ - RemoveShardCellRequest.encode = function encode(message, writer) { + Journal.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.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); + 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 (var 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 (var 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 (var 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 (var 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 RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * Encodes the specified Journal message, length delimited. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveShardCellRequest + * @memberof binlogdata.Journal * @static - * @param {vtctldata.IRemoveShardCellRequest} message RemoveShardCellRequest 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 */ - RemoveShardCellRequest.encodeDelimited = function encodeDelimited(message, writer) { + Journal.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer. + * Decodes a Journal message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveShardCellRequest + * @memberof binlogdata.Journal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest + * @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 */ - RemoveShardCellRequest.decode = function decode(reader, length) { + Journal.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Journal(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.id = reader.int64(); break; case 2: - message.shard_name = reader.string(); + message.migration_type = reader.int32(); break; case 3: - message.cell = reader.string(); + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); break; case 4: - message.force = reader.bool(); + message.local_position = reader.string(); break; case 5: - message.recursive = reader.bool(); + 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: + 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: reader.skipType(tag & 7); @@ -58916,139 +67807,253 @@ $root.vtctldata = (function() { }; /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. + * Decodes a Journal message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveShardCellRequest + * @memberof binlogdata.Journal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest + * @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 */ - RemoveShardCellRequest.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 RemoveShardCellRequest message. + * Verifies a Journal message. * @function verify - * @memberof vtctldata.RemoveShardCellRequest + * @memberof binlogdata.Journal * @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) { + Journal.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"; + 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 (var i = 0; i < message.tables.length; ++i) + 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 (var i = 0; i < message.shard_gtids.length; ++i) { + var error = $root.binlogdata.ShardGtid.verify(message.shard_gtids[i]); + if (error) + return "shard_gtids." + error; + } + } + if (message.participants != null && message.hasOwnProperty("participants")) { + if (!Array.isArray(message.participants)) + return "participants: array expected"; + for (var i = 0; i < message.participants.length; ++i) { + var error = $root.binlogdata.KeyspaceShard.verify(message.participants[i]); + if (error) + return "participants." + error; + } + } + if (message.source_workflows != null && message.hasOwnProperty("source_workflows")) { + if (!Array.isArray(message.source_workflows)) + return "source_workflows: array expected"; + for (var i = 0; i < message.source_workflows.length; ++i) + if (!$util.isString(message.source_workflows[i])) + return "source_workflows: string[] expected"; + } return null; }; /** - * Creates a RemoveShardCellRequest 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 vtctldata.RemoveShardCellRequest + * @memberof binlogdata.Journal * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest + * @returns {binlogdata.Journal} Journal */ - RemoveShardCellRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveShardCellRequest) + Journal.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.Journal) return object; - var 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); + var 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) { + case "TABLES": + case 0: + message.migration_type = 0; + break; + case "SHARDS": + case 1: + message.migration_type = 1; + break; + } + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".binlogdata.Journal.tables: array expected"); + message.tables = []; + for (var 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 (var 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.participants) { + if (!Array.isArray(object.participants)) + throw TypeError(".binlogdata.Journal.participants: array expected"); + message.participants = []; + for (var 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.source_workflows) { + if (!Array.isArray(object.source_workflows)) + throw TypeError(".binlogdata.Journal.source_workflows: array expected"); + message.source_workflows = []; + for (var 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 RemoveShardCellRequest 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 vtctldata.RemoveShardCellRequest + * @memberof binlogdata.Journal * @static - * @param {vtctldata.RemoveShardCellRequest} message RemoveShardCellRequest + * @param {binlogdata.Journal} message Journal * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveShardCellRequest.toObject = function toObject(message, options) { + Journal.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.tables = []; + object.shard_gtids = []; + object.participants = []; + object.source_workflows = []; + } if (options.defaults) { - object.keyspace = ""; - object.shard_name = ""; - object.cell = ""; - object.force = false; - object.recursive = false; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.id = options.longs === String ? "0" : 0; + object.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] : message.migration_type; + if (message.tables && message.tables.length) { + object.tables = []; + for (var 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 (var 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 (var 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 (var j = 0; j < message.source_workflows.length; ++j) + object.source_workflows[j] = message.source_workflows[j]; } - 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. + * Converts this Journal to JSON. * @function toJSON - * @memberof vtctldata.RemoveShardCellRequest + * @memberof binlogdata.Journal * @instance * @returns {Object.} JSON object */ - RemoveShardCellRequest.prototype.toJSON = function toJSON() { + Journal.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RemoveShardCellRequest; + return Journal; })(); - vtctldata.RemoveShardCellResponse = (function() { + binlogdata.VEvent = (function() { /** - * Properties of a RemoveShardCellResponse. - * @memberof vtctldata - * @interface IRemoveShardCellResponse + * Properties of a VEvent. + * @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 */ /** - * Constructs a new RemoveShardCellResponse. - * @memberof vtctldata - * @classdesc Represents a RemoveShardCellResponse. - * @implements IRemoveShardCellResponse + * Constructs a new VEvent. + * @memberof binlogdata + * @classdesc Represents a VEvent. + * @implements IVEvent * @constructor - * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set + * @param {binlogdata.IVEvent=} [properties] Properties to set */ - function RemoveShardCellResponse(properties) { + function VEvent(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59056,63 +68061,206 @@ $root.vtctldata = (function() { } /** - * Creates a new RemoveShardCellResponse instance using the specified properties. + * 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; + + /** + * Creates a new VEvent instance using the specified properties. * @function create - * @memberof vtctldata.RemoveShardCellResponse + * @memberof binlogdata.VEvent * @static - * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse instance + * @param {binlogdata.IVEvent=} [properties] Properties to set + * @returns {binlogdata.VEvent} VEvent instance */ - RemoveShardCellResponse.create = function create(properties) { - return new RemoveShardCellResponse(properties); + VEvent.create = function create(properties) { + return new VEvent(properties); }; /** - * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * Encodes the specified VEvent message. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveShardCellResponse + * @memberof binlogdata.VEvent * @static - * @param {vtctldata.IRemoveShardCellResponse} message RemoveShardCellResponse 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 */ - RemoveShardCellResponse.encode = function encode(message, writer) { + VEvent.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(); return writer; }; /** - * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * Encodes the specified VEvent message, length delimited. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveShardCellResponse + * @memberof binlogdata.VEvent * @static - * @param {vtctldata.IRemoveShardCellResponse} message RemoveShardCellResponse 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 */ - RemoveShardCellResponse.encodeDelimited = function encodeDelimited(message, writer) { + VEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer. + * Decodes a VEvent message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveShardCellResponse + * @memberof binlogdata.VEvent * @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 {binlogdata.VEvent} VEvent * @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) { + VEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VEvent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.timestamp = reader.int64(); + break; + case 3: + message.gtid = reader.string(); + 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; default: reader.skipType(tag & 7); break; @@ -59122,94 +68270,348 @@ $root.vtctldata = (function() { }; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. + * Decodes a VEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveShardCellResponse + * @memberof binlogdata.VEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse + * @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 */ - RemoveShardCellResponse.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 RemoveShardCellResponse message. + * Verifies a VEvent message. * @function verify - * @memberof vtctldata.RemoveShardCellResponse + * @memberof binlogdata.VEvent * @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) { + VEvent.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: + 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")) { + var error = $root.binlogdata.RowEvent.verify(message.row_event); + if (error) + return "row_event." + error; + } + if (message.field_event != null && message.hasOwnProperty("field_event")) { + var error = $root.binlogdata.FieldEvent.verify(message.field_event); + if (error) + return "field_event." + error; + } + if (message.vgtid != null && message.hasOwnProperty("vgtid")) { + var error = $root.binlogdata.VGtid.verify(message.vgtid); + if (error) + return "vgtid." + error; + } + if (message.journal != null && message.hasOwnProperty("journal")) { + var 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")) { + var error = $root.binlogdata.LastPKEvent.verify(message.last_p_k_event); + if (error) + return "last_p_k_event." + error; + } return null; }; /** - * Creates a RemoveShardCellResponse 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 vtctldata.RemoveShardCellResponse + * @memberof binlogdata.VEvent * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse + * @returns {binlogdata.VEvent} VEvent */ - RemoveShardCellResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveShardCellResponse) + VEvent.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VEvent) return object; - return new $root.vtctldata.RemoveShardCellResponse(); + var message = new $root.binlogdata.VEvent(); + switch (object.type) { + 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; + } + 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); + } + 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); + } + return message; }; /** - * Creates a plain object from a RemoveShardCellResponse 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 vtctldata.RemoveShardCellResponse + * @memberof binlogdata.VEvent * @static - * @param {vtctldata.RemoveShardCellResponse} message RemoveShardCellResponse + * @param {binlogdata.VEvent} message VEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveShardCellResponse.toObject = function toObject() { - return {}; + VEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "UNKNOWN" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + object.gtid = ""; + object.statement = ""; + object.row_event = null; + object.field_event = null; + object.vgtid = null; + object.journal = null; + object.dml = ""; + if ($util.Long) { + var 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; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $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); + return object; }; /** - * Converts this RemoveShardCellResponse to JSON. + * Converts this VEvent to JSON. * @function toJSON - * @memberof vtctldata.RemoveShardCellResponse + * @memberof binlogdata.VEvent * @instance * @returns {Object.} JSON object */ - RemoveShardCellResponse.prototype.toJSON = function toJSON() { + VEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RemoveShardCellResponse; + return VEvent; })(); - vtctldata.ReparentTabletRequest = (function() { + binlogdata.MinimalTable = (function() { /** - * Properties of a ReparentTabletRequest. - * @memberof vtctldata - * @interface IReparentTabletRequest - * @property {topodata.ITabletAlias|null} [tablet] ReparentTabletRequest tablet + * Properties of a MinimalTable. + * @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 */ /** - * Constructs a new ReparentTabletRequest. - * @memberof vtctldata - * @classdesc Represents a ReparentTabletRequest. - * @implements IReparentTabletRequest + * Constructs a new MinimalTable. + * @memberof binlogdata + * @classdesc Represents a MinimalTable. + * @implements IMinimalTable * @constructor - * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set + * @param {binlogdata.IMinimalTable=} [properties] Properties to set */ - function ReparentTabletRequest(properties) { + function MinimalTable(properties) { + this.fields = []; + this.p_k_columns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59217,75 +68619,115 @@ $root.vtctldata = (function() { } /** - * ReparentTabletRequest tablet. - * @member {topodata.ITabletAlias|null|undefined} tablet - * @memberof vtctldata.ReparentTabletRequest + * MinimalTable name. + * @member {string} name + * @memberof binlogdata.MinimalTable * @instance */ - ReparentTabletRequest.prototype.tablet = null; + MinimalTable.prototype.name = ""; /** - * Creates a new ReparentTabletRequest instance using the specified properties. + * MinimalTable fields. + * @member {Array.} fields + * @memberof binlogdata.MinimalTable + * @instance + */ + MinimalTable.prototype.fields = $util.emptyArray; + + /** + * MinimalTable p_k_columns. + * @member {Array.} p_k_columns + * @memberof binlogdata.MinimalTable + * @instance + */ + MinimalTable.prototype.p_k_columns = $util.emptyArray; + + /** + * Creates a new MinimalTable instance using the specified properties. * @function create - * @memberof vtctldata.ReparentTabletRequest + * @memberof binlogdata.MinimalTable * @static - * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set - * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest instance + * @param {binlogdata.IMinimalTable=} [properties] Properties to set + * @returns {binlogdata.MinimalTable} MinimalTable instance */ - ReparentTabletRequest.create = function create(properties) { - return new ReparentTabletRequest(properties); + MinimalTable.create = function create(properties) { + return new MinimalTable(properties); }; /** - * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. + * Encodes the specified MinimalTable message. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. * @function encode - * @memberof vtctldata.ReparentTabletRequest + * @memberof binlogdata.MinimalTable * @static - * @param {vtctldata.IReparentTabletRequest} message ReparentTabletRequest 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 */ - ReparentTabletRequest.encode = function encode(message, writer) { + MinimalTable.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.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 (var 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 (var i = 0; i < message.p_k_columns.length; ++i) + writer.int64(message.p_k_columns[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified ReparentTabletRequest message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. + * Encodes the specified MinimalTable message, length delimited. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReparentTabletRequest + * @memberof binlogdata.MinimalTable * @static - * @param {vtctldata.IReparentTabletRequest} message ReparentTabletRequest 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 */ - ReparentTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { + MinimalTable.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer. + * Decodes a MinimalTable message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReparentTabletRequest + * @memberof binlogdata.MinimalTable * @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 {binlogdata.MinimalTable} MinimalTable * @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) { + MinimalTable.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.MinimalTable(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.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.p_k_columns && message.p_k_columns.length)) + message.p_k_columns = []; + if ((tag & 7) === 2) { + var 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; default: reader.skipType(tag & 7); @@ -59296,114 +68738,165 @@ $root.vtctldata = (function() { }; /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. + * Decodes a MinimalTable message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ReparentTabletRequest + * @memberof binlogdata.MinimalTable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest + * @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 */ - ReparentTabletRequest.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 ReparentTabletRequest message. + * Verifies a MinimalTable message. * @function verify - * @memberof vtctldata.ReparentTabletRequest + * @memberof binlogdata.MinimalTable * @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) { + MinimalTable.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - var error = $root.topodata.TabletAlias.verify(message.tablet); - if (error) - return "tablet." + 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 (var i = 0; i < message.fields.length; ++i) { + var error = $root.query.Field.verify(message.fields[i]); + if (error) + return "fields." + 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 (var 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"; } return null; }; /** - * Creates a ReparentTabletRequest 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 vtctldata.ReparentTabletRequest + * @memberof binlogdata.MinimalTable * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest + * @returns {binlogdata.MinimalTable} MinimalTable */ - ReparentTabletRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReparentTabletRequest) + MinimalTable.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.MinimalTable) return object; - var 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); + var 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 (var 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.p_k_columns) { + if (!Array.isArray(object.p_k_columns)) + throw TypeError(".binlogdata.MinimalTable.p_k_columns: array expected"); + message.p_k_columns = []; + for (var 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(); } return message; }; /** - * Creates a plain object from a ReparentTabletRequest 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 vtctldata.ReparentTabletRequest + * @memberof binlogdata.MinimalTable * @static - * @param {vtctldata.ReparentTabletRequest} message ReparentTabletRequest + * @param {binlogdata.MinimalTable} message MinimalTable * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReparentTabletRequest.toObject = function toObject(message, options) { + MinimalTable.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.fields = []; + object.p_k_columns = []; + } if (options.defaults) - object.tablet = null; - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.fields && message.fields.length) { + object.fields = []; + for (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + } + if (message.p_k_columns && message.p_k_columns.length) { + object.p_k_columns = []; + for (var 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]; + } return object; }; /** - * Converts this ReparentTabletRequest to JSON. + * Converts this MinimalTable to JSON. * @function toJSON - * @memberof vtctldata.ReparentTabletRequest + * @memberof binlogdata.MinimalTable * @instance * @returns {Object.} JSON object */ - ReparentTabletRequest.prototype.toJSON = function toJSON() { + MinimalTable.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReparentTabletRequest; + return MinimalTable; })(); - vtctldata.ReparentTabletResponse = (function() { + binlogdata.MinimalSchema = (function() { /** - * Properties of a ReparentTabletResponse. - * @memberof vtctldata - * @interface IReparentTabletResponse - * @property {string|null} [keyspace] ReparentTabletResponse keyspace - * @property {string|null} [shard] ReparentTabletResponse shard - * @property {topodata.ITabletAlias|null} [primary] ReparentTabletResponse primary + * Properties of a MinimalSchema. + * @memberof binlogdata + * @interface IMinimalSchema + * @property {Array.|null} [tables] MinimalSchema tables */ /** - * Constructs a new ReparentTabletResponse. - * @memberof vtctldata - * @classdesc Represents a ReparentTabletResponse. - * @implements IReparentTabletResponse + * Constructs a new MinimalSchema. + * @memberof binlogdata + * @classdesc Represents a MinimalSchema. + * @implements IMinimalSchema * @constructor - * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set + * @param {binlogdata.IMinimalSchema=} [properties] Properties to set */ - function ReparentTabletResponse(properties) { + function MinimalSchema(properties) { + this.tables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59411,101 +68904,78 @@ $root.vtctldata = (function() { } /** - * ReparentTabletResponse keyspace. - * @member {string} keyspace - * @memberof vtctldata.ReparentTabletResponse - * @instance - */ - ReparentTabletResponse.prototype.keyspace = ""; - - /** - * ReparentTabletResponse shard. - * @member {string} shard - * @memberof vtctldata.ReparentTabletResponse - * @instance - */ - ReparentTabletResponse.prototype.shard = ""; - - /** - * ReparentTabletResponse primary. - * @member {topodata.ITabletAlias|null|undefined} primary - * @memberof vtctldata.ReparentTabletResponse + * MinimalSchema tables. + * @member {Array.} tables + * @memberof binlogdata.MinimalSchema * @instance */ - ReparentTabletResponse.prototype.primary = null; + MinimalSchema.prototype.tables = $util.emptyArray; /** - * Creates a new ReparentTabletResponse instance using the specified properties. + * Creates a new MinimalSchema instance using the specified properties. * @function create - * @memberof vtctldata.ReparentTabletResponse + * @memberof binlogdata.MinimalSchema * @static - * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set - * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse instance + * @param {binlogdata.IMinimalSchema=} [properties] Properties to set + * @returns {binlogdata.MinimalSchema} MinimalSchema instance */ - ReparentTabletResponse.create = function create(properties) { - return new ReparentTabletResponse(properties); + MinimalSchema.create = function create(properties) { + return new MinimalSchema(properties); }; /** - * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. + * Encodes the specified MinimalSchema message. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. * @function encode - * @memberof vtctldata.ReparentTabletResponse + * @memberof binlogdata.MinimalSchema * @static - * @param {vtctldata.IReparentTabletResponse} message ReparentTabletResponse 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 */ - ReparentTabletResponse.encode = function encode(message, writer) { + MinimalSchema.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(); + if (message.tables != null && message.tables.length) + for (var 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 ReparentTabletResponse message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. + * Encodes the specified MinimalSchema message, length delimited. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReparentTabletResponse + * @memberof binlogdata.MinimalSchema * @static - * @param {vtctldata.IReparentTabletResponse} message ReparentTabletResponse 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 */ - ReparentTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { + MinimalSchema.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer. + * Decodes a MinimalSchema message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReparentTabletResponse + * @memberof binlogdata.MinimalSchema * @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 {binlogdata.MinimalSchema} MinimalSchema * @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) { + MinimalSchema.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.MinimalSchema(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); - break; - case 2: - message.shard = reader.string(); - break; - case 3: - message.primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push($root.binlogdata.MinimalTable.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -59516,129 +68986,130 @@ $root.vtctldata = (function() { }; /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. + * Decodes a MinimalSchema message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ReparentTabletResponse + * @memberof binlogdata.MinimalSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse + * @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 */ - ReparentTabletResponse.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 ReparentTabletResponse message. + * Verifies a MinimalSchema message. * @function verify - * @memberof vtctldata.ReparentTabletResponse + * @memberof binlogdata.MinimalSchema * @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) { + MinimalSchema.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 != null && message.hasOwnProperty("primary")) { - var error = $root.topodata.TabletAlias.verify(message.primary); - if (error) - return "primary." + error; + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (var i = 0; i < message.tables.length; ++i) { + var error = $root.binlogdata.MinimalTable.verify(message.tables[i]); + if (error) + return "tables." + error; + } } return null; }; /** - * Creates a ReparentTabletResponse 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 vtctldata.ReparentTabletResponse + * @memberof binlogdata.MinimalSchema * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse + * @returns {binlogdata.MinimalSchema} MinimalSchema */ - ReparentTabletResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReparentTabletResponse) + MinimalSchema.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.MinimalSchema) return object; - var 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.primary != null) { - if (typeof object.primary !== "object") - throw TypeError(".vtctldata.ReparentTabletResponse.primary: object expected"); - message.primary = $root.topodata.TabletAlias.fromObject(object.primary); + var message = new $root.binlogdata.MinimalSchema(); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".binlogdata.MinimalSchema.tables: array expected"); + message.tables = []; + for (var 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]); + } } return message; }; /** - * Creates a plain object from a ReparentTabletResponse 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 vtctldata.ReparentTabletResponse + * @memberof binlogdata.MinimalSchema * @static - * @param {vtctldata.ReparentTabletResponse} message ReparentTabletResponse + * @param {binlogdata.MinimalSchema} message MinimalSchema * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReparentTabletResponse.toObject = function toObject(message, options) { + MinimalSchema.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.primary = null; + if (options.arrays || options.defaults) + object.tables = []; + if (message.tables && message.tables.length) { + object.tables = []; + for (var j = 0; j < message.tables.length; ++j) + object.tables[j] = $root.binlogdata.MinimalTable.toObject(message.tables[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.primary != null && message.hasOwnProperty("primary")) - object.primary = $root.topodata.TabletAlias.toObject(message.primary, options); return object; }; /** - * Converts this ReparentTabletResponse to JSON. + * Converts this MinimalSchema to JSON. * @function toJSON - * @memberof vtctldata.ReparentTabletResponse + * @memberof binlogdata.MinimalSchema * @instance * @returns {Object.} JSON object */ - ReparentTabletResponse.prototype.toJSON = function toJSON() { + MinimalSchema.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReparentTabletResponse; + return MinimalSchema; })(); - vtctldata.TabletExternallyReparentedRequest = (function() { + binlogdata.VStreamRequest = (function() { /** - * Properties of a TabletExternallyReparentedRequest. - * @memberof vtctldata - * @interface ITabletExternallyReparentedRequest - * @property {topodata.ITabletAlias|null} [tablet] TabletExternallyReparentedRequest tablet + * Properties of a VStreamRequest. + * @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 */ /** - * Constructs a new TabletExternallyReparentedRequest. - * @memberof vtctldata - * @classdesc Represents a TabletExternallyReparentedRequest. - * @implements ITabletExternallyReparentedRequest + * Constructs a new VStreamRequest. + * @memberof binlogdata + * @classdesc Represents a VStreamRequest. + * @implements IVStreamRequest * @constructor - * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set + * @param {binlogdata.IVStreamRequest=} [properties] Properties to set */ - function TabletExternallyReparentedRequest(properties) { + function VStreamRequest(properties) { + this.table_last_p_ks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59646,75 +69117,143 @@ $root.vtctldata = (function() { } /** - * TabletExternallyReparentedRequest tablet. - * @member {topodata.ITabletAlias|null|undefined} tablet - * @memberof vtctldata.TabletExternallyReparentedRequest + * VStreamRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof binlogdata.VStreamRequest * @instance */ - TabletExternallyReparentedRequest.prototype.tablet = null; + VStreamRequest.prototype.effective_caller_id = null; /** - * Creates a new TabletExternallyReparentedRequest instance using the specified properties. + * 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; + + /** + * Creates a new VStreamRequest instance using the specified properties. * @function create - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof binlogdata.VStreamRequest * @static - * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set - * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest instance + * @param {binlogdata.IVStreamRequest=} [properties] Properties to set + * @returns {binlogdata.VStreamRequest} VStreamRequest instance */ - TabletExternallyReparentedRequest.create = function create(properties) { - return new TabletExternallyReparentedRequest(properties); + VStreamRequest.create = function create(properties) { + return new VStreamRequest(properties); }; /** - * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. + * Encodes the specified VStreamRequest message. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof binlogdata.VStreamRequest * @static - * @param {vtctldata.ITabletExternallyReparentedRequest} message TabletExternallyReparentedRequest 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 */ - TabletExternallyReparentedRequest.encode = function encode(message, writer) { + VStreamRequest.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.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 (var 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(); return writer; }; /** - * Encodes the specified TabletExternallyReparentedRequest message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. + * Encodes the specified VStreamRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof binlogdata.VStreamRequest * @static - * @param {vtctldata.ITabletExternallyReparentedRequest} message TabletExternallyReparentedRequest 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 */ - TabletExternallyReparentedRequest.encodeDelimited = function encodeDelimited(message, writer) { + VStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. + * Decodes a VStreamRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof binlogdata.VStreamRequest * @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 {binlogdata.VStreamRequest} VStreamRequest * @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) { + VStreamRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.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; default: reader.skipType(tag & 7); @@ -59725,115 +69264,187 @@ $root.vtctldata = (function() { }; /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. + * Decodes a VStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof binlogdata.VStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest + * @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 */ - TabletExternallyReparentedRequest.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 TabletExternallyReparentedRequest message. + * Verifies a VStreamRequest message. * @function verify - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof binlogdata.VStreamRequest * @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) { + VStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - var error = $root.topodata.TabletAlias.verify(message.tablet); + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); if (error) - return "tablet." + error; + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) { + var 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 (var i = 0; i < message.table_last_p_ks.length; ++i) { + var error = $root.binlogdata.TableLastPK.verify(message.table_last_p_ks[i]); + if (error) + return "table_last_p_ks." + error; + } } return null; }; /** - * Creates a TabletExternallyReparentedRequest 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 vtctldata.TabletExternallyReparentedRequest + * @memberof binlogdata.VStreamRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest + * @returns {binlogdata.VStreamRequest} VStreamRequest */ - TabletExternallyReparentedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.TabletExternallyReparentedRequest) + VStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamRequest) return object; - var 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); + var 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 (var 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]); + } } return message; }; /** - * Creates a plain object from a TabletExternallyReparentedRequest 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 vtctldata.TabletExternallyReparentedRequest + * @memberof binlogdata.VStreamRequest * @static - * @param {vtctldata.TabletExternallyReparentedRequest} message TabletExternallyReparentedRequest + * @param {binlogdata.VStreamRequest} message VStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TabletExternallyReparentedRequest.toObject = function toObject(message, options) { + VStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.tablet = null; - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); + 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; + } + 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 (var 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); + } return object; }; /** - * Converts this TabletExternallyReparentedRequest to JSON. + * Converts this VStreamRequest to JSON. * @function toJSON - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof binlogdata.VStreamRequest * @instance * @returns {Object.} JSON object */ - TabletExternallyReparentedRequest.prototype.toJSON = function toJSON() { + VStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TabletExternallyReparentedRequest; + return VStreamRequest; })(); - vtctldata.TabletExternallyReparentedResponse = (function() { + binlogdata.VStreamResponse = (function() { /** - * Properties of a TabletExternallyReparentedResponse. - * @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 + * Properties of a VStreamResponse. + * @memberof binlogdata + * @interface IVStreamResponse + * @property {Array.|null} [events] VStreamResponse events */ /** - * Constructs a new TabletExternallyReparentedResponse. - * @memberof vtctldata - * @classdesc Represents a TabletExternallyReparentedResponse. - * @implements ITabletExternallyReparentedResponse + * Constructs a new VStreamResponse. + * @memberof binlogdata + * @classdesc Represents a VStreamResponse. + * @implements IVStreamResponse * @constructor - * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set + * @param {binlogdata.IVStreamResponse=} [properties] Properties to set */ - function TabletExternallyReparentedResponse(properties) { + function VStreamResponse(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59841,114 +69452,78 @@ $root.vtctldata = (function() { } /** - * TabletExternallyReparentedResponse keyspace. - * @member {string} keyspace - * @memberof vtctldata.TabletExternallyReparentedResponse - * @instance - */ - TabletExternallyReparentedResponse.prototype.keyspace = ""; - - /** - * 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 + * VStreamResponse events. + * @member {Array.} events + * @memberof binlogdata.VStreamResponse * @instance */ - TabletExternallyReparentedResponse.prototype.old_primary = null; + VStreamResponse.prototype.events = $util.emptyArray; /** - * Creates a new TabletExternallyReparentedResponse instance using the specified properties. + * Creates a new VStreamResponse instance using the specified properties. * @function create - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof binlogdata.VStreamResponse * @static - * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set - * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse instance + * @param {binlogdata.IVStreamResponse=} [properties] Properties to set + * @returns {binlogdata.VStreamResponse} VStreamResponse instance */ - TabletExternallyReparentedResponse.create = function create(properties) { - return new TabletExternallyReparentedResponse(properties); + VStreamResponse.create = function create(properties) { + return new VStreamResponse(properties); }; /** - * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. + * Encodes the specified VStreamResponse message. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof binlogdata.VStreamResponse * @static - * @param {vtctldata.ITabletExternallyReparentedResponse} message TabletExternallyReparentedResponse message or plain object to encode + * @param {binlogdata.IVStreamResponse} message VStreamResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TabletExternallyReparentedResponse.encode = function encode(message, writer) { + VStreamResponse.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.events != null && message.events.length) + for (var 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 TabletExternallyReparentedResponse message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. + * Encodes the specified VStreamResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof binlogdata.VStreamResponse * @static - * @param {vtctldata.ITabletExternallyReparentedResponse} message TabletExternallyReparentedResponse message or plain object to encode + * @param {binlogdata.IVStreamResponse} message VStreamResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TabletExternallyReparentedResponse.encodeDelimited = function encodeDelimited(message, writer) { + VStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. + * Decodes a VStreamResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof binlogdata.VStreamResponse * @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 {binlogdata.VStreamResponse} VStreamResponse * @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) { + VStreamResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResponse(); while (reader.pos < end) { var 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: - message.old_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.binlogdata.VEvent.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -59959,143 +69534,128 @@ $root.vtctldata = (function() { }; /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. + * Decodes a VStreamResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof binlogdata.VStreamResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse + * @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 */ - TabletExternallyReparentedResponse.decodeDelimited = function decodeDelimited(reader) { + VStreamResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TabletExternallyReparentedResponse message. + * Verifies a VStreamResponse message. * @function verify - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof binlogdata.VStreamResponse * @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) { + VStreamResponse.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")) { - var error = $root.topodata.TabletAlias.verify(message.new_primary); - if (error) - return "new_primary." + error; - } - if (message.old_primary != null && message.hasOwnProperty("old_primary")) { - var error = $root.topodata.TabletAlias.verify(message.old_primary); - if (error) - return "old_primary." + error; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.binlogdata.VEvent.verify(message.events[i]); + if (error) + return "events." + error; + } } return null; }; /** - * Creates a TabletExternallyReparentedResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VStreamResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof binlogdata.VStreamResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse + * @returns {binlogdata.VStreamResponse} VStreamResponse */ - TabletExternallyReparentedResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.TabletExternallyReparentedResponse) + VStreamResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamResponse) return object; - var 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); + var message = new $root.binlogdata.VStreamResponse(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".binlogdata.VStreamResponse.events: array expected"); + message.events = []; + for (var 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 TabletExternallyReparentedResponse message. Also converts values to other types if specified. + * Creates a plain object from a VStreamResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof binlogdata.VStreamResponse * @static - * @param {vtctldata.TabletExternallyReparentedResponse} message TabletExternallyReparentedResponse + * @param {binlogdata.VStreamResponse} message VStreamResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TabletExternallyReparentedResponse.toObject = function toObject(message, options) { + VStreamResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.new_primary = null; - object.old_primary = null; + if (options.arrays || options.defaults) + object.events = []; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.binlogdata.VEvent.toObject(message.events[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.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 TabletExternallyReparentedResponse to JSON. + * Converts this VStreamResponse to JSON. * @function toJSON - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof binlogdata.VStreamResponse * @instance * @returns {Object.} JSON object */ - TabletExternallyReparentedResponse.prototype.toJSON = function toJSON() { + VStreamResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TabletExternallyReparentedResponse; + return VStreamResponse; })(); - vtctldata.Keyspace = (function() { - - /** - * Properties of a Keyspace. - * @memberof vtctldata - * @interface IKeyspace - * @property {string|null} [name] Keyspace name - * @property {topodata.IKeyspace|null} [keyspace] Keyspace keyspace - */ + binlogdata.VStreamRowsRequest = (function() { /** - * Constructs a new Keyspace. - * @memberof vtctldata - * @classdesc Represents a Keyspace. - * @implements IKeyspace + * 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 + */ + + /** + * Constructs a new VStreamRowsRequest. + * @memberof binlogdata + * @classdesc Represents a VStreamRowsRequest. + * @implements IVStreamRowsRequest * @constructor - * @param {vtctldata.IKeyspace=} [properties] Properties to set + * @param {binlogdata.IVStreamRowsRequest=} [properties] Properties to set */ - function Keyspace(properties) { + function VStreamRowsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60103,88 +69663,127 @@ $root.vtctldata = (function() { } /** - * Keyspace name. - * @member {string} name - * @memberof vtctldata.Keyspace + * VStreamRowsRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof binlogdata.VStreamRowsRequest * @instance */ - Keyspace.prototype.name = ""; + VStreamRowsRequest.prototype.effective_caller_id = null; /** - * Keyspace keyspace. - * @member {topodata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.Keyspace + * VStreamRowsRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof binlogdata.VStreamRowsRequest * @instance */ - Keyspace.prototype.keyspace = null; + VStreamRowsRequest.prototype.immediate_caller_id = null; /** - * Creates a new Keyspace instance using the specified properties. + * VStreamRowsRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof binlogdata.VStreamRowsRequest + * @instance + */ + VStreamRowsRequest.prototype.target = null; + + /** + * VStreamRowsRequest query. + * @member {string} query + * @memberof binlogdata.VStreamRowsRequest + * @instance + */ + VStreamRowsRequest.prototype.query = ""; + + /** + * VStreamRowsRequest lastpk. + * @member {query.IQueryResult|null|undefined} lastpk + * @memberof binlogdata.VStreamRowsRequest + * @instance + */ + VStreamRowsRequest.prototype.lastpk = null; + + /** + * Creates a new VStreamRowsRequest instance using the specified properties. * @function create - * @memberof vtctldata.Keyspace + * @memberof binlogdata.VStreamRowsRequest * @static - * @param {vtctldata.IKeyspace=} [properties] Properties to set - * @returns {vtctldata.Keyspace} Keyspace instance + * @param {binlogdata.IVStreamRowsRequest=} [properties] Properties to set + * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest instance */ - Keyspace.create = function create(properties) { - return new Keyspace(properties); + VStreamRowsRequest.create = function create(properties) { + return new VStreamRowsRequest(properties); }; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * Encodes the specified VStreamRowsRequest message. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.Keyspace + * @memberof binlogdata.VStreamRowsRequest * @static - * @param {vtctldata.IKeyspace} message Keyspace 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 */ - Keyspace.encode = function encode(message, writer) { + VStreamRowsRequest.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.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(); return writer; }; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * Encodes the specified VStreamRowsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Keyspace + * @memberof binlogdata.VStreamRowsRequest * @static - * @param {vtctldata.IKeyspace} message Keyspace 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 */ - Keyspace.encodeDelimited = function encodeDelimited(message, writer) { + VStreamRowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a VStreamRowsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Keyspace + * @memberof binlogdata.VStreamRowsRequest * @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 {binlogdata.VStreamRowsRequest} VStreamRowsRequest * @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) { + VStreamRowsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Keyspace(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRowsRequest(); while (reader.pos < end) { var 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.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); + 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 = reader.string(); + break; + case 5: + message.lastpk = $root.query.QueryResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -60195,121 +69794,167 @@ $root.vtctldata = (function() { }; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * Decodes a VStreamRowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.Keyspace + * @memberof binlogdata.VStreamRowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Keyspace} Keyspace + * @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 */ - Keyspace.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 Keyspace message. + * Verifies a VStreamRowsRequest message. * @function verify - * @memberof vtctldata.Keyspace + * @memberof binlogdata.VStreamRowsRequest * @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) { + VStreamRowsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.topodata.Keyspace.verify(message.keyspace); + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); if (error) - return "keyspace." + error; + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; + if (message.lastpk != null && message.hasOwnProperty("lastpk")) { + var error = $root.query.QueryResult.verify(message.lastpk); + if (error) + return "lastpk." + error; } return null; }; /** - * Creates a Keyspace 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 vtctldata.Keyspace + * @memberof binlogdata.VStreamRowsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.Keyspace} Keyspace + * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest */ - Keyspace.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Keyspace) + VStreamRowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamRowsRequest) return object; - var message = new $root.vtctldata.Keyspace(); - if (object.name != null) - message.name = String(object.name); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtctldata.Keyspace.keyspace: object expected"); - message.keyspace = $root.topodata.Keyspace.fromObject(object.keyspace); + var message = new $root.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); + } + 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.target != null) { + if (typeof object.target !== "object") + 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); } return message; }; /** - * Creates a plain object from a Keyspace 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 vtctldata.Keyspace + * @memberof binlogdata.VStreamRowsRequest * @static - * @param {vtctldata.Keyspace} message Keyspace + * @param {binlogdata.VStreamRowsRequest} message VStreamRowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Keyspace.toObject = function toObject(message, options) { + VStreamRowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.keyspace = null; + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = ""; + object.lastpk = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.topodata.Keyspace.toObject(message.keyspace, options); + 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); return object; }; /** - * Converts this Keyspace to JSON. + * Converts this VStreamRowsRequest to JSON. * @function toJSON - * @memberof vtctldata.Keyspace + * @memberof binlogdata.VStreamRowsRequest * @instance * @returns {Object.} JSON object */ - Keyspace.prototype.toJSON = function toJSON() { + VStreamRowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Keyspace; + return VStreamRowsRequest; })(); - vtctldata.FindAllShardsInKeyspaceRequest = (function() { + binlogdata.VStreamRowsResponse = (function() { /** - * Properties of a FindAllShardsInKeyspaceRequest. - * @memberof vtctldata - * @interface IFindAllShardsInKeyspaceRequest - * @property {string|null} [keyspace] FindAllShardsInKeyspaceRequest keyspace + * Properties of a VStreamRowsResponse. + * @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 */ /** - * Constructs a new FindAllShardsInKeyspaceRequest. - * @memberof vtctldata - * @classdesc Represents a FindAllShardsInKeyspaceRequest. - * @implements IFindAllShardsInKeyspaceRequest + * Constructs a new VStreamRowsResponse. + * @memberof binlogdata + * @classdesc Represents a VStreamRowsResponse. + * @implements IVStreamRowsResponse * @constructor - * @param {vtctldata.IFindAllShardsInKeyspaceRequest=} [properties] Properties to set + * @param {binlogdata.IVStreamRowsResponse=} [properties] Properties to set */ - function FindAllShardsInKeyspaceRequest(properties) { + function VStreamRowsResponse(properties) { + this.fields = []; + this.pkfields = []; + this.rows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60317,75 +69962,136 @@ $root.vtctldata = (function() { } /** - * FindAllShardsInKeyspaceRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * VStreamRowsResponse fields. + * @member {Array.} fields + * @memberof binlogdata.VStreamRowsResponse * @instance */ - FindAllShardsInKeyspaceRequest.prototype.keyspace = ""; + VStreamRowsResponse.prototype.fields = $util.emptyArray; /** - * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. + * VStreamRowsResponse pkfields. + * @member {Array.} pkfields + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.pkfields = $util.emptyArray; + + /** + * VStreamRowsResponse gtid. + * @member {string} gtid + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.gtid = ""; + + /** + * VStreamRowsResponse rows. + * @member {Array.} rows + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.rows = $util.emptyArray; + + /** + * VStreamRowsResponse lastpk. + * @member {query.IRow|null|undefined} lastpk + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.lastpk = null; + + /** + * Creates a new VStreamRowsResponse instance using the specified properties. * @function create - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof binlogdata.VStreamRowsResponse * @static - * @param {vtctldata.IFindAllShardsInKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest instance + * @param {binlogdata.IVStreamRowsResponse=} [properties] Properties to set + * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse instance */ - FindAllShardsInKeyspaceRequest.create = function create(properties) { - return new FindAllShardsInKeyspaceRequest(properties); + VStreamRowsResponse.create = function create(properties) { + return new VStreamRowsResponse(properties); }; /** - * Encodes the specified FindAllShardsInKeyspaceRequest message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * Encodes the specified VStreamRowsResponse message. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof binlogdata.VStreamRowsResponse * @static - * @param {vtctldata.IFindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest 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 */ - FindAllShardsInKeyspaceRequest.encode = function encode(message, writer) { + VStreamRowsResponse.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.fields != null && message.fields.length) + for (var i = 0; i < message.fields.length; ++i) + $root.query.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pkfields != null && message.pkfields.length) + for (var 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 (var i = 0; i < message.rows.length; ++i) + $root.query.Row.encode(message.rows[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.lastpk != null && Object.hasOwnProperty.call(message, "lastpk")) + $root.query.Row.encode(message.lastpk, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified FindAllShardsInKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * Encodes the specified VStreamRowsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof binlogdata.VStreamRowsResponse * @static - * @param {vtctldata.IFindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest 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 */ - FindAllShardsInKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + VStreamRowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. + * Decodes a VStreamRowsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof binlogdata.VStreamRowsResponse * @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 {binlogdata.VStreamRowsResponse} VStreamRowsResponse * @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) { + VStreamRowsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.FindAllShardsInKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRowsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = 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.pkfields && message.pkfields.length)) + message.pkfields = []; + message.pkfields.push($root.query.Field.decode(reader, reader.uint32())); + break; + 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; + case 5: + message.lastpk = $root.query.Row.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -60396,108 +70102,199 @@ $root.vtctldata = (function() { }; /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a VStreamRowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof binlogdata.VStreamRowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest + * @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 */ - FindAllShardsInKeyspaceRequest.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 FindAllShardsInKeyspaceRequest message. + * Verifies a VStreamRowsResponse message. * @function verify - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof binlogdata.VStreamRowsResponse * @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) { + VStreamRowsResponse.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.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (var i = 0; i < message.fields.length; ++i) { + var error = $root.query.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } + } + if (message.pkfields != null && message.hasOwnProperty("pkfields")) { + if (!Array.isArray(message.pkfields)) + return "pkfields: array expected"; + for (var i = 0; i < message.pkfields.length; ++i) { + var 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 (var i = 0; i < message.rows.length; ++i) { + var error = $root.query.Row.verify(message.rows[i]); + if (error) + return "rows." + error; + } + } + if (message.lastpk != null && message.hasOwnProperty("lastpk")) { + var error = $root.query.Row.verify(message.lastpk); + if (error) + return "lastpk." + error; + } return null; }; /** - * Creates a FindAllShardsInKeyspaceRequest 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 vtctldata.FindAllShardsInKeyspaceRequest + * @memberof binlogdata.VStreamRowsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest + * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse */ - FindAllShardsInKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.FindAllShardsInKeyspaceRequest) + VStreamRowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamRowsResponse) return object; - var message = new $root.vtctldata.FindAllShardsInKeyspaceRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); + var message = new $root.binlogdata.VStreamRowsResponse(); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".binlogdata.VStreamRowsResponse.fields: array expected"); + message.fields = []; + for (var 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 (var 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.VStreamRowsResponse.rows: array expected"); + message.rows = []; + for (var 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.lastpk != null) { + if (typeof object.lastpk !== "object") + throw TypeError(".binlogdata.VStreamRowsResponse.lastpk: object expected"); + message.lastpk = $root.query.Row.fromObject(object.lastpk); + } return message; }; /** - * Creates a plain object from a FindAllShardsInKeyspaceRequest 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 vtctldata.FindAllShardsInKeyspaceRequest + * @memberof binlogdata.VStreamRowsResponse * @static - * @param {vtctldata.FindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest + * @param {binlogdata.VStreamRowsResponse} message VStreamRowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FindAllShardsInKeyspaceRequest.toObject = function toObject(message, options) { + VStreamRowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; + if (options.arrays || options.defaults) { + object.fields = []; + object.pkfields = []; + object.rows = []; + } + if (options.defaults) { + object.gtid = ""; + object.lastpk = null; + } + if (message.fields && message.fields.length) { + object.fields = []; + for (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + } + if (message.pkfields && message.pkfields.length) { + object.pkfields = []; + for (var 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 (var 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 FindAllShardsInKeyspaceRequest to JSON. + * Converts this VStreamRowsResponse to JSON. * @function toJSON - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof binlogdata.VStreamRowsResponse * @instance * @returns {Object.} JSON object */ - FindAllShardsInKeyspaceRequest.prototype.toJSON = function toJSON() { + VStreamRowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FindAllShardsInKeyspaceRequest; + return VStreamRowsResponse; })(); - vtctldata.FindAllShardsInKeyspaceResponse = (function() { + binlogdata.LastPKEvent = (function() { /** - * Properties of a FindAllShardsInKeyspaceResponse. - * @memberof vtctldata - * @interface IFindAllShardsInKeyspaceResponse - * @property {Object.|null} [shards] FindAllShardsInKeyspaceResponse shards + * 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 FindAllShardsInKeyspaceResponse. - * @memberof vtctldata - * @classdesc Represents a FindAllShardsInKeyspaceResponse. - * @implements IFindAllShardsInKeyspaceResponse + * Constructs a new LastPKEvent. + * @memberof binlogdata + * @classdesc Represents a LastPKEvent. + * @implements ILastPKEvent * @constructor - * @param {vtctldata.IFindAllShardsInKeyspaceResponse=} [properties] Properties to set + * @param {binlogdata.ILastPKEvent=} [properties] Properties to set */ - function FindAllShardsInKeyspaceResponse(properties) { - this.shards = {}; + function LastPKEvent(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60505,97 +70302,88 @@ $root.vtctldata = (function() { } /** - * FindAllShardsInKeyspaceResponse shards. - * @member {Object.} shards - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * LastPKEvent table_last_p_k. + * @member {binlogdata.ITableLastPK|null|undefined} table_last_p_k + * @memberof binlogdata.LastPKEvent * @instance */ - FindAllShardsInKeyspaceResponse.prototype.shards = $util.emptyObject; + LastPKEvent.prototype.table_last_p_k = null; /** - * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. + * LastPKEvent completed. + * @member {boolean} completed + * @memberof binlogdata.LastPKEvent + * @instance + */ + LastPKEvent.prototype.completed = false; + + /** + * Creates a new LastPKEvent instance using the specified properties. * @function create - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof binlogdata.LastPKEvent * @static - * @param {vtctldata.IFindAllShardsInKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse instance + * @param {binlogdata.ILastPKEvent=} [properties] Properties to set + * @returns {binlogdata.LastPKEvent} LastPKEvent instance */ - FindAllShardsInKeyspaceResponse.create = function create(properties) { - return new FindAllShardsInKeyspaceResponse(properties); + LastPKEvent.create = function create(properties) { + return new LastPKEvent(properties); }; /** - * Encodes the specified FindAllShardsInKeyspaceResponse message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * Encodes the specified LastPKEvent message. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. * @function encode - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof binlogdata.LastPKEvent * @static - * @param {vtctldata.IFindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse 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 */ - FindAllShardsInKeyspaceResponse.encode = function encode(message, writer) { + LastPKEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shards != null && Object.hasOwnProperty.call(message, "shards")) - for (var 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.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 FindAllShardsInKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * Encodes the specified LastPKEvent message, length delimited. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof binlogdata.LastPKEvent * @static - * @param {vtctldata.IFindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse 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 */ - FindAllShardsInKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + LastPKEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. + * Decodes a LastPKEvent message from the specified reader or buffer. * @function decode - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof binlogdata.LastPKEvent * @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 {binlogdata.LastPKEvent} LastPKEvent * @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) { + LastPKEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.FindAllShardsInKeyspaceResponse(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.LastPKEvent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (message.shards === $util.emptyObject) - message.shards = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtctldata.Shard.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.shards[key] = value; + message.table_last_p_k = $root.binlogdata.TableLastPK.decode(reader, reader.uint32()); + break; + case 2: + message.completed = reader.bool(); break; default: reader.skipType(tag & 7); @@ -60606,128 +70394,122 @@ $root.vtctldata = (function() { }; /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a LastPKEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof binlogdata.LastPKEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse + * @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 */ - FindAllShardsInKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + LastPKEvent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FindAllShardsInKeyspaceResponse message. + * Verifies a LastPKEvent message. * @function verify - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof binlogdata.LastPKEvent * @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) { + LastPKEvent.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"; - var key = Object.keys(message.shards); - for (var i = 0; i < key.length; ++i) { - var error = $root.vtctldata.Shard.verify(message.shards[key[i]]); - if (error) - return "shards." + error; - } + if (message.table_last_p_k != null && message.hasOwnProperty("table_last_p_k")) { + var 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 a FindAllShardsInKeyspaceResponse 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 vtctldata.FindAllShardsInKeyspaceResponse + * @memberof binlogdata.LastPKEvent * @static * @param {Object.} object Plain object - * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse + * @returns {binlogdata.LastPKEvent} LastPKEvent */ - FindAllShardsInKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.FindAllShardsInKeyspaceResponse) + LastPKEvent.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.LastPKEvent) return object; - var message = new $root.vtctldata.FindAllShardsInKeyspaceResponse(); - if (object.shards) { - if (typeof object.shards !== "object") - throw TypeError(".vtctldata.FindAllShardsInKeyspaceResponse.shards: object expected"); - message.shards = {}; - for (var 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]]); - } - } + var 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 a FindAllShardsInKeyspaceResponse 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 vtctldata.FindAllShardsInKeyspaceResponse + * @memberof binlogdata.LastPKEvent * @static - * @param {vtctldata.FindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse + * @param {binlogdata.LastPKEvent} message LastPKEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FindAllShardsInKeyspaceResponse.toObject = function toObject(message, options) { + LastPKEvent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.shards = {}; - var keys2; - if (message.shards && (keys2 = Object.keys(message.shards)).length) { - object.shards = {}; - for (var j = 0; j < keys2.length; ++j) - object.shards[keys2[j]] = $root.vtctldata.Shard.toObject(message.shards[keys2[j]], options); + if (options.defaults) { + object.table_last_p_k = null; + object.completed = false; } + 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 FindAllShardsInKeyspaceResponse to JSON. + * Converts this LastPKEvent to JSON. * @function toJSON - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof binlogdata.LastPKEvent * @instance * @returns {Object.} JSON object */ - FindAllShardsInKeyspaceResponse.prototype.toJSON = function toJSON() { + LastPKEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FindAllShardsInKeyspaceResponse; + return LastPKEvent; })(); - vtctldata.Shard = (function() { + binlogdata.TableLastPK = (function() { /** - * Properties of a Shard. - * @memberof vtctldata - * @interface IShard - * @property {string|null} [keyspace] Shard keyspace - * @property {string|null} [name] Shard name - * @property {topodata.IShard|null} [shard] Shard shard + * Properties of a TableLastPK. + * @memberof binlogdata + * @interface ITableLastPK + * @property {string|null} [table_name] TableLastPK table_name + * @property {query.IQueryResult|null} [lastpk] TableLastPK lastpk */ /** - * Constructs a new Shard. - * @memberof vtctldata - * @classdesc Represents a Shard. - * @implements IShard + * Constructs a new TableLastPK. + * @memberof binlogdata + * @classdesc Represents a TableLastPK. + * @implements ITableLastPK * @constructor - * @param {vtctldata.IShard=} [properties] Properties to set + * @param {binlogdata.ITableLastPK=} [properties] Properties to set */ - function Shard(properties) { + function TableLastPK(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60735,101 +70517,88 @@ $root.vtctldata = (function() { } /** - * Shard keyspace. - * @member {string} keyspace - * @memberof vtctldata.Shard - * @instance - */ - Shard.prototype.keyspace = ""; - - /** - * Shard name. - * @member {string} name - * @memberof vtctldata.Shard + * TableLastPK table_name. + * @member {string} table_name + * @memberof binlogdata.TableLastPK * @instance */ - Shard.prototype.name = ""; + TableLastPK.prototype.table_name = ""; /** - * Shard shard. - * @member {topodata.IShard|null|undefined} shard - * @memberof vtctldata.Shard + * TableLastPK lastpk. + * @member {query.IQueryResult|null|undefined} lastpk + * @memberof binlogdata.TableLastPK * @instance */ - Shard.prototype.shard = null; + TableLastPK.prototype.lastpk = null; /** - * Creates a new Shard instance using the specified properties. + * Creates a new TableLastPK instance using the specified properties. * @function create - * @memberof vtctldata.Shard + * @memberof binlogdata.TableLastPK * @static - * @param {vtctldata.IShard=} [properties] Properties to set - * @returns {vtctldata.Shard} Shard instance + * @param {binlogdata.ITableLastPK=} [properties] Properties to set + * @returns {binlogdata.TableLastPK} TableLastPK instance */ - Shard.create = function create(properties) { - return new Shard(properties); + TableLastPK.create = function create(properties) { + return new TableLastPK(properties); }; /** - * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * Encodes the specified TableLastPK message. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. * @function encode - * @memberof vtctldata.Shard + * @memberof binlogdata.TableLastPK * @static - * @param {vtctldata.IShard} message Shard 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 */ - Shard.encode = function encode(message, writer) { + TableLastPK.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.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 Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * Encodes the specified TableLastPK message, length delimited. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Shard + * @memberof binlogdata.TableLastPK * @static - * @param {vtctldata.IShard} message Shard 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 */ - Shard.encodeDelimited = function encodeDelimited(message, writer) { + TableLastPK.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Shard message from the specified reader or buffer. + * Decodes a TableLastPK message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Shard + * @memberof binlogdata.TableLastPK * @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 {binlogdata.TableLastPK} TableLastPK * @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) { + TableLastPK.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Shard(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.TableLastPK(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); - break; - case 2: - message.name = reader.string(); + message.table_name = reader.string(); break; case 3: - message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); + message.lastpk = $root.query.QueryResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -60840,131 +70609,124 @@ $root.vtctldata = (function() { }; /** - * Decodes a Shard message from the specified reader or buffer, length delimited. + * Decodes a TableLastPK message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.Shard + * @memberof binlogdata.TableLastPK * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Shard} Shard + * @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 */ - Shard.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 Shard message. + * Verifies a TableLastPK message. * @function verify - * @memberof vtctldata.Shard + * @memberof binlogdata.TableLastPK * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Shard.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) { - var error = $root.topodata.Shard.verify(message.shard); + */ + TableLastPK.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")) { + var error = $root.query.QueryResult.verify(message.lastpk); if (error) - return "shard." + error; + return "lastpk." + error; } return null; }; /** - * Creates a Shard 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 vtctldata.Shard + * @memberof binlogdata.TableLastPK * @static * @param {Object.} object Plain object - * @returns {vtctldata.Shard} Shard + * @returns {binlogdata.TableLastPK} TableLastPK */ - Shard.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Shard) + TableLastPK.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.TableLastPK) return object; - var message = new $root.vtctldata.Shard(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.name != null) - message.name = String(object.name); - if (object.shard != null) { - if (typeof object.shard !== "object") - throw TypeError(".vtctldata.Shard.shard: object expected"); - message.shard = $root.topodata.Shard.fromObject(object.shard); + var message = new $root.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); } return message; }; /** - * Creates a plain object from a Shard 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 vtctldata.Shard + * @memberof binlogdata.TableLastPK * @static - * @param {vtctldata.Shard} message Shard + * @param {binlogdata.TableLastPK} message TableLastPK * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Shard.toObject = function toObject(message, options) { + TableLastPK.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.keyspace = ""; - object.name = ""; - object.shard = null; + object.table_name = ""; + object.lastpk = 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.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 Shard to JSON. + * Converts this TableLastPK to JSON. * @function toJSON - * @memberof vtctldata.Shard + * @memberof binlogdata.TableLastPK * @instance * @returns {Object.} JSON object */ - Shard.prototype.toJSON = function toJSON() { + TableLastPK.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Shard; + return TableLastPK; })(); - vtctldata.TableMaterializeSettings = (function() { + binlogdata.VStreamResultsRequest = (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 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 TableMaterializeSettings. - * @memberof vtctldata - * @classdesc Represents a TableMaterializeSettings. - * @implements ITableMaterializeSettings + * Constructs a new VStreamResultsRequest. + * @memberof binlogdata + * @classdesc Represents a VStreamResultsRequest. + * @implements IVStreamResultsRequest * @constructor - * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + * @param {binlogdata.IVStreamResultsRequest=} [properties] Properties to set */ - function TableMaterializeSettings(properties) { + function VStreamResultsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60972,101 +70734,114 @@ $root.vtctldata = (function() { } /** - * TableMaterializeSettings target_table. - * @member {string} target_table - * @memberof vtctldata.TableMaterializeSettings + * VStreamResultsRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof binlogdata.VStreamResultsRequest * @instance */ - TableMaterializeSettings.prototype.target_table = ""; + VStreamResultsRequest.prototype.effective_caller_id = null; /** - * TableMaterializeSettings source_expression. - * @member {string} source_expression - * @memberof vtctldata.TableMaterializeSettings + * VStreamResultsRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof binlogdata.VStreamResultsRequest * @instance */ - TableMaterializeSettings.prototype.source_expression = ""; + VStreamResultsRequest.prototype.immediate_caller_id = null; /** - * TableMaterializeSettings create_ddl. - * @member {string} create_ddl - * @memberof vtctldata.TableMaterializeSettings + * VStreamResultsRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof binlogdata.VStreamResultsRequest * @instance */ - TableMaterializeSettings.prototype.create_ddl = ""; + VStreamResultsRequest.prototype.target = null; /** - * Creates a new TableMaterializeSettings 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 vtctldata.TableMaterializeSettings + * @memberof binlogdata.VStreamResultsRequest * @static - * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings instance + * @param {binlogdata.IVStreamResultsRequest=} [properties] Properties to set + * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest instance */ - TableMaterializeSettings.create = function create(properties) { - return new TableMaterializeSettings(properties); + VStreamResultsRequest.create = function create(properties) { + return new VStreamResultsRequest(properties); }; /** - * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * Encodes the specified VStreamResultsRequest message. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.TableMaterializeSettings + * @memberof binlogdata.VStreamResultsRequest * @static - * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings 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 */ - TableMaterializeSettings.encode = function encode(message, writer) { + VStreamResultsRequest.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.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 TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * Encodes the specified VStreamResultsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.TableMaterializeSettings + * @memberof binlogdata.VStreamResultsRequest * @static - * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings 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 */ - TableMaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + VStreamResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer. + * Decodes a VStreamResultsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.TableMaterializeSettings + * @memberof binlogdata.VStreamResultsRequest * @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 {binlogdata.VStreamResultsRequest} VStreamResultsRequest * @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) { + VStreamResultsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TableMaterializeSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResultsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.target_table = reader.string(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; case 2: - message.source_expression = reader.string(); + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); break; case 3: - message.create_ddl = reader.string(); + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.query = reader.string(); break; default: reader.skipType(tag & 7); @@ -61077,302 +70852,259 @@ $root.vtctldata = (function() { }; /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. + * Decodes a VStreamResultsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.TableMaterializeSettings + * @memberof binlogdata.VStreamResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @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 */ - TableMaterializeSettings.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 TableMaterializeSettings message. + * Verifies a VStreamResultsRequest message. * @function verify - * @memberof vtctldata.TableMaterializeSettings + * @memberof binlogdata.VStreamResultsRequest * @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) { + VStreamResultsRequest.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.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; return null; }; /** - * Creates a TableMaterializeSettings 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 vtctldata.TableMaterializeSettings + * @memberof binlogdata.VStreamResultsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest */ - TableMaterializeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.TableMaterializeSettings) + VStreamResultsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamResultsRequest) return object; - var message = new $root.vtctldata.TableMaterializeSettings(); - if (object.target_table != null) - message.target_table = String(object.target_table); - if (object.source_expression != null) - message.source_expression = String(object.source_expression); - if (object.create_ddl != null) - message.create_ddl = String(object.create_ddl); + var message = new $root.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.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 TableMaterializeSettings 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 vtctldata.TableMaterializeSettings + * @memberof binlogdata.VStreamResultsRequest * @static - * @param {vtctldata.TableMaterializeSettings} message TableMaterializeSettings + * @param {binlogdata.VStreamResultsRequest} message VStreamResultsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TableMaterializeSettings.toObject = function toObject(message, options) { + VStreamResultsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.target_table = ""; - object.source_expression = ""; - object.create_ddl = ""; + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = ""; } - if (message.target_table != null && message.hasOwnProperty("target_table")) - object.target_table = message.target_table; - if (message.source_expression != null && message.hasOwnProperty("source_expression")) - object.source_expression = message.source_expression; - if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) - object.create_ddl = message.create_ddl; - return object; - }; - - /** - * Converts this TableMaterializeSettings to JSON. - * @function toJSON - * @memberof vtctldata.TableMaterializeSettings - * @instance - * @returns {Object.} JSON object - */ - TableMaterializeSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return TableMaterializeSettings; - })(); - - vtctldata.MaterializeSettings = (function() { - - /** - * Properties of a MaterializeSettings. - * @memberof vtctldata - * @interface IMaterializeSettings - * @property {string|null} [workflow] MaterializeSettings workflow - * @property {string|null} [source_keyspace] MaterializeSettings source_keyspace - * @property {string|null} [target_keyspace] MaterializeSettings target_keyspace - * @property {boolean|null} [stop_after_copy] MaterializeSettings stop_after_copy - * @property {Array.|null} [table_settings] MaterializeSettings table_settings - * @property {string|null} [cell] MaterializeSettings cell - * @property {string|null} [tablet_types] MaterializeSettings tablet_types - * @property {string|null} [external_cluster] MaterializeSettings external_cluster - */ - - /** - * 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 = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MaterializeSettings workflow. - * @member {string} workflow - * @memberof vtctldata.MaterializeSettings - * @instance - */ - MaterializeSettings.prototype.workflow = ""; - - /** - * MaterializeSettings source_keyspace. - * @member {string} source_keyspace - * @memberof vtctldata.MaterializeSettings - * @instance - */ - MaterializeSettings.prototype.source_keyspace = ""; + 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; + }; /** - * MaterializeSettings target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.MaterializeSettings + * Converts this VStreamResultsRequest to JSON. + * @function toJSON + * @memberof binlogdata.VStreamResultsRequest * @instance + * @returns {Object.} JSON object */ - MaterializeSettings.prototype.target_keyspace = ""; + VStreamResultsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VStreamResultsRequest; + })(); + + binlogdata.VStreamResultsResponse = (function() { /** - * MaterializeSettings stop_after_copy. - * @member {boolean} stop_after_copy - * @memberof vtctldata.MaterializeSettings - * @instance + * 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 */ - MaterializeSettings.prototype.stop_after_copy = false; /** - * MaterializeSettings table_settings. - * @member {Array.} table_settings - * @memberof vtctldata.MaterializeSettings - * @instance + * Constructs a new VStreamResultsResponse. + * @memberof binlogdata + * @classdesc Represents a VStreamResultsResponse. + * @implements IVStreamResultsResponse + * @constructor + * @param {binlogdata.IVStreamResultsResponse=} [properties] Properties to set */ - MaterializeSettings.prototype.table_settings = $util.emptyArray; + function VStreamResultsResponse(properties) { + this.fields = []; + this.rows = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * MaterializeSettings cell. - * @member {string} cell - * @memberof vtctldata.MaterializeSettings + * VStreamResultsResponse fields. + * @member {Array.} fields + * @memberof binlogdata.VStreamResultsResponse * @instance */ - MaterializeSettings.prototype.cell = ""; + VStreamResultsResponse.prototype.fields = $util.emptyArray; /** - * MaterializeSettings tablet_types. - * @member {string} tablet_types - * @memberof vtctldata.MaterializeSettings + * VStreamResultsResponse gtid. + * @member {string} gtid + * @memberof binlogdata.VStreamResultsResponse * @instance */ - MaterializeSettings.prototype.tablet_types = ""; + VStreamResultsResponse.prototype.gtid = ""; /** - * MaterializeSettings external_cluster. - * @member {string} external_cluster - * @memberof vtctldata.MaterializeSettings + * VStreamResultsResponse rows. + * @member {Array.} rows + * @memberof binlogdata.VStreamResultsResponse * @instance */ - MaterializeSettings.prototype.external_cluster = ""; + VStreamResultsResponse.prototype.rows = $util.emptyArray; /** - * Creates a new MaterializeSettings instance using the specified properties. + * Creates a new VStreamResultsResponse instance using the specified properties. * @function create - * @memberof vtctldata.MaterializeSettings + * @memberof binlogdata.VStreamResultsResponse * @static - * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set - * @returns {vtctldata.MaterializeSettings} MaterializeSettings instance + * @param {binlogdata.IVStreamResultsResponse=} [properties] Properties to set + * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse instance */ - MaterializeSettings.create = function create(properties) { - return new MaterializeSettings(properties); + VStreamResultsResponse.create = function create(properties) { + return new VStreamResultsResponse(properties); }; /** - * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * Encodes the specified VStreamResultsResponse message. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.MaterializeSettings + * @memberof binlogdata.VStreamResultsResponse * @static - * @param {vtctldata.IMaterializeSettings} message MaterializeSettings 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 */ - MaterializeSettings.encode = function encode(message, writer) { + VStreamResultsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); - if (message.source_keyspace != null && Object.hasOwnProperty.call(message, "source_keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_keyspace); - if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); - if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.stop_after_copy); - if (message.table_settings != null && message.table_settings.length) - for (var i = 0; i < message.table_settings.length; ++i) - $root.vtctldata.TableMaterializeSettings.encode(message.table_settings[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.cell); - if (message.tablet_types != null && Object.hasOwnProperty.call(message, "tablet_types")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.tablet_types); - if (message.external_cluster != null && Object.hasOwnProperty.call(message, "external_cluster")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.external_cluster); + if (message.fields != null && message.fields.length) + for (var i = 0; i < message.fields.length; ++i) + $root.query.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.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 (var 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 MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * Encodes the specified VStreamResultsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MaterializeSettings + * @memberof binlogdata.VStreamResultsResponse * @static - * @param {vtctldata.IMaterializeSettings} message MaterializeSettings 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 */ - MaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + VStreamResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaterializeSettings message from the specified reader or buffer. + * Decodes a VStreamResultsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MaterializeSettings + * @memberof binlogdata.VStreamResultsResponse * @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 {binlogdata.VStreamResultsResponse} VStreamResultsResponse * @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) { + VStreamResultsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResultsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.workflow = reader.string(); - break; - case 2: - message.source_keyspace = reader.string(); + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.query.Field.decode(reader, reader.uint32())); break; case 3: - message.target_keyspace = reader.string(); + message.gtid = 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(); + if (!(message.rows && message.rows.length)) + message.rows = []; + message.rows.push($root.query.Row.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -61383,165 +71115,142 @@ $root.vtctldata = (function() { }; /** - * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. + * Decodes a VStreamResultsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MaterializeSettings + * @memberof binlogdata.VStreamResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @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 */ - MaterializeSettings.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 MaterializeSettings message. + * Verifies a VStreamResultsResponse message. * @function verify - * @memberof vtctldata.MaterializeSettings + * @memberof binlogdata.VStreamResultsResponse * @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) { + VStreamResultsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) - if (!$util.isString(message.source_keyspace)) - return "source_keyspace: string expected"; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - if (!$util.isString(message.target_keyspace)) - return "target_keyspace: string expected"; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - if (typeof message.stop_after_copy !== "boolean") - return "stop_after_copy: boolean expected"; - if (message.table_settings != null && message.hasOwnProperty("table_settings")) { - if (!Array.isArray(message.table_settings)) - return "table_settings: array expected"; - for (var i = 0; i < message.table_settings.length; ++i) { - var error = $root.vtctldata.TableMaterializeSettings.verify(message.table_settings[i]); + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (var i = 0; i < message.fields.length; ++i) { + var error = $root.query.Field.verify(message.fields[i]); if (error) - return "table_settings." + 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 (var i = 0; i < message.rows.length; ++i) { + var error = $root.query.Row.verify(message.rows[i]); + if (error) + return "rows." + 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"; return null; }; /** - * Creates a MaterializeSettings 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 vtctldata.MaterializeSettings + * @memberof binlogdata.VStreamResultsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse */ - MaterializeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MaterializeSettings) + VStreamResultsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamResultsResponse) return object; - var message = new $root.vtctldata.MaterializeSettings(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.source_keyspace != null) - message.source_keyspace = String(object.source_keyspace); - if (object.target_keyspace != null) - message.target_keyspace = String(object.target_keyspace); - if (object.stop_after_copy != null) - message.stop_after_copy = Boolean(object.stop_after_copy); - if (object.table_settings) { - if (!Array.isArray(object.table_settings)) - throw TypeError(".vtctldata.MaterializeSettings.table_settings: array expected"); - message.table_settings = []; - for (var i = 0; i < object.table_settings.length; ++i) { - if (typeof object.table_settings[i] !== "object") - throw TypeError(".vtctldata.MaterializeSettings.table_settings: object expected"); - message.table_settings[i] = $root.vtctldata.TableMaterializeSettings.fromObject(object.table_settings[i]); + var message = new $root.binlogdata.VStreamResultsResponse(); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".binlogdata.VStreamResultsResponse.fields: array expected"); + message.fields = []; + for (var 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 (var 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]); } } - 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); return message; }; /** - * Creates a plain object from a MaterializeSettings 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 vtctldata.MaterializeSettings + * @memberof binlogdata.VStreamResultsResponse * @static - * @param {vtctldata.MaterializeSettings} message MaterializeSettings + * @param {binlogdata.VStreamResultsResponse} message VStreamResultsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaterializeSettings.toObject = function toObject(message, options) { + VStreamResultsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.table_settings = []; - if (options.defaults) { - object.workflow = ""; - object.source_keyspace = ""; - object.target_keyspace = ""; - object.stop_after_copy = false; - object.cell = ""; - object.tablet_types = ""; - object.external_cluster = ""; + if (options.arrays || options.defaults) { + object.fields = []; + object.rows = []; } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) - object.source_keyspace = message.source_keyspace; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - object.target_keyspace = message.target_keyspace; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - object.stop_after_copy = message.stop_after_copy; - if (message.table_settings && message.table_settings.length) { - object.table_settings = []; - for (var j = 0; j < message.table_settings.length; ++j) - object.table_settings[j] = $root.vtctldata.TableMaterializeSettings.toObject(message.table_settings[j], options); + if (options.defaults) + object.gtid = ""; + if (message.fields && message.fields.length) { + object.fields = []; + for (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + } + if (message.gtid != null && message.hasOwnProperty("gtid")) + object.gtid = message.gtid; + if (message.rows && message.rows.length) { + object.rows = []; + for (var j = 0; j < message.rows.length; ++j) + object.rows[j] = $root.query.Row.toObject(message.rows[j], options); } - if (message.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; return object; }; /** - * Converts this MaterializeSettings to JSON. + * Converts this VStreamResultsResponse to JSON. * @function toJSON - * @memberof vtctldata.MaterializeSettings + * @memberof binlogdata.VStreamResultsResponse * @instance * @returns {Object.} JSON object */ - MaterializeSettings.prototype.toJSON = function toJSON() { + VStreamResultsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MaterializeSettings; + return VStreamResultsResponse; })(); - return vtctldata; + return binlogdata; })(); $root.mysqlctl = (function() { From b85a468ca1b15bcd90d468daaa32f39df2f00fcb Mon Sep 17 00:00:00 2001 From: Andrew Mason Date: Fri, 5 Mar 2021 22:01:10 -0500 Subject: [PATCH 2/7] Add GetVSchema(s) rpcs, run generators, add stubs Signed-off-by: Andrew Mason --- go/vt/proto/vtadmin/vtadmin.pb.go | 1227 +- go/vt/vtadmin/api.go | 12 + go/vt/vtadmin/http/vschemas.go | 31 + proto/vtadmin.proto | 27 + web/vtadmin/src/proto/vtadmin.d.ts | 12898 +++++----- web/vtadmin/src/proto/vtadmin.js | 33801 ++++++++++++++------------- 6 files changed, 25212 insertions(+), 22784 deletions(-) create mode 100644 go/vt/vtadmin/http/vschemas.go diff --git a/go/vt/proto/vtadmin/vtadmin.pb.go b/go/vt/proto/vtadmin/vtadmin.pb.go index 1c420e539b7..c897510cfdd 100644 --- a/go/vt/proto/vtadmin/vtadmin.pb.go +++ b/go/vt/proto/vtadmin/vtadmin.pb.go @@ -16,6 +16,7 @@ import ( status "google.golang.org/grpc/status" tabletmanagerdata "vitess.io/vitess/go/vt/proto/tabletmanagerdata" topodata "vitess.io/vitess/go/vt/proto/topodata" + vschema "vitess.io/vitess/go/vt/proto/vschema" vtctldata "vitess.io/vitess/go/vt/proto/vtctldata" ) @@ -307,6 +308,71 @@ func (m *Tablet) GetState() Tablet_ServingState { return Tablet_UNKNOWN } +// VSchema represents the vschema for a keyspace in the cluster it belongs to. +type VSchema struct { + Cluster *Cluster `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + // Name is the name of the keyspace this VSchema is for. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + VSchema *vschema.Keyspace `protobuf:"bytes,3,opt,name=v_schema,json=vSchema,proto3" json:"v_schema,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VSchema) Reset() { *m = VSchema{} } +func (m *VSchema) String() string { return proto.CompactTextString(m) } +func (*VSchema) ProtoMessage() {} +func (*VSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_609739e22a0a50b3, []int{4} +} +func (m *VSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VSchema.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_VSchema.Merge(m, src) +} +func (m *VSchema) XXX_Size() int { + return m.Size() +} +func (m *VSchema) XXX_DiscardUnknown() { + xxx_messageInfo_VSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_VSchema proto.InternalMessageInfo + +func (m *VSchema) GetCluster() *Cluster { + if m != nil { + return m.Cluster + } + return nil +} + +func (m *VSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *VSchema) GetVSchema() *vschema.Keyspace { + if m != nil { + return m.VSchema + } + return nil +} + // Vtctld represents information about a single Vtctld host. type Vtctld struct { Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` @@ -320,7 +386,7 @@ func (m *Vtctld) Reset() { *m = Vtctld{} } func (m *Vtctld) String() string { return proto.CompactTextString(m) } func (*Vtctld) ProtoMessage() {} func (*Vtctld) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{4} + return fileDescriptor_609739e22a0a50b3, []int{5} } func (m *Vtctld) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -386,7 +452,7 @@ func (m *VTGate) Reset() { *m = VTGate{} } func (m *VTGate) String() string { return proto.CompactTextString(m) } func (*VTGate) ProtoMessage() {} func (*VTGate) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{5} + return fileDescriptor_609739e22a0a50b3, []int{6} } func (m *VTGate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -462,7 +528,7 @@ func (m *FindSchemaRequest) Reset() { *m = FindSchemaRequest{} } func (m *FindSchemaRequest) String() string { return proto.CompactTextString(m) } func (*FindSchemaRequest) ProtoMessage() {} func (*FindSchemaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{6} + return fileDescriptor_609739e22a0a50b3, []int{7} } func (m *FindSchemaRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -515,7 +581,7 @@ func (m *GetClustersRequest) Reset() { *m = GetClustersRequest{} } func (m *GetClustersRequest) String() string { return proto.CompactTextString(m) } func (*GetClustersRequest) ProtoMessage() {} func (*GetClustersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{7} + return fileDescriptor_609739e22a0a50b3, []int{8} } func (m *GetClustersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -555,7 +621,7 @@ func (m *GetClustersResponse) Reset() { *m = GetClustersResponse{} } func (m *GetClustersResponse) String() string { return proto.CompactTextString(m) } func (*GetClustersResponse) ProtoMessage() {} func (*GetClustersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{8} + return fileDescriptor_609739e22a0a50b3, []int{9} } func (m *GetClustersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -602,7 +668,7 @@ func (m *GetGatesRequest) Reset() { *m = GetGatesRequest{} } func (m *GetGatesRequest) String() string { return proto.CompactTextString(m) } func (*GetGatesRequest) ProtoMessage() {} func (*GetGatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{9} + return fileDescriptor_609739e22a0a50b3, []int{10} } func (m *GetGatesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -649,7 +715,7 @@ func (m *GetGatesResponse) Reset() { *m = GetGatesResponse{} } func (m *GetGatesResponse) String() string { return proto.CompactTextString(m) } func (*GetGatesResponse) ProtoMessage() {} func (*GetGatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{10} + return fileDescriptor_609739e22a0a50b3, []int{11} } func (m *GetGatesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -696,7 +762,7 @@ func (m *GetKeyspacesRequest) Reset() { *m = GetKeyspacesRequest{} } func (m *GetKeyspacesRequest) String() string { return proto.CompactTextString(m) } func (*GetKeyspacesRequest) ProtoMessage() {} func (*GetKeyspacesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{11} + return fileDescriptor_609739e22a0a50b3, []int{12} } func (m *GetKeyspacesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -743,7 +809,7 @@ func (m *GetKeyspacesResponse) Reset() { *m = GetKeyspacesResponse{} } func (m *GetKeyspacesResponse) String() string { return proto.CompactTextString(m) } func (*GetKeyspacesResponse) ProtoMessage() {} func (*GetKeyspacesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{12} + return fileDescriptor_609739e22a0a50b3, []int{13} } func (m *GetKeyspacesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -792,7 +858,7 @@ func (m *GetSchemaRequest) Reset() { *m = GetSchemaRequest{} } func (m *GetSchemaRequest) String() string { return proto.CompactTextString(m) } func (*GetSchemaRequest) ProtoMessage() {} func (*GetSchemaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{13} + return fileDescriptor_609739e22a0a50b3, []int{14} } func (m *GetSchemaRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -853,7 +919,7 @@ func (m *GetSchemasRequest) Reset() { *m = GetSchemasRequest{} } func (m *GetSchemasRequest) String() string { return proto.CompactTextString(m) } func (*GetSchemasRequest) ProtoMessage() {} func (*GetSchemasRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{14} + return fileDescriptor_609739e22a0a50b3, []int{15} } func (m *GetSchemasRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -900,7 +966,7 @@ func (m *GetSchemasResponse) Reset() { *m = GetSchemasResponse{} } func (m *GetSchemasResponse) String() string { return proto.CompactTextString(m) } func (*GetSchemasResponse) ProtoMessage() {} func (*GetSchemasResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{15} + return fileDescriptor_609739e22a0a50b3, []int{16} } func (m *GetSchemasResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -951,7 +1017,7 @@ func (m *GetTabletRequest) Reset() { *m = GetTabletRequest{} } func (m *GetTabletRequest) String() string { return proto.CompactTextString(m) } func (*GetTabletRequest) ProtoMessage() {} func (*GetTabletRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{16} + return fileDescriptor_609739e22a0a50b3, []int{17} } func (m *GetTabletRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1005,7 +1071,7 @@ func (m *GetTabletsRequest) Reset() { *m = GetTabletsRequest{} } func (m *GetTabletsRequest) String() string { return proto.CompactTextString(m) } func (*GetTabletsRequest) ProtoMessage() {} func (*GetTabletsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{17} + return fileDescriptor_609739e22a0a50b3, []int{18} } func (m *GetTabletsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1052,7 +1118,7 @@ func (m *GetTabletsResponse) Reset() { *m = GetTabletsResponse{} } func (m *GetTabletsResponse) String() string { return proto.CompactTextString(m) } func (*GetTabletsResponse) ProtoMessage() {} func (*GetTabletsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{18} + return fileDescriptor_609739e22a0a50b3, []int{19} } func (m *GetTabletsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1088,6 +1154,155 @@ func (m *GetTabletsResponse) GetTablets() []*Tablet { return nil } +type GetVSchemaRequest struct { + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Keyspace string `protobuf:"bytes,2,opt,name=keyspace,proto3" json:"keyspace,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetVSchemaRequest) Reset() { *m = GetVSchemaRequest{} } +func (m *GetVSchemaRequest) String() string { return proto.CompactTextString(m) } +func (*GetVSchemaRequest) ProtoMessage() {} +func (*GetVSchemaRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_609739e22a0a50b3, []int{20} +} +func (m *GetVSchemaRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetVSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetVSchemaRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetVSchemaRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVSchemaRequest.Merge(m, src) +} +func (m *GetVSchemaRequest) XXX_Size() int { + return m.Size() +} +func (m *GetVSchemaRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetVSchemaRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVSchemaRequest proto.InternalMessageInfo + +func (m *GetVSchemaRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *GetVSchemaRequest) GetKeyspace() string { + if m != nil { + return m.Keyspace + } + return "" +} + +type GetVSchemasRequest struct { + ClusterIds []string `protobuf:"bytes,1,rep,name=cluster_ids,json=clusterIds,proto3" json:"cluster_ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetVSchemasRequest) Reset() { *m = GetVSchemasRequest{} } +func (m *GetVSchemasRequest) String() string { return proto.CompactTextString(m) } +func (*GetVSchemasRequest) ProtoMessage() {} +func (*GetVSchemasRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_609739e22a0a50b3, []int{21} +} +func (m *GetVSchemasRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetVSchemasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetVSchemasRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetVSchemasRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVSchemasRequest.Merge(m, src) +} +func (m *GetVSchemasRequest) XXX_Size() int { + return m.Size() +} +func (m *GetVSchemasRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetVSchemasRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVSchemasRequest proto.InternalMessageInfo + +func (m *GetVSchemasRequest) GetClusterIds() []string { + if m != nil { + return m.ClusterIds + } + return nil +} + +type GetVSchemasResponse struct { + VSchemas []*VSchema `protobuf:"bytes,1,rep,name=v_schemas,json=vSchemas,proto3" json:"v_schemas,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetVSchemasResponse) Reset() { *m = GetVSchemasResponse{} } +func (m *GetVSchemasResponse) String() string { return proto.CompactTextString(m) } +func (*GetVSchemasResponse) ProtoMessage() {} +func (*GetVSchemasResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_609739e22a0a50b3, []int{22} +} +func (m *GetVSchemasResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetVSchemasResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetVSchemasResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetVSchemasResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVSchemasResponse.Merge(m, src) +} +func (m *GetVSchemasResponse) XXX_Size() int { + return m.Size() +} +func (m *GetVSchemasResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetVSchemasResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVSchemasResponse proto.InternalMessageInfo + +func (m *GetVSchemasResponse) GetVSchemas() []*VSchema { + if m != nil { + return m.VSchemas + } + return nil +} + type VTExplainRequest struct { Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` Keyspace string `protobuf:"bytes,2,opt,name=keyspace,proto3" json:"keyspace,omitempty"` @@ -1101,7 +1316,7 @@ func (m *VTExplainRequest) Reset() { *m = VTExplainRequest{} } func (m *VTExplainRequest) String() string { return proto.CompactTextString(m) } func (*VTExplainRequest) ProtoMessage() {} func (*VTExplainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{19} + return fileDescriptor_609739e22a0a50b3, []int{23} } func (m *VTExplainRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1162,7 +1377,7 @@ func (m *VTExplainResponse) Reset() { *m = VTExplainResponse{} } func (m *VTExplainResponse) String() string { return proto.CompactTextString(m) } func (*VTExplainResponse) ProtoMessage() {} func (*VTExplainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{20} + return fileDescriptor_609739e22a0a50b3, []int{24} } func (m *VTExplainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1205,6 +1420,7 @@ func init() { proto.RegisterMapType((map[string]*vtctldata.Shard)(nil), "vtadmin.Keyspace.ShardsEntry") proto.RegisterType((*Schema)(nil), "vtadmin.Schema") proto.RegisterType((*Tablet)(nil), "vtadmin.Tablet") + proto.RegisterType((*VSchema)(nil), "vtadmin.VSchema") proto.RegisterType((*Vtctld)(nil), "vtadmin.Vtctld") proto.RegisterType((*VTGate)(nil), "vtadmin.VTGate") proto.RegisterType((*FindSchemaRequest)(nil), "vtadmin.FindSchemaRequest") @@ -1220,6 +1436,9 @@ func init() { proto.RegisterType((*GetTabletRequest)(nil), "vtadmin.GetTabletRequest") proto.RegisterType((*GetTabletsRequest)(nil), "vtadmin.GetTabletsRequest") proto.RegisterType((*GetTabletsResponse)(nil), "vtadmin.GetTabletsResponse") + proto.RegisterType((*GetVSchemaRequest)(nil), "vtadmin.GetVSchemaRequest") + proto.RegisterType((*GetVSchemasRequest)(nil), "vtadmin.GetVSchemasRequest") + proto.RegisterType((*GetVSchemasResponse)(nil), "vtadmin.GetVSchemasResponse") proto.RegisterType((*VTExplainRequest)(nil), "vtadmin.VTExplainRequest") proto.RegisterType((*VTExplainResponse)(nil), "vtadmin.VTExplainResponse") } @@ -1227,65 +1446,71 @@ func init() { func init() { proto.RegisterFile("vtadmin.proto", fileDescriptor_609739e22a0a50b3) } var fileDescriptor_609739e22a0a50b3 = []byte{ - // 915 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0x8e, 0x93, 0xe6, 0xc7, 0x27, 0x4b, 0xeb, 0xcc, 0x56, 0xc2, 0x78, 0xdb, 0x52, 0x8d, 0x00, - 0x05, 0x04, 0x89, 0x14, 0x60, 0x45, 0xe1, 0x02, 0x2d, 0xbb, 0x25, 0xda, 0xad, 0x48, 0x91, 0x13, - 0x82, 0xb4, 0x37, 0x95, 0x37, 0x1e, 0x5a, 0x6b, 0x5d, 0x3b, 0x9b, 0x99, 0x46, 0xf4, 0x45, 0x10, - 0xb7, 0xbc, 0x0d, 0x37, 0x48, 0x3c, 0x02, 0x2a, 0x97, 0xdc, 0xf1, 0x04, 0xc8, 0xf3, 0xe7, 0xb1, - 0x5d, 0xfa, 0x73, 0x37, 0x73, 0xce, 0x99, 0xef, 0x7c, 0xdf, 0xf9, 0x71, 0x02, 0x6f, 0xad, 0x59, - 0x10, 0x9e, 0x47, 0xc9, 0x60, 0xb9, 0x4a, 0x59, 0x8a, 0xda, 0xf2, 0xea, 0xbd, 0xcd, 0x82, 0x57, - 0x31, 0x61, 0xe7, 0x41, 0x12, 0x9c, 0x92, 0x55, 0x18, 0xb0, 0x40, 0x44, 0x78, 0x9b, 0x2c, 0x5d, - 0xa6, 0xc6, 0x7d, 0x6b, 0xcd, 0x16, 0x2c, 0xce, 0x0d, 0xf8, 0x13, 0x68, 0x3f, 0x8d, 0x2f, 0x28, - 0x23, 0x2b, 0xb4, 0x09, 0xf5, 0x28, 0x74, 0xad, 0x7d, 0xab, 0x6f, 0xfb, 0xf5, 0x28, 0x44, 0x08, - 0x36, 0x92, 0xe0, 0x9c, 0xb8, 0x75, 0x6e, 0xe1, 0x67, 0xfc, 0x8f, 0x05, 0x9d, 0x23, 0x72, 0x49, - 0x97, 0xc1, 0x82, 0xa0, 0x8f, 0xa0, 0xbd, 0x10, 0x6f, 0xf9, 0xab, 0xee, 0xc8, 0x19, 0x28, 0x7e, - 0x12, 0xd3, 0x57, 0x01, 0x68, 0x08, 0x9d, 0xd7, 0xf2, 0x1d, 0x07, 0xec, 0x8e, 0x1e, 0x0e, 0x72, - 0x2e, 0x0a, 0xd2, 0xd7, 0x41, 0xe8, 0x73, 0x68, 0xd1, 0xb3, 0x60, 0x15, 0x52, 0xb7, 0xb1, 0xdf, - 0xe8, 0x77, 0x47, 0xbb, 0x1a, 0x5b, 0x05, 0x0f, 0xa6, 0xdc, 0x7f, 0x98, 0xb0, 0xd5, 0xa5, 0x2f, - 0x83, 0xbd, 0x23, 0xe8, 0x1a, 0x66, 0xe4, 0x40, 0xe3, 0x35, 0xb9, 0x94, 0xa2, 0xb2, 0x23, 0xfa, - 0x00, 0x9a, 0xeb, 0x20, 0xbe, 0x50, 0x2c, 0x1c, 0x83, 0x05, 0x7f, 0xe8, 0x0b, 0xf7, 0x97, 0xf5, - 0x2f, 0x2c, 0xfc, 0x9b, 0x05, 0xad, 0xe9, 0xe2, 0x8c, 0x9c, 0x07, 0xf7, 0xd2, 0xea, 0x95, 0xb4, - 0xda, 0x86, 0xac, 0x63, 0xe8, 0xf1, 0x5e, 0x9d, 0x84, 0xe4, 0xa7, 0x28, 0x89, 0x58, 0x94, 0x26, - 0x4a, 0x21, 0x1e, 0x54, 0xbb, 0x38, 0xcb, 0x2c, 0xcf, 0x74, 0xa8, 0xef, 0xb0, 0xa2, 0x81, 0xe2, - 0x3f, 0x2c, 0x68, 0xf1, 0x28, 0x76, 0x2f, 0x8e, 0x7d, 0x68, 0x89, 0x6c, 0xba, 0x0e, 0x7a, 0x52, - 0x04, 0x9a, 0x2f, 0xfd, 0x68, 0x04, 0x4d, 0xca, 0x02, 0x46, 0xdc, 0xc6, 0xbe, 0xd5, 0xdf, 0x1c, - 0xed, 0x68, 0x4c, 0x11, 0x37, 0x98, 0x92, 0xd5, 0x3a, 0x4a, 0x4e, 0xa7, 0x59, 0x8c, 0x2f, 0x42, - 0xf1, 0x01, 0x3c, 0x30, 0xcd, 0xa8, 0x0b, 0xed, 0x1f, 0x26, 0x47, 0x93, 0xe3, 0x1f, 0x27, 0x4e, - 0x2d, 0xbb, 0x4c, 0x0f, 0xfd, 0xf9, 0xf3, 0xc9, 0xd8, 0xb1, 0xd0, 0x16, 0x74, 0x27, 0xc7, 0xb3, - 0x13, 0x65, 0xa8, 0xe3, 0xef, 0xa1, 0x35, 0xe7, 0x1d, 0xc9, 0xca, 0x78, 0x96, 0x52, 0xc6, 0x67, - 0x50, 0x34, 0x50, 0xdf, 0x4d, 0xa9, 0xf5, 0x5b, 0xa4, 0xe2, 0x5f, 0x2c, 0x68, 0xcd, 0x67, 0xe3, - 0x8c, 0xc7, 0x4d, 0x90, 0x08, 0x36, 0x96, 0x69, 0x1a, 0xab, 0x71, 0xcf, 0xce, 0x99, 0x6d, 0x41, - 0xe2, 0x98, 0x4b, 0xb7, 0x7d, 0x7e, 0x36, 0x53, 0x6f, 0xdc, 0x56, 0xe5, 0x1d, 0xb0, 0x55, 0xe7, - 0xa9, 0xdb, 0xdc, 0x6f, 0xf4, 0x6d, 0x3f, 0x37, 0xe0, 0x17, 0xd0, 0xfb, 0x36, 0x4a, 0x42, 0x31, - 0x61, 0x3e, 0x79, 0x73, 0x41, 0x28, 0x43, 0xdb, 0xd0, 0xe4, 0x85, 0x97, 0xfc, 0xc4, 0x05, 0xbd, - 0x0b, 0x5d, 0x89, 0x79, 0x12, 0x85, 0xd4, 0xad, 0x73, 0x28, 0x90, 0xa6, 0xe7, 0x21, 0xc5, 0xdb, - 0x80, 0xc6, 0x84, 0x49, 0x02, 0x54, 0x82, 0xe1, 0xa7, 0xf0, 0xb0, 0x60, 0xa5, 0xcb, 0x34, 0xa1, - 0x04, 0x7d, 0x0c, 0x1d, 0xf9, 0x94, 0xba, 0x16, 0x9f, 0xbd, 0xaa, 0x06, 0x1d, 0x81, 0x47, 0xb0, - 0x35, 0x26, 0x2c, 0xab, 0x9f, 0xc2, 0x2d, 0xd3, 0xb1, 0x2a, 0x74, 0x0e, 0xc0, 0xc9, 0xdf, 0xc8, - 0xac, 0xef, 0x43, 0xf3, 0x34, 0x33, 0xc8, 0x94, 0x5b, 0x3a, 0xa5, 0x68, 0x8e, 0x2f, 0xbc, 0xf8, - 0x31, 0xe7, 0xac, 0x96, 0xfc, 0xee, 0x29, 0xc7, 0xb0, 0x5d, 0x7c, 0x27, 0xd3, 0x0e, 0xcd, 0x1e, - 0x88, 0xd4, 0xbd, 0xca, 0xb7, 0xc4, 0x6c, 0xcb, 0x82, 0x73, 0x2f, 0x76, 0x65, 0x17, 0x20, 0xcf, - 0x2e, 0x5b, 0x63, 0xeb, 0xe4, 0x37, 0x6e, 0xbc, 0x6e, 0x68, 0xc3, 0x68, 0x28, 0xfe, 0x0c, 0x7a, - 0x3a, 0xc9, 0xdd, 0x35, 0x7e, 0xcd, 0xbb, 0xac, 0x5f, 0x49, 0x85, 0x1f, 0x42, 0x9b, 0x0a, 0x53, - 0xa5, 0xb4, 0x52, 0x85, 0xf2, 0xe3, 0x63, 0xae, 0x4d, 0x6e, 0xb8, 0xcc, 0x7a, 0xd3, 0x52, 0xdc, - 0x3a, 0x77, 0x42, 0x87, 0x00, 0xbc, 0xaf, 0x0e, 0xfd, 0x2a, 0xd7, 0x21, 0xbe, 0x39, 0x55, 0x1d, - 0x92, 0xb1, 0xf2, 0xe3, 0x97, 0xe0, 0xcc, 0x67, 0x87, 0x3f, 0x2f, 0xe3, 0x20, 0x4a, 0x54, 0x56, - 0xb7, 0xf8, 0xf9, 0xb3, 0xef, 0xf6, 0x41, 0x76, 0xa0, 0x41, 0xdf, 0xa8, 0x0d, 0xcf, 0x8e, 0x78, - 0x08, 0x3d, 0x03, 0x5b, 0x72, 0xf3, 0xa0, 0xb3, 0x92, 0x67, 0x55, 0x24, 0x75, 0x1f, 0xfd, 0xbb, - 0x01, 0xed, 0xf9, 0xec, 0x49, 0x46, 0x14, 0x7d, 0x05, 0x90, 0xef, 0x34, 0xf2, 0xb4, 0x80, 0xca, - 0xa2, 0x7b, 0xe5, 0x26, 0xe1, 0x1a, 0x7a, 0x01, 0x5d, 0x63, 0x5d, 0xd1, 0x23, 0x1d, 0x51, 0x5d, - 0x6d, 0x6f, 0xe7, 0x7a, 0xa7, 0xa0, 0x84, 0x6b, 0xe8, 0x09, 0x74, 0xd4, 0x06, 0x22, 0xd7, 0x8c, - 0x35, 0x17, 0xd9, 0x7b, 0xe7, 0x1a, 0x8f, 0x86, 0xf8, 0x0e, 0x1e, 0x98, 0x1b, 0x85, 0x0a, 0x29, - 0xcb, 0x0b, 0xea, 0xed, 0xfe, 0x8f, 0x57, 0xc3, 0x1d, 0x80, 0xad, 0x87, 0x17, 0x15, 0x12, 0xdf, - 0x5a, 0x98, 0x31, 0x40, 0x3e, 0xf7, 0x46, 0x55, 0x2b, 0x2b, 0xe4, 0x3d, 0xba, 0xd6, 0x57, 0xe2, - 0x20, 0x7f, 0x2f, 0x0b, 0x1c, 0x0a, 0x3b, 0xe1, 0x95, 0x27, 0x4f, 0x73, 0x90, 0x33, 0x5b, 0xe4, - 0x50, 0x1c, 0xff, 0x22, 0x87, 0xd2, 0x90, 0xe3, 0x1a, 0x7a, 0x06, 0xb6, 0x9e, 0x2f, 0x83, 0x43, - 0x79, 0x9e, 0x3d, 0xef, 0x3a, 0x97, 0x42, 0xf9, 0xe6, 0xf1, 0xef, 0x57, 0x7b, 0xd6, 0x9f, 0x57, - 0x7b, 0xd6, 0x5f, 0x57, 0x7b, 0xd6, 0xaf, 0x7f, 0xef, 0xd5, 0x5e, 0xbe, 0xb7, 0x8e, 0x18, 0xa1, - 0x74, 0x10, 0xa5, 0x43, 0x71, 0x1a, 0x9e, 0xa6, 0xc3, 0x35, 0x1b, 0xf2, 0x3f, 0x7a, 0x43, 0x89, - 0xf5, 0xaa, 0xc5, 0xaf, 0x9f, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0xde, 0x92, 0xaf, 0x3f, 0x4b, - 0x0a, 0x00, 0x00, + // 1011 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0xe3, 0x44, + 0x14, 0x8e, 0x93, 0xe6, 0xc7, 0x27, 0xbb, 0xad, 0x33, 0x5b, 0x09, 0xe3, 0x6d, 0x4b, 0x35, 0x02, + 0x14, 0x10, 0x9b, 0x48, 0x81, 0x5d, 0x51, 0x40, 0x42, 0xcb, 0xb6, 0x44, 0xbb, 0x15, 0x29, 0x72, + 0x82, 0x91, 0xf6, 0xa6, 0xf2, 0xc6, 0xa6, 0xb5, 0x36, 0xb5, 0xd3, 0xcc, 0xd4, 0xd0, 0x17, 0x41, + 0xdc, 0xf2, 0x36, 0xdc, 0x20, 0xf1, 0x08, 0xa8, 0x5c, 0xf2, 0x0a, 0x5c, 0x20, 0xcf, 0x5f, 0xc6, + 0x76, 0xe8, 0x0f, 0xda, 0xbb, 0x99, 0x73, 0xce, 0x7c, 0xe7, 0x3b, 0xbf, 0x36, 0xdc, 0x4f, 0xa9, + 0x1f, 0x9c, 0x45, 0x71, 0x6f, 0xbe, 0x48, 0x68, 0x82, 0x9a, 0xe2, 0xea, 0xbc, 0x45, 0xfd, 0x57, + 0xb3, 0x90, 0x9e, 0xf9, 0xb1, 0x7f, 0x12, 0x2e, 0x02, 0x9f, 0xfa, 0xdc, 0xc2, 0x59, 0xa7, 0xc9, + 0x3c, 0xd1, 0xee, 0xf7, 0x53, 0x32, 0x3d, 0x0d, 0xcf, 0xe4, 0x75, 0x23, 0xa5, 0x53, 0x3a, 0x5b, + 0xea, 0xf1, 0x23, 0x68, 0x3e, 0x9b, 0x5d, 0x10, 0x1a, 0x2e, 0xd0, 0x3a, 0x54, 0xa3, 0xc0, 0x36, + 0x76, 0x8d, 0xae, 0xe9, 0x56, 0xa3, 0x00, 0x21, 0x58, 0x8b, 0xfd, 0xb3, 0xd0, 0xae, 0x32, 0x09, + 0x3b, 0xe3, 0xbf, 0x0d, 0x68, 0x1d, 0x86, 0x97, 0x64, 0xee, 0x4f, 0x43, 0xf4, 0x21, 0x34, 0xa7, + 0xfc, 0x2d, 0x7b, 0xd5, 0x1e, 0x58, 0x3d, 0x49, 0x57, 0x60, 0xba, 0xd2, 0x00, 0xf5, 0xa1, 0xf5, + 0x5a, 0xbc, 0x63, 0x80, 0xed, 0xc1, 0x83, 0xde, 0x92, 0x8b, 0x84, 0x74, 0x95, 0x11, 0x7a, 0x0c, + 0x0d, 0x72, 0xea, 0x2f, 0x02, 0x62, 0xd7, 0x76, 0x6b, 0xdd, 0xf6, 0x60, 0x5b, 0x61, 0x4b, 0xe3, + 0xde, 0x98, 0xe9, 0x0f, 0x62, 0xba, 0xb8, 0x74, 0x85, 0xb1, 0x73, 0x08, 0x6d, 0x4d, 0x8c, 0x2c, + 0xa8, 0xbd, 0x0e, 0x2f, 0x45, 0x50, 0xd9, 0x11, 0xbd, 0x0f, 0xf5, 0xd4, 0x9f, 0x5d, 0x48, 0x16, + 0x96, 0xc6, 0x82, 0x3d, 0x74, 0xb9, 0xfa, 0xb3, 0xea, 0xa7, 0x06, 0xfe, 0xd5, 0x80, 0xc6, 0x98, + 0xa5, 0xef, 0x4e, 0xb1, 0x3a, 0x85, 0x58, 0x4d, 0x2d, 0xac, 0x23, 0xe8, 0xb0, 0xd2, 0x1d, 0x07, + 0xe1, 0x0f, 0x51, 0x1c, 0xd1, 0x28, 0x89, 0x65, 0x84, 0xb8, 0x57, 0x2e, 0xea, 0x24, 0x93, 0xec, + 0x2b, 0x53, 0xd7, 0xa2, 0x79, 0x01, 0xc1, 0xbf, 0x1b, 0xd0, 0x60, 0x56, 0xf4, 0x4e, 0x1c, 0xbb, + 0xd0, 0xe0, 0xde, 0x54, 0x1e, 0x54, 0xe3, 0x70, 0x34, 0x57, 0xe8, 0xd1, 0x00, 0xea, 0x84, 0xfa, + 0x34, 0xb4, 0x6b, 0xbb, 0x46, 0x77, 0x7d, 0xb0, 0xa5, 0x30, 0xb9, 0x5d, 0x6f, 0x1c, 0x2e, 0xd2, + 0x28, 0x3e, 0x19, 0x67, 0x36, 0x2e, 0x37, 0xc5, 0x7b, 0x70, 0x4f, 0x17, 0xa3, 0x36, 0x34, 0xbf, + 0x1b, 0x1d, 0x8e, 0x8e, 0xbe, 0x1f, 0x59, 0x95, 0xec, 0x32, 0x3e, 0x70, 0xbd, 0xe7, 0xa3, 0xa1, + 0x65, 0xa0, 0x0d, 0x68, 0x8f, 0x8e, 0x26, 0xc7, 0x52, 0x50, 0xc5, 0x3f, 0x42, 0xd3, 0xfb, 0x1f, + 0x39, 0x5f, 0xd1, 0xac, 0xe8, 0x23, 0x68, 0xa5, 0xc7, 0xbc, 0xfd, 0x19, 0xf9, 0xf6, 0xa0, 0xd3, + 0x93, 0xe3, 0xa0, 0x3a, 0xae, 0x99, 0x72, 0x6f, 0xf8, 0x5b, 0x68, 0x78, 0xac, 0x15, 0xb2, 0xfa, + 0x9d, 0x26, 0x84, 0x32, 0x3c, 0xde, 0x39, 0xea, 0xae, 0x73, 0xaa, 0xde, 0xc0, 0x09, 0xff, 0x6c, + 0x40, 0xc3, 0x9b, 0x0c, 0xb3, 0x04, 0x5c, 0x07, 0x89, 0x60, 0x6d, 0x9e, 0x24, 0x33, 0x49, 0x3d, + 0x3b, 0x67, 0xb2, 0x69, 0x38, 0x9b, 0x31, 0xda, 0xa6, 0xcb, 0xce, 0xba, 0xeb, 0xb5, 0x9b, 0xd2, + 0xb1, 0x05, 0xa6, 0x6c, 0x39, 0x62, 0xd7, 0x77, 0x6b, 0x5d, 0xd3, 0x5d, 0x0a, 0xf0, 0x0b, 0xe8, + 0x7c, 0x1d, 0xc5, 0x01, 0x0f, 0xdc, 0x0d, 0xcf, 0x2f, 0x42, 0x42, 0xd1, 0x26, 0xd4, 0x59, 0xc5, + 0x05, 0x3f, 0x7e, 0x41, 0xef, 0x40, 0x5b, 0x60, 0x1e, 0x47, 0x01, 0xb1, 0xab, 0x0c, 0x0a, 0x84, + 0xe8, 0x79, 0x40, 0xf0, 0x26, 0xa0, 0x61, 0x48, 0x05, 0x01, 0x22, 0xc0, 0xf0, 0x33, 0x78, 0x90, + 0x93, 0x92, 0x79, 0x12, 0x13, 0x56, 0x11, 0xf1, 0x94, 0xd8, 0x06, 0x6b, 0xfa, 0x72, 0x0c, 0xca, + 0x02, 0x0f, 0x60, 0x63, 0x18, 0xd2, 0x2c, 0x7f, 0x12, 0xb7, 0x48, 0xc7, 0x28, 0xd1, 0xd9, 0x03, + 0x6b, 0xf9, 0x46, 0x78, 0x7d, 0x0f, 0xea, 0x27, 0x99, 0x40, 0xb8, 0xdc, 0x50, 0x2e, 0x79, 0x71, + 0x5c, 0xae, 0xc5, 0x4f, 0x18, 0x67, 0xd9, 0x18, 0xb7, 0x77, 0x39, 0x84, 0xcd, 0xfc, 0x3b, 0xe1, + 0xb6, 0xaf, 0xd7, 0x80, 0xbb, 0xee, 0x94, 0x96, 0x98, 0x5e, 0x96, 0x29, 0xe3, 0x9e, 0xaf, 0xca, + 0x36, 0xc0, 0xd2, 0xbb, 0x28, 0x8d, 0xa9, 0x9c, 0x5f, 0xbb, 0x6a, 0x54, 0x41, 0x6b, 0x5a, 0x41, + 0xf1, 0x27, 0xd0, 0x51, 0x4e, 0x6e, 0x1f, 0xe3, 0x97, 0xac, 0xca, 0xea, 0x95, 0x88, 0xf0, 0x03, + 0x68, 0xf2, 0x71, 0x2a, 0xa7, 0x56, 0x44, 0x21, 0xf5, 0xf8, 0x88, 0xc5, 0x26, 0x56, 0x8b, 0xf0, + 0x7a, 0xdd, 0x50, 0xdc, 0xd8, 0x77, 0x3c, 0x0e, 0x0e, 0x78, 0xd7, 0x38, 0xd4, 0xab, 0x65, 0x1c, + 0x7c, 0xd9, 0x95, 0xe3, 0x10, 0x8c, 0xa5, 0x1e, 0x8f, 0x98, 0x5b, 0xef, 0x4d, 0x15, 0x09, 0x3f, + 0x66, 0x84, 0xbc, 0xbb, 0xd6, 0x63, 0x9f, 0xf5, 0xaa, 0x57, 0x2c, 0xc8, 0x23, 0x30, 0xe5, 0xc6, + 0x2b, 0x0f, 0x98, 0x24, 0xdd, 0x12, 0x1b, 0x8f, 0xe0, 0x97, 0x60, 0x79, 0x93, 0x83, 0x9f, 0xe6, + 0x33, 0x3f, 0x8a, 0xa5, 0x6b, 0x3b, 0xbf, 0x74, 0xcd, 0xdb, 0x7d, 0xd6, 0x2c, 0xa8, 0x91, 0x73, + 0xb9, 0xae, 0xb2, 0x23, 0xee, 0x43, 0x47, 0xc3, 0x16, 0xfc, 0x1c, 0x68, 0x2d, 0xc4, 0x59, 0x56, + 0x5c, 0xde, 0x07, 0xff, 0xd4, 0xa1, 0xe9, 0x4d, 0x9e, 0x66, 0x54, 0xd1, 0xe7, 0x00, 0xcb, 0x05, + 0x85, 0x1c, 0x15, 0x42, 0x69, 0x6b, 0x39, 0xc5, 0x8e, 0xc3, 0x15, 0xf4, 0x02, 0xda, 0xda, 0xee, + 0x41, 0x0f, 0x95, 0x45, 0x79, 0x4f, 0x39, 0x5b, 0xab, 0x95, 0x9c, 0x12, 0xae, 0xa0, 0xa7, 0xd0, + 0x92, 0xeb, 0x04, 0xd9, 0xba, 0xad, 0xbe, 0x95, 0x9c, 0xb7, 0x57, 0x68, 0x14, 0xc4, 0x37, 0x70, + 0x4f, 0x5f, 0x0f, 0x28, 0xe7, 0xb2, 0xb8, 0x6d, 0x9c, 0xed, 0xff, 0xd0, 0x2a, 0xb8, 0x3d, 0x30, + 0xd5, 0x24, 0xa2, 0x9c, 0xe3, 0x1b, 0x13, 0x33, 0x04, 0x58, 0x0e, 0xb1, 0x96, 0xd5, 0xd2, 0x3e, + 0x70, 0x1e, 0xae, 0xd4, 0x15, 0x38, 0x88, 0xbf, 0x8e, 0x1c, 0x87, 0xdc, 0x80, 0x3b, 0xc5, 0x31, + 0x52, 0x1c, 0xc4, 0x00, 0xe6, 0x39, 0xe4, 0x67, 0x39, 0xcf, 0xa1, 0x30, 0xb1, 0xb8, 0x82, 0xbe, + 0x60, 0x40, 0x5e, 0xa9, 0x45, 0x4a, 0xd3, 0xe9, 0x94, 0x26, 0x40, 0xf5, 0x88, 0x9c, 0x9f, 0x7c, + 0x8f, 0x14, 0x86, 0x31, 0xdf, 0x23, 0x5e, 0x39, 0x1b, 0xfb, 0x60, 0xaa, 0x4e, 0xd7, 0xb2, 0x51, + 0x9c, 0x2c, 0xc7, 0x59, 0xa5, 0x92, 0x28, 0x5f, 0x3d, 0xf9, 0xed, 0x6a, 0xc7, 0xf8, 0xe3, 0x6a, + 0xc7, 0xf8, 0xf3, 0x6a, 0xc7, 0xf8, 0xe5, 0xaf, 0x9d, 0xca, 0xcb, 0x77, 0xd3, 0x88, 0x86, 0x84, + 0xf4, 0xa2, 0xa4, 0xcf, 0x4f, 0xfd, 0x93, 0xa4, 0x9f, 0xd2, 0x3e, 0xfb, 0x71, 0xef, 0x0b, 0xac, + 0x57, 0x0d, 0x76, 0xfd, 0xf8, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd7, 0xbc, 0x6b, 0x83, 0x2a, + 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1323,6 +1548,11 @@ type VTAdminClient interface { GetTablet(ctx context.Context, in *GetTabletRequest, opts ...grpc.CallOption) (*Tablet, error) // GetTablets returns all tablets across all the specified clusters. GetTablets(ctx context.Context, in *GetTabletsRequest, opts ...grpc.CallOption) (*GetTabletsResponse, error) + // GetVSchema returns a VSchema for the specified keyspace in the specified + // cluster. + GetVSchema(ctx context.Context, in *GetVSchemaRequest, opts ...grpc.CallOption) (*VSchema, error) + // GetVSchemas returns the VSchemas for all specified clusters. + GetVSchemas(ctx context.Context, in *GetVSchemasRequest, opts ...grpc.CallOption) (*GetVSchemasResponse, error) // VTExplain provides information on how Vitess plans to execute a particular query. VTExplain(ctx context.Context, in *VTExplainRequest, opts ...grpc.CallOption) (*VTExplainResponse, error) } @@ -1407,6 +1637,24 @@ func (c *vTAdminClient) GetTablets(ctx context.Context, in *GetTabletsRequest, o return out, nil } +func (c *vTAdminClient) GetVSchema(ctx context.Context, in *GetVSchemaRequest, opts ...grpc.CallOption) (*VSchema, error) { + out := new(VSchema) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/GetVSchema", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vTAdminClient) GetVSchemas(ctx context.Context, in *GetVSchemasRequest, opts ...grpc.CallOption) (*GetVSchemasResponse, error) { + out := new(GetVSchemasResponse) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/GetVSchemas", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *vTAdminClient) VTExplain(ctx context.Context, in *VTExplainRequest, opts ...grpc.CallOption) (*VTExplainResponse, error) { out := new(VTExplainResponse) err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/VTExplain", in, out, opts...) @@ -1441,6 +1689,11 @@ type VTAdminServer interface { GetTablet(context.Context, *GetTabletRequest) (*Tablet, error) // GetTablets returns all tablets across all the specified clusters. GetTablets(context.Context, *GetTabletsRequest) (*GetTabletsResponse, error) + // GetVSchema returns a VSchema for the specified keyspace in the specified + // cluster. + GetVSchema(context.Context, *GetVSchemaRequest) (*VSchema, error) + // GetVSchemas returns the VSchemas for all specified clusters. + GetVSchemas(context.Context, *GetVSchemasRequest) (*GetVSchemasResponse, error) // VTExplain provides information on how Vitess plans to execute a particular query. VTExplain(context.Context, *VTExplainRequest) (*VTExplainResponse, error) } @@ -1473,6 +1726,12 @@ func (*UnimplementedVTAdminServer) GetTablet(ctx context.Context, req *GetTablet func (*UnimplementedVTAdminServer) GetTablets(ctx context.Context, req *GetTabletsRequest) (*GetTabletsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTablets not implemented") } +func (*UnimplementedVTAdminServer) GetVSchema(ctx context.Context, req *GetVSchemaRequest) (*VSchema, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetVSchema not implemented") +} +func (*UnimplementedVTAdminServer) GetVSchemas(ctx context.Context, req *GetVSchemasRequest) (*GetVSchemasResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetVSchemas not implemented") +} func (*UnimplementedVTAdminServer) VTExplain(ctx context.Context, req *VTExplainRequest) (*VTExplainResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VTExplain not implemented") } @@ -1625,6 +1884,42 @@ func _VTAdmin_GetTablets_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +func _VTAdmin_GetVSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetVSchemaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).GetVSchema(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/GetVSchema", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).GetVSchema(ctx, req.(*GetVSchemaRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VTAdmin_GetVSchemas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetVSchemasRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).GetVSchemas(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/GetVSchemas", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).GetVSchemas(ctx, req.(*GetVSchemasRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _VTAdmin_VTExplain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(VTExplainRequest) if err := dec(in); err != nil { @@ -1679,6 +1974,14 @@ var _VTAdmin_serviceDesc = grpc.ServiceDesc{ MethodName: "GetTablets", Handler: _VTAdmin_GetTablets_Handler, }, + { + MethodName: "GetVSchema", + Handler: _VTAdmin_GetVSchema_Handler, + }, + { + MethodName: "GetVSchemas", + Handler: _VTAdmin_GetVSchemas_Handler, + }, { MethodName: "VTExplain", Handler: _VTAdmin_VTExplain_Handler, @@ -1922,7 +2225,7 @@ func (m *Tablet) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Vtctld) Marshal() (dAtA []byte, err error) { +func (m *VSchema) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1932,12 +2235,12 @@ func (m *Vtctld) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Vtctld) MarshalTo(dAtA []byte) (int, error) { +func (m *VSchema) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Vtctld) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *VSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1946,9 +2249,9 @@ func (m *Vtctld) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if m.Cluster != nil { + if m.VSchema != nil { { - size, err := m.Cluster.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.VSchema.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1956,19 +2259,31 @@ func (m *Vtctld) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintVtadmin(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintVtadmin(dAtA, i, uint64(len(m.Name))) + i-- dAtA[i] = 0x12 } - if len(m.Hostname) > 0 { - i -= len(m.Hostname) - copy(dAtA[i:], m.Hostname) - i = encodeVarintVtadmin(dAtA, i, uint64(len(m.Hostname))) + if m.Cluster != nil { + { + size, err := m.Cluster.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVtadmin(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *VTGate) Marshal() (dAtA []byte, err error) { +func (m *Vtctld) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1978,12 +2293,12 @@ func (m *VTGate) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *VTGate) MarshalTo(dAtA []byte) (int, error) { +func (m *Vtctld) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *VTGate) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Vtctld) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1992,15 +2307,6 @@ func (m *VTGate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Keyspaces) > 0 { - for iNdEx := len(m.Keyspaces) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Keyspaces[iNdEx]) - copy(dAtA[i:], m.Keyspaces[iNdEx]) - i = encodeVarintVtadmin(dAtA, i, uint64(len(m.Keyspaces[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } if m.Cluster != nil { { size, err := m.Cluster.MarshalToSizedBuffer(dAtA[:i]) @@ -2011,7 +2317,62 @@ func (m *VTGate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintVtadmin(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x12 + } + if len(m.Hostname) > 0 { + i -= len(m.Hostname) + copy(dAtA[i:], m.Hostname) + i = encodeVarintVtadmin(dAtA, i, uint64(len(m.Hostname))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VTGate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VTGate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VTGate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Keyspaces) > 0 { + for iNdEx := len(m.Keyspaces) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keyspaces[iNdEx]) + copy(dAtA[i:], m.Keyspaces[iNdEx]) + i = encodeVarintVtadmin(dAtA, i, uint64(len(m.Keyspaces[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if m.Cluster != nil { + { + size, err := m.Cluster.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVtadmin(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } if len(m.Cell) > 0 { i -= len(m.Cell) @@ -2547,6 +2908,124 @@ func (m *GetTabletsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *GetVSchemaRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetVSchemaRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetVSchemaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Keyspace) > 0 { + i -= len(m.Keyspace) + copy(dAtA[i:], m.Keyspace) + i = encodeVarintVtadmin(dAtA, i, uint64(len(m.Keyspace))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarintVtadmin(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetVSchemasRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetVSchemasRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetVSchemasRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ClusterIds) > 0 { + for iNdEx := len(m.ClusterIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterIds[iNdEx]) + copy(dAtA[i:], m.ClusterIds[iNdEx]) + i = encodeVarintVtadmin(dAtA, i, uint64(len(m.ClusterIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GetVSchemasResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetVSchemasResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetVSchemasResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.VSchemas) > 0 { + for iNdEx := len(m.VSchemas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VSchemas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVtadmin(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func (m *VTExplainRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2742,6 +3221,30 @@ func (m *Tablet) Size() (n int) { return n } +func (m *VSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Cluster != nil { + l = m.Cluster.Size() + n += 1 + l + sovVtadmin(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovVtadmin(uint64(l)) + } + if m.VSchema != nil { + l = m.VSchema.Size() + n += 1 + l + sovVtadmin(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func (m *Vtctld) Size() (n int) { if m == nil { return 0 @@ -3038,6 +3541,62 @@ func (m *GetTabletsResponse) Size() (n int) { return n } +func (m *GetVSchemaRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sovVtadmin(uint64(l)) + } + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + sovVtadmin(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetVSchemasRequest) Size() (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 + sovVtadmin(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetVSchemasResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.VSchemas) > 0 { + for _, e := range m.VSchemas { + l = e.Size() + n += 1 + l + sovVtadmin(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func (m *VTExplainRequest) Size() (n int) { if m == nil { return 0 @@ -3758,7 +4317,7 @@ func (m *Tablet) Unmarshal(dAtA []byte) error { } return nil } -func (m *Vtctld) Unmarshal(dAtA []byte) error { +func (m *VSchema) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3781,17 +4340,17 @@ func (m *Vtctld) Unmarshal(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: VSchema: 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: VSchema: 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 Cluster", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowVtadmin @@ -3801,27 +4360,185 @@ func (m *Vtctld) Unmarshal(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 ErrInvalidLengthVtadmin } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthVtadmin } if postIndex > l { return io.ErrUnexpectedEOF } - m.Hostname = string(dAtA[iNdEx:postIndex]) + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.Unmarshal(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 Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVtadmin + } + 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 ErrInvalidLengthVtadmin + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVtadmin + } + 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 VSchema", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVtadmin + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVtadmin + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVtadmin + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.VSchema == nil { + m.VSchema = &vschema.Keyspace{} + } + if err := m.VSchema.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVtadmin(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVtadmin + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVtadmin + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Vtctld) Unmarshal(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 ErrIntOverflowVtadmin + } + 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: Vtctld: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Vtctld: 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) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVtadmin + } + 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 ErrInvalidLengthVtadmin + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVtadmin + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hostname = 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 { @@ -5322,6 +6039,298 @@ func (m *GetTabletsResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *GetVSchemaRequest) Unmarshal(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 ErrIntOverflowVtadmin + } + 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: + 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 ErrIntOverflowVtadmin + } + 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 ErrInvalidLengthVtadmin + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVtadmin + } + 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 ErrIntOverflowVtadmin + } + 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 ErrInvalidLengthVtadmin + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVtadmin + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVtadmin(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVtadmin + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVtadmin + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetVSchemasRequest) Unmarshal(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 ErrIntOverflowVtadmin + } + 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 ClusterIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVtadmin + } + 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 ErrInvalidLengthVtadmin + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVtadmin + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVtadmin(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVtadmin + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVtadmin + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetVSchemasResponse) Unmarshal(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 ErrIntOverflowVtadmin + } + 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: GetVSchemasResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 VSchemas", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVtadmin + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVtadmin + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVtadmin + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VSchemas = append(m.VSchemas, &VSchema{}) + if err := m.VSchemas[len(m.VSchemas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVtadmin(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVtadmin + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVtadmin + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *VTExplainRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/go/vt/vtadmin/api.go b/go/vt/vtadmin/api.go index d6ad2ab3cee..3943d3e0131 100644 --- a/go/vt/vtadmin/api.go +++ b/go/vt/vtadmin/api.go @@ -94,6 +94,8 @@ func NewAPI(clusters []*cluster.Cluster, opts grpcserver.Options, httpOpts vtadm router.HandleFunc("/schemas", httpAPI.Adapt(vtadminhttp.GetSchemas)).Name("API.GetSchemas") router.HandleFunc("/tablets", httpAPI.Adapt(vtadminhttp.GetTablets)).Name("API.GetTablets") router.HandleFunc("/tablet/{tablet}", httpAPI.Adapt(vtadminhttp.GetTablet)).Name("API.GetTablet") + router.HandleFunc("/vschema/{cluster_id}/{keyspace}", nil).Name("API.GetVSchema") + router.HandleFunc("/vschemas", nil).Name("API.GetVSchemas") router.HandleFunc("/vtexplain", httpAPI.Adapt(vtadminhttp.VTExplain)).Name("API.VTExplain") // Middlewares are executed in order of addition. Our ordering (all @@ -654,6 +656,16 @@ func (api *API) getClustersForRequest(ids []string) ([]*cluster.Cluster, []strin return clusters, ids } +// GetVSchema is part of the vtadminpb.VTAdminServer interface. +func (api *API) GetVSchema(ctx context.Context, req *vtadminpb.GetVSchemaRequest) (*vtadminpb.VSchema, error) { + panic("unimplemented!") +} + +// GetVSchemas is part of the vtadminpb.VTAdminServer interface. +func (api *API) GetVSchemas(ctx context.Context, req *vtadminpb.GetVSchemasRequest) (*vtadminpb.GetVSchemasResponse, error) { + panic("unimplemented!") +} + // VTExplain is part of the vtadminpb.VTAdminServer interface. func (api *API) VTExplain(ctx context.Context, req *vtadminpb.VTExplainRequest) (*vtadminpb.VTExplainResponse, error) { span, ctx := trace.NewSpan(ctx, "API.VTExplain") diff --git a/go/vt/vtadmin/http/vschemas.go b/go/vt/vtadmin/http/vschemas.go new file mode 100644 index 00000000000..ec2526d2159 --- /dev/null +++ b/go/vt/vtadmin/http/vschemas.go @@ -0,0 +1,31 @@ +/* +Copyright 2021 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" + +// GetVSchema implements the http wrapper for the +// /vschema/{cluster_id}/{keyspace} route. +func GetVSchema(ctx context.Context, r Request, api *API) *JSONResponse { + panic("unimplemented!") +} + +// GetVSchemas implements the http wrapper for the +// /vschemas[?cluster=[&cluster=]] route. +func GetVSchemas(ctx context.Context, r Request, api *API) *JSONResponse { + panic("unimplemented!") +} diff --git a/proto/vtadmin.proto b/proto/vtadmin.proto index 374481b82fc..91a2939aabc 100644 --- a/proto/vtadmin.proto +++ b/proto/vtadmin.proto @@ -23,6 +23,7 @@ package vtadmin; import "tabletmanagerdata.proto"; import "topodata.proto"; +import "vschema.proto"; import "vtctldata.proto"; /* Services */ @@ -53,6 +54,11 @@ service VTAdmin { rpc GetTablet(GetTabletRequest) returns (Tablet) {}; // GetTablets returns all tablets across all the specified clusters. rpc GetTablets(GetTabletsRequest) returns (GetTabletsResponse) {}; + // GetVSchema returns a VSchema for the specified keyspace in the specified + // cluster. + rpc GetVSchema(GetVSchemaRequest) returns (VSchema) {}; + // GetVSchemas returns the VSchemas for all specified clusters. + rpc GetVSchemas(GetVSchemasRequest) returns (GetVSchemasResponse) {}; // VTExplain provides information on how Vitess plans to execute a particular query. rpc VTExplain(VTExplainRequest) returns (VTExplainResponse) {}; } @@ -95,6 +101,14 @@ message Tablet { ServingState state = 3; } +// VSchema represents the vschema for a keyspace in the cluster it belongs to. +message VSchema { + Cluster cluster = 1; + // Name is the name of the keyspace this VSchema is for. + string name = 2; + vschema.Keyspace v_schema = 3; +} + // Vtctld represents information about a single Vtctld host. message Vtctld { string hostname = 1; @@ -176,6 +190,19 @@ message GetTabletsResponse { repeated Tablet tablets = 1; } +message GetVSchemaRequest { + string cluster_id = 1; + string keyspace = 2; +} + +message GetVSchemasRequest { + repeated string cluster_ids = 1; +} + +message GetVSchemasResponse { + repeated VSchema v_schemas = 1; +} + message VTExplainRequest { string cluster = 1; string keyspace = 2; diff --git a/web/vtadmin/src/proto/vtadmin.d.ts b/web/vtadmin/src/proto/vtadmin.d.ts index 11bcc0a9629..633a0639b48 100644 --- a/web/vtadmin/src/proto/vtadmin.d.ts +++ b/web/vtadmin/src/proto/vtadmin.d.ts @@ -134,6 +134,34 @@ export namespace vtadmin { */ public getTablets(request: vtadmin.IGetTabletsRequest): Promise; + /** + * Calls GetVSchema. + * @param request GetVSchemaRequest message or plain object + * @param callback Node-style callback called with the error, if any, and VSchema + */ + public getVSchema(request: vtadmin.IGetVSchemaRequest, callback: vtadmin.VTAdmin.GetVSchemaCallback): void; + + /** + * Calls GetVSchema. + * @param request GetVSchemaRequest message or plain object + * @returns Promise + */ + public getVSchema(request: vtadmin.IGetVSchemaRequest): Promise; + + /** + * Calls GetVSchemas. + * @param request GetVSchemasRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetVSchemasResponse + */ + public getVSchemas(request: vtadmin.IGetVSchemasRequest, callback: vtadmin.VTAdmin.GetVSchemasCallback): void; + + /** + * Calls GetVSchemas. + * @param request GetVSchemasRequest message or plain object + * @returns Promise + */ + public getVSchemas(request: vtadmin.IGetVSchemasRequest): Promise; + /** * Calls VTExplain. * @param request VTExplainRequest message or plain object @@ -207,6 +235,20 @@ export namespace vtadmin { */ type GetTabletsCallback = (error: (Error|null), response?: vtadmin.GetTabletsResponse) => void; + /** + * Callback as used by {@link vtadmin.VTAdmin#getVSchema}. + * @param error Error, if any + * @param [response] VSchema + */ + type GetVSchemaCallback = (error: (Error|null), response?: vtadmin.VSchema) => void; + + /** + * Callback as used by {@link vtadmin.VTAdmin#getVSchemas}. + * @param error Error, if any + * @param [response] GetVSchemasResponse + */ + type GetVSchemasCallback = (error: (Error|null), response?: vtadmin.GetVSchemasResponse) => void; + /** * Callback as used by {@link vtadmin.VTAdmin#vTExplain}. * @param error Error, if any @@ -627,6 +669,108 @@ export namespace vtadmin { } } + /** Properties of a VSchema. */ + interface IVSchema { + + /** VSchema cluster */ + cluster?: (vtadmin.ICluster|null); + + /** VSchema name */ + name?: (string|null); + + /** VSchema v_schema */ + v_schema?: (vschema.IKeyspace|null); + } + + /** Represents a VSchema. */ + class VSchema implements IVSchema { + + /** + * Constructs a new VSchema. + * @param [properties] Properties to set + */ + constructor(properties?: vtadmin.IVSchema); + + /** VSchema cluster. */ + public cluster?: (vtadmin.ICluster|null); + + /** VSchema name. */ + public name: string; + + /** VSchema v_schema. */ + public v_schema?: (vschema.IKeyspace|null); + + /** + * Creates a new VSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns VSchema instance + */ + public static create(properties?: vtadmin.IVSchema): vtadmin.VSchema; + + /** + * Encodes the specified VSchema message. Does not implicitly {@link vtadmin.VSchema.verify|verify} messages. + * @param message VSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtadmin.IVSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VSchema message, length delimited. Does not implicitly {@link vtadmin.VSchema.verify|verify} messages. + * @param message VSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtadmin.IVSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VSchema; + + /** + * Decodes a VSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VSchema; + + /** + * Verifies a VSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VSchema + */ + public static fromObject(object: { [k: string]: any }): vtadmin.VSchema; + + /** + * Creates a plain object from a VSchema message. Also converts values to other types if specified. + * @param message VSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtadmin.VSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a Vtctld. */ interface IVtctld { @@ -2025,2568 +2169,2844 @@ export namespace vtadmin { public toJSON(): { [k: string]: any }; } - /** Properties of a VTExplainRequest. */ - interface IVTExplainRequest { + /** Properties of a GetVSchemaRequest. */ + interface IGetVSchemaRequest { - /** VTExplainRequest cluster */ - cluster?: (string|null); + /** GetVSchemaRequest cluster_id */ + cluster_id?: (string|null); - /** VTExplainRequest keyspace */ + /** GetVSchemaRequest keyspace */ keyspace?: (string|null); - - /** VTExplainRequest sql */ - sql?: (string|null); } - /** Represents a VTExplainRequest. */ - class VTExplainRequest implements IVTExplainRequest { + /** Represents a GetVSchemaRequest. */ + class GetVSchemaRequest implements IGetVSchemaRequest { /** - * Constructs a new VTExplainRequest. + * Constructs a new GetVSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtadmin.IVTExplainRequest); + constructor(properties?: vtadmin.IGetVSchemaRequest); - /** VTExplainRequest cluster. */ - public cluster: string; + /** GetVSchemaRequest cluster_id. */ + public cluster_id: string; - /** VTExplainRequest keyspace. */ + /** GetVSchemaRequest keyspace. */ public keyspace: string; - /** VTExplainRequest sql. */ - public sql: string; - /** - * Creates a new VTExplainRequest instance using the specified properties. + * Creates a new GetVSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VTExplainRequest instance + * @returns GetVSchemaRequest instance */ - public static create(properties?: vtadmin.IVTExplainRequest): vtadmin.VTExplainRequest; + public static create(properties?: vtadmin.IGetVSchemaRequest): vtadmin.GetVSchemaRequest; /** - * Encodes the specified VTExplainRequest message. Does not implicitly {@link vtadmin.VTExplainRequest.verify|verify} messages. - * @param message VTExplainRequest message or plain object to encode + * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtadmin.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: vtadmin.IVTExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtadmin.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VTExplainRequest message, length delimited. Does not implicitly {@link vtadmin.VTExplainRequest.verify|verify} messages. - * @param message VTExplainRequest message or plain object to encode + * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtadmin.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: vtadmin.IVTExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtadmin.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VTExplainRequest 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 VTExplainRequest + * @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): vtadmin.VTExplainRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.GetVSchemaRequest; /** - * Decodes a VTExplainRequest 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 VTExplainRequest + * @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)): vtadmin.VTExplainRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.GetVSchemaRequest; /** - * Verifies a VTExplainRequest 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 a VTExplainRequest 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 VTExplainRequest + * @returns GetVSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtadmin.VTExplainRequest; + public static fromObject(object: { [k: string]: any }): vtadmin.GetVSchemaRequest; /** - * Creates a plain object from a VTExplainRequest message. Also converts values to other types if specified. - * @param message VTExplainRequest + * 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: vtadmin.VTExplainRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VTExplainRequest to JSON. + * Converts this GetVSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a VTExplainResponse. */ - interface IVTExplainResponse { + /** Properties of a GetVSchemasRequest. */ + interface IGetVSchemasRequest { - /** VTExplainResponse response */ - response?: (string|null); + /** GetVSchemasRequest cluster_ids */ + cluster_ids?: (string[]|null); } - /** Represents a VTExplainResponse. */ - class VTExplainResponse implements IVTExplainResponse { + /** Represents a GetVSchemasRequest. */ + class GetVSchemasRequest implements IGetVSchemasRequest { /** - * Constructs a new VTExplainResponse. + * Constructs a new GetVSchemasRequest. * @param [properties] Properties to set */ - constructor(properties?: vtadmin.IVTExplainResponse); + constructor(properties?: vtadmin.IGetVSchemasRequest); - /** VTExplainResponse response. */ - public response: string; + /** GetVSchemasRequest cluster_ids. */ + public cluster_ids: string[]; /** - * Creates a new VTExplainResponse instance using the specified properties. + * Creates a new GetVSchemasRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VTExplainResponse instance + * @returns GetVSchemasRequest instance */ - public static create(properties?: vtadmin.IVTExplainResponse): vtadmin.VTExplainResponse; + public static create(properties?: vtadmin.IGetVSchemasRequest): vtadmin.GetVSchemasRequest; /** - * Encodes the specified VTExplainResponse message. Does not implicitly {@link vtadmin.VTExplainResponse.verify|verify} messages. - * @param message VTExplainResponse message or plain object to encode + * Encodes the specified GetVSchemasRequest message. Does not implicitly {@link vtadmin.GetVSchemasRequest.verify|verify} messages. + * @param message GetVSchemasRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtadmin.IVTExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtadmin.IGetVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VTExplainResponse message, length delimited. Does not implicitly {@link vtadmin.VTExplainResponse.verify|verify} messages. - * @param message VTExplainResponse message or plain object to encode + * Encodes the specified GetVSchemasRequest message, length delimited. Does not implicitly {@link vtadmin.GetVSchemasRequest.verify|verify} messages. + * @param message GetVSchemasRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtadmin.IVTExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtadmin.IGetVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VTExplainResponse message from the specified reader or buffer. + * Decodes a GetVSchemasRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VTExplainResponse + * @returns GetVSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.VTExplainResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.GetVSchemasRequest; /** - * Decodes a VTExplainResponse message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemasRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VTExplainResponse + * @returns GetVSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.VTExplainResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.GetVSchemasRequest; /** - * Verifies a VTExplainResponse message. + * Verifies a GetVSchemasRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VTExplainResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetVSchemasRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VTExplainResponse + * @returns GetVSchemasRequest */ - public static fromObject(object: { [k: string]: any }): vtadmin.VTExplainResponse; + public static fromObject(object: { [k: string]: any }): vtadmin.GetVSchemasRequest; /** - * Creates a plain object from a VTExplainResponse message. Also converts values to other types if specified. - * @param message VTExplainResponse + * Creates a plain object from a GetVSchemasRequest message. Also converts values to other types if specified. + * @param message GetVSchemasRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtadmin.VTExplainResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.GetVSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VTExplainResponse to JSON. + * Converts this GetVSchemasRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } -} - -/** Namespace tabletmanagerdata. */ -export namespace tabletmanagerdata { - /** Properties of a TableDefinition. */ - interface ITableDefinition { - - /** TableDefinition name */ - name?: (string|null); - - /** 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); + /** Properties of a GetVSchemasResponse. */ + interface IGetVSchemasResponse { - /** TableDefinition row_count */ - row_count?: (number|Long|null); - - /** TableDefinition fields */ - fields?: (query.IField[]|null); + /** GetVSchemasResponse v_schemas */ + v_schemas?: (vtadmin.IVSchema[]|null); } - /** Represents a TableDefinition. */ - class TableDefinition implements ITableDefinition { + /** Represents a GetVSchemasResponse. */ + class GetVSchemasResponse implements IGetVSchemasResponse { /** - * Constructs a new TableDefinition. + * Constructs a new GetVSchemasResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ITableDefinition); - - /** TableDefinition name. */ - public name: string; + constructor(properties?: vtadmin.IGetVSchemasResponse); - /** 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[]; + /** GetVSchemasResponse v_schemas. */ + public v_schemas: vtadmin.IVSchema[]; /** - * Creates a new TableDefinition instance using the specified properties. + * Creates a new GetVSchemasResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TableDefinition instance + * @returns GetVSchemasResponse instance */ - public static create(properties?: tabletmanagerdata.ITableDefinition): tabletmanagerdata.TableDefinition; + public static create(properties?: vtadmin.IGetVSchemasResponse): vtadmin.GetVSchemasResponse; /** - * 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 GetVSchemasResponse message. Does not implicitly {@link vtadmin.GetVSchemasResponse.verify|verify} messages. + * @param message GetVSchemasResponse 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: vtadmin.IGetVSchemasResponse, 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 GetVSchemasResponse message, length delimited. Does not implicitly {@link vtadmin.GetVSchemasResponse.verify|verify} messages. + * @param message GetVSchemasResponse 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: vtadmin.IGetVSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TableDefinition message from the specified reader or buffer. + * Decodes a GetVSchemasResponse 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 GetVSchemasResponse * @throws {Error} If the payload is 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): vtadmin.GetVSchemasResponse; /** - * Decodes a TableDefinition message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemasResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TableDefinition + * @returns GetVSchemasResponse * @throws {Error} If the 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)): vtadmin.GetVSchemasResponse; /** - * Verifies a TableDefinition message. + * Verifies a GetVSchemasResponse message. * @param message Plain object 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 GetVSchemasResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TableDefinition + * @returns GetVSchemasResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.TableDefinition; + public static fromObject(object: { [k: string]: any }): vtadmin.GetVSchemasResponse; /** - * 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 GetVSchemasResponse message. Also converts values to other types if specified. + * @param message GetVSchemasResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.TableDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.GetVSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TableDefinition to JSON. + * Converts this GetVSchemasResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SchemaDefinition. */ - interface ISchemaDefinition { + /** Properties of a VTExplainRequest. */ + interface IVTExplainRequest { - /** SchemaDefinition database_schema */ - database_schema?: (string|null); + /** VTExplainRequest cluster */ + cluster?: (string|null); - /** SchemaDefinition table_definitions */ - table_definitions?: (tabletmanagerdata.ITableDefinition[]|null); + /** VTExplainRequest keyspace */ + keyspace?: (string|null); - /** SchemaDefinition version */ - version?: (string|null); + /** VTExplainRequest sql */ + sql?: (string|null); } - /** Represents a SchemaDefinition. */ - class SchemaDefinition implements ISchemaDefinition { + /** Represents a VTExplainRequest. */ + class VTExplainRequest implements IVTExplainRequest { /** - * Constructs a new SchemaDefinition. + * Constructs a new VTExplainRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISchemaDefinition); + constructor(properties?: vtadmin.IVTExplainRequest); - /** SchemaDefinition database_schema. */ - public database_schema: string; + /** VTExplainRequest cluster. */ + public cluster: string; - /** SchemaDefinition table_definitions. */ - public table_definitions: tabletmanagerdata.ITableDefinition[]; + /** VTExplainRequest keyspace. */ + public keyspace: string; - /** SchemaDefinition version. */ - public version: string; + /** VTExplainRequest sql. */ + public sql: string; /** - * Creates a new SchemaDefinition instance using the specified properties. + * Creates a new VTExplainRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SchemaDefinition instance + * @returns VTExplainRequest instance */ - public static create(properties?: tabletmanagerdata.ISchemaDefinition): tabletmanagerdata.SchemaDefinition; + public static create(properties?: vtadmin.IVTExplainRequest): vtadmin.VTExplainRequest; /** - * 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 VTExplainRequest message. Does not implicitly {@link vtadmin.VTExplainRequest.verify|verify} messages. + * @param message VTExplainRequest 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: vtadmin.IVTExplainRequest, 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 VTExplainRequest message, length delimited. Does not implicitly {@link vtadmin.VTExplainRequest.verify|verify} messages. + * @param message VTExplainRequest 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: vtadmin.IVTExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SchemaDefinition message from the specified reader or buffer. + * Decodes a VTExplainRequest 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 VTExplainRequest * @throws {Error} If the payload is 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): vtadmin.VTExplainRequest; /** - * Decodes a SchemaDefinition message from the specified reader or buffer, length delimited. + * Decodes a VTExplainRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SchemaDefinition + * @returns VTExplainRequest * @throws {Error} If the 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)): vtadmin.VTExplainRequest; /** - * Verifies a SchemaDefinition message. + * Verifies a VTExplainRequest message. * @param message Plain object 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 VTExplainRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SchemaDefinition + * @returns VTExplainRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SchemaDefinition; + public static fromObject(object: { [k: string]: any }): vtadmin.VTExplainRequest; /** - * 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 VTExplainRequest message. Also converts values to other types if specified. + * @param message VTExplainRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.SchemaDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.VTExplainRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SchemaDefinition to JSON. + * Converts this VTExplainRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SchemaChangeResult. */ - interface ISchemaChangeResult { - - /** SchemaChangeResult before_schema */ - before_schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** Properties of a VTExplainResponse. */ + interface IVTExplainResponse { - /** SchemaChangeResult after_schema */ - after_schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** VTExplainResponse response */ + response?: (string|null); } - /** Represents a SchemaChangeResult. */ - class SchemaChangeResult implements ISchemaChangeResult { + /** Represents a VTExplainResponse. */ + class VTExplainResponse implements IVTExplainResponse { /** - * Constructs a new SchemaChangeResult. + * Constructs a new VTExplainResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISchemaChangeResult); - - /** SchemaChangeResult before_schema. */ - public before_schema?: (tabletmanagerdata.ISchemaDefinition|null); + constructor(properties?: vtadmin.IVTExplainResponse); - /** SchemaChangeResult after_schema. */ - public after_schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** VTExplainResponse response. */ + public response: string; /** - * Creates a new SchemaChangeResult instance using the specified properties. + * Creates a new VTExplainResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SchemaChangeResult instance + * @returns VTExplainResponse instance */ - public static create(properties?: tabletmanagerdata.ISchemaChangeResult): tabletmanagerdata.SchemaChangeResult; + public static create(properties?: vtadmin.IVTExplainResponse): vtadmin.VTExplainResponse; /** - * 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 VTExplainResponse message. Does not implicitly {@link vtadmin.VTExplainResponse.verify|verify} messages. + * @param message VTExplainResponse 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: vtadmin.IVTExplainResponse, 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 VTExplainResponse message, length delimited. Does not implicitly {@link vtadmin.VTExplainResponse.verify|verify} messages. + * @param message VTExplainResponse 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: vtadmin.IVTExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SchemaChangeResult message from the specified reader or buffer. + * Decodes a VTExplainResponse 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 VTExplainResponse * @throws {Error} If the payload is 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): vtadmin.VTExplainResponse; /** - * Decodes a SchemaChangeResult message from the specified reader or buffer, length delimited. + * Decodes a VTExplainResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SchemaChangeResult + * @returns VTExplainResponse * @throws {Error} If the 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)): vtadmin.VTExplainResponse; /** - * Verifies a SchemaChangeResult message. + * Verifies a VTExplainResponse message. * @param message Plain object 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 VTExplainResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SchemaChangeResult + * @returns VTExplainResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SchemaChangeResult; + public static fromObject(object: { [k: string]: any }): vtadmin.VTExplainResponse; /** - * 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 VTExplainResponse message. Also converts values to other types if specified. + * @param message VTExplainResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tabletmanagerdata.SchemaChangeResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtadmin.VTExplainResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SchemaChangeResult to JSON. + * Converts this VTExplainResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } +} - /** Properties of a UserPermission. */ - interface IUserPermission { +/** Namespace tabletmanagerdata. */ +export namespace tabletmanagerdata { - /** UserPermission host */ - host?: (string|null); + /** Properties of a TableDefinition. */ + interface ITableDefinition { - /** UserPermission user */ - user?: (string|null); + /** TableDefinition name */ + name?: (string|null); - /** UserPermission password_checksum */ - password_checksum?: (number|Long|null); + /** TableDefinition schema */ + schema?: (string|null); - /** UserPermission privileges */ - privileges?: ({ [k: string]: 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 UserPermission. */ - class UserPermission implements IUserPermission { + /** Represents a TableDefinition. */ + class TableDefinition implements ITableDefinition { /** - * Constructs a new UserPermission. + * Constructs a new TableDefinition. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IUserPermission); + constructor(properties?: tabletmanagerdata.ITableDefinition); - /** UserPermission host. */ - public host: string; + /** TableDefinition name. */ + public name: string; - /** UserPermission user. */ - public user: string; + /** TableDefinition schema. */ + public schema: string; - /** UserPermission password_checksum. */ - public password_checksum: (number|Long); + /** TableDefinition columns. */ + public columns: string[]; - /** UserPermission privileges. */ - public privileges: { [k: string]: 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 UserPermission instance using the specified properties. + * Creates a new TableDefinition instance using the specified properties. * @param [properties] Properties to set - * @returns UserPermission instance + * @returns TableDefinition instance */ - public static create(properties?: tabletmanagerdata.IUserPermission): tabletmanagerdata.UserPermission; + public static create(properties?: tabletmanagerdata.ITableDefinition): tabletmanagerdata.TableDefinition; /** - * 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 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 encode(message: tabletmanagerdata.IUserPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ITableDefinition, 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 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.IUserPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ITableDefinition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserPermission message from the specified reader or buffer. + * 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 UserPermission + * @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.UserPermission; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.TableDefinition; /** - * Decodes a UserPermission 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 UserPermission + * @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.UserPermission; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.TableDefinition; /** - * Verifies a UserPermission 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 UserPermission 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 UserPermission + * @returns TableDefinition */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UserPermission; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.TableDefinition; /** - * 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 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.UserPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.TableDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserPermission to JSON. + * Converts this TableDefinition to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DbPermission. */ - interface IDbPermission { - - /** DbPermission host */ - host?: (string|null); + /** Properties of a SchemaDefinition. */ + interface ISchemaDefinition { - /** DbPermission db */ - db?: (string|null); + /** SchemaDefinition database_schema */ + database_schema?: (string|null); - /** DbPermission user */ - user?: (string|null); + /** SchemaDefinition table_definitions */ + table_definitions?: (tabletmanagerdata.ITableDefinition[]|null); - /** DbPermission privileges */ - privileges?: ({ [k: string]: string }|null); + /** SchemaDefinition version */ + version?: (string|null); } - /** Represents a DbPermission. */ - class DbPermission implements IDbPermission { + /** Represents a SchemaDefinition. */ + class SchemaDefinition implements ISchemaDefinition { /** - * Constructs a new DbPermission. + * Constructs a new SchemaDefinition. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IDbPermission); - - /** DbPermission host. */ - public host: string; + constructor(properties?: tabletmanagerdata.ISchemaDefinition); - /** DbPermission db. */ - public db: string; + /** SchemaDefinition database_schema. */ + public database_schema: string; - /** DbPermission user. */ - public user: string; + /** SchemaDefinition table_definitions. */ + public table_definitions: tabletmanagerdata.ITableDefinition[]; - /** DbPermission privileges. */ - public privileges: { [k: string]: string }; + /** SchemaDefinition version. */ + public version: string; /** - * Creates a new DbPermission instance using the specified properties. + * Creates a new SchemaDefinition instance using the specified properties. * @param [properties] Properties to set - * @returns DbPermission instance + * @returns SchemaDefinition instance */ - public static create(properties?: tabletmanagerdata.IDbPermission): tabletmanagerdata.DbPermission; + public static create(properties?: tabletmanagerdata.ISchemaDefinition): tabletmanagerdata.SchemaDefinition; /** - * 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 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.IDbPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISchemaDefinition, 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 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.IDbPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISchemaDefinition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DbPermission 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 DbPermission + * @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.DbPermission; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SchemaDefinition; /** - * Decodes a DbPermission 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 DbPermission + * @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.DbPermission; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SchemaDefinition; /** - * Verifies a DbPermission 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 DbPermission 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 DbPermission + * @returns SchemaDefinition */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DbPermission; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SchemaDefinition; /** - * Creates a plain object from a DbPermission message. Also converts values to other types if specified. - * @param message DbPermission + * 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.DbPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SchemaDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DbPermission to JSON. + * Converts this SchemaDefinition to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Permissions. */ - interface IPermissions { + /** Properties of a SchemaChangeResult. */ + interface ISchemaChangeResult { - /** Permissions user_permissions */ - user_permissions?: (tabletmanagerdata.IUserPermission[]|null); + /** SchemaChangeResult before_schema */ + before_schema?: (tabletmanagerdata.ISchemaDefinition|null); - /** Permissions db_permissions */ - db_permissions?: (tabletmanagerdata.IDbPermission[]|null); + /** SchemaChangeResult after_schema */ + after_schema?: (tabletmanagerdata.ISchemaDefinition|null); } - /** Represents a Permissions. */ - class Permissions implements IPermissions { + /** Represents a SchemaChangeResult. */ + class SchemaChangeResult implements ISchemaChangeResult { /** - * Constructs a new Permissions. + * Constructs a new SchemaChangeResult. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPermissions); + constructor(properties?: tabletmanagerdata.ISchemaChangeResult); - /** Permissions user_permissions. */ - public user_permissions: tabletmanagerdata.IUserPermission[]; + /** SchemaChangeResult before_schema. */ + public before_schema?: (tabletmanagerdata.ISchemaDefinition|null); - /** Permissions db_permissions. */ - public db_permissions: tabletmanagerdata.IDbPermission[]; + /** SchemaChangeResult after_schema. */ + public after_schema?: (tabletmanagerdata.ISchemaDefinition|null); /** - * Creates a new Permissions instance using the specified properties. + * Creates a new SchemaChangeResult instance using the specified properties. * @param [properties] Properties to set - * @returns Permissions instance + * @returns SchemaChangeResult instance */ - public static create(properties?: tabletmanagerdata.IPermissions): tabletmanagerdata.Permissions; + public static create(properties?: tabletmanagerdata.ISchemaChangeResult): tabletmanagerdata.SchemaChangeResult; /** - * 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 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.IPermissions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISchemaChangeResult, 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 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.IPermissions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISchemaChangeResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Permissions 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 Permissions + * @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.Permissions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SchemaChangeResult; /** - * Decodes a Permissions 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 Permissions + * @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.Permissions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SchemaChangeResult; /** - * Verifies a Permissions 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 a Permissions 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 Permissions + * @returns SchemaChangeResult */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.Permissions; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SchemaChangeResult; /** - * Creates a plain object from a Permissions message. Also converts values to other types if specified. - * @param message Permissions + * 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.Permissions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SchemaChangeResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Permissions to JSON. + * Converts this SchemaChangeResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PingRequest. */ - interface IPingRequest { + /** Properties of a UserPermission. */ + interface IUserPermission { - /** PingRequest payload */ - payload?: (string|null); + /** UserPermission host */ + host?: (string|null); + + /** UserPermission user */ + user?: (string|null); + + /** UserPermission password_checksum */ + password_checksum?: (number|Long|null); + + /** UserPermission privileges */ + privileges?: ({ [k: string]: string }|null); } - /** Represents a PingRequest. */ - class PingRequest implements IPingRequest { + /** Represents a UserPermission. */ + class UserPermission implements IUserPermission { /** - * Constructs a new PingRequest. + * Constructs a new UserPermission. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPingRequest); + constructor(properties?: tabletmanagerdata.IUserPermission); - /** PingRequest payload. */ - public payload: string; + /** UserPermission host. */ + public host: string; + + /** UserPermission user. */ + public user: string; + + /** UserPermission password_checksum. */ + public password_checksum: (number|Long); + + /** UserPermission privileges. */ + public privileges: { [k: string]: string }; /** - * Creates a new PingRequest instance using the specified properties. + * Creates a new UserPermission instance using the specified properties. * @param [properties] Properties to set - * @returns PingRequest instance + * @returns UserPermission instance */ - public static create(properties?: tabletmanagerdata.IPingRequest): tabletmanagerdata.PingRequest; + public static create(properties?: tabletmanagerdata.IUserPermission): tabletmanagerdata.UserPermission; /** - * 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 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.IPingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IUserPermission, 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 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.IPingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IUserPermission, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PingRequest 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 PingRequest + * @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.PingRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.UserPermission; /** - * Decodes a PingRequest 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 PingRequest + * @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.PingRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.UserPermission; /** - * Verifies a PingRequest 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 a PingRequest 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 PingRequest + * @returns UserPermission */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PingRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.UserPermission; /** - * 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 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.PingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.UserPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PingRequest to JSON. + * Converts this UserPermission to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PingResponse. */ - interface IPingResponse { + /** Properties of a DbPermission. */ + interface IDbPermission { - /** PingResponse payload */ - payload?: (string|null); + /** DbPermission host */ + host?: (string|null); + + /** DbPermission db */ + db?: (string|null); + + /** DbPermission user */ + user?: (string|null); + + /** DbPermission privileges */ + privileges?: ({ [k: string]: string }|null); } - /** Represents a PingResponse. */ - class PingResponse implements IPingResponse { + /** Represents a DbPermission. */ + class DbPermission implements IDbPermission { /** - * Constructs a new PingResponse. + * Constructs a new DbPermission. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IPingResponse); + constructor(properties?: tabletmanagerdata.IDbPermission); - /** PingResponse payload. */ - public payload: string; + /** DbPermission host. */ + public host: string; + + /** DbPermission db. */ + public db: string; + + /** DbPermission user. */ + public user: string; + + /** DbPermission privileges. */ + public privileges: { [k: string]: string }; /** - * Creates a new PingResponse instance using the specified properties. + * Creates a new DbPermission instance using the specified properties. * @param [properties] Properties to set - * @returns PingResponse instance + * @returns DbPermission instance */ - public static create(properties?: tabletmanagerdata.IPingResponse): tabletmanagerdata.PingResponse; + public static create(properties?: tabletmanagerdata.IDbPermission): tabletmanagerdata.DbPermission; /** - * 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 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.IPingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IDbPermission, 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 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.IPingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IDbPermission, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PingResponse 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 PingResponse + * @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.PingResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.DbPermission; /** - * Decodes a PingResponse 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 PingResponse + * @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.PingResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.DbPermission; /** - * Verifies a PingResponse 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 PingResponse 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 PingResponse + * @returns DbPermission */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PingResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.DbPermission; /** - * 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 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.PingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.DbPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PingResponse to JSON. + * Converts this DbPermission to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SleepRequest. */ - interface ISleepRequest { + /** Properties of a Permissions. */ + interface IPermissions { - /** SleepRequest duration */ - duration?: (number|Long|null); + /** Permissions user_permissions */ + user_permissions?: (tabletmanagerdata.IUserPermission[]|null); + + /** Permissions db_permissions */ + db_permissions?: (tabletmanagerdata.IDbPermission[]|null); } - /** Represents a SleepRequest. */ - class SleepRequest implements ISleepRequest { + /** Represents a Permissions. */ + class Permissions implements IPermissions { /** - * Constructs a new SleepRequest. + * Constructs a new Permissions. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISleepRequest); + constructor(properties?: tabletmanagerdata.IPermissions); - /** SleepRequest duration. */ - public duration: (number|Long); + /** Permissions user_permissions. */ + public user_permissions: tabletmanagerdata.IUserPermission[]; + + /** Permissions db_permissions. */ + public db_permissions: tabletmanagerdata.IDbPermission[]; /** - * Creates a new SleepRequest instance using the specified properties. + * Creates a new Permissions instance using the specified properties. * @param [properties] Properties to set - * @returns SleepRequest instance + * @returns Permissions instance */ - public static create(properties?: tabletmanagerdata.ISleepRequest): tabletmanagerdata.SleepRequest; + public static create(properties?: tabletmanagerdata.IPermissions): tabletmanagerdata.Permissions; /** - * Encodes the specified SleepRequest message. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. - * @param message SleepRequest 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.ISleepRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPermissions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 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.ISleepRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPermissions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SleepRequest 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 SleepRequest + * @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.SleepRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.Permissions; /** - * Decodes a SleepRequest 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 SleepRequest + * @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.SleepRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.Permissions; /** - * Verifies a SleepRequest 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 SleepRequest 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 SleepRequest + * @returns Permissions */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SleepRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.Permissions; /** - * 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 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.SleepRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.Permissions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SleepRequest to JSON. + * Converts this Permissions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SleepResponse. */ - interface ISleepResponse { + /** Properties of a PingRequest. */ + interface IPingRequest { + + /** PingRequest payload */ + payload?: (string|null); } - /** Represents a SleepResponse. */ - class SleepResponse implements ISleepResponse { + /** Represents a PingRequest. */ + class PingRequest implements IPingRequest { /** - * Constructs a new SleepResponse. + * Constructs a new PingRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISleepResponse); + constructor(properties?: tabletmanagerdata.IPingRequest); + + /** PingRequest payload. */ + public payload: string; /** - * Creates a new SleepResponse instance using the specified properties. + * Creates a new PingRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SleepResponse instance + * @returns PingRequest instance */ - public static create(properties?: tabletmanagerdata.ISleepResponse): tabletmanagerdata.SleepResponse; + public static create(properties?: tabletmanagerdata.IPingRequest): tabletmanagerdata.PingRequest; /** - * 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 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.ISleepResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPingRequest, 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 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.ISleepResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPingRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SleepResponse 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 SleepResponse + * @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.SleepResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PingRequest; /** - * Decodes a SleepResponse 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 SleepResponse + * @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.SleepResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PingRequest; /** - * Verifies a SleepResponse 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 SleepResponse 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 SleepResponse + * @returns PingRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SleepResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PingRequest; /** - * 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 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.SleepResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SleepResponse to JSON. + * Converts this PingRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExecuteHookRequest. */ - interface IExecuteHookRequest { - - /** ExecuteHookRequest name */ - name?: (string|null); - - /** ExecuteHookRequest parameters */ - parameters?: (string[]|null); + /** Properties of a PingResponse. */ + interface IPingResponse { - /** ExecuteHookRequest extra_env */ - extra_env?: ({ [k: string]: string }|null); + /** PingResponse payload */ + payload?: (string|null); } - /** Represents an ExecuteHookRequest. */ - class ExecuteHookRequest implements IExecuteHookRequest { + /** Represents a PingResponse. */ + class PingResponse implements IPingResponse { /** - * Constructs a new ExecuteHookRequest. + * Constructs a new PingResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteHookRequest); - - /** ExecuteHookRequest name. */ - public name: string; - - /** ExecuteHookRequest parameters. */ - public parameters: string[]; + constructor(properties?: tabletmanagerdata.IPingResponse); - /** ExecuteHookRequest extra_env. */ - public extra_env: { [k: string]: string }; + /** PingResponse payload. */ + public payload: string; /** - * Creates a new ExecuteHookRequest instance using the specified properties. + * Creates a new PingResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteHookRequest instance + * @returns PingResponse instance */ - public static create(properties?: tabletmanagerdata.IExecuteHookRequest): tabletmanagerdata.ExecuteHookRequest; + public static create(properties?: tabletmanagerdata.IPingResponse): tabletmanagerdata.PingResponse; /** - * 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 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.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IPingResponse, 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 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.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IPingResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteHookRequest 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 ExecuteHookRequest + * @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.ExecuteHookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.PingResponse; /** - * Decodes an ExecuteHookRequest 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 ExecuteHookRequest + * @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.ExecuteHookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.PingResponse; /** - * Verifies an ExecuteHookRequest 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 an ExecuteHookRequest 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 ExecuteHookRequest + * @returns PingResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteHookRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.PingResponse; /** - * 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 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.ExecuteHookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.PingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteHookRequest to JSON. + * Converts this PingResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExecuteHookResponse. */ - interface IExecuteHookResponse { - - /** ExecuteHookResponse exit_status */ - exit_status?: (number|Long|null); - - /** ExecuteHookResponse stdout */ - stdout?: (string|null); + /** Properties of a SleepRequest. */ + interface ISleepRequest { - /** ExecuteHookResponse stderr */ - stderr?: (string|null); + /** SleepRequest duration */ + duration?: (number|Long|null); } - /** Represents an ExecuteHookResponse. */ - class ExecuteHookResponse implements IExecuteHookResponse { + /** Represents a SleepRequest. */ + class SleepRequest implements ISleepRequest { /** - * Constructs a new ExecuteHookResponse. + * Constructs a new SleepRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IExecuteHookResponse); - - /** ExecuteHookResponse exit_status. */ - public exit_status: (number|Long); - - /** ExecuteHookResponse stdout. */ - public stdout: string; + constructor(properties?: tabletmanagerdata.ISleepRequest); - /** ExecuteHookResponse stderr. */ - public stderr: string; + /** SleepRequest duration. */ + public duration: (number|Long); /** - * Creates a new ExecuteHookResponse instance using the specified properties. + * Creates a new SleepRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteHookResponse instance + * @returns SleepRequest instance */ - public static create(properties?: tabletmanagerdata.IExecuteHookResponse): tabletmanagerdata.ExecuteHookResponse; + public static create(properties?: tabletmanagerdata.ISleepRequest): tabletmanagerdata.SleepRequest; /** - * 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 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.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISleepRequest, 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 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.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISleepRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteHookResponse 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 ExecuteHookResponse + * @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.ExecuteHookResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SleepRequest; /** - * Decodes an ExecuteHookResponse 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 ExecuteHookResponse + * @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.ExecuteHookResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SleepRequest; /** - * Verifies an ExecuteHookResponse 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 an ExecuteHookResponse 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 ExecuteHookResponse + * @returns SleepRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteHookResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SleepRequest; /** - * 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 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.ExecuteHookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SleepRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteHookResponse to JSON. + * Converts this SleepRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** 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); + /** Properties of a SleepResponse. */ + interface ISleepResponse { } - /** Represents a GetSchemaRequest. */ - class GetSchemaRequest implements IGetSchemaRequest { + /** Represents a SleepResponse. */ + class SleepResponse implements ISleepResponse { /** - * Constructs a new GetSchemaRequest. + * Constructs a new SleepResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetSchemaRequest); - - /** GetSchemaRequest tables. */ - public tables: string[]; - - /** GetSchemaRequest include_views. */ - public include_views: boolean; - - /** GetSchemaRequest exclude_tables. */ - public exclude_tables: string[]; + constructor(properties?: tabletmanagerdata.ISleepResponse); /** - * Creates a new GetSchemaRequest instance using the specified properties. + * Creates a new SleepResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaRequest instance + * @returns SleepResponse instance */ - public static create(properties?: tabletmanagerdata.IGetSchemaRequest): tabletmanagerdata.GetSchemaRequest; + public static create(properties?: tabletmanagerdata.ISleepResponse): tabletmanagerdata.SleepResponse; /** - * 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 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.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISleepResponse, 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 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.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISleepResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaRequest 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 GetSchemaRequest + * @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.GetSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SleepResponse; /** - * Decodes a GetSchemaRequest 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 GetSchemaRequest + * @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.GetSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SleepResponse; /** - * Verifies a GetSchemaRequest 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 GetSchemaRequest 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 GetSchemaRequest + * @returns SleepResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetSchemaRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SleepResponse; /** - * 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 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.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SleepResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaRequest to JSON. + * Converts this SleepResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSchemaResponse. */ - interface IGetSchemaResponse { + /** Properties of an ExecuteHookRequest. */ + interface IExecuteHookRequest { - /** GetSchemaResponse schema_definition */ - schema_definition?: (tabletmanagerdata.ISchemaDefinition|null); + /** ExecuteHookRequest name */ + name?: (string|null); + + /** ExecuteHookRequest parameters */ + parameters?: (string[]|null); + + /** ExecuteHookRequest extra_env */ + extra_env?: ({ [k: string]: string }|null); } - /** Represents a GetSchemaResponse. */ - class GetSchemaResponse implements IGetSchemaResponse { + /** Represents an ExecuteHookRequest. */ + class ExecuteHookRequest implements IExecuteHookRequest { /** - * Constructs a new GetSchemaResponse. + * Constructs a new ExecuteHookRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetSchemaResponse); + constructor(properties?: tabletmanagerdata.IExecuteHookRequest); - /** GetSchemaResponse schema_definition. */ - public schema_definition?: (tabletmanagerdata.ISchemaDefinition|null); + /** ExecuteHookRequest name. */ + public name: string; + + /** ExecuteHookRequest parameters. */ + public parameters: string[]; + + /** ExecuteHookRequest extra_env. */ + public extra_env: { [k: string]: string }; /** - * Creates a new GetSchemaResponse instance using the specified properties. + * Creates a new ExecuteHookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaResponse instance + * @returns ExecuteHookRequest instance */ - public static create(properties?: tabletmanagerdata.IGetSchemaResponse): tabletmanagerdata.GetSchemaResponse; + public static create(properties?: tabletmanagerdata.IExecuteHookRequest): tabletmanagerdata.ExecuteHookRequest; /** - * 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 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.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteHookRequest, 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 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.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaResponse 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 GetSchemaResponse + * @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.GetSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteHookRequest; /** - * Decodes a GetSchemaResponse 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 GetSchemaResponse + * @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.GetSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteHookRequest; /** - * Verifies a GetSchemaResponse 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 GetSchemaResponse 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 GetSchemaResponse + * @returns ExecuteHookRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetSchemaResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteHookRequest; /** - * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. - * @param message GetSchemaResponse + * 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.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteHookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaResponse to JSON. + * Converts this ExecuteHookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetPermissionsRequest. */ - interface IGetPermissionsRequest { + /** 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 GetPermissionsRequest. */ - class GetPermissionsRequest implements IGetPermissionsRequest { + /** Represents an ExecuteHookResponse. */ + class ExecuteHookResponse implements IExecuteHookResponse { /** - * Constructs a new GetPermissionsRequest. + * Constructs a new ExecuteHookResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetPermissionsRequest); + 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 GetPermissionsRequest instance using the specified properties. + * Creates a new ExecuteHookResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetPermissionsRequest instance + * @returns ExecuteHookResponse instance */ - public static create(properties?: tabletmanagerdata.IGetPermissionsRequest): tabletmanagerdata.GetPermissionsRequest; + public static create(properties?: tabletmanagerdata.IExecuteHookResponse): tabletmanagerdata.ExecuteHookResponse; /** - * 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 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.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IExecuteHookResponse, 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 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.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPermissionsRequest 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 GetPermissionsRequest + * @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.GetPermissionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ExecuteHookResponse; /** - * Decodes a GetPermissionsRequest 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 GetPermissionsRequest + * @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.GetPermissionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ExecuteHookResponse; /** - * Verifies a GetPermissionsRequest 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 GetPermissionsRequest 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 GetPermissionsRequest + * @returns ExecuteHookResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetPermissionsRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ExecuteHookResponse; /** - * Creates a plain object from a GetPermissionsRequest message. Also converts values to other types if specified. - * @param message GetPermissionsRequest + * 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.GetPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ExecuteHookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPermissionsRequest to JSON. + * Converts this ExecuteHookResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetPermissionsResponse. */ - interface IGetPermissionsResponse { + /** Properties of a GetSchemaRequest. */ + interface IGetSchemaRequest { - /** GetPermissionsResponse permissions */ - permissions?: (tabletmanagerdata.IPermissions|null); + /** GetSchemaRequest tables */ + tables?: (string[]|null); + + /** GetSchemaRequest include_views */ + include_views?: (boolean|null); + + /** GetSchemaRequest exclude_tables */ + exclude_tables?: (string[]|null); } - /** Represents a GetPermissionsResponse. */ - class GetPermissionsResponse implements IGetPermissionsResponse { + /** Represents a GetSchemaRequest. */ + class GetSchemaRequest implements IGetSchemaRequest { /** - * Constructs a new GetPermissionsResponse. + * Constructs a new GetSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IGetPermissionsResponse); + constructor(properties?: tabletmanagerdata.IGetSchemaRequest); - /** GetPermissionsResponse permissions. */ - public permissions?: (tabletmanagerdata.IPermissions|null); + /** GetSchemaRequest tables. */ + public tables: string[]; + + /** GetSchemaRequest include_views. */ + public include_views: boolean; + + /** GetSchemaRequest exclude_tables. */ + public exclude_tables: string[]; /** - * Creates a new GetPermissionsResponse instance using the specified properties. + * Creates a new GetSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetPermissionsResponse instance + * @returns GetSchemaRequest instance */ - public static create(properties?: tabletmanagerdata.IGetPermissionsResponse): tabletmanagerdata.GetPermissionsResponse; + public static create(properties?: tabletmanagerdata.IGetSchemaRequest): tabletmanagerdata.GetSchemaRequest; /** - * 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 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.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetSchemaRequest, 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 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.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPermissionsResponse 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 GetPermissionsResponse + * @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.GetPermissionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetSchemaRequest; /** - * Decodes a GetPermissionsResponse 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 GetPermissionsResponse + * @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.GetPermissionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetSchemaRequest; /** - * Verifies a GetPermissionsResponse 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 GetPermissionsResponse 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 GetPermissionsResponse + * @returns GetSchemaRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetPermissionsResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetSchemaRequest; /** - * 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 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.GetPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPermissionsResponse to JSON. + * Converts this GetSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetReadOnlyRequest. */ - interface ISetReadOnlyRequest { + /** Properties of a GetSchemaResponse. */ + interface IGetSchemaResponse { + + /** GetSchemaResponse schema_definition */ + schema_definition?: (tabletmanagerdata.ISchemaDefinition|null); } - /** Represents a SetReadOnlyRequest. */ - class SetReadOnlyRequest implements ISetReadOnlyRequest { + /** Represents a GetSchemaResponse. */ + class GetSchemaResponse implements IGetSchemaResponse { /** - * Constructs a new SetReadOnlyRequest. + * Constructs a new GetSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISetReadOnlyRequest); + constructor(properties?: tabletmanagerdata.IGetSchemaResponse); + + /** GetSchemaResponse schema_definition. */ + public schema_definition?: (tabletmanagerdata.ISchemaDefinition|null); /** - * Creates a new SetReadOnlyRequest instance using the specified properties. + * Creates a new GetSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SetReadOnlyRequest instance + * @returns GetSchemaResponse instance */ - public static create(properties?: tabletmanagerdata.ISetReadOnlyRequest): tabletmanagerdata.SetReadOnlyRequest; + public static create(properties?: tabletmanagerdata.IGetSchemaResponse): tabletmanagerdata.GetSchemaResponse; /** - * 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 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.ISetReadOnlyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetSchemaResponse, 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 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.ISetReadOnlyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetReadOnlyRequest 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 SetReadOnlyRequest + * @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.SetReadOnlyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetSchemaResponse; /** - * Decodes a SetReadOnlyRequest 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 SetReadOnlyRequest + * @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.SetReadOnlyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetSchemaResponse; /** - * Verifies a SetReadOnlyRequest 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 SetReadOnlyRequest 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 SetReadOnlyRequest + * @returns GetSchemaResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadOnlyRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetSchemaResponse; /** - * Creates a plain object from a SetReadOnlyRequest message. Also converts values to other types if specified. - * @param message SetReadOnlyRequest + * 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.SetReadOnlyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetReadOnlyRequest to JSON. + * Converts this GetSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetReadOnlyResponse. */ - interface ISetReadOnlyResponse { - } + /** Properties of a GetPermissionsRequest. */ + interface IGetPermissionsRequest { + } - /** Represents a SetReadOnlyResponse. */ - class SetReadOnlyResponse implements ISetReadOnlyResponse { + /** Represents a GetPermissionsRequest. */ + class GetPermissionsRequest implements IGetPermissionsRequest { /** - * Constructs a new SetReadOnlyResponse. + * Constructs a new GetPermissionsRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISetReadOnlyResponse); + constructor(properties?: tabletmanagerdata.IGetPermissionsRequest); /** - * Creates a new SetReadOnlyResponse instance using the specified properties. + * Creates a new GetPermissionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetReadOnlyResponse instance + * @returns GetPermissionsRequest instance */ - public static create(properties?: tabletmanagerdata.ISetReadOnlyResponse): tabletmanagerdata.SetReadOnlyResponse; + public static create(properties?: tabletmanagerdata.IGetPermissionsRequest): tabletmanagerdata.GetPermissionsRequest; /** - * 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 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.ISetReadOnlyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetPermissionsRequest, 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 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.ISetReadOnlyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetReadOnlyResponse 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 SetReadOnlyResponse + * @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.SetReadOnlyResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetPermissionsRequest; /** - * Decodes a SetReadOnlyResponse 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 SetReadOnlyResponse + * @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.SetReadOnlyResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetPermissionsRequest; /** - * Verifies a SetReadOnlyResponse 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 SetReadOnlyResponse 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 SetReadOnlyResponse + * @returns GetPermissionsRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadOnlyResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetPermissionsRequest; /** - * Creates a plain object from a SetReadOnlyResponse message. Also converts values to other types if specified. - * @param message SetReadOnlyResponse + * 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.SetReadOnlyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetReadOnlyResponse to JSON. + * Converts this GetPermissionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetReadWriteRequest. */ - interface ISetReadWriteRequest { + /** Properties of a GetPermissionsResponse. */ + interface IGetPermissionsResponse { + + /** GetPermissionsResponse permissions */ + permissions?: (tabletmanagerdata.IPermissions|null); } - /** Represents a SetReadWriteRequest. */ - class SetReadWriteRequest implements ISetReadWriteRequest { + /** Represents a GetPermissionsResponse. */ + class GetPermissionsResponse implements IGetPermissionsResponse { /** - * Constructs a new SetReadWriteRequest. + * Constructs a new GetPermissionsResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISetReadWriteRequest); + constructor(properties?: tabletmanagerdata.IGetPermissionsResponse); + + /** GetPermissionsResponse permissions. */ + public permissions?: (tabletmanagerdata.IPermissions|null); /** - * Creates a new SetReadWriteRequest instance using the specified properties. + * Creates a new GetPermissionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SetReadWriteRequest instance + * @returns GetPermissionsResponse instance */ - public static create(properties?: tabletmanagerdata.ISetReadWriteRequest): tabletmanagerdata.SetReadWriteRequest; + public static create(properties?: tabletmanagerdata.IGetPermissionsResponse): tabletmanagerdata.GetPermissionsResponse; /** - * 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 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.ISetReadWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IGetPermissionsResponse, 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 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.ISetReadWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetReadWriteRequest 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 SetReadWriteRequest + * @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.SetReadWriteRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.GetPermissionsResponse; /** - * Decodes a SetReadWriteRequest 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 SetReadWriteRequest + * @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.SetReadWriteRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.GetPermissionsResponse; /** - * Verifies a SetReadWriteRequest 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 SetReadWriteRequest 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 SetReadWriteRequest + * @returns GetPermissionsResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadWriteRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.GetPermissionsResponse; /** - * 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 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.SetReadWriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.GetPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetReadWriteRequest to JSON. + * Converts this GetPermissionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetReadWriteResponse. */ - interface ISetReadWriteResponse { + /** Properties of a SetReadOnlyRequest. */ + interface ISetReadOnlyRequest { } - /** Represents a SetReadWriteResponse. */ - class SetReadWriteResponse implements ISetReadWriteResponse { + /** Represents a SetReadOnlyRequest. */ + class SetReadOnlyRequest implements ISetReadOnlyRequest { /** - * Constructs a new SetReadWriteResponse. + * Constructs a new SetReadOnlyRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.ISetReadWriteResponse); + constructor(properties?: tabletmanagerdata.ISetReadOnlyRequest); /** - * Creates a new SetReadWriteResponse instance using the specified properties. + * Creates a new SetReadOnlyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetReadWriteResponse instance + * @returns SetReadOnlyRequest instance */ - public static create(properties?: tabletmanagerdata.ISetReadWriteResponse): tabletmanagerdata.SetReadWriteResponse; + public static create(properties?: tabletmanagerdata.ISetReadOnlyRequest): tabletmanagerdata.SetReadOnlyRequest; /** - * 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 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.ISetReadWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISetReadOnlyRequest, 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 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.ISetReadWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISetReadOnlyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetReadWriteResponse 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 SetReadWriteResponse + * @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.SetReadWriteResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SetReadOnlyRequest; /** - * Decodes a SetReadWriteResponse 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 SetReadWriteResponse + * @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.SetReadWriteResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SetReadOnlyRequest; /** - * Verifies a SetReadWriteResponse 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 SetReadWriteResponse 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 SetReadWriteResponse + * @returns SetReadOnlyRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadWriteResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadOnlyRequest; /** - * 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 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.SetReadWriteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SetReadOnlyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetReadWriteResponse to JSON. + * Converts this SetReadOnlyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ChangeTypeRequest. */ - interface IChangeTypeRequest { - - /** ChangeTypeRequest tablet_type */ - tablet_type?: (topodata.TabletType|null); + /** Properties of a SetReadOnlyResponse. */ + interface ISetReadOnlyResponse { } - /** Represents a ChangeTypeRequest. */ - class ChangeTypeRequest implements IChangeTypeRequest { + /** Represents a SetReadOnlyResponse. */ + class SetReadOnlyResponse implements ISetReadOnlyResponse { /** - * Constructs a new ChangeTypeRequest. + * Constructs a new SetReadOnlyResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IChangeTypeRequest); - - /** ChangeTypeRequest tablet_type. */ - public tablet_type: topodata.TabletType; + constructor(properties?: tabletmanagerdata.ISetReadOnlyResponse); /** - * Creates a new ChangeTypeRequest instance using the specified properties. + * Creates a new SetReadOnlyResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTypeRequest instance + * @returns SetReadOnlyResponse instance */ - public static create(properties?: tabletmanagerdata.IChangeTypeRequest): tabletmanagerdata.ChangeTypeRequest; + public static create(properties?: tabletmanagerdata.ISetReadOnlyResponse): tabletmanagerdata.SetReadOnlyResponse; /** - * 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 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.IChangeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISetReadOnlyResponse, 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 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.IChangeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISetReadOnlyResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTypeRequest 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 ChangeTypeRequest + * @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.ChangeTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SetReadOnlyResponse; /** - * Decodes a ChangeTypeRequest 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 ChangeTypeRequest + * @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.ChangeTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SetReadOnlyResponse; /** - * Verifies a ChangeTypeRequest 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 ChangeTypeRequest 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 ChangeTypeRequest + * @returns SetReadOnlyResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTypeRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadOnlyResponse; /** - * 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 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.ChangeTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SetReadOnlyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTypeRequest to JSON. + * Converts this SetReadOnlyResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ChangeTypeResponse. */ - interface IChangeTypeResponse { + /** Properties of a SetReadWriteRequest. */ + interface ISetReadWriteRequest { } - /** Represents a ChangeTypeResponse. */ - class ChangeTypeResponse implements IChangeTypeResponse { + /** Represents a SetReadWriteRequest. */ + class SetReadWriteRequest implements ISetReadWriteRequest { /** - * Constructs a new ChangeTypeResponse. + * Constructs a new SetReadWriteRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IChangeTypeResponse); + constructor(properties?: tabletmanagerdata.ISetReadWriteRequest); /** - * Creates a new ChangeTypeResponse instance using the specified properties. + * Creates a new SetReadWriteRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTypeResponse instance + * @returns SetReadWriteRequest instance */ - public static create(properties?: tabletmanagerdata.IChangeTypeResponse): tabletmanagerdata.ChangeTypeResponse; + public static create(properties?: tabletmanagerdata.ISetReadWriteRequest): tabletmanagerdata.SetReadWriteRequest; /** - * 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 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.IChangeTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISetReadWriteRequest, 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 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.IChangeTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISetReadWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTypeResponse 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 ChangeTypeResponse + * @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.ChangeTypeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SetReadWriteRequest; /** - * Decodes a ChangeTypeResponse 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 ChangeTypeResponse + * @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.ChangeTypeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SetReadWriteRequest; /** - * Verifies a ChangeTypeResponse 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 ChangeTypeResponse 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 ChangeTypeResponse + * @returns SetReadWriteRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTypeResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadWriteRequest; /** - * 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 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.ChangeTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SetReadWriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTypeResponse to JSON. + * Converts this SetReadWriteRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RefreshStateRequest. */ - interface IRefreshStateRequest { + /** Properties of a SetReadWriteResponse. */ + interface ISetReadWriteResponse { } - /** Represents a RefreshStateRequest. */ - class RefreshStateRequest implements IRefreshStateRequest { + /** Represents a SetReadWriteResponse. */ + class SetReadWriteResponse implements ISetReadWriteResponse { /** - * Constructs a new RefreshStateRequest. + * Constructs a new SetReadWriteResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IRefreshStateRequest); + constructor(properties?: tabletmanagerdata.ISetReadWriteResponse); /** - * Creates a new RefreshStateRequest instance using the specified properties. + * Creates a new SetReadWriteResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RefreshStateRequest instance + * @returns SetReadWriteResponse instance */ - public static create(properties?: tabletmanagerdata.IRefreshStateRequest): tabletmanagerdata.RefreshStateRequest; + public static create(properties?: tabletmanagerdata.ISetReadWriteResponse): tabletmanagerdata.SetReadWriteResponse; /** - * 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 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.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.ISetReadWriteResponse, 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 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.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.ISetReadWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RefreshStateRequest 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 RefreshStateRequest + * @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.RefreshStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.SetReadWriteResponse; /** - * Decodes a RefreshStateRequest 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 RefreshStateRequest + * @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.RefreshStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.SetReadWriteResponse; /** - * Verifies a RefreshStateRequest 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 RefreshStateRequest 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 RefreshStateRequest + * @returns SetReadWriteResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RefreshStateRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.SetReadWriteResponse; /** - * 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 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.RefreshStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.SetReadWriteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RefreshStateRequest to JSON. + * Converts this SetReadWriteResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RefreshStateResponse. */ - interface IRefreshStateResponse { + /** Properties of a ChangeTypeRequest. */ + interface IChangeTypeRequest { + + /** ChangeTypeRequest tablet_type */ + tablet_type?: (topodata.TabletType|null); } - /** Represents a RefreshStateResponse. */ - class RefreshStateResponse implements IRefreshStateResponse { + /** Represents a ChangeTypeRequest. */ + class ChangeTypeRequest implements IChangeTypeRequest { /** - * Constructs a new RefreshStateResponse. + * Constructs a new ChangeTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IRefreshStateResponse); + constructor(properties?: tabletmanagerdata.IChangeTypeRequest); + + /** ChangeTypeRequest tablet_type. */ + public tablet_type: topodata.TabletType; /** - * Creates a new RefreshStateResponse instance using the specified properties. + * Creates a new ChangeTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RefreshStateResponse instance + * @returns ChangeTypeRequest instance */ - public static create(properties?: tabletmanagerdata.IRefreshStateResponse): tabletmanagerdata.RefreshStateResponse; + public static create(properties?: tabletmanagerdata.IChangeTypeRequest): tabletmanagerdata.ChangeTypeRequest; /** - * 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 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.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IChangeTypeRequest, 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 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.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IChangeTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RefreshStateResponse 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 RefreshStateResponse + * @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.RefreshStateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTypeRequest; /** - * Decodes a RefreshStateResponse 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 RefreshStateResponse + * @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.RefreshStateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTypeRequest; /** - * Verifies a RefreshStateResponse 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 RefreshStateResponse 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 RefreshStateResponse + * @returns ChangeTypeRequest */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RefreshStateResponse; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTypeRequest; /** - * 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 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.RefreshStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ChangeTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RefreshStateResponse to JSON. + * Converts this ChangeTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunHealthCheckRequest. */ - interface IRunHealthCheckRequest { + /** Properties of a ChangeTypeResponse. */ + interface IChangeTypeResponse { } - /** Represents a RunHealthCheckRequest. */ - class RunHealthCheckRequest implements IRunHealthCheckRequest { + /** Represents a ChangeTypeResponse. */ + class ChangeTypeResponse implements IChangeTypeResponse { /** - * Constructs a new RunHealthCheckRequest. + * Constructs a new ChangeTypeResponse. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IRunHealthCheckRequest); + constructor(properties?: tabletmanagerdata.IChangeTypeResponse); /** - * Creates a new RunHealthCheckRequest instance using the specified properties. + * Creates a new ChangeTypeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RunHealthCheckRequest instance + * @returns ChangeTypeResponse instance */ - public static create(properties?: tabletmanagerdata.IRunHealthCheckRequest): tabletmanagerdata.RunHealthCheckRequest; + public static create(properties?: tabletmanagerdata.IChangeTypeResponse): tabletmanagerdata.ChangeTypeResponse; /** - * 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 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.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IChangeTypeResponse, 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 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.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IChangeTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunHealthCheckRequest 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 RunHealthCheckRequest + * @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.RunHealthCheckRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTypeResponse; /** - * Decodes a RunHealthCheckRequest 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 RunHealthCheckRequest + * @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.RunHealthCheckRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTypeResponse; /** - * Verifies a RunHealthCheckRequest 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 RunHealthCheckRequest 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 RunHealthCheckRequest + * @returns ChangeTypeResponse */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RunHealthCheckRequest; + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTypeResponse; /** - * 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 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.RunHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tabletmanagerdata.ChangeTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunHealthCheckRequest to JSON. + * Converts this ChangeTypeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunHealthCheckResponse. */ - interface IRunHealthCheckResponse { + /** Properties of a RefreshStateRequest. */ + interface IRefreshStateRequest { } - /** Represents a RunHealthCheckResponse. */ - class RunHealthCheckResponse implements IRunHealthCheckResponse { + /** Represents a RefreshStateRequest. */ + class RefreshStateRequest implements IRefreshStateRequest { /** - * Constructs a new RunHealthCheckResponse. + * Constructs a new RefreshStateRequest. * @param [properties] Properties to set */ - constructor(properties?: tabletmanagerdata.IRunHealthCheckResponse); + constructor(properties?: tabletmanagerdata.IRefreshStateRequest); /** - * Creates a new RunHealthCheckResponse instance using the specified properties. + * Creates a new RefreshStateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RunHealthCheckResponse instance + * @returns RefreshStateRequest instance */ - public static create(properties?: tabletmanagerdata.IRunHealthCheckResponse): tabletmanagerdata.RunHealthCheckResponse; + public static create(properties?: tabletmanagerdata.IRefreshStateRequest): tabletmanagerdata.RefreshStateRequest; /** - * 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 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.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tabletmanagerdata.IRefreshStateRequest, 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 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.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tabletmanagerdata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunHealthCheckResponse 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 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.RefreshStateRequest; + + /** + * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RefreshStateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.RefreshStateRequest; + + /** + * Verifies a RefreshStateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RefreshStateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RefreshStateRequest + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RefreshStateRequest; + + /** + * Creates a plain object from a RefreshStateRequest message. Also converts values to other types if specified. + * @param message RefreshStateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.RefreshStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RefreshStateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RefreshStateResponse. */ + interface IRefreshStateResponse { + } + + /** Represents a RefreshStateResponse. */ + class RefreshStateResponse implements IRefreshStateResponse { + + /** + * Constructs a new RefreshStateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IRefreshStateResponse); + + /** + * Creates a new RefreshStateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RefreshStateResponse instance + */ + public static create(properties?: tabletmanagerdata.IRefreshStateResponse): tabletmanagerdata.RefreshStateResponse; + + /** + * 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.IRefreshStateResponse, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RefreshStateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RefreshStateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.RefreshStateResponse; + + /** + * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RefreshStateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.RefreshStateResponse; + + /** + * Verifies a RefreshStateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RefreshStateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RefreshStateResponse + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RefreshStateResponse; + + /** + * Creates a plain object from a RefreshStateResponse message. Also converts values to other types if specified. + * @param message RefreshStateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.RefreshStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RefreshStateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RunHealthCheckRequest. */ + interface IRunHealthCheckRequest { + } + + /** Represents a RunHealthCheckRequest. */ + class RunHealthCheckRequest implements IRunHealthCheckRequest { + + /** + * Constructs a new RunHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IRunHealthCheckRequest); + + /** + * Creates a new RunHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RunHealthCheckRequest instance + */ + public static create(properties?: tabletmanagerdata.IRunHealthCheckRequest): tabletmanagerdata.RunHealthCheckRequest; + + /** + * 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.IRunHealthCheckRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RunHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RunHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.RunHealthCheckRequest; + + /** + * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RunHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.RunHealthCheckRequest; + + /** + * Verifies a RunHealthCheckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RunHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RunHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.RunHealthCheckRequest; + + /** + * Creates a plain object from a RunHealthCheckRequest message. Also converts values to other types if specified. + * @param message RunHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.RunHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RunHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RunHealthCheckResponse. */ + interface IRunHealthCheckResponse { + } + + /** Represents a RunHealthCheckResponse. */ + class RunHealthCheckResponse implements IRunHealthCheckResponse { + + /** + * Constructs a new RunHealthCheckResponse. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IRunHealthCheckResponse); + + /** + * Creates a new RunHealthCheckResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RunHealthCheckResponse instance + */ + public static create(properties?: tabletmanagerdata.IRunHealthCheckResponse): tabletmanagerdata.RunHealthCheckResponse; + + /** + * 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.IRunHealthCheckResponse, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RunHealthCheckResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns RunHealthCheckResponse @@ -20378,11342 +20798,11342 @@ export namespace logutil { } } -/** Namespace vtctldata. */ -export namespace vtctldata { - - /** Properties of an ExecuteVtctlCommandRequest. */ - interface IExecuteVtctlCommandRequest { +/** Namespace vschema. */ +export namespace vschema { - /** ExecuteVtctlCommandRequest args */ - args?: (string[]|null); + /** Properties of a RoutingRules. */ + interface IRoutingRules { - /** ExecuteVtctlCommandRequest action_timeout */ - action_timeout?: (number|Long|null); + /** RoutingRules rules */ + rules?: (vschema.IRoutingRule[]|null); } - /** Represents an ExecuteVtctlCommandRequest. */ - class ExecuteVtctlCommandRequest implements IExecuteVtctlCommandRequest { + /** Represents a RoutingRules. */ + class RoutingRules implements IRoutingRules { /** - * Constructs a new ExecuteVtctlCommandRequest. + * Constructs a new RoutingRules. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IExecuteVtctlCommandRequest); - - /** ExecuteVtctlCommandRequest args. */ - public args: string[]; + constructor(properties?: vschema.IRoutingRules); - /** ExecuteVtctlCommandRequest action_timeout. */ - public action_timeout: (number|Long); + /** RoutingRules rules. */ + public rules: vschema.IRoutingRule[]; /** - * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * Creates a new RoutingRules instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteVtctlCommandRequest instance + * @returns RoutingRules instance */ - public static create(properties?: vtctldata.IExecuteVtctlCommandRequest): vtctldata.ExecuteVtctlCommandRequest; + public static create(properties?: vschema.IRoutingRules): vschema.RoutingRules; /** - * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. - * @param message ExecuteVtctlCommandRequest message or plain object to encode + * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. + * @param message RoutingRules message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vschema.IRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. - * @param message ExecuteVtctlCommandRequest message or plain object to encode + * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. + * @param message RoutingRules message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vschema.IRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * Decodes a RoutingRules message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteVtctlCommandRequest + * @returns RoutingRules * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteVtctlCommandRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.RoutingRules; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a RoutingRules message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteVtctlCommandRequest + * @returns RoutingRules * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteVtctlCommandRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.RoutingRules; /** - * Verifies an ExecuteVtctlCommandRequest message. + * Verifies a RoutingRules message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExecuteVtctlCommandRequest 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. * @param object Plain object - * @returns ExecuteVtctlCommandRequest + * @returns RoutingRules */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandRequest; + public static fromObject(object: { [k: string]: any }): vschema.RoutingRules; /** - * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. - * @param message ExecuteVtctlCommandRequest + * Creates a plain object from a RoutingRules message. Also converts values to other types if specified. + * @param message RoutingRules * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ExecuteVtctlCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vschema.RoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteVtctlCommandRequest to JSON. + * Converts this RoutingRules to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExecuteVtctlCommandResponse. */ - interface IExecuteVtctlCommandResponse { + /** Properties of a RoutingRule. */ + interface IRoutingRule { - /** ExecuteVtctlCommandResponse event */ - event?: (logutil.IEvent|null); + /** RoutingRule from_table */ + from_table?: (string|null); + + /** RoutingRule to_tables */ + to_tables?: (string[]|null); } - /** Represents an ExecuteVtctlCommandResponse. */ - class ExecuteVtctlCommandResponse implements IExecuteVtctlCommandResponse { + /** Represents a RoutingRule. */ + class RoutingRule implements IRoutingRule { /** - * Constructs a new ExecuteVtctlCommandResponse. + * Constructs a new RoutingRule. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IExecuteVtctlCommandResponse); + constructor(properties?: vschema.IRoutingRule); - /** ExecuteVtctlCommandResponse event. */ - public event?: (logutil.IEvent|null); + /** RoutingRule from_table. */ + public from_table: string; + + /** RoutingRule to_tables. */ + public to_tables: string[]; /** - * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * Creates a new RoutingRule instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteVtctlCommandResponse instance + * @returns RoutingRule instance */ - public static create(properties?: vtctldata.IExecuteVtctlCommandResponse): vtctldata.ExecuteVtctlCommandResponse; + public static create(properties?: vschema.IRoutingRule): vschema.RoutingRule; /** - * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. - * @param message ExecuteVtctlCommandResponse message or plain object to encode + * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * @param message RoutingRule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vschema.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. - * @param message ExecuteVtctlCommandResponse message or plain object to encode + * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * @param message RoutingRule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vschema.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * Decodes a RoutingRule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteVtctlCommandResponse + * @returns RoutingRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteVtctlCommandResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.RoutingRule; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a RoutingRule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteVtctlCommandResponse + * @returns RoutingRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteVtctlCommandResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.RoutingRule; /** - * Verifies an ExecuteVtctlCommandResponse message. + * Verifies a RoutingRule message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExecuteVtctlCommandResponse 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. * @param object Plain object - * @returns ExecuteVtctlCommandResponse + * @returns RoutingRule */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandResponse; + public static fromObject(object: { [k: string]: any }): vschema.RoutingRule; /** - * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. - * @param message ExecuteVtctlCommandResponse + * Creates a plain object from a RoutingRule message. Also converts values to other types if specified. + * @param message RoutingRule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ExecuteVtctlCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vschema.RoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteVtctlCommandResponse to JSON. + * Converts this RoutingRule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TableMaterializeSettings. */ - interface ITableMaterializeSettings { + /** Properties of a Keyspace. */ + interface IKeyspace { - /** TableMaterializeSettings target_table */ - target_table?: (string|null); + /** Keyspace sharded */ + sharded?: (boolean|null); - /** TableMaterializeSettings source_expression */ - source_expression?: (string|null); + /** Keyspace vindexes */ + vindexes?: ({ [k: string]: vschema.IVindex }|null); - /** TableMaterializeSettings create_ddl */ - create_ddl?: (string|null); + /** Keyspace tables */ + tables?: ({ [k: string]: vschema.ITable }|null); + + /** Keyspace require_explicit_routing */ + require_explicit_routing?: (boolean|null); } - /** Represents a TableMaterializeSettings. */ - class TableMaterializeSettings implements ITableMaterializeSettings { + /** Represents a Keyspace. */ + class Keyspace implements IKeyspace { /** - * Constructs a new TableMaterializeSettings. + * Constructs a new Keyspace. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ITableMaterializeSettings); + constructor(properties?: vschema.IKeyspace); - /** TableMaterializeSettings target_table. */ - public target_table: string; + /** Keyspace sharded. */ + public sharded: boolean; - /** TableMaterializeSettings source_expression. */ - public source_expression: string; + /** Keyspace vindexes. */ + public vindexes: { [k: string]: vschema.IVindex }; - /** TableMaterializeSettings create_ddl. */ - public create_ddl: string; + /** Keyspace tables. */ + public tables: { [k: string]: vschema.ITable }; + + /** Keyspace require_explicit_routing. */ + public require_explicit_routing: boolean; /** - * Creates a new TableMaterializeSettings instance using the specified properties. + * Creates a new Keyspace instance using the specified properties. * @param [properties] Properties to set - * @returns TableMaterializeSettings instance + * @returns Keyspace instance */ - public static create(properties?: vtctldata.ITableMaterializeSettings): vtctldata.TableMaterializeSettings; + public static create(properties?: vschema.IKeyspace): vschema.Keyspace; /** - * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. - * @param message TableMaterializeSettings message or plain object to encode + * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vschema.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. - * @param message TableMaterializeSettings message or plain object to encode + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vschema.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TableMaterializeSettings 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 TableMaterializeSettings + * @returns Keyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TableMaterializeSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Keyspace; /** - * Decodes a TableMaterializeSettings 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 TableMaterializeSettings + * @returns Keyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TableMaterializeSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Keyspace; /** - * Verifies a TableMaterializeSettings 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 TableMaterializeSettings 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 TableMaterializeSettings + * @returns Keyspace */ - public static fromObject(object: { [k: string]: any }): vtctldata.TableMaterializeSettings; + public static fromObject(object: { [k: string]: any }): vschema.Keyspace; /** - * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. - * @param message TableMaterializeSettings + * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * @param message Keyspace * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.TableMaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vschema.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TableMaterializeSettings to JSON. + * Converts this Keyspace to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MaterializeSettings. */ - interface IMaterializeSettings { + /** Properties of a Vindex. */ + interface IVindex { - /** MaterializeSettings workflow */ - workflow?: (string|null); + /** Vindex type */ + type?: (string|null); - /** MaterializeSettings source_keyspace */ - source_keyspace?: (string|null); + /** Vindex params */ + params?: ({ [k: string]: string }|null); - /** MaterializeSettings target_keyspace */ - target_keyspace?: (string|null); + /** Vindex owner */ + owner?: (string|null); + } - /** MaterializeSettings stop_after_copy */ - stop_after_copy?: (boolean|null); - - /** MaterializeSettings table_settings */ - table_settings?: (vtctldata.ITableMaterializeSettings[]|null); - - /** MaterializeSettings cell */ - cell?: (string|null); - - /** MaterializeSettings tablet_types */ - tablet_types?: (string|null); - - /** MaterializeSettings external_cluster */ - external_cluster?: (string|null); - } - - /** Represents a MaterializeSettings. */ - class MaterializeSettings implements IMaterializeSettings { + /** Represents a Vindex. */ + class Vindex implements IVindex { /** - * Constructs a new MaterializeSettings. + * Constructs a new Vindex. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IMaterializeSettings); - - /** MaterializeSettings workflow. */ - public workflow: string; - - /** MaterializeSettings source_keyspace. */ - public source_keyspace: string; - - /** MaterializeSettings target_keyspace. */ - public target_keyspace: string; - - /** MaterializeSettings stop_after_copy. */ - public stop_after_copy: boolean; - - /** MaterializeSettings table_settings. */ - public table_settings: vtctldata.ITableMaterializeSettings[]; + constructor(properties?: vschema.IVindex); - /** MaterializeSettings cell. */ - public cell: string; + /** Vindex type. */ + public type: string; - /** MaterializeSettings tablet_types. */ - public tablet_types: string; + /** Vindex params. */ + public params: { [k: string]: string }; - /** MaterializeSettings external_cluster. */ - public external_cluster: string; + /** Vindex owner. */ + public owner: string; /** - * Creates a new MaterializeSettings instance using the specified properties. + * Creates a new Vindex instance using the specified properties. * @param [properties] Properties to set - * @returns MaterializeSettings instance + * @returns Vindex instance */ - public static create(properties?: vtctldata.IMaterializeSettings): vtctldata.MaterializeSettings; + public static create(properties?: vschema.IVindex): vschema.Vindex; /** - * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. - * @param message MaterializeSettings message or plain object to encode + * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * @param message Vindex message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vschema.IVindex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. - * @param message MaterializeSettings message or plain object to encode + * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * @param message Vindex message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vschema.IVindex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MaterializeSettings message from the specified reader or buffer. + * Decodes a Vindex message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MaterializeSettings + * @returns Vindex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Vindex; /** - * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. + * Decodes a Vindex message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MaterializeSettings + * @returns Vindex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Vindex; /** - * Verifies a MaterializeSettings message. + * Verifies a Vindex message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MaterializeSettings 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. * @param object Plain object - * @returns MaterializeSettings + * @returns Vindex */ - public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeSettings; + public static fromObject(object: { [k: string]: any }): vschema.Vindex; /** - * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. - * @param message MaterializeSettings + * Creates a plain object from a Vindex message. Also converts values to other types if specified. + * @param message Vindex * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.MaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vschema.Vindex, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MaterializeSettings to JSON. + * Converts this Vindex to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Keyspace. */ - interface IKeyspace { + /** Properties of a Table. */ + interface ITable { - /** Keyspace name */ - name?: (string|null); + /** Table type */ + type?: (string|null); - /** Keyspace keyspace */ - keyspace?: (topodata.IKeyspace|null); + /** Table column_vindexes */ + column_vindexes?: (vschema.IColumnVindex[]|null); + + /** Table auto_increment */ + auto_increment?: (vschema.IAutoIncrement|null); + + /** Table columns */ + columns?: (vschema.IColumn[]|null); + + /** Table pinned */ + pinned?: (string|null); + + /** Table column_list_authoritative */ + column_list_authoritative?: (boolean|null); } - /** Represents a Keyspace. */ - class Keyspace implements IKeyspace { + /** Represents a Table. */ + class Table implements ITable { /** - * Constructs a new Keyspace. + * Constructs a new Table. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IKeyspace); + constructor(properties?: vschema.ITable); - /** Keyspace name. */ - public name: string; + /** Table type. */ + public type: string; - /** Keyspace keyspace. */ - public keyspace?: (topodata.IKeyspace|null); + /** Table column_vindexes. */ + public column_vindexes: vschema.IColumnVindex[]; + + /** Table auto_increment. */ + public auto_increment?: (vschema.IAutoIncrement|null); + + /** Table columns. */ + public columns: vschema.IColumn[]; + + /** Table pinned. */ + public pinned: string; + + /** Table column_list_authoritative. */ + public column_list_authoritative: boolean; /** - * Creates a new Keyspace instance using the specified properties. + * Creates a new Table instance using the specified properties. * @param [properties] Properties to set - * @returns Keyspace instance + * @returns Table instance */ - public static create(properties?: vtctldata.IKeyspace): vtctldata.Keyspace; + public static create(properties?: vschema.ITable): vschema.Table; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode + * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. + * @param message Table message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vschema.ITable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode + * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. + * @param message Table message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vschema.ITable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a Table message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Keyspace + * @returns Table * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Keyspace; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Table; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * Decodes a Table message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Keyspace + * @returns Table * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Keyspace; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Table; /** - * Verifies a Keyspace message. + * Verifies a Table message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Keyspace 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. * @param object Plain object - * @returns Keyspace + * @returns Table */ - public static fromObject(object: { [k: string]: any }): vtctldata.Keyspace; + public static fromObject(object: { [k: string]: any }): vschema.Table; /** - * 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 Table message. Also converts values to other types if specified. + * @param message Table * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vschema.Table, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Keyspace to JSON. + * Converts this Table to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Shard. */ - interface IShard { + /** Properties of a ColumnVindex. */ + interface IColumnVindex { - /** Shard keyspace */ - keyspace?: (string|null); + /** ColumnVindex column */ + column?: (string|null); - /** Shard name */ + /** ColumnVindex name */ name?: (string|null); - /** Shard shard */ - shard?: (topodata.IShard|null); + /** ColumnVindex columns */ + columns?: (string[]|null); } - /** Represents a Shard. */ - class Shard implements IShard { + /** Represents a ColumnVindex. */ + class ColumnVindex implements IColumnVindex { /** - * Constructs a new Shard. + * Constructs a new ColumnVindex. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IShard); + constructor(properties?: vschema.IColumnVindex); - /** Shard keyspace. */ - public keyspace: string; + /** ColumnVindex column. */ + public column: string; - /** Shard name. */ + /** ColumnVindex name. */ public name: string; - /** Shard shard. */ - public shard?: (topodata.IShard|null); + /** ColumnVindex columns. */ + public columns: string[]; /** - * Creates a new Shard instance using the specified properties. + * Creates a new ColumnVindex instance using the specified properties. * @param [properties] Properties to set - * @returns Shard instance + * @returns ColumnVindex instance */ - public static create(properties?: vtctldata.IShard): vtctldata.Shard; + public static create(properties?: vschema.IColumnVindex): vschema.ColumnVindex; /** - * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. - * @param message Shard message or plain object to encode + * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * @param message ColumnVindex message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vschema.IColumnVindex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. - * @param message Shard message or plain object to encode + * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * @param message ColumnVindex message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vschema.IColumnVindex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Shard message from the specified reader or buffer. + * Decodes a ColumnVindex message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Shard + * @returns ColumnVindex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Shard; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ColumnVindex; /** - * Decodes a Shard message from the specified reader or buffer, length delimited. + * Decodes a ColumnVindex message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Shard + * @returns ColumnVindex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Shard; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ColumnVindex; /** - * Verifies a Shard message. + * Verifies a ColumnVindex message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Shard 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. * @param object Plain object - * @returns Shard + * @returns ColumnVindex */ - public static fromObject(object: { [k: string]: any }): vtctldata.Shard; + public static fromObject(object: { [k: string]: any }): vschema.ColumnVindex; /** - * 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 ColumnVindex message. Also converts values to other types if specified. + * @param message ColumnVindex * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.Shard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vschema.ColumnVindex, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Shard to JSON. + * Converts this ColumnVindex to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Workflow. */ - interface IWorkflow { - - /** Workflow name */ - name?: (string|null); - - /** Workflow source */ - source?: (vtctldata.Workflow.IReplicationLocation|null); - - /** Workflow target */ - target?: (vtctldata.Workflow.IReplicationLocation|null); + /** Properties of an AutoIncrement. */ + interface IAutoIncrement { - /** Workflow max_v_replication_lag */ - max_v_replication_lag?: (number|Long|null); + /** AutoIncrement column */ + column?: (string|null); - /** Workflow shard_streams */ - shard_streams?: ({ [k: string]: vtctldata.Workflow.IShardStream }|null); + /** AutoIncrement sequence */ + sequence?: (string|null); } - /** Represents a Workflow. */ - class Workflow implements IWorkflow { + /** Represents an AutoIncrement. */ + class AutoIncrement implements IAutoIncrement { /** - * Constructs a new Workflow. + * Constructs a new AutoIncrement. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IWorkflow); - - /** Workflow name. */ - public name: string; - - /** Workflow source. */ - public source?: (vtctldata.Workflow.IReplicationLocation|null); - - /** Workflow target. */ - public target?: (vtctldata.Workflow.IReplicationLocation|null); + constructor(properties?: vschema.IAutoIncrement); - /** Workflow max_v_replication_lag. */ - public max_v_replication_lag: (number|Long); + /** AutoIncrement column. */ + public column: string; - /** Workflow shard_streams. */ - public shard_streams: { [k: string]: vtctldata.Workflow.IShardStream }; + /** AutoIncrement sequence. */ + public sequence: string; /** - * Creates a new Workflow instance using the specified properties. + * Creates a new AutoIncrement instance using the specified properties. * @param [properties] Properties to set - * @returns Workflow instance + * @returns AutoIncrement instance */ - public static create(properties?: vtctldata.IWorkflow): vtctldata.Workflow; + public static create(properties?: vschema.IAutoIncrement): vschema.AutoIncrement; /** - * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. - * @param message Workflow message or plain object to encode + * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * @param message AutoIncrement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vschema.IAutoIncrement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. - * @param message Workflow message or plain object to encode + * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * @param message AutoIncrement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vschema.IAutoIncrement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Workflow message from the specified reader or buffer. + * Decodes an AutoIncrement message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Workflow + * @returns AutoIncrement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.AutoIncrement; /** - * Decodes a Workflow message from the specified reader or buffer, length delimited. + * Decodes an AutoIncrement message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Workflow + * @returns AutoIncrement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.AutoIncrement; /** - * Verifies a Workflow message. + * Verifies an AutoIncrement message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Workflow 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. * @param object Plain object - * @returns Workflow + * @returns AutoIncrement */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow; + public static fromObject(object: { [k: string]: any }): vschema.AutoIncrement; /** - * Creates a plain object from a Workflow message. Also converts values to other types if specified. - * @param message Workflow + * Creates a plain object from an AutoIncrement message. Also converts values to other types if specified. + * @param message AutoIncrement * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.Workflow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vschema.AutoIncrement, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Workflow to JSON. + * Converts this AutoIncrement to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Workflow { - - /** Properties of a ReplicationLocation. */ - interface IReplicationLocation { + /** Properties of a Column. */ + interface IColumn { - /** ReplicationLocation keyspace */ - keyspace?: (string|null); + /** Column name */ + name?: (string|null); - /** ReplicationLocation shards */ - shards?: (string[]|null); - } + /** Column type */ + type?: (query.Type|null); + } - /** Represents a ReplicationLocation. */ - class ReplicationLocation implements IReplicationLocation { + /** Represents a Column. */ + class Column implements IColumn { - /** - * Constructs a new ReplicationLocation. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.IReplicationLocation); + /** + * Constructs a new Column. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IColumn); - /** ReplicationLocation keyspace. */ - public keyspace: string; + /** Column name. */ + public name: string; - /** ReplicationLocation shards. */ - public shards: string[]; + /** Column type. */ + public type: query.Type; - /** - * Creates a new ReplicationLocation instance using the specified properties. - * @param [properties] Properties to set - * @returns ReplicationLocation instance - */ - public static create(properties?: vtctldata.Workflow.IReplicationLocation): vtctldata.Workflow.ReplicationLocation; + /** + * Creates a new Column instance using the specified properties. + * @param [properties] Properties to set + * @returns Column instance + */ + public static create(properties?: vschema.IColumn): vschema.Column; - /** - * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. - * @param message ReplicationLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. + * @param message Column message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. - * @param message ReplicationLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. + * @param message Column message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ReplicationLocation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReplicationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ReplicationLocation; + /** + * Decodes a Column message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Column; - /** - * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReplicationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ReplicationLocation; + /** + * Decodes a Column message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Column; - /** - * Verifies a ReplicationLocation message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a Column message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReplicationLocation - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ReplicationLocation; + /** + * Creates a Column message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Column + */ + public static fromObject(object: { [k: string]: any }): vschema.Column; - /** - * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. - * @param message ReplicationLocation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.ReplicationLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a Column message. Also converts values to other types if specified. + * @param message Column + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.Column, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ReplicationLocation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ShardStream. */ - interface IShardStream { - - /** ShardStream streams */ - streams?: (vtctldata.Workflow.IStream[]|null); + /** + * Converts this Column to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ShardStream tablet_controls */ - tablet_controls?: (topodata.Shard.ITabletControl[]|null); + /** Properties of a SrvVSchema. */ + interface ISrvVSchema { - /** ShardStream is_primary_serving */ - is_primary_serving?: (boolean|null); - } + /** SrvVSchema keyspaces */ + keyspaces?: ({ [k: string]: vschema.IKeyspace }|null); - /** Represents a ShardStream. */ - class ShardStream implements IShardStream { + /** SrvVSchema routing_rules */ + routing_rules?: (vschema.IRoutingRules|null); + } - /** - * Constructs a new ShardStream. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.IShardStream); + /** Represents a SrvVSchema. */ + class SrvVSchema implements ISrvVSchema { - /** ShardStream streams. */ - public streams: vtctldata.Workflow.IStream[]; + /** + * Constructs a new SrvVSchema. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.ISrvVSchema); - /** ShardStream tablet_controls. */ - public tablet_controls: topodata.Shard.ITabletControl[]; + /** SrvVSchema keyspaces. */ + public keyspaces: { [k: string]: vschema.IKeyspace }; - /** ShardStream is_primary_serving. */ - public is_primary_serving: boolean; + /** SrvVSchema routing_rules. */ + public routing_rules?: (vschema.IRoutingRules|null); - /** - * Creates a new ShardStream instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardStream instance - */ - public static create(properties?: vtctldata.Workflow.IShardStream): vtctldata.Workflow.ShardStream; + /** + * Creates a new SrvVSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns SrvVSchema instance + */ + public static create(properties?: vschema.ISrvVSchema): vschema.SrvVSchema; - /** - * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. - * @param message ShardStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * @param message SrvVSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.ISrvVSchema, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. - * @param message ShardStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * @param message SrvVSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.ISrvVSchema, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ShardStream message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ShardStream; + /** + * Decodes a SrvVSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SrvVSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.SrvVSchema; - /** - * Decodes a ShardStream message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ShardStream; + /** + * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SrvVSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.SrvVSchema; - /** - * Verifies a ShardStream message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a SrvVSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardStream - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ShardStream; + /** + * Creates a SrvVSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SrvVSchema + */ + public static fromObject(object: { [k: string]: any }): vschema.SrvVSchema; - /** - * Creates a plain object from a ShardStream message. Also converts values to other types if specified. - * @param message ShardStream - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.ShardStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. + * @param message SrvVSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.SrvVSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ShardStream to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this SrvVSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } +} - /** Properties of a Stream. */ - interface IStream { +/** Namespace vtctldata. */ +export namespace vtctldata { - /** Stream id */ - id?: (number|Long|null); + /** Properties of an ExecuteVtctlCommandRequest. */ + interface IExecuteVtctlCommandRequest { - /** Stream shard */ - shard?: (string|null); + /** ExecuteVtctlCommandRequest args */ + args?: (string[]|null); - /** Stream tablet */ - tablet?: (topodata.ITabletAlias|null); + /** ExecuteVtctlCommandRequest action_timeout */ + action_timeout?: (number|Long|null); + } - /** Stream binlog_source */ - binlog_source?: (binlogdata.IBinlogSource|null); + /** Represents an ExecuteVtctlCommandRequest. */ + class ExecuteVtctlCommandRequest implements IExecuteVtctlCommandRequest { - /** Stream position */ - position?: (string|null); + /** + * Constructs a new ExecuteVtctlCommandRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteVtctlCommandRequest); - /** Stream stop_position */ - stop_position?: (string|null); + /** ExecuteVtctlCommandRequest args. */ + public args: string[]; - /** Stream state */ - state?: (string|null); + /** ExecuteVtctlCommandRequest action_timeout. */ + public action_timeout: (number|Long); - /** Stream db_name */ - db_name?: (string|null); + /** + * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteVtctlCommandRequest instance + */ + public static create(properties?: vtctldata.IExecuteVtctlCommandRequest): vtctldata.ExecuteVtctlCommandRequest; - /** Stream transaction_timestamp */ - transaction_timestamp?: (vttime.ITime|null); + /** + * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @param message ExecuteVtctlCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Stream time_updated */ - time_updated?: (vttime.ITime|null); + /** + * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @param message ExecuteVtctlCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Stream message */ - message?: (string|null); + /** + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteVtctlCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteVtctlCommandRequest; - /** Stream copy_states */ - copy_states?: (vtctldata.Workflow.Stream.ICopyState[]|null); - } + /** + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteVtctlCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteVtctlCommandRequest; - /** Represents a Stream. */ - class Stream implements IStream { + /** + * Verifies an ExecuteVtctlCommandRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new Stream. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.IStream); + /** + * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteVtctlCommandRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandRequest; - /** Stream id. */ - public id: (number|Long); + /** + * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. + * @param message ExecuteVtctlCommandRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteVtctlCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Stream shard. */ - public shard: string; + /** + * Converts this ExecuteVtctlCommandRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Stream tablet. */ - public tablet?: (topodata.ITabletAlias|null); + /** Properties of an ExecuteVtctlCommandResponse. */ + interface IExecuteVtctlCommandResponse { - /** Stream binlog_source. */ - public binlog_source?: (binlogdata.IBinlogSource|null); + /** ExecuteVtctlCommandResponse event */ + event?: (logutil.IEvent|null); + } - /** Stream position. */ - public position: string; + /** Represents an ExecuteVtctlCommandResponse. */ + class ExecuteVtctlCommandResponse implements IExecuteVtctlCommandResponse { - /** Stream stop_position. */ - public stop_position: string; + /** + * Constructs a new ExecuteVtctlCommandResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteVtctlCommandResponse); - /** Stream state. */ - public state: string; + /** ExecuteVtctlCommandResponse event. */ + public event?: (logutil.IEvent|null); - /** Stream db_name. */ - public db_name: string; + /** + * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteVtctlCommandResponse instance + */ + public static create(properties?: vtctldata.IExecuteVtctlCommandResponse): vtctldata.ExecuteVtctlCommandResponse; - /** Stream transaction_timestamp. */ - public transaction_timestamp?: (vttime.ITime|null); + /** + * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @param message ExecuteVtctlCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Stream time_updated. */ - public time_updated?: (vttime.ITime|null); + /** + * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @param message ExecuteVtctlCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Stream message. */ - public message: string; + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteVtctlCommandResponse; - /** Stream copy_states. */ - public copy_states: vtctldata.Workflow.Stream.ICopyState[]; + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteVtctlCommandResponse; - /** - * Creates a new Stream instance using the specified properties. - * @param [properties] Properties to set - * @returns Stream instance - */ - public static create(properties?: vtctldata.Workflow.IStream): vtctldata.Workflow.Stream; + /** + * Verifies an ExecuteVtctlCommandResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. - * @param message Stream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteVtctlCommandResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandResponse; - /** - * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. - * @param message Stream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. + * @param message ExecuteVtctlCommandResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteVtctlCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a Stream message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Stream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream; + /** + * Converts this ExecuteVtctlCommandResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes a Stream message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Stream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream; + /** Properties of a TableMaterializeSettings. */ + interface ITableMaterializeSettings { - /** - * 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); + /** TableMaterializeSettings target_table */ + target_table?: (string|null); - /** - * Creates a Stream message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Stream - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream; + /** TableMaterializeSettings source_expression */ + source_expression?: (string|null); - /** - * Creates a plain object from a Stream message. Also converts values to other types if specified. - * @param message Stream - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.Stream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** TableMaterializeSettings create_ddl */ + create_ddl?: (string|null); + } - /** - * Converts this Stream to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Represents a TableMaterializeSettings. */ + class TableMaterializeSettings implements ITableMaterializeSettings { - namespace Stream { + /** + * Constructs a new TableMaterializeSettings. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ITableMaterializeSettings); - /** Properties of a CopyState. */ - interface ICopyState { + /** TableMaterializeSettings target_table. */ + public target_table: string; - /** CopyState table */ - table?: (string|null); + /** TableMaterializeSettings source_expression. */ + public source_expression: string; - /** CopyState last_pk */ - last_pk?: (string|null); - } + /** TableMaterializeSettings create_ddl. */ + public create_ddl: string; - /** Represents a CopyState. */ - class CopyState implements ICopyState { + /** + * Creates a new TableMaterializeSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns TableMaterializeSettings instance + */ + public static create(properties?: vtctldata.ITableMaterializeSettings): vtctldata.TableMaterializeSettings; - /** - * Constructs a new CopyState. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.Stream.ICopyState); + /** + * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * @param message TableMaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; - /** CopyState table. */ - public table: string; + /** + * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * @param message TableMaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; - /** CopyState last_pk. */ - public last_pk: string; + /** + * Decodes a TableMaterializeSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TableMaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TableMaterializeSettings; - /** - * Creates a new CopyState instance using the specified properties. - * @param [properties] Properties to set - * @returns CopyState instance - */ - public static create(properties?: vtctldata.Workflow.Stream.ICopyState): vtctldata.Workflow.Stream.CopyState; + /** + * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TableMaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TableMaterializeSettings; - /** - * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. - * @param message CopyState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a TableMaterializeSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. - * @param message CopyState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TableMaterializeSettings + */ + public static fromObject(object: { [k: string]: any }): vtctldata.TableMaterializeSettings; - /** - * Decodes a CopyState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.CopyState; + /** + * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. + * @param message TableMaterializeSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.TableMaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a CopyState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.CopyState; + /** + * Converts this TableMaterializeSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Verifies a CopyState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Properties of a MaterializeSettings. */ + interface IMaterializeSettings { - /** - * Creates a CopyState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CopyState - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.CopyState; + /** MaterializeSettings workflow */ + workflow?: (string|null); - /** - * Creates a plain object from a CopyState message. Also converts values to other types if specified. - * @param message CopyState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.Stream.CopyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** MaterializeSettings source_keyspace */ + source_keyspace?: (string|null); - /** - * Converts this CopyState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - } + /** MaterializeSettings target_keyspace */ + target_keyspace?: (string|null); - /** Properties of a ChangeTabletTypeRequest. */ - interface IChangeTabletTypeRequest { + /** MaterializeSettings stop_after_copy */ + stop_after_copy?: (boolean|null); - /** ChangeTabletTypeRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** MaterializeSettings table_settings */ + table_settings?: (vtctldata.ITableMaterializeSettings[]|null); - /** ChangeTabletTypeRequest db_type */ - db_type?: (topodata.TabletType|null); + /** MaterializeSettings cell */ + cell?: (string|null); - /** ChangeTabletTypeRequest dry_run */ - dry_run?: (boolean|null); + /** MaterializeSettings tablet_types */ + tablet_types?: (string|null); + + /** MaterializeSettings external_cluster */ + external_cluster?: (string|null); } - /** Represents a ChangeTabletTypeRequest. */ - class ChangeTabletTypeRequest implements IChangeTabletTypeRequest { + /** Represents a MaterializeSettings. */ + class MaterializeSettings implements IMaterializeSettings { /** - * Constructs a new ChangeTabletTypeRequest. + * Constructs a new MaterializeSettings. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IChangeTabletTypeRequest); + constructor(properties?: vtctldata.IMaterializeSettings); - /** ChangeTabletTypeRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** MaterializeSettings workflow. */ + public workflow: string; - /** ChangeTabletTypeRequest db_type. */ - public db_type: topodata.TabletType; + /** MaterializeSettings source_keyspace. */ + public source_keyspace: string; - /** ChangeTabletTypeRequest dry_run. */ - public dry_run: boolean; + /** MaterializeSettings target_keyspace. */ + public target_keyspace: string; + + /** MaterializeSettings stop_after_copy. */ + public stop_after_copy: boolean; + + /** MaterializeSettings table_settings. */ + public table_settings: vtctldata.ITableMaterializeSettings[]; + + /** MaterializeSettings cell. */ + public cell: string; + + /** MaterializeSettings tablet_types. */ + public tablet_types: string; + + /** MaterializeSettings external_cluster. */ + public external_cluster: string; /** - * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * Creates a new MaterializeSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTabletTypeRequest instance + * @returns MaterializeSettings instance */ - public static create(properties?: vtctldata.IChangeTabletTypeRequest): vtctldata.ChangeTabletTypeRequest; + public static create(properties?: vtctldata.IMaterializeSettings): vtctldata.MaterializeSettings; /** - * 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 MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * @param message MaterializeSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IMaterializeSettings, 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 MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * @param message MaterializeSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * Decodes a MaterializeSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChangeTabletTypeRequest + * @returns MaterializeSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeSettings; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeTabletTypeRequest + * @returns MaterializeSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeSettings; /** - * Verifies a ChangeTabletTypeRequest message. + * Verifies a MaterializeSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ChangeTabletTypeRequest 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. * @param object Plain object - * @returns ChangeTabletTypeRequest + * @returns MaterializeSettings */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeSettings; /** - * 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 MaterializeSettings message. Also converts values to other types if specified. + * @param message MaterializeSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ChangeTabletTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.MaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTabletTypeRequest to JSON. + * Converts this MaterializeSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ChangeTabletTypeResponse. */ - interface IChangeTabletTypeResponse { - - /** ChangeTabletTypeResponse before_tablet */ - before_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse after_tablet */ - after_tablet?: (topodata.ITablet|null); + /** Properties of a Keyspace. */ + interface IKeyspace { - /** ChangeTabletTypeResponse was_dry_run */ - was_dry_run?: (boolean|null); + /** Keyspace name */ + name?: (string|null); + + /** Keyspace keyspace */ + keyspace?: (topodata.IKeyspace|null); } - /** Represents a ChangeTabletTypeResponse. */ - class ChangeTabletTypeResponse implements IChangeTabletTypeResponse { + /** Represents a Keyspace. */ + class Keyspace implements IKeyspace { /** - * Constructs a new ChangeTabletTypeResponse. + * Constructs a new Keyspace. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IChangeTabletTypeResponse); - - /** ChangeTabletTypeResponse before_tablet. */ - public before_tablet?: (topodata.ITablet|null); + constructor(properties?: vtctldata.IKeyspace); - /** ChangeTabletTypeResponse after_tablet. */ - public after_tablet?: (topodata.ITablet|null); + /** Keyspace name. */ + public name: string; - /** ChangeTabletTypeResponse was_dry_run. */ - public was_dry_run: boolean; + /** Keyspace keyspace. */ + public keyspace?: (topodata.IKeyspace|null); /** - * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * Creates a new Keyspace instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTabletTypeResponse instance + * @returns Keyspace instance */ - public static create(properties?: vtctldata.IChangeTabletTypeResponse): vtctldata.ChangeTabletTypeResponse; + public static create(properties?: vtctldata.IKeyspace): vtctldata.Keyspace; /** - * 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 Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IKeyspace, 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 Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTabletTypeResponse 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 ChangeTabletTypeResponse + * @returns Keyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Keyspace; /** - * Decodes a ChangeTabletTypeResponse 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 ChangeTabletTypeResponse + * @returns Keyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Keyspace; /** - * Verifies a ChangeTabletTypeResponse 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 ChangeTabletTypeResponse 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 ChangeTabletTypeResponse + * @returns Keyspace */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.Keyspace; /** - * 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 Keyspace message. Also converts values to other types if specified. + * @param message Keyspace * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ChangeTabletTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTabletTypeResponse to JSON. + * Converts this Keyspace to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** 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 sharding_column_name */ - sharding_column_name?: (string|null); - - /** CreateKeyspaceRequest sharding_column_type */ - sharding_column_type?: (topodata.KeyspaceIdType|null); - - /** CreateKeyspaceRequest served_froms */ - served_froms?: (topodata.Keyspace.IServedFrom[]|null); + /** Properties of a Shard. */ + interface IShard { - /** CreateKeyspaceRequest type */ - type?: (topodata.KeyspaceType|null); + /** Shard keyspace */ + keyspace?: (string|null); - /** CreateKeyspaceRequest base_keyspace */ - base_keyspace?: (string|null); + /** Shard name */ + name?: (string|null); - /** CreateKeyspaceRequest snapshot_time */ - snapshot_time?: (vttime.ITime|null); + /** Shard shard */ + shard?: (topodata.IShard|null); } - /** Represents a CreateKeyspaceRequest. */ - class CreateKeyspaceRequest implements ICreateKeyspaceRequest { + /** Represents a Shard. */ + class Shard implements IShard { /** - * Constructs a new CreateKeyspaceRequest. + * Constructs a new Shard. * @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 sharding_column_name. */ - public sharding_column_name: string; - - /** CreateKeyspaceRequest sharding_column_type. */ - public sharding_column_type: topodata.KeyspaceIdType; - - /** CreateKeyspaceRequest served_froms. */ - public served_froms: topodata.Keyspace.IServedFrom[]; + constructor(properties?: vtctldata.IShard); - /** CreateKeyspaceRequest type. */ - public type: topodata.KeyspaceType; + /** Shard keyspace. */ + public keyspace: string; - /** CreateKeyspaceRequest base_keyspace. */ - public base_keyspace: string; + /** Shard name. */ + public name: string; - /** CreateKeyspaceRequest snapshot_time. */ - public snapshot_time?: (vttime.ITime|null); + /** Shard shard. */ + public shard?: (topodata.IShard|null); /** - * Creates a new CreateKeyspaceRequest instance using the specified properties. + * Creates a new Shard instance using the specified properties. * @param [properties] Properties to set - * @returns CreateKeyspaceRequest instance + * @returns Shard instance */ - public static create(properties?: vtctldata.ICreateKeyspaceRequest): vtctldata.CreateKeyspaceRequest; + public static create(properties?: vtctldata.IShard): vtctldata.Shard; /** - * 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 Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * @param message Shard message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IShard, 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 Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * @param message Shard message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateKeyspaceRequest 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 CreateKeyspaceRequest + * @returns Shard * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Shard; /** - * Decodes a CreateKeyspaceRequest 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 CreateKeyspaceRequest + * @returns Shard * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Shard; /** - * Verifies a CreateKeyspaceRequest 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 CreateKeyspaceRequest 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 CreateKeyspaceRequest + * @returns Shard */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.Shard; /** - * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. - * @param message CreateKeyspaceRequest + * Creates a plain object from a Shard message. Also converts values to other types if specified. + * @param message Shard * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.CreateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.Shard, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateKeyspaceRequest to JSON. + * Converts this Shard to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateKeyspaceResponse. */ - interface ICreateKeyspaceResponse { + /** Properties of a Workflow. */ + interface IWorkflow { - /** CreateKeyspaceResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); + /** Workflow name */ + name?: (string|null); + + /** Workflow source */ + source?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow target */ + target?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow max_v_replication_lag */ + max_v_replication_lag?: (number|Long|null); + + /** Workflow shard_streams */ + shard_streams?: ({ [k: string]: vtctldata.Workflow.IShardStream }|null); } - /** Represents a CreateKeyspaceResponse. */ - class CreateKeyspaceResponse implements ICreateKeyspaceResponse { + /** Represents a Workflow. */ + class Workflow implements IWorkflow { /** - * Constructs a new CreateKeyspaceResponse. + * Constructs a new Workflow. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICreateKeyspaceResponse); + constructor(properties?: vtctldata.IWorkflow); - /** CreateKeyspaceResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); + /** Workflow name. */ + public name: string; + + /** Workflow source. */ + public source?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow target. */ + public target?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow max_v_replication_lag. */ + public max_v_replication_lag: (number|Long); + + /** Workflow shard_streams. */ + public shard_streams: { [k: string]: vtctldata.Workflow.IShardStream }; /** - * Creates a new CreateKeyspaceResponse instance using the specified properties. + * Creates a new Workflow instance using the specified properties. * @param [properties] Properties to set - * @returns CreateKeyspaceResponse instance + * @returns Workflow instance */ - public static create(properties?: vtctldata.ICreateKeyspaceResponse): vtctldata.CreateKeyspaceResponse; + public static create(properties?: vtctldata.IWorkflow): vtctldata.Workflow; /** - * 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 Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * @param message Workflow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IWorkflow, 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 Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * @param message Workflow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * Decodes a Workflow message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateKeyspaceResponse + * @returns Workflow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a Workflow message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateKeyspaceResponse + * @returns Workflow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow; /** - * Verifies a CreateKeyspaceResponse message. + * Verifies a Workflow message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Workflow message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateKeyspaceResponse + * @returns Workflow */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow; /** - * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. - * @param message CreateKeyspaceResponse + * Creates a plain object from a Workflow message. Also converts values to other types if specified. + * @param message Workflow * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.CreateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.Workflow, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateKeyspaceResponse to JSON. + * Converts this Workflow to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateShardRequest. */ - interface ICreateShardRequest { + namespace Workflow { - /** CreateShardRequest keyspace */ - keyspace?: (string|null); + /** Properties of a ReplicationLocation. */ + interface IReplicationLocation { - /** CreateShardRequest shard_name */ - shard_name?: (string|null); + /** ReplicationLocation keyspace */ + keyspace?: (string|null); - /** CreateShardRequest force */ - force?: (boolean|null); + /** ReplicationLocation shards */ + shards?: (string[]|null); + } - /** CreateShardRequest include_parent */ - include_parent?: (boolean|null); - } + /** Represents a ReplicationLocation. */ + class ReplicationLocation implements IReplicationLocation { - /** Represents a CreateShardRequest. */ - class CreateShardRequest implements ICreateShardRequest { + /** + * Constructs a new ReplicationLocation. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.IReplicationLocation); - /** - * Constructs a new CreateShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICreateShardRequest); + /** ReplicationLocation keyspace. */ + public keyspace: string; - /** CreateShardRequest keyspace. */ - public keyspace: string; + /** ReplicationLocation shards. */ + public shards: string[]; - /** CreateShardRequest shard_name. */ - public shard_name: string; + /** + * Creates a new ReplicationLocation instance using the specified properties. + * @param [properties] Properties to set + * @returns ReplicationLocation instance + */ + public static create(properties?: vtctldata.Workflow.IReplicationLocation): vtctldata.Workflow.ReplicationLocation; - /** CreateShardRequest force. */ - public force: boolean; + /** + * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @param message ReplicationLocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** CreateShardRequest include_parent. */ - public include_parent: boolean; + /** + * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @param message ReplicationLocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new CreateShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateShardRequest instance - */ - public static create(properties?: vtctldata.ICreateShardRequest): vtctldata.CreateShardRequest; + /** + * Decodes a ReplicationLocation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ReplicationLocation; - /** - * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. - * @param message CreateShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ReplicationLocation; - /** - * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. - * @param message CreateShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a ReplicationLocation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReplicationLocation + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ReplicationLocation; + + /** + * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. + * @param message ReplicationLocation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.ReplicationLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReplicationLocation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ShardStream. */ + interface IShardStream { + + /** ShardStream streams */ + streams?: (vtctldata.Workflow.IStream[]|null); + + /** ShardStream tablet_controls */ + tablet_controls?: (topodata.Shard.ITabletControl[]|null); + + /** ShardStream is_primary_serving */ + is_primary_serving?: (boolean|null); + } + + /** Represents a ShardStream. */ + class ShardStream implements IShardStream { + + /** + * Constructs a new ShardStream. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.IShardStream); + + /** ShardStream streams. */ + public streams: vtctldata.Workflow.IStream[]; + + /** ShardStream tablet_controls. */ + public tablet_controls: topodata.Shard.ITabletControl[]; + + /** ShardStream is_primary_serving. */ + public is_primary_serving: boolean; + + /** + * Creates a new ShardStream instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardStream instance + */ + public static create(properties?: vtctldata.Workflow.IShardStream): vtctldata.Workflow.ShardStream; + + /** + * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @param message ShardStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @param message ShardStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ShardStream; + + /** + * Decodes a ShardStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ShardStream; + + /** + * Verifies a ShardStream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardStream + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ShardStream; + + /** + * Creates a plain object from a ShardStream message. Also converts values to other types if specified. + * @param message ShardStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.ShardStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes a CreateShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardRequest; + /** Properties of a Stream. */ + interface IStream { - /** - * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardRequest; + /** Stream id */ + id?: (number|Long|null); - /** - * 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); + /** Stream shard */ + shard?: (string|null); - /** - * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardRequest; + /** Stream tablet */ + tablet?: (topodata.ITabletAlias|null); - /** - * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. - * @param message CreateShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CreateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Stream binlog_source */ + binlog_source?: (binlogdata.IBinlogSource|null); - /** - * Converts this CreateShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Stream position */ + position?: (string|null); - /** Properties of a CreateShardResponse. */ - interface ICreateShardResponse { + /** Stream stop_position */ + stop_position?: (string|null); - /** CreateShardResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); + /** Stream state */ + state?: (string|null); - /** CreateShardResponse shard */ - shard?: (vtctldata.IShard|null); + /** Stream db_name */ + db_name?: (string|null); - /** CreateShardResponse shard_already_exists */ - shard_already_exists?: (boolean|null); - } + /** Stream transaction_timestamp */ + transaction_timestamp?: (vttime.ITime|null); - /** Represents a CreateShardResponse. */ - class CreateShardResponse implements ICreateShardResponse { + /** Stream time_updated */ + time_updated?: (vttime.ITime|null); - /** - * Constructs a new CreateShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICreateShardResponse); + /** Stream message */ + message?: (string|null); - /** CreateShardResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); + /** Stream copy_states */ + copy_states?: (vtctldata.Workflow.Stream.ICopyState[]|null); + } - /** CreateShardResponse shard. */ - public shard?: (vtctldata.IShard|null); + /** Represents a Stream. */ + class Stream implements IStream { - /** CreateShardResponse shard_already_exists. */ - public shard_already_exists: boolean; + /** + * Constructs a new Stream. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.IStream); - /** - * Creates a new CreateShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateShardResponse instance - */ - public static create(properties?: vtctldata.ICreateShardResponse): vtctldata.CreateShardResponse; + /** Stream id. */ + public id: (number|Long); - /** - * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. - * @param message CreateShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Stream shard. */ + public shard: string; - /** - * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. - * @param message CreateShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Stream tablet. */ + public tablet?: (topodata.ITabletAlias|null); - /** - * Decodes a CreateShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardResponse; + /** Stream binlog_source. */ + public binlog_source?: (binlogdata.IBinlogSource|null); - /** - * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardResponse; + /** Stream position. */ + public position: string; - /** - * 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); + /** Stream stop_position. */ + public stop_position: string; - /** - * 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; + /** Stream state. */ + public state: string; - /** - * 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 }; + /** Stream db_name. */ + public db_name: string; - /** - * Converts this CreateShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Stream transaction_timestamp. */ + public transaction_timestamp?: (vttime.ITime|null); - /** Properties of a DeleteKeyspaceRequest. */ - interface IDeleteKeyspaceRequest { + /** Stream time_updated. */ + public time_updated?: (vttime.ITime|null); - /** DeleteKeyspaceRequest keyspace */ - keyspace?: (string|null); + /** Stream message. */ + public message: string; - /** DeleteKeyspaceRequest recursive */ - recursive?: (boolean|null); - } + /** Stream copy_states. */ + public copy_states: vtctldata.Workflow.Stream.ICopyState[]; - /** Represents a DeleteKeyspaceRequest. */ - class DeleteKeyspaceRequest implements IDeleteKeyspaceRequest { + /** + * Creates a new Stream instance using the specified properties. + * @param [properties] Properties to set + * @returns Stream instance + */ + public static create(properties?: vtctldata.Workflow.IStream): vtctldata.Workflow.Stream; - /** - * Constructs a new DeleteKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteKeyspaceRequest); + /** + * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @param message Stream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; - /** DeleteKeyspaceRequest keyspace. */ - public keyspace: string; + /** + * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @param message Stream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; - /** DeleteKeyspaceRequest recursive. */ - public recursive: boolean; + /** + * Decodes a Stream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream; - /** - * Creates a new DeleteKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IDeleteKeyspaceRequest): vtctldata.DeleteKeyspaceRequest; + /** + * Decodes a Stream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream; + + /** + * Verifies a Stream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. - * @param message DeleteKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a Stream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Stream + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream; - /** - * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. - * @param message DeleteKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a Stream message. Also converts values to other types if specified. + * @param message Stream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.Stream, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceRequest; + /** + * Converts this Stream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceRequest; + namespace Stream { - /** - * 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); + /** Properties of a CopyState. */ + interface ICopyState { - /** - * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceRequest; + /** CopyState table */ + table?: (string|null); - /** - * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. - * @param message DeleteKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CopyState last_pk */ + last_pk?: (string|null); + } - /** - * Converts this DeleteKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Represents a CopyState. */ + class CopyState implements ICopyState { - /** Properties of a DeleteKeyspaceResponse. */ - interface IDeleteKeyspaceResponse { - } + /** + * Constructs a new CopyState. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.Stream.ICopyState); - /** Represents a DeleteKeyspaceResponse. */ - class DeleteKeyspaceResponse implements IDeleteKeyspaceResponse { + /** CopyState table. */ + public table: string; - /** - * Constructs a new DeleteKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteKeyspaceResponse); + /** CopyState last_pk. */ + public last_pk: string; - /** - * Creates a new DeleteKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IDeleteKeyspaceResponse): vtctldata.DeleteKeyspaceResponse; + /** + * Creates a new CopyState instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyState instance + */ + public static create(properties?: vtctldata.Workflow.Stream.ICopyState): vtctldata.Workflow.Stream.CopyState; - /** - * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. - * @param message DeleteKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @param message CopyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. - * @param message DeleteKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @param message CopyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceResponse; + /** + * Decodes a CopyState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.CopyState; - /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceResponse; + /** + * Decodes a CopyState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.CopyState; - /** - * Verifies a 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); + /** + * Verifies a CopyState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceResponse; + /** + * Creates a CopyState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyState + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.CopyState; - /** - * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. - * @param message DeleteKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a CopyState message. Also converts values to other types if specified. + * @param message CopyState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.Stream.CopyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this DeleteKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this CopyState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } } - /** Properties of a DeleteShardsRequest. */ - interface IDeleteShardsRequest { + /** Properties of a ChangeTabletTypeRequest. */ + interface IChangeTabletTypeRequest { - /** DeleteShardsRequest shards */ - shards?: (vtctldata.IShard[]|null); + /** ChangeTabletTypeRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); - /** DeleteShardsRequest recursive */ - recursive?: (boolean|null); + /** ChangeTabletTypeRequest db_type */ + db_type?: (topodata.TabletType|null); - /** DeleteShardsRequest even_if_serving */ - even_if_serving?: (boolean|null); + /** ChangeTabletTypeRequest dry_run */ + dry_run?: (boolean|null); } - /** Represents a DeleteShardsRequest. */ - class DeleteShardsRequest implements IDeleteShardsRequest { + /** Represents a ChangeTabletTypeRequest. */ + class ChangeTabletTypeRequest implements IChangeTabletTypeRequest { /** - * Constructs a new DeleteShardsRequest. + * Constructs a new ChangeTabletTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteShardsRequest); + constructor(properties?: vtctldata.IChangeTabletTypeRequest); - /** DeleteShardsRequest shards. */ - public shards: vtctldata.IShard[]; + /** ChangeTabletTypeRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); - /** DeleteShardsRequest recursive. */ - public recursive: boolean; + /** ChangeTabletTypeRequest db_type. */ + public db_type: topodata.TabletType; - /** DeleteShardsRequest even_if_serving. */ - public even_if_serving: boolean; + /** ChangeTabletTypeRequest dry_run. */ + public dry_run: boolean; /** - * Creates a new DeleteShardsRequest instance using the specified properties. + * Creates a new ChangeTabletTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteShardsRequest instance + * @returns ChangeTabletTypeRequest instance */ - public static create(properties?: vtctldata.IDeleteShardsRequest): vtctldata.DeleteShardsRequest; + public static create(properties?: vtctldata.IChangeTabletTypeRequest): vtctldata.ChangeTabletTypeRequest; /** - * 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 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.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IChangeTabletTypeRequest, 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 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.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteShardsRequest 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 DeleteShardsRequest + * @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.DeleteShardsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeRequest; /** - * Decodes a DeleteShardsRequest 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 DeleteShardsRequest + * @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.DeleteShardsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeRequest; /** - * Verifies a DeleteShardsRequest 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 a DeleteShardsRequest 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 DeleteShardsRequest + * @returns ChangeTabletTypeRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeRequest; /** - * 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 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.DeleteShardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ChangeTabletTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteShardsRequest to JSON. + * Converts this ChangeTabletTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteShardsResponse. */ - interface IDeleteShardsResponse { + /** Properties of a ChangeTabletTypeResponse. */ + interface IChangeTabletTypeResponse { + + /** ChangeTabletTypeResponse before_tablet */ + before_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse after_tablet */ + after_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse was_dry_run */ + was_dry_run?: (boolean|null); } - /** Represents a DeleteShardsResponse. */ - class DeleteShardsResponse implements IDeleteShardsResponse { + /** Represents a ChangeTabletTypeResponse. */ + class ChangeTabletTypeResponse implements IChangeTabletTypeResponse { /** - * Constructs a new DeleteShardsResponse. + * Constructs a new ChangeTabletTypeResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteShardsResponse); + 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 DeleteShardsResponse instance using the specified properties. + * Creates a new ChangeTabletTypeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteShardsResponse instance + * @returns ChangeTabletTypeResponse instance */ - public static create(properties?: vtctldata.IDeleteShardsResponse): vtctldata.DeleteShardsResponse; + public static create(properties?: vtctldata.IChangeTabletTypeResponse): vtctldata.ChangeTabletTypeResponse; /** - * 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 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.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IChangeTabletTypeResponse, 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 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.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteShardsResponse 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 DeleteShardsResponse + * @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.DeleteShardsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeResponse; /** - * Decodes a DeleteShardsResponse 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 DeleteShardsResponse + * @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.DeleteShardsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeResponse; /** - * Verifies a DeleteShardsResponse 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 a DeleteShardsResponse 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 DeleteShardsResponse + * @returns ChangeTabletTypeResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeResponse; /** - * 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 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.DeleteShardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ChangeTabletTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteShardsResponse to JSON. + * Converts this ChangeTabletTypeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteTabletsRequest. */ - interface IDeleteTabletsRequest { + /** Properties of a CreateKeyspaceRequest. */ + interface ICreateKeyspaceRequest { - /** DeleteTabletsRequest tablet_aliases */ - tablet_aliases?: (topodata.ITabletAlias[]|null); + /** CreateKeyspaceRequest name */ + name?: (string|null); - /** DeleteTabletsRequest allow_primary */ - allow_primary?: (boolean|null); - } + /** CreateKeyspaceRequest force */ + force?: (boolean|null); - /** Represents a DeleteTabletsRequest. */ - class DeleteTabletsRequest implements IDeleteTabletsRequest { + /** CreateKeyspaceRequest allow_empty_v_schema */ + allow_empty_v_schema?: (boolean|null); - /** - * Constructs a new DeleteTabletsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteTabletsRequest); + /** CreateKeyspaceRequest sharding_column_name */ + sharding_column_name?: (string|null); - /** DeleteTabletsRequest tablet_aliases. */ - public tablet_aliases: topodata.ITabletAlias[]; + /** CreateKeyspaceRequest sharding_column_type */ + sharding_column_type?: (topodata.KeyspaceIdType|null); - /** DeleteTabletsRequest allow_primary. */ - public allow_primary: boolean; + /** CreateKeyspaceRequest served_froms */ + served_froms?: (topodata.Keyspace.IServedFrom[]|null); - /** - * Creates a new DeleteTabletsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteTabletsRequest instance - */ - public static create(properties?: vtctldata.IDeleteTabletsRequest): vtctldata.DeleteTabletsRequest; + /** CreateKeyspaceRequest type */ + type?: (topodata.KeyspaceType|null); - /** - * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. - * @param message DeleteTabletsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** CreateKeyspaceRequest base_keyspace */ + base_keyspace?: (string|null); - /** - * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. - * @param message DeleteTabletsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** CreateKeyspaceRequest snapshot_time */ + snapshot_time?: (vttime.ITime|null); + } - /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteTabletsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsRequest; + /** Represents a CreateKeyspaceRequest. */ + class CreateKeyspaceRequest implements ICreateKeyspaceRequest { /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteTabletsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Constructs a new CreateKeyspaceRequest. + * @param [properties] Properties to set */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsRequest; + constructor(properties?: vtctldata.ICreateKeyspaceRequest); - /** - * 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); + /** CreateKeyspaceRequest name. */ + public name: string; - /** - * Creates a DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteTabletsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsRequest; + /** CreateKeyspaceRequest force. */ + public force: boolean; - /** - * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. - * @param message DeleteTabletsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CreateKeyspaceRequest allow_empty_v_schema. */ + public allow_empty_v_schema: boolean; - /** - * Converts this DeleteTabletsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** CreateKeyspaceRequest sharding_column_name. */ + public sharding_column_name: string; - /** Properties of a DeleteTabletsResponse. */ - interface IDeleteTabletsResponse { - } + /** CreateKeyspaceRequest sharding_column_type. */ + public sharding_column_type: topodata.KeyspaceIdType; - /** Represents a DeleteTabletsResponse. */ - class DeleteTabletsResponse implements IDeleteTabletsResponse { + /** CreateKeyspaceRequest served_froms. */ + public served_froms: topodata.Keyspace.IServedFrom[]; + + /** CreateKeyspaceRequest type. */ + public type: topodata.KeyspaceType; + + /** CreateKeyspaceRequest base_keyspace. */ + public base_keyspace: string; - /** - * Constructs a new DeleteTabletsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteTabletsResponse); + /** CreateKeyspaceRequest snapshot_time. */ + public snapshot_time?: (vttime.ITime|null); /** - * Creates a new DeleteTabletsResponse instance using the specified properties. + * Creates a new CreateKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTabletsResponse instance + * @returns CreateKeyspaceRequest instance */ - public static create(properties?: vtctldata.IDeleteTabletsResponse): vtctldata.DeleteTabletsResponse; + public static create(properties?: vtctldata.ICreateKeyspaceRequest): vtctldata.CreateKeyspaceRequest; /** - * 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 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.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICreateKeyspaceRequest, 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 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.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTabletsResponse 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 DeleteTabletsResponse + * @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.DeleteTabletsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceRequest; /** - * Decodes a DeleteTabletsResponse 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 DeleteTabletsResponse + * @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.DeleteTabletsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceRequest; /** - * Verifies a DeleteTabletsResponse 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 a DeleteTabletsResponse 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 DeleteTabletsResponse + * @returns CreateKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceRequest; /** - * 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 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.DeleteTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CreateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTabletsResponse to JSON. + * Converts this CreateKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** 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); + /** Properties of a CreateKeyspaceResponse. */ + interface ICreateKeyspaceResponse { - /** EmergencyReparentShardRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); + /** CreateKeyspaceResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); } - /** Represents an EmergencyReparentShardRequest. */ - class EmergencyReparentShardRequest implements IEmergencyReparentShardRequest { + /** Represents a CreateKeyspaceResponse. */ + class CreateKeyspaceResponse implements ICreateKeyspaceResponse { /** - * Constructs a new EmergencyReparentShardRequest. + * Constructs a new CreateKeyspaceResponse. * @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[]; + constructor(properties?: vtctldata.ICreateKeyspaceResponse); - /** EmergencyReparentShardRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); + /** CreateKeyspaceResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); /** - * Creates a new EmergencyReparentShardRequest instance using the specified properties. + * Creates a new CreateKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns EmergencyReparentShardRequest instance + * @returns CreateKeyspaceResponse instance */ - public static create(properties?: vtctldata.IEmergencyReparentShardRequest): vtctldata.EmergencyReparentShardRequest; + public static create(properties?: vtctldata.ICreateKeyspaceResponse): vtctldata.CreateKeyspaceResponse; /** - * 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 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.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICreateKeyspaceResponse, 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 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.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EmergencyReparentShardRequest 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 EmergencyReparentShardRequest + * @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.EmergencyReparentShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceResponse; /** - * Decodes an EmergencyReparentShardRequest 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 EmergencyReparentShardRequest + * @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.EmergencyReparentShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceResponse; /** - * Verifies an EmergencyReparentShardRequest 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 EmergencyReparentShardRequest 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 EmergencyReparentShardRequest + * @returns CreateKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceResponse; /** - * 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 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.EmergencyReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CreateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EmergencyReparentShardRequest to JSON. + * Converts this CreateKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EmergencyReparentShardResponse. */ - interface IEmergencyReparentShardResponse { + /** Properties of a CreateShardRequest. */ + interface ICreateShardRequest { - /** EmergencyReparentShardResponse keyspace */ + /** CreateShardRequest keyspace */ keyspace?: (string|null); - /** EmergencyReparentShardResponse shard */ - shard?: (string|null); + /** CreateShardRequest shard_name */ + shard_name?: (string|null); - /** EmergencyReparentShardResponse promoted_primary */ - promoted_primary?: (topodata.ITabletAlias|null); + /** CreateShardRequest force */ + force?: (boolean|null); - /** EmergencyReparentShardResponse events */ - events?: (logutil.IEvent[]|null); + /** CreateShardRequest include_parent */ + include_parent?: (boolean|null); } - /** Represents an EmergencyReparentShardResponse. */ - class EmergencyReparentShardResponse implements IEmergencyReparentShardResponse { + /** Represents a CreateShardRequest. */ + class CreateShardRequest implements ICreateShardRequest { /** - * Constructs a new EmergencyReparentShardResponse. + * Constructs a new CreateShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IEmergencyReparentShardResponse); + constructor(properties?: vtctldata.ICreateShardRequest); - /** EmergencyReparentShardResponse keyspace. */ + /** CreateShardRequest keyspace. */ public keyspace: string; - /** EmergencyReparentShardResponse shard. */ - public shard: string; + /** CreateShardRequest shard_name. */ + public shard_name: string; - /** EmergencyReparentShardResponse promoted_primary. */ - public promoted_primary?: (topodata.ITabletAlias|null); + /** CreateShardRequest force. */ + public force: boolean; - /** EmergencyReparentShardResponse events. */ - public events: logutil.IEvent[]; + /** CreateShardRequest include_parent. */ + public include_parent: boolean; /** - * Creates a new EmergencyReparentShardResponse instance using the specified properties. + * Creates a new CreateShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EmergencyReparentShardResponse instance + * @returns CreateShardRequest instance */ - public static create(properties?: vtctldata.IEmergencyReparentShardResponse): vtctldata.EmergencyReparentShardResponse; + public static create(properties?: vtctldata.ICreateShardRequest): vtctldata.CreateShardRequest; /** - * 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 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.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICreateShardRequest, 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 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.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EmergencyReparentShardResponse 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 EmergencyReparentShardResponse + * @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.EmergencyReparentShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardRequest; /** - * Decodes an EmergencyReparentShardResponse 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 EmergencyReparentShardResponse + * @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.EmergencyReparentShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardRequest; /** - * Verifies an EmergencyReparentShardResponse 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 EmergencyReparentShardResponse 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 EmergencyReparentShardResponse + * @returns CreateShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardRequest; /** - * 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 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.EmergencyReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CreateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EmergencyReparentShardResponse to JSON. + * Converts this CreateShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FindAllShardsInKeyspaceRequest. */ - interface IFindAllShardsInKeyspaceRequest { + /** Properties of a CreateShardResponse. */ + interface ICreateShardResponse { - /** FindAllShardsInKeyspaceRequest keyspace */ - keyspace?: (string|null); + /** CreateShardResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); + + /** CreateShardResponse shard */ + shard?: (vtctldata.IShard|null); + + /** CreateShardResponse shard_already_exists */ + shard_already_exists?: (boolean|null); } - /** Represents a FindAllShardsInKeyspaceRequest. */ - class FindAllShardsInKeyspaceRequest implements IFindAllShardsInKeyspaceRequest { + /** Represents a CreateShardResponse. */ + class CreateShardResponse implements ICreateShardResponse { /** - * Constructs a new FindAllShardsInKeyspaceRequest. + * Constructs a new CreateShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IFindAllShardsInKeyspaceRequest); + constructor(properties?: vtctldata.ICreateShardResponse); + + /** CreateShardResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); + + /** CreateShardResponse shard. */ + public shard?: (vtctldata.IShard|null); - /** FindAllShardsInKeyspaceRequest keyspace. */ - public keyspace: string; + /** CreateShardResponse shard_already_exists. */ + public shard_already_exists: boolean; /** - * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. + * Creates a new CreateShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns FindAllShardsInKeyspaceRequest instance + * @returns CreateShardResponse instance */ - public static create(properties?: vtctldata.IFindAllShardsInKeyspaceRequest): vtctldata.FindAllShardsInKeyspaceRequest; + public static create(properties?: vtctldata.ICreateShardResponse): vtctldata.CreateShardResponse; /** - * 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 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.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICreateShardResponse, 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 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.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FindAllShardsInKeyspaceRequest 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 FindAllShardsInKeyspaceRequest + * @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.FindAllShardsInKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardResponse; /** - * Decodes a FindAllShardsInKeyspaceRequest 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 FindAllShardsInKeyspaceRequest + * @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.FindAllShardsInKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardResponse; /** - * Verifies a FindAllShardsInKeyspaceRequest 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 a FindAllShardsInKeyspaceRequest 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. * @param object Plain object - * @returns FindAllShardsInKeyspaceRequest + * @returns CreateShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardResponse; /** - * 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 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.FindAllShardsInKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CreateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FindAllShardsInKeyspaceRequest to JSON. + * Converts this CreateShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FindAllShardsInKeyspaceResponse. */ - interface IFindAllShardsInKeyspaceResponse { + /** Properties of a DeleteKeyspaceRequest. */ + interface IDeleteKeyspaceRequest { - /** FindAllShardsInKeyspaceResponse shards */ - shards?: ({ [k: string]: vtctldata.IShard }|null); + /** DeleteKeyspaceRequest keyspace */ + keyspace?: (string|null); + + /** DeleteKeyspaceRequest recursive */ + recursive?: (boolean|null); } - /** Represents a FindAllShardsInKeyspaceResponse. */ - class FindAllShardsInKeyspaceResponse implements IFindAllShardsInKeyspaceResponse { + /** Represents a DeleteKeyspaceRequest. */ + class DeleteKeyspaceRequest implements IDeleteKeyspaceRequest { /** - * Constructs a new FindAllShardsInKeyspaceResponse. + * Constructs a new DeleteKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IFindAllShardsInKeyspaceResponse); + constructor(properties?: vtctldata.IDeleteKeyspaceRequest); - /** FindAllShardsInKeyspaceResponse shards. */ - public shards: { [k: string]: vtctldata.IShard }; + /** DeleteKeyspaceRequest keyspace. */ + public keyspace: string; + + /** DeleteKeyspaceRequest recursive. */ + public recursive: boolean; /** - * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. + * Creates a new DeleteKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FindAllShardsInKeyspaceResponse instance + * @returns DeleteKeyspaceRequest instance */ - public static create(properties?: vtctldata.IFindAllShardsInKeyspaceResponse): vtctldata.FindAllShardsInKeyspaceResponse; + public static create(properties?: vtctldata.IDeleteKeyspaceRequest): vtctldata.DeleteKeyspaceRequest; /** - * 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 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.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteKeyspaceRequest, 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 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.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FindAllShardsInKeyspaceResponse 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 FindAllShardsInKeyspaceResponse + * @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.FindAllShardsInKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceRequest; /** - * Decodes a FindAllShardsInKeyspaceResponse 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 FindAllShardsInKeyspaceResponse + * @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.FindAllShardsInKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceRequest; /** - * Verifies a FindAllShardsInKeyspaceResponse 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 FindAllShardsInKeyspaceResponse 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 FindAllShardsInKeyspaceResponse + * @returns DeleteKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceRequest; /** - * 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 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.FindAllShardsInKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FindAllShardsInKeyspaceResponse to JSON. + * Converts this DeleteKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetBackupsRequest. */ - interface IGetBackupsRequest { - - /** GetBackupsRequest keyspace */ - keyspace?: (string|null); - - /** GetBackupsRequest shard */ - shard?: (string|null); + /** Properties of a DeleteKeyspaceResponse. */ + interface IDeleteKeyspaceResponse { } - /** Represents a GetBackupsRequest. */ - class GetBackupsRequest implements IGetBackupsRequest { + /** Represents a DeleteKeyspaceResponse. */ + class DeleteKeyspaceResponse implements IDeleteKeyspaceResponse { /** - * Constructs a new GetBackupsRequest. + * Constructs a new DeleteKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetBackupsRequest); - - /** GetBackupsRequest keyspace. */ - public keyspace: string; - - /** GetBackupsRequest shard. */ - public shard: string; + constructor(properties?: vtctldata.IDeleteKeyspaceResponse); /** - * Creates a new GetBackupsRequest instance using the specified properties. + * Creates a new DeleteKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetBackupsRequest instance + * @returns DeleteKeyspaceResponse instance */ - public static create(properties?: vtctldata.IGetBackupsRequest): vtctldata.GetBackupsRequest; + public static create(properties?: vtctldata.IDeleteKeyspaceResponse): vtctldata.DeleteKeyspaceResponse; /** - * 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 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.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteKeyspaceResponse, 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 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.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBackupsRequest 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 GetBackupsRequest + * @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.GetBackupsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceResponse; /** - * Decodes a GetBackupsRequest 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 GetBackupsRequest + * @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.GetBackupsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceResponse; /** - * Verifies a GetBackupsRequest 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 GetBackupsRequest 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 GetBackupsRequest + * @returns DeleteKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceResponse; /** - * 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 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.GetBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBackupsRequest to JSON. + * Converts this DeleteKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetBackupsResponse. */ - interface IGetBackupsResponse { + /** Properties of a DeleteShardsRequest. */ + interface IDeleteShardsRequest { - /** GetBackupsResponse backups */ - backups?: (mysqlctl.IBackupInfo[]|null); + /** DeleteShardsRequest shards */ + shards?: (vtctldata.IShard[]|null); + + /** DeleteShardsRequest recursive */ + recursive?: (boolean|null); + + /** DeleteShardsRequest even_if_serving */ + even_if_serving?: (boolean|null); } - /** Represents a GetBackupsResponse. */ - class GetBackupsResponse implements IGetBackupsResponse { + /** Represents a DeleteShardsRequest. */ + class DeleteShardsRequest implements IDeleteShardsRequest { /** - * Constructs a new GetBackupsResponse. + * Constructs a new DeleteShardsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetBackupsResponse); + constructor(properties?: vtctldata.IDeleteShardsRequest); - /** GetBackupsResponse backups. */ - public backups: mysqlctl.IBackupInfo[]; + /** DeleteShardsRequest shards. */ + public shards: vtctldata.IShard[]; + + /** DeleteShardsRequest recursive. */ + public recursive: boolean; + + /** DeleteShardsRequest even_if_serving. */ + public even_if_serving: boolean; /** - * Creates a new GetBackupsResponse instance using the specified properties. + * Creates a new DeleteShardsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetBackupsResponse instance + * @returns DeleteShardsRequest instance */ - public static create(properties?: vtctldata.IGetBackupsResponse): vtctldata.GetBackupsResponse; + public static create(properties?: vtctldata.IDeleteShardsRequest): vtctldata.DeleteShardsRequest; /** - * 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 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.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteShardsRequest, 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 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.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBackupsResponse 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 GetBackupsResponse + * @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.GetBackupsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsRequest; /** - * Decodes a GetBackupsResponse 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 GetBackupsResponse + * @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.GetBackupsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsRequest; /** - * Verifies a GetBackupsResponse 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 GetBackupsResponse 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 GetBackupsResponse + * @returns DeleteShardsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsRequest; /** - * 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 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.GetBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteShardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBackupsResponse to JSON. + * Converts this DeleteShardsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellInfoNamesRequest. */ - interface IGetCellInfoNamesRequest { + /** Properties of a DeleteShardsResponse. */ + interface IDeleteShardsResponse { } - /** Represents a GetCellInfoNamesRequest. */ - class GetCellInfoNamesRequest implements IGetCellInfoNamesRequest { + /** Represents a DeleteShardsResponse. */ + class DeleteShardsResponse implements IDeleteShardsResponse { /** - * Constructs a new GetCellInfoNamesRequest. + * Constructs a new DeleteShardsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoNamesRequest); + constructor(properties?: vtctldata.IDeleteShardsResponse); /** - * Creates a new GetCellInfoNamesRequest instance using the specified properties. + * Creates a new DeleteShardsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoNamesRequest instance + * @returns DeleteShardsResponse instance */ - public static create(properties?: vtctldata.IGetCellInfoNamesRequest): vtctldata.GetCellInfoNamesRequest; + public static create(properties?: vtctldata.IDeleteShardsResponse): vtctldata.DeleteShardsResponse; /** - * 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 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.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteShardsResponse, 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 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.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoNamesRequest 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 GetCellInfoNamesRequest + * @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.GetCellInfoNamesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsResponse; /** - * Decodes a GetCellInfoNamesRequest 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 GetCellInfoNamesRequest + * @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.GetCellInfoNamesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsResponse; /** - * Verifies a GetCellInfoNamesRequest 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 GetCellInfoNamesRequest 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 GetCellInfoNamesRequest + * @returns DeleteShardsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsResponse; /** - * 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 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.GetCellInfoNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteShardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoNamesRequest to JSON. + * Converts this DeleteShardsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellInfoNamesResponse. */ - interface IGetCellInfoNamesResponse { + /** Properties of a DeleteTabletsRequest. */ + interface IDeleteTabletsRequest { - /** GetCellInfoNamesResponse names */ - names?: (string[]|null); + /** DeleteTabletsRequest tablet_aliases */ + tablet_aliases?: (topodata.ITabletAlias[]|null); + + /** DeleteTabletsRequest allow_primary */ + allow_primary?: (boolean|null); } - /** Represents a GetCellInfoNamesResponse. */ - class GetCellInfoNamesResponse implements IGetCellInfoNamesResponse { + /** Represents a DeleteTabletsRequest. */ + class DeleteTabletsRequest implements IDeleteTabletsRequest { /** - * Constructs a new GetCellInfoNamesResponse. + * Constructs a new DeleteTabletsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoNamesResponse); + constructor(properties?: vtctldata.IDeleteTabletsRequest); - /** GetCellInfoNamesResponse names. */ - public names: string[]; + /** DeleteTabletsRequest tablet_aliases. */ + public tablet_aliases: topodata.ITabletAlias[]; + + /** DeleteTabletsRequest allow_primary. */ + public allow_primary: boolean; /** - * Creates a new GetCellInfoNamesResponse instance using the specified properties. + * Creates a new DeleteTabletsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoNamesResponse instance + * @returns DeleteTabletsRequest instance */ - public static create(properties?: vtctldata.IGetCellInfoNamesResponse): vtctldata.GetCellInfoNamesResponse; + public static create(properties?: vtctldata.IDeleteTabletsRequest): vtctldata.DeleteTabletsRequest; /** - * 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 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.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteTabletsRequest, 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 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.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoNamesResponse 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 GetCellInfoNamesResponse + * @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.GetCellInfoNamesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsRequest; /** - * Decodes a GetCellInfoNamesResponse 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 GetCellInfoNamesResponse + * @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.GetCellInfoNamesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsRequest; /** - * Verifies a GetCellInfoNamesResponse 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 GetCellInfoNamesResponse 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 GetCellInfoNamesResponse + * @returns DeleteTabletsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsRequest; /** - * 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 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.GetCellInfoNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoNamesResponse to JSON. + * Converts this DeleteTabletsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellInfoRequest. */ - interface IGetCellInfoRequest { - - /** GetCellInfoRequest cell */ - cell?: (string|null); + /** Properties of a DeleteTabletsResponse. */ + interface IDeleteTabletsResponse { } - /** Represents a GetCellInfoRequest. */ - class GetCellInfoRequest implements IGetCellInfoRequest { + /** Represents a DeleteTabletsResponse. */ + class DeleteTabletsResponse implements IDeleteTabletsResponse { /** - * Constructs a new GetCellInfoRequest. + * Constructs a new DeleteTabletsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoRequest); - - /** GetCellInfoRequest cell. */ - public cell: string; + constructor(properties?: vtctldata.IDeleteTabletsResponse); /** - * Creates a new GetCellInfoRequest instance using the specified properties. + * Creates a new DeleteTabletsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoRequest instance + * @returns DeleteTabletsResponse instance */ - public static create(properties?: vtctldata.IGetCellInfoRequest): vtctldata.GetCellInfoRequest; + public static create(properties?: vtctldata.IDeleteTabletsResponse): vtctldata.DeleteTabletsResponse; /** - * 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 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.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteTabletsResponse, 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 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.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoRequest 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 GetCellInfoRequest + * @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.GetCellInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsResponse; /** - * Decodes a GetCellInfoRequest 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 GetCellInfoRequest + * @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.GetCellInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsResponse; /** - * Verifies a GetCellInfoRequest 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 GetCellInfoRequest 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 GetCellInfoRequest + * @returns DeleteTabletsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsResponse; /** - * 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 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.GetCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoRequest to JSON. + * Converts this DeleteTabletsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellInfoResponse. */ - interface IGetCellInfoResponse { + /** Properties of an EmergencyReparentShardRequest. */ + interface IEmergencyReparentShardRequest { - /** GetCellInfoResponse cell_info */ - cell_info?: (topodata.ICellInfo|null); + /** 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); } - /** Represents a GetCellInfoResponse. */ - class GetCellInfoResponse implements IGetCellInfoResponse { + /** Represents an EmergencyReparentShardRequest. */ + class EmergencyReparentShardRequest implements IEmergencyReparentShardRequest { /** - * Constructs a new GetCellInfoResponse. + * Constructs a new EmergencyReparentShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoResponse); + constructor(properties?: vtctldata.IEmergencyReparentShardRequest); - /** GetCellInfoResponse cell_info. */ - public cell_info?: (topodata.ICellInfo|null); + /** 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); /** - * Creates a new GetCellInfoResponse instance using the specified properties. + * Creates a new EmergencyReparentShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoResponse instance + * @returns EmergencyReparentShardRequest instance */ - public static create(properties?: vtctldata.IGetCellInfoResponse): vtctldata.GetCellInfoResponse; + public static create(properties?: vtctldata.IEmergencyReparentShardRequest): vtctldata.EmergencyReparentShardRequest; /** - * 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 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.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IEmergencyReparentShardRequest, 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 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.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoResponse 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 GetCellInfoResponse + * @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.GetCellInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardRequest; /** - * Decodes a GetCellInfoResponse 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 GetCellInfoResponse + * @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.GetCellInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardRequest; /** - * Verifies a GetCellInfoResponse 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 GetCellInfoResponse 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 GetCellInfoResponse + * @returns EmergencyReparentShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardRequest; /** - * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. - * @param message GetCellInfoResponse + * 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.GetCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.EmergencyReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoResponse to JSON. + * Converts this EmergencyReparentShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellsAliasesRequest. */ - interface IGetCellsAliasesRequest { + /** Properties of an EmergencyReparentShardResponse. */ + interface IEmergencyReparentShardResponse { + + /** EmergencyReparentShardResponse keyspace */ + keyspace?: (string|null); + + /** EmergencyReparentShardResponse shard */ + shard?: (string|null); + + /** EmergencyReparentShardResponse promoted_primary */ + promoted_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardResponse events */ + events?: (logutil.IEvent[]|null); } - /** Represents a GetCellsAliasesRequest. */ - class GetCellsAliasesRequest implements IGetCellsAliasesRequest { + /** Represents an EmergencyReparentShardResponse. */ + class EmergencyReparentShardResponse implements IEmergencyReparentShardResponse { /** - * Constructs a new GetCellsAliasesRequest. + * Constructs a new EmergencyReparentShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellsAliasesRequest); + constructor(properties?: vtctldata.IEmergencyReparentShardResponse); + + /** EmergencyReparentShardResponse keyspace. */ + public keyspace: string; + + /** EmergencyReparentShardResponse shard. */ + public shard: string; + + /** EmergencyReparentShardResponse promoted_primary. */ + public promoted_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardResponse events. */ + public events: logutil.IEvent[]; /** - * Creates a new GetCellsAliasesRequest instance using the specified properties. + * Creates a new EmergencyReparentShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellsAliasesRequest instance + * @returns EmergencyReparentShardResponse instance */ - public static create(properties?: vtctldata.IGetCellsAliasesRequest): vtctldata.GetCellsAliasesRequest; + public static create(properties?: vtctldata.IEmergencyReparentShardResponse): vtctldata.EmergencyReparentShardResponse; /** - * 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 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.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IEmergencyReparentShardResponse, 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 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.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellsAliasesRequest 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 GetCellsAliasesRequest + * @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.GetCellsAliasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardResponse; /** - * Decodes a GetCellsAliasesRequest 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 GetCellsAliasesRequest + * @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.GetCellsAliasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardResponse; /** - * Verifies a GetCellsAliasesRequest 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 GetCellsAliasesRequest 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 GetCellsAliasesRequest + * @returns EmergencyReparentShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardResponse; /** - * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. - * @param message GetCellsAliasesRequest + * 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.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.EmergencyReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellsAliasesRequest to JSON. + * Converts this EmergencyReparentShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellsAliasesResponse. */ - interface IGetCellsAliasesResponse { + /** Properties of a FindAllShardsInKeyspaceRequest. */ + interface IFindAllShardsInKeyspaceRequest { - /** GetCellsAliasesResponse aliases */ - aliases?: ({ [k: string]: topodata.ICellsAlias }|null); + /** FindAllShardsInKeyspaceRequest keyspace */ + keyspace?: (string|null); } - /** Represents a GetCellsAliasesResponse. */ - class GetCellsAliasesResponse implements IGetCellsAliasesResponse { + /** Represents a FindAllShardsInKeyspaceRequest. */ + class FindAllShardsInKeyspaceRequest implements IFindAllShardsInKeyspaceRequest { /** - * Constructs a new GetCellsAliasesResponse. + * Constructs a new FindAllShardsInKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellsAliasesResponse); + constructor(properties?: vtctldata.IFindAllShardsInKeyspaceRequest); - /** GetCellsAliasesResponse aliases. */ - public aliases: { [k: string]: topodata.ICellsAlias }; + /** FindAllShardsInKeyspaceRequest keyspace. */ + public keyspace: string; /** - * Creates a new GetCellsAliasesResponse instance using the specified properties. + * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellsAliasesResponse instance + * @returns FindAllShardsInKeyspaceRequest instance */ - public static create(properties?: vtctldata.IGetCellsAliasesResponse): vtctldata.GetCellsAliasesResponse; + public static create(properties?: vtctldata.IFindAllShardsInKeyspaceRequest): vtctldata.FindAllShardsInKeyspaceRequest; /** - * 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 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.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IFindAllShardsInKeyspaceRequest, 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 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.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellsAliasesResponse 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 GetCellsAliasesResponse + * @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.GetCellsAliasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceRequest; /** - * Decodes a GetCellsAliasesResponse 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 GetCellsAliasesResponse + * @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.GetCellsAliasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceRequest; /** - * Verifies a GetCellsAliasesResponse 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 GetCellsAliasesResponse 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 GetCellsAliasesResponse + * @returns FindAllShardsInKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceRequest; /** - * 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 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.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.FindAllShardsInKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellsAliasesResponse to JSON. + * Converts this FindAllShardsInKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetKeyspacesRequest. */ - interface IGetKeyspacesRequest { + /** Properties of a FindAllShardsInKeyspaceResponse. */ + interface IFindAllShardsInKeyspaceResponse { + + /** FindAllShardsInKeyspaceResponse shards */ + shards?: ({ [k: string]: vtctldata.IShard }|null); } - /** Represents a GetKeyspacesRequest. */ - class GetKeyspacesRequest implements IGetKeyspacesRequest { + /** Represents a FindAllShardsInKeyspaceResponse. */ + class FindAllShardsInKeyspaceResponse implements IFindAllShardsInKeyspaceResponse { /** - * Constructs a new GetKeyspacesRequest. + * Constructs a new FindAllShardsInKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspacesRequest); + constructor(properties?: vtctldata.IFindAllShardsInKeyspaceResponse); + + /** FindAllShardsInKeyspaceResponse shards. */ + public shards: { [k: string]: vtctldata.IShard }; /** - * Creates a new GetKeyspacesRequest instance using the specified properties. + * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspacesRequest instance + * @returns FindAllShardsInKeyspaceResponse instance */ - public static create(properties?: vtctldata.IGetKeyspacesRequest): vtctldata.GetKeyspacesRequest; + public static create(properties?: vtctldata.IFindAllShardsInKeyspaceResponse): vtctldata.FindAllShardsInKeyspaceResponse; /** - * 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 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.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IFindAllShardsInKeyspaceResponse, 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 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.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspacesRequest 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 GetKeyspacesRequest + * @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.GetKeyspacesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceResponse; /** - * Decodes a GetKeyspacesRequest 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 GetKeyspacesRequest + * @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.GetKeyspacesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceResponse; /** - * Verifies a GetKeyspacesRequest 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 GetKeyspacesRequest 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 GetKeyspacesRequest + * @returns FindAllShardsInKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceResponse; /** - * 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 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.GetKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.FindAllShardsInKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspacesRequest to JSON. + * Converts this FindAllShardsInKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetKeyspacesResponse. */ - interface IGetKeyspacesResponse { + /** Properties of a GetBackupsRequest. */ + interface IGetBackupsRequest { - /** GetKeyspacesResponse keyspaces */ - keyspaces?: (vtctldata.IKeyspace[]|null); + /** GetBackupsRequest keyspace */ + keyspace?: (string|null); + + /** GetBackupsRequest shard */ + shard?: (string|null); } - /** Represents a GetKeyspacesResponse. */ - class GetKeyspacesResponse implements IGetKeyspacesResponse { + /** Represents a GetBackupsRequest. */ + class GetBackupsRequest implements IGetBackupsRequest { /** - * Constructs a new GetKeyspacesResponse. + * Constructs a new GetBackupsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspacesResponse); + constructor(properties?: vtctldata.IGetBackupsRequest); - /** GetKeyspacesResponse keyspaces. */ - public keyspaces: vtctldata.IKeyspace[]; + /** GetBackupsRequest keyspace. */ + public keyspace: string; + + /** GetBackupsRequest shard. */ + public shard: string; /** - * Creates a new GetKeyspacesResponse instance using the specified properties. + * Creates a new GetBackupsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspacesResponse instance + * @returns GetBackupsRequest instance */ - public static create(properties?: vtctldata.IGetKeyspacesResponse): vtctldata.GetKeyspacesResponse; + public static create(properties?: vtctldata.IGetBackupsRequest): vtctldata.GetBackupsRequest; /** - * 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 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.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetBackupsRequest, 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 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.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspacesResponse 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 GetKeyspacesResponse + * @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.GetKeyspacesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsRequest; /** - * Decodes a GetKeyspacesResponse 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 GetKeyspacesResponse + * @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.GetKeyspacesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsRequest; /** - * Verifies a GetKeyspacesResponse 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 GetKeyspacesResponse 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 GetKeyspacesResponse + * @returns GetBackupsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsRequest; /** - * 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 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.GetKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspacesResponse to JSON. + * Converts this GetBackupsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetKeyspaceRequest. */ - interface IGetKeyspaceRequest { + /** Properties of a GetBackupsResponse. */ + interface IGetBackupsResponse { - /** GetKeyspaceRequest keyspace */ - keyspace?: (string|null); + /** GetBackupsResponse backups */ + backups?: (mysqlctl.IBackupInfo[]|null); } - /** Represents a GetKeyspaceRequest. */ - class GetKeyspaceRequest implements IGetKeyspaceRequest { + /** Represents a GetBackupsResponse. */ + class GetBackupsResponse implements IGetBackupsResponse { /** - * Constructs a new GetKeyspaceRequest. + * Constructs a new GetBackupsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspaceRequest); + constructor(properties?: vtctldata.IGetBackupsResponse); - /** GetKeyspaceRequest keyspace. */ - public keyspace: string; + /** GetBackupsResponse backups. */ + public backups: mysqlctl.IBackupInfo[]; /** - * Creates a new GetKeyspaceRequest instance using the specified properties. + * Creates a new GetBackupsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspaceRequest instance + * @returns GetBackupsResponse instance */ - public static create(properties?: vtctldata.IGetKeyspaceRequest): vtctldata.GetKeyspaceRequest; + public static create(properties?: vtctldata.IGetBackupsResponse): vtctldata.GetBackupsResponse; /** - * 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 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.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetBackupsResponse, 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 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.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspaceRequest 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 GetKeyspaceRequest + * @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.GetKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsResponse; /** - * Decodes a GetKeyspaceRequest 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 GetKeyspaceRequest + * @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.GetKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsResponse; /** - * Verifies a GetKeyspaceRequest 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 GetKeyspaceRequest 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 GetKeyspaceRequest + * @returns GetBackupsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsResponse; /** - * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. - * @param message GetKeyspaceRequest + * 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.GetKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspaceRequest to JSON. + * Converts this GetBackupsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetKeyspaceResponse. */ - interface IGetKeyspaceResponse { - - /** GetKeyspaceResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); + /** Properties of a GetCellInfoNamesRequest. */ + interface IGetCellInfoNamesRequest { } - /** Represents a GetKeyspaceResponse. */ - class GetKeyspaceResponse implements IGetKeyspaceResponse { + /** Represents a GetCellInfoNamesRequest. */ + class GetCellInfoNamesRequest implements IGetCellInfoNamesRequest { /** - * Constructs a new GetKeyspaceResponse. + * Constructs a new GetCellInfoNamesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspaceResponse); - - /** GetKeyspaceResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); + constructor(properties?: vtctldata.IGetCellInfoNamesRequest); /** - * Creates a new GetKeyspaceResponse instance using the specified properties. + * Creates a new GetCellInfoNamesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspaceResponse instance + * @returns GetCellInfoNamesRequest instance */ - public static create(properties?: vtctldata.IGetKeyspaceResponse): vtctldata.GetKeyspaceResponse; + public static create(properties?: vtctldata.IGetCellInfoNamesRequest): vtctldata.GetCellInfoNamesRequest; /** - * 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 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.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellInfoNamesRequest, 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 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.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspaceResponse 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 GetKeyspaceResponse + * @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.GetKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesRequest; /** - * Decodes a GetKeyspaceResponse 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 GetKeyspaceResponse + * @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.GetKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesRequest; /** - * Verifies a GetKeyspaceResponse 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 GetKeyspaceResponse 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 GetKeyspaceResponse + * @returns GetCellInfoNamesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesRequest; /** - * Creates a plain object from a GetKeyspaceResponse message. Also converts values to other types if specified. - * @param message GetKeyspaceResponse + * 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.GetKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellInfoNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspaceResponse to JSON. + * Converts this GetCellInfoNamesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSchemaRequest. */ - interface IGetSchemaRequest { - - /** GetSchemaRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** GetSchemaRequest tables */ - tables?: (string[]|null); - - /** GetSchemaRequest exclude_tables */ - exclude_tables?: (string[]|null); - - /** GetSchemaRequest include_views */ - include_views?: (boolean|null); - - /** GetSchemaRequest table_names_only */ - table_names_only?: (boolean|null); + /** Properties of a GetCellInfoNamesResponse. */ + interface IGetCellInfoNamesResponse { - /** GetSchemaRequest table_sizes_only */ - table_sizes_only?: (boolean|null); + /** GetCellInfoNamesResponse names */ + names?: (string[]|null); } - /** Represents a GetSchemaRequest. */ - class GetSchemaRequest implements IGetSchemaRequest { + /** Represents a GetCellInfoNamesResponse. */ + class GetCellInfoNamesResponse implements IGetCellInfoNamesResponse { /** - * Constructs a new GetSchemaRequest. + * Constructs a new GetCellInfoNamesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSchemaRequest); - - /** GetSchemaRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** GetSchemaRequest tables. */ - public tables: string[]; - - /** GetSchemaRequest exclude_tables. */ - public exclude_tables: string[]; - - /** GetSchemaRequest include_views. */ - public include_views: boolean; - - /** GetSchemaRequest table_names_only. */ - public table_names_only: boolean; + constructor(properties?: vtctldata.IGetCellInfoNamesResponse); - /** GetSchemaRequest table_sizes_only. */ - public table_sizes_only: boolean; + /** GetCellInfoNamesResponse names. */ + public names: string[]; /** - * Creates a new GetSchemaRequest instance using the specified properties. + * Creates a new GetCellInfoNamesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaRequest instance + * @returns GetCellInfoNamesResponse instance */ - public static create(properties?: vtctldata.IGetSchemaRequest): vtctldata.GetSchemaRequest; + public static create(properties?: vtctldata.IGetCellInfoNamesResponse): vtctldata.GetCellInfoNamesResponse; /** - * 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 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.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellInfoNamesResponse, 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 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.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaRequest 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 GetSchemaRequest + * @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.GetSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesResponse; /** - * Decodes a GetSchemaRequest 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 GetSchemaRequest + * @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.GetSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesResponse; /** - * Verifies a GetSchemaRequest 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 GetSchemaRequest 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 GetSchemaRequest + * @returns GetCellInfoNamesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesResponse; /** - * 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 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.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellInfoNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaRequest to JSON. + * Converts this GetCellInfoNamesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSchemaResponse. */ - interface IGetSchemaResponse { + /** Properties of a GetCellInfoRequest. */ + interface IGetCellInfoRequest { - /** GetSchemaResponse schema */ - schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** GetCellInfoRequest cell */ + cell?: (string|null); } - /** Represents a GetSchemaResponse. */ - class GetSchemaResponse implements IGetSchemaResponse { + /** Represents a GetCellInfoRequest. */ + class GetCellInfoRequest implements IGetCellInfoRequest { /** - * Constructs a new GetSchemaResponse. + * Constructs a new GetCellInfoRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSchemaResponse); + constructor(properties?: vtctldata.IGetCellInfoRequest); - /** GetSchemaResponse schema. */ - public schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** GetCellInfoRequest cell. */ + public cell: string; /** - * Creates a new GetSchemaResponse instance using the specified properties. + * Creates a new GetCellInfoRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaResponse instance + * @returns GetCellInfoRequest instance */ - public static create(properties?: vtctldata.IGetSchemaResponse): vtctldata.GetSchemaResponse; + public static create(properties?: vtctldata.IGetCellInfoRequest): vtctldata.GetCellInfoRequest; /** - * 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 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.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellInfoRequest, 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 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.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaResponse 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 GetSchemaResponse + * @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.GetSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoRequest; /** - * Decodes a GetSchemaResponse 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 GetSchemaResponse + * @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.GetSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoRequest; /** - * Verifies a GetSchemaResponse 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 GetSchemaResponse 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 GetSchemaResponse + * @returns GetCellInfoRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoRequest; /** - * 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 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.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaResponse to JSON. + * Converts this GetCellInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetShardRequest. */ - interface IGetShardRequest { - - /** GetShardRequest keyspace */ - keyspace?: (string|null); + /** Properties of a GetCellInfoResponse. */ + interface IGetCellInfoResponse { - /** GetShardRequest shard_name */ - shard_name?: (string|null); + /** GetCellInfoResponse cell_info */ + cell_info?: (topodata.ICellInfo|null); } - /** Represents a GetShardRequest. */ - class GetShardRequest implements IGetShardRequest { + /** Represents a GetCellInfoResponse. */ + class GetCellInfoResponse implements IGetCellInfoResponse { /** - * Constructs a new GetShardRequest. + * Constructs a new GetCellInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetShardRequest); - - /** GetShardRequest keyspace. */ - public keyspace: string; + constructor(properties?: vtctldata.IGetCellInfoResponse); - /** GetShardRequest shard_name. */ - public shard_name: string; + /** GetCellInfoResponse cell_info. */ + public cell_info?: (topodata.ICellInfo|null); /** - * Creates a new GetShardRequest instance using the specified properties. + * Creates a new GetCellInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetShardRequest instance + * @returns GetCellInfoResponse instance */ - public static create(properties?: vtctldata.IGetShardRequest): vtctldata.GetShardRequest; + public static create(properties?: vtctldata.IGetCellInfoResponse): vtctldata.GetCellInfoResponse; /** - * 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 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.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellInfoResponse, 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 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.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShardRequest 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 GetShardRequest + * @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.GetShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoResponse; /** - * Decodes a GetShardRequest 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 GetShardRequest + * @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.GetShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoResponse; /** - * Verifies a GetShardRequest 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 GetShardRequest 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 GetShardRequest + * @returns GetCellInfoResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoResponse; /** - * 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 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.GetShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShardRequest to JSON. + * Converts this GetCellInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetShardResponse. */ - interface IGetShardResponse { - - /** GetShardResponse shard */ - shard?: (vtctldata.IShard|null); + /** Properties of a GetCellsAliasesRequest. */ + interface IGetCellsAliasesRequest { } - /** Represents a GetShardResponse. */ - class GetShardResponse implements IGetShardResponse { + /** Represents a GetCellsAliasesRequest. */ + class GetCellsAliasesRequest implements IGetCellsAliasesRequest { /** - * Constructs a new GetShardResponse. + * Constructs a new GetCellsAliasesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetShardResponse); - - /** GetShardResponse shard. */ - public shard?: (vtctldata.IShard|null); + constructor(properties?: vtctldata.IGetCellsAliasesRequest); /** - * Creates a new GetShardResponse instance using the specified properties. + * Creates a new GetCellsAliasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetShardResponse instance + * @returns GetCellsAliasesRequest instance */ - public static create(properties?: vtctldata.IGetShardResponse): vtctldata.GetShardResponse; + public static create(properties?: vtctldata.IGetCellsAliasesRequest): vtctldata.GetCellsAliasesRequest; /** - * 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 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.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellsAliasesRequest, 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 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.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShardResponse 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 GetShardResponse + * @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.GetShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesRequest; /** - * Decodes a GetShardResponse 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 GetShardResponse + * @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.GetShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesRequest; /** - * Verifies a GetShardResponse 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 GetShardResponse 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 GetShardResponse + * @returns GetCellsAliasesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesRequest; /** - * 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 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.GetShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShardResponse to JSON. + * Converts this GetCellsAliasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSrvVSchemaRequest. */ - interface IGetSrvVSchemaRequest { + /** Properties of a GetCellsAliasesResponse. */ + interface IGetCellsAliasesResponse { - /** GetSrvVSchemaRequest cell */ - cell?: (string|null); + /** GetCellsAliasesResponse aliases */ + aliases?: ({ [k: string]: topodata.ICellsAlias }|null); } - /** Represents a GetSrvVSchemaRequest. */ - class GetSrvVSchemaRequest implements IGetSrvVSchemaRequest { + /** Represents a GetCellsAliasesResponse. */ + class GetCellsAliasesResponse implements IGetCellsAliasesResponse { /** - * Constructs a new GetSrvVSchemaRequest. + * Constructs a new GetCellsAliasesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvVSchemaRequest); + constructor(properties?: vtctldata.IGetCellsAliasesResponse); - /** GetSrvVSchemaRequest cell. */ - public cell: string; + /** GetCellsAliasesResponse aliases. */ + public aliases: { [k: string]: topodata.ICellsAlias }; /** - * Creates a new GetSrvVSchemaRequest instance using the specified properties. + * Creates a new GetCellsAliasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvVSchemaRequest instance + * @returns GetCellsAliasesResponse instance */ - public static create(properties?: vtctldata.IGetSrvVSchemaRequest): vtctldata.GetSrvVSchemaRequest; + public static create(properties?: vtctldata.IGetCellsAliasesResponse): vtctldata.GetCellsAliasesResponse; /** - * 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 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.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellsAliasesResponse, 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 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.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvVSchemaRequest 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 GetSrvVSchemaRequest + * @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.GetSrvVSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesResponse; /** - * Decodes a GetSrvVSchemaRequest 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 GetSrvVSchemaRequest + * @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.GetSrvVSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesResponse; /** - * Verifies a GetSrvVSchemaRequest 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 GetSrvVSchemaRequest 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 GetSrvVSchemaRequest + * @returns GetCellsAliasesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesResponse; /** - * 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 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.GetSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvVSchemaRequest to JSON. + * Converts this GetCellsAliasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSrvVSchemaResponse. */ - interface IGetSrvVSchemaResponse { - - /** GetSrvVSchemaResponse srv_v_schema */ - srv_v_schema?: (vschema.ISrvVSchema|null); + /** Properties of a GetKeyspacesRequest. */ + interface IGetKeyspacesRequest { } - /** Represents a GetSrvVSchemaResponse. */ - class GetSrvVSchemaResponse implements IGetSrvVSchemaResponse { + /** Represents a GetKeyspacesRequest. */ + class GetKeyspacesRequest implements IGetKeyspacesRequest { /** - * Constructs a new GetSrvVSchemaResponse. + * Constructs a new GetKeyspacesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvVSchemaResponse); - - /** GetSrvVSchemaResponse srv_v_schema. */ - public srv_v_schema?: (vschema.ISrvVSchema|null); + constructor(properties?: vtctldata.IGetKeyspacesRequest); /** - * Creates a new GetSrvVSchemaResponse instance using the specified properties. + * Creates a new GetKeyspacesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvVSchemaResponse instance + * @returns GetKeyspacesRequest instance */ - public static create(properties?: vtctldata.IGetSrvVSchemaResponse): vtctldata.GetSrvVSchemaResponse; + public static create(properties?: vtctldata.IGetKeyspacesRequest): vtctldata.GetKeyspacesRequest; /** - * 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 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.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspacesRequest, 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 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.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvVSchemaResponse 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 GetSrvVSchemaResponse + * @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.GetSrvVSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesRequest; /** - * Decodes a GetSrvVSchemaResponse 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 GetSrvVSchemaResponse + * @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.GetSrvVSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesRequest; /** - * Verifies a GetSrvVSchemaResponse 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 a GetSrvVSchemaResponse 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 GetSrvVSchemaResponse + * @returns GetKeyspacesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesRequest; /** - * 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 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.GetSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvVSchemaResponse to JSON. + * Converts this GetKeyspacesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTabletRequest. */ - interface IGetTabletRequest { + /** Properties of a GetKeyspacesResponse. */ + interface IGetKeyspacesResponse { - /** GetTabletRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** GetKeyspacesResponse keyspaces */ + keyspaces?: (vtctldata.IKeyspace[]|null); } - /** Represents a GetTabletRequest. */ - class GetTabletRequest implements IGetTabletRequest { + /** Represents a GetKeyspacesResponse. */ + class GetKeyspacesResponse implements IGetKeyspacesResponse { /** - * Constructs a new GetTabletRequest. + * Constructs a new GetKeyspacesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletRequest); + constructor(properties?: vtctldata.IGetKeyspacesResponse); - /** GetTabletRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** GetKeyspacesResponse keyspaces. */ + public keyspaces: vtctldata.IKeyspace[]; /** - * Creates a new GetTabletRequest instance using the specified properties. + * Creates a new GetKeyspacesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletRequest instance + * @returns GetKeyspacesResponse instance */ - public static create(properties?: vtctldata.IGetTabletRequest): vtctldata.GetTabletRequest; + public static create(properties?: vtctldata.IGetKeyspacesResponse): vtctldata.GetKeyspacesResponse; /** - * 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 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.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspacesResponse, 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 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.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletRequest 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 GetTabletRequest + * @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.GetTabletRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesResponse; /** - * Decodes a GetTabletRequest 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 GetTabletRequest + * @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.GetTabletRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesResponse; /** - * Verifies a GetTabletRequest 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 a GetTabletRequest 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 GetTabletRequest + * @returns GetKeyspacesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesResponse; /** - * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. - * @param message GetTabletRequest + * 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.GetTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletRequest to JSON. + * Converts this GetKeyspacesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTabletResponse. */ - interface IGetTabletResponse { + /** Properties of a GetKeyspaceRequest. */ + interface IGetKeyspaceRequest { - /** GetTabletResponse tablet */ - tablet?: (topodata.ITablet|null); + /** GetKeyspaceRequest keyspace */ + keyspace?: (string|null); } - /** Represents a GetTabletResponse. */ - class GetTabletResponse implements IGetTabletResponse { + /** Represents a GetKeyspaceRequest. */ + class GetKeyspaceRequest implements IGetKeyspaceRequest { /** - * Constructs a new GetTabletResponse. + * Constructs a new GetKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletResponse); + constructor(properties?: vtctldata.IGetKeyspaceRequest); - /** GetTabletResponse tablet. */ - public tablet?: (topodata.ITablet|null); + /** GetKeyspaceRequest keyspace. */ + public keyspace: string; /** - * Creates a new GetTabletResponse instance using the specified properties. + * Creates a new GetKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletResponse instance + * @returns GetKeyspaceRequest instance */ - public static create(properties?: vtctldata.IGetTabletResponse): vtctldata.GetTabletResponse; + public static create(properties?: vtctldata.IGetKeyspaceRequest): vtctldata.GetKeyspaceRequest; /** - * 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 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.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspaceRequest, 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 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.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletResponse 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 GetTabletResponse + * @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.GetTabletResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRequest; /** - * Decodes a GetTabletResponse 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 GetTabletResponse + * @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.GetTabletResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRequest; /** - * Verifies a GetTabletResponse 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 a GetTabletResponse 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 GetTabletResponse + * @returns GetKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRequest; /** - * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. - * @param message GetTabletResponse + * 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.GetTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletResponse to JSON. + * Converts this GetKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTabletsRequest. */ - interface IGetTabletsRequest { - - /** GetTabletsRequest keyspace */ - keyspace?: (string|null); - - /** GetTabletsRequest shard */ - shard?: (string|null); + /** Properties of a GetKeyspaceResponse. */ + interface IGetKeyspaceResponse { - /** GetTabletsRequest cells */ - cells?: (string[]|null); + /** GetKeyspaceResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); } - /** Represents a GetTabletsRequest. */ - class GetTabletsRequest implements IGetTabletsRequest { + /** Represents a GetKeyspaceResponse. */ + class GetKeyspaceResponse implements IGetKeyspaceResponse { /** - * Constructs a new GetTabletsRequest. + * Constructs a new GetKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletsRequest); - - /** GetTabletsRequest keyspace. */ - public keyspace: string; - - /** GetTabletsRequest shard. */ - public shard: string; + constructor(properties?: vtctldata.IGetKeyspaceResponse); - /** GetTabletsRequest cells. */ - public cells: string[]; + /** GetKeyspaceResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); /** - * Creates a new GetTabletsRequest instance using the specified properties. + * Creates a new GetKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletsRequest instance + * @returns GetKeyspaceResponse instance */ - public static create(properties?: vtctldata.IGetTabletsRequest): vtctldata.GetTabletsRequest; + public static create(properties?: vtctldata.IGetKeyspaceResponse): vtctldata.GetKeyspaceResponse; /** - * 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 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.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspaceResponse, 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 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.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletsRequest 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 GetTabletsRequest + * @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.GetTabletsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceResponse; /** - * Decodes a GetTabletsRequest 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 GetTabletsRequest + * @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.GetTabletsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceResponse; /** - * Verifies a GetTabletsRequest 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 a GetTabletsRequest 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 GetTabletsRequest + * @returns GetKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceResponse; /** - * 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 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.GetTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletsRequest to JSON. + * Converts this GetKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTabletsResponse. */ - interface IGetTabletsResponse { + /** Properties of a GetSchemaRequest. */ + interface IGetSchemaRequest { - /** GetTabletsResponse tablets */ - tablets?: (topodata.ITablet[]|null); + /** GetSchemaRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** GetSchemaRequest tables */ + tables?: (string[]|null); + + /** GetSchemaRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** GetSchemaRequest include_views */ + include_views?: (boolean|null); + + /** GetSchemaRequest table_names_only */ + table_names_only?: (boolean|null); + + /** GetSchemaRequest table_sizes_only */ + table_sizes_only?: (boolean|null); } - /** Represents a GetTabletsResponse. */ - class GetTabletsResponse implements IGetTabletsResponse { + /** Represents a GetSchemaRequest. */ + class GetSchemaRequest implements IGetSchemaRequest { /** - * Constructs a new GetTabletsResponse. + * Constructs a new GetSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletsResponse); + constructor(properties?: vtctldata.IGetSchemaRequest); - /** GetTabletsResponse tablets. */ - public tablets: topodata.ITablet[]; + /** GetSchemaRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** GetSchemaRequest tables. */ + public tables: string[]; + + /** GetSchemaRequest exclude_tables. */ + public exclude_tables: string[]; + + /** GetSchemaRequest include_views. */ + public include_views: boolean; + + /** GetSchemaRequest table_names_only. */ + public table_names_only: boolean; + + /** GetSchemaRequest table_sizes_only. */ + public table_sizes_only: boolean; /** - * Creates a new GetTabletsResponse instance using the specified properties. + * Creates a new GetSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletsResponse instance + * @returns GetSchemaRequest instance */ - public static create(properties?: vtctldata.IGetTabletsResponse): vtctldata.GetTabletsResponse; + public static create(properties?: vtctldata.IGetSchemaRequest): vtctldata.GetSchemaRequest; /** - * 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 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.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSchemaRequest, 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 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.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletsResponse 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 GetTabletsResponse + * @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.GetTabletsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaRequest; /** - * Decodes a GetTabletsResponse 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 GetTabletsResponse + * @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.GetTabletsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaRequest; /** - * Verifies a GetTabletsResponse 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 GetTabletsResponse 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 GetTabletsResponse + * @returns GetSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaRequest; /** - * 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 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.GetTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletsResponse to JSON. + * Converts this GetSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetVSchemaRequest. */ - interface IGetVSchemaRequest { + /** Properties of a GetSchemaResponse. */ + interface IGetSchemaResponse { - /** GetVSchemaRequest keyspace */ - keyspace?: (string|null); + /** GetSchemaResponse schema */ + schema?: (tabletmanagerdata.ISchemaDefinition|null); } - /** Represents a GetVSchemaRequest. */ - class GetVSchemaRequest implements IGetVSchemaRequest { + /** Represents a GetSchemaResponse. */ + class GetSchemaResponse implements IGetSchemaResponse { /** - * Constructs a new GetVSchemaRequest. + * Constructs a new GetSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetVSchemaRequest); + constructor(properties?: vtctldata.IGetSchemaResponse); - /** GetVSchemaRequest keyspace. */ - public keyspace: string; + /** GetSchemaResponse schema. */ + public schema?: (tabletmanagerdata.ISchemaDefinition|null); /** - * Creates a new GetVSchemaRequest instance using the specified properties. + * Creates a new GetSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetVSchemaRequest instance + * @returns GetSchemaResponse instance */ - public static create(properties?: vtctldata.IGetVSchemaRequest): vtctldata.GetVSchemaRequest; + public static create(properties?: vtctldata.IGetSchemaResponse): vtctldata.GetSchemaResponse; /** - * 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 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.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSchemaResponse, 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 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.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVSchemaRequest 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 GetVSchemaRequest + * @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.GetVSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaResponse; /** - * Decodes a GetVSchemaRequest 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 GetVSchemaRequest + * @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.GetVSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaResponse; /** - * Verifies a GetVSchemaRequest 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 GetVSchemaRequest 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 GetVSchemaRequest + * @returns GetSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaResponse; /** - * 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 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.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVSchemaRequest to JSON. + * Converts this GetSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetVSchemaResponse. */ - interface IGetVSchemaResponse { + /** Properties of a GetShardRequest. */ + interface IGetShardRequest { - /** GetVSchemaResponse v_schema */ - v_schema?: (vschema.IKeyspace|null); + /** GetShardRequest keyspace */ + keyspace?: (string|null); + + /** GetShardRequest shard_name */ + shard_name?: (string|null); } - /** Represents a GetVSchemaResponse. */ - class GetVSchemaResponse implements IGetVSchemaResponse { + /** Represents a GetShardRequest. */ + class GetShardRequest implements IGetShardRequest { /** - * Constructs a new GetVSchemaResponse. + * Constructs a new GetShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetVSchemaResponse); + constructor(properties?: vtctldata.IGetShardRequest); + + /** GetShardRequest keyspace. */ + public keyspace: string; - /** GetVSchemaResponse v_schema. */ - public v_schema?: (vschema.IKeyspace|null); + /** GetShardRequest shard_name. */ + public shard_name: string; /** - * Creates a new GetVSchemaResponse instance using the specified properties. + * Creates a new GetShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetVSchemaResponse instance + * @returns GetShardRequest instance */ - public static create(properties?: vtctldata.IGetVSchemaResponse): vtctldata.GetVSchemaResponse; + public static create(properties?: vtctldata.IGetShardRequest): vtctldata.GetShardRequest; /** - * 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 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.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetShardRequest, 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 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.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVSchemaResponse 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 GetVSchemaResponse + * @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.GetVSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRequest; /** - * Decodes a GetVSchemaResponse 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 GetVSchemaResponse + * @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.GetVSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRequest; /** - * Verifies a GetVSchemaResponse 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 GetVSchemaResponse 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 GetVSchemaResponse + * @returns GetShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRequest; /** - * 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 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.GetVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVSchemaResponse to JSON. + * Converts this GetShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetWorkflowsRequest. */ - interface IGetWorkflowsRequest { - - /** GetWorkflowsRequest keyspace */ - keyspace?: (string|null); + /** Properties of a GetShardResponse. */ + interface IGetShardResponse { - /** GetWorkflowsRequest active_only */ - active_only?: (boolean|null); + /** GetShardResponse shard */ + shard?: (vtctldata.IShard|null); } - /** Represents a GetWorkflowsRequest. */ - class GetWorkflowsRequest implements IGetWorkflowsRequest { + /** Represents a GetShardResponse. */ + class GetShardResponse implements IGetShardResponse { /** - * Constructs a new GetWorkflowsRequest. + * Constructs a new GetShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetWorkflowsRequest); - - /** GetWorkflowsRequest keyspace. */ - public keyspace: string; + constructor(properties?: vtctldata.IGetShardResponse); - /** GetWorkflowsRequest active_only. */ - public active_only: boolean; + /** GetShardResponse shard. */ + public shard?: (vtctldata.IShard|null); /** - * Creates a new GetWorkflowsRequest instance using the specified properties. + * Creates a new GetShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetWorkflowsRequest instance + * @returns GetShardResponse instance */ - public static create(properties?: vtctldata.IGetWorkflowsRequest): vtctldata.GetWorkflowsRequest; + public static create(properties?: vtctldata.IGetShardResponse): vtctldata.GetShardResponse; /** - * 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 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.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetShardResponse, 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 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.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetWorkflowsRequest 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 GetWorkflowsRequest + * @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.GetWorkflowsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardResponse; /** - * Decodes a GetWorkflowsRequest 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 GetWorkflowsRequest + * @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.GetWorkflowsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardResponse; /** - * Verifies a GetWorkflowsRequest 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 GetWorkflowsRequest 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 GetWorkflowsRequest + * @returns GetShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardResponse; /** - * 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 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.GetWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetWorkflowsRequest to JSON. + * Converts this GetShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetWorkflowsResponse. */ - interface IGetWorkflowsResponse { + /** Properties of a GetSrvVSchemaRequest. */ + interface IGetSrvVSchemaRequest { - /** GetWorkflowsResponse workflows */ - workflows?: (vtctldata.IWorkflow[]|null); + /** GetSrvVSchemaRequest cell */ + cell?: (string|null); } - /** Represents a GetWorkflowsResponse. */ - class GetWorkflowsResponse implements IGetWorkflowsResponse { + /** Represents a GetSrvVSchemaRequest. */ + class GetSrvVSchemaRequest implements IGetSrvVSchemaRequest { /** - * Constructs a new GetWorkflowsResponse. + * Constructs a new GetSrvVSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetWorkflowsResponse); + constructor(properties?: vtctldata.IGetSrvVSchemaRequest); - /** GetWorkflowsResponse workflows. */ - public workflows: vtctldata.IWorkflow[]; + /** GetSrvVSchemaRequest cell. */ + public cell: string; /** - * Creates a new GetWorkflowsResponse instance using the specified properties. + * Creates a new GetSrvVSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetWorkflowsResponse instance + * @returns GetSrvVSchemaRequest instance */ - public static create(properties?: vtctldata.IGetWorkflowsResponse): vtctldata.GetWorkflowsResponse; + public static create(properties?: vtctldata.IGetSrvVSchemaRequest): vtctldata.GetSrvVSchemaRequest; /** - * 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 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.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvVSchemaRequest, 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 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.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetWorkflowsResponse 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 GetWorkflowsResponse + * @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.GetWorkflowsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaRequest; /** - * Decodes a GetWorkflowsResponse 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 GetWorkflowsResponse + * @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.GetWorkflowsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaRequest; /** - * Verifies a GetWorkflowsResponse 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 GetWorkflowsResponse 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 GetWorkflowsResponse + * @returns GetSrvVSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaRequest; /** - * 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 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.GetWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetWorkflowsResponse to JSON. + * Converts this GetSrvVSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an InitShardPrimaryRequest. */ - interface IInitShardPrimaryRequest { - - /** InitShardPrimaryRequest keyspace */ - keyspace?: (string|null); - - /** InitShardPrimaryRequest shard */ - shard?: (string|null); - - /** InitShardPrimaryRequest primary_elect_tablet_alias */ - primary_elect_tablet_alias?: (topodata.ITabletAlias|null); - - /** InitShardPrimaryRequest force */ - force?: (boolean|null); + /** Properties of a GetSrvVSchemaResponse. */ + interface IGetSrvVSchemaResponse { - /** InitShardPrimaryRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); + /** GetSrvVSchemaResponse srv_v_schema */ + srv_v_schema?: (vschema.ISrvVSchema|null); } - /** Represents an InitShardPrimaryRequest. */ - class InitShardPrimaryRequest implements IInitShardPrimaryRequest { + /** Represents a GetSrvVSchemaResponse. */ + class GetSrvVSchemaResponse implements IGetSrvVSchemaResponse { /** - * Constructs a new InitShardPrimaryRequest. + * Constructs a new GetSrvVSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IInitShardPrimaryRequest); - - /** InitShardPrimaryRequest keyspace. */ - public keyspace: string; - - /** InitShardPrimaryRequest shard. */ - public shard: string; - - /** InitShardPrimaryRequest primary_elect_tablet_alias. */ - public primary_elect_tablet_alias?: (topodata.ITabletAlias|null); - - /** InitShardPrimaryRequest force. */ - public force: boolean; + constructor(properties?: vtctldata.IGetSrvVSchemaResponse); - /** InitShardPrimaryRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); + /** GetSrvVSchemaResponse srv_v_schema. */ + public srv_v_schema?: (vschema.ISrvVSchema|null); /** - * Creates a new InitShardPrimaryRequest instance using the specified properties. + * Creates a new GetSrvVSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns InitShardPrimaryRequest instance + * @returns GetSrvVSchemaResponse instance */ - public static create(properties?: vtctldata.IInitShardPrimaryRequest): vtctldata.InitShardPrimaryRequest; + public static create(properties?: vtctldata.IGetSrvVSchemaResponse): vtctldata.GetSrvVSchemaResponse; /** - * 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 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.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvVSchemaResponse, 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 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.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InitShardPrimaryRequest 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 InitShardPrimaryRequest + * @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.InitShardPrimaryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaResponse; /** - * Decodes an InitShardPrimaryRequest 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 InitShardPrimaryRequest + * @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.InitShardPrimaryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaResponse; /** - * Verifies an InitShardPrimaryRequest 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 an InitShardPrimaryRequest 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 InitShardPrimaryRequest + * @returns GetSrvVSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaResponse; /** - * 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 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.InitShardPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InitShardPrimaryRequest to JSON. + * Converts this GetSrvVSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an InitShardPrimaryResponse. */ - interface IInitShardPrimaryResponse { + /** Properties of a GetTabletRequest. */ + interface IGetTabletRequest { - /** InitShardPrimaryResponse events */ - events?: (logutil.IEvent[]|null); + /** GetTabletRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); } - /** Represents an InitShardPrimaryResponse. */ - class InitShardPrimaryResponse implements IInitShardPrimaryResponse { + /** Represents a GetTabletRequest. */ + class GetTabletRequest implements IGetTabletRequest { /** - * Constructs a new InitShardPrimaryResponse. + * Constructs a new GetTabletRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IInitShardPrimaryResponse); + constructor(properties?: vtctldata.IGetTabletRequest); - /** InitShardPrimaryResponse events. */ - public events: logutil.IEvent[]; + /** GetTabletRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); /** - * Creates a new InitShardPrimaryResponse instance using the specified properties. + * Creates a new GetTabletRequest instance using the specified properties. * @param [properties] Properties to set - * @returns InitShardPrimaryResponse instance + * @returns GetTabletRequest instance */ - public static create(properties?: vtctldata.IInitShardPrimaryResponse): vtctldata.InitShardPrimaryResponse; + public static create(properties?: vtctldata.IGetTabletRequest): vtctldata.GetTabletRequest; /** - * 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 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.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletRequest, 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 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.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InitShardPrimaryResponse 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 InitShardPrimaryResponse + * @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.InitShardPrimaryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletRequest; /** - * Decodes an InitShardPrimaryResponse 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 InitShardPrimaryResponse + * @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.InitShardPrimaryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletRequest; /** - * Verifies an InitShardPrimaryResponse 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 an InitShardPrimaryResponse 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 InitShardPrimaryResponse + * @returns GetTabletRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletRequest; /** - * 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 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.InitShardPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InitShardPrimaryResponse to JSON. + * Converts this GetTabletRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** 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); + /** Properties of a GetTabletResponse. */ + interface IGetTabletResponse { - /** PlannedReparentShardRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); + /** GetTabletResponse tablet */ + tablet?: (topodata.ITablet|null); } - /** Represents a PlannedReparentShardRequest. */ - class PlannedReparentShardRequest implements IPlannedReparentShardRequest { + /** Represents a GetTabletResponse. */ + class GetTabletResponse implements IGetTabletResponse { /** - * Constructs a new PlannedReparentShardRequest. + * Constructs a new GetTabletResponse. * @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); + constructor(properties?: vtctldata.IGetTabletResponse); - /** PlannedReparentShardRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); + /** GetTabletResponse tablet. */ + public tablet?: (topodata.ITablet|null); /** - * Creates a new PlannedReparentShardRequest instance using the specified properties. + * Creates a new GetTabletResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PlannedReparentShardRequest instance + * @returns GetTabletResponse instance */ - public static create(properties?: vtctldata.IPlannedReparentShardRequest): vtctldata.PlannedReparentShardRequest; + public static create(properties?: vtctldata.IGetTabletResponse): vtctldata.GetTabletResponse; /** - * 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 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.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletResponse, 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 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.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PlannedReparentShardRequest 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 PlannedReparentShardRequest + * @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.PlannedReparentShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletResponse; /** - * Decodes a PlannedReparentShardRequest 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 PlannedReparentShardRequest + * @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.PlannedReparentShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletResponse; /** - * Verifies a PlannedReparentShardRequest 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 PlannedReparentShardRequest 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 PlannedReparentShardRequest + * @returns GetTabletResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletResponse; /** - * 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 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.PlannedReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PlannedReparentShardRequest to JSON. + * Converts this GetTabletResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PlannedReparentShardResponse. */ - interface IPlannedReparentShardResponse { + /** Properties of a GetTabletsRequest. */ + interface IGetTabletsRequest { - /** PlannedReparentShardResponse keyspace */ + /** GetTabletsRequest keyspace */ keyspace?: (string|null); - /** PlannedReparentShardResponse shard */ + /** GetTabletsRequest shard */ shard?: (string|null); - /** PlannedReparentShardResponse promoted_primary */ - promoted_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardResponse events */ - events?: (logutil.IEvent[]|null); + /** GetTabletsRequest cells */ + cells?: (string[]|null); } - /** Represents a PlannedReparentShardResponse. */ - class PlannedReparentShardResponse implements IPlannedReparentShardResponse { + /** Represents a GetTabletsRequest. */ + class GetTabletsRequest implements IGetTabletsRequest { /** - * Constructs a new PlannedReparentShardResponse. + * Constructs a new GetTabletsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IPlannedReparentShardResponse); + constructor(properties?: vtctldata.IGetTabletsRequest); - /** PlannedReparentShardResponse keyspace. */ + /** GetTabletsRequest keyspace. */ public keyspace: string; - /** PlannedReparentShardResponse shard. */ + /** GetTabletsRequest shard. */ public shard: string; - /** PlannedReparentShardResponse promoted_primary. */ - public promoted_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardResponse events. */ - public events: logutil.IEvent[]; + /** GetTabletsRequest cells. */ + public cells: string[]; /** - * Creates a new PlannedReparentShardResponse instance using the specified properties. + * Creates a new GetTabletsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PlannedReparentShardResponse instance + * @returns GetTabletsRequest instance */ - public static create(properties?: vtctldata.IPlannedReparentShardResponse): vtctldata.PlannedReparentShardResponse; + public static create(properties?: vtctldata.IGetTabletsRequest): vtctldata.GetTabletsRequest; /** - * 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 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.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletsRequest, 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 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.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PlannedReparentShardResponse 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 PlannedReparentShardResponse + * @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.PlannedReparentShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsRequest; /** - * Decodes a PlannedReparentShardResponse 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 PlannedReparentShardResponse + * @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.PlannedReparentShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsRequest; /** - * Verifies a PlannedReparentShardResponse 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 PlannedReparentShardResponse 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 PlannedReparentShardResponse + * @returns GetTabletsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsRequest; /** - * 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 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.PlannedReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PlannedReparentShardResponse to JSON. + * Converts this GetTabletsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RemoveKeyspaceCellRequest. */ - interface IRemoveKeyspaceCellRequest { - - /** RemoveKeyspaceCellRequest keyspace */ - keyspace?: (string|null); - - /** RemoveKeyspaceCellRequest cell */ - cell?: (string|null); - - /** RemoveKeyspaceCellRequest force */ - force?: (boolean|null); + /** Properties of a GetTabletsResponse. */ + interface IGetTabletsResponse { - /** RemoveKeyspaceCellRequest recursive */ - recursive?: (boolean|null); + /** GetTabletsResponse tablets */ + tablets?: (topodata.ITablet[]|null); } - /** Represents a RemoveKeyspaceCellRequest. */ - class RemoveKeyspaceCellRequest implements IRemoveKeyspaceCellRequest { + /** Represents a GetTabletsResponse. */ + class GetTabletsResponse implements IGetTabletsResponse { /** - * Constructs a new RemoveKeyspaceCellRequest. + * Constructs a new GetTabletsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveKeyspaceCellRequest); - - /** RemoveKeyspaceCellRequest keyspace. */ - public keyspace: string; - - /** RemoveKeyspaceCellRequest cell. */ - public cell: string; - - /** RemoveKeyspaceCellRequest force. */ - public force: boolean; + constructor(properties?: vtctldata.IGetTabletsResponse); - /** RemoveKeyspaceCellRequest recursive. */ - public recursive: boolean; + /** GetTabletsResponse tablets. */ + public tablets: topodata.ITablet[]; /** - * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. + * Creates a new GetTabletsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveKeyspaceCellRequest instance + * @returns GetTabletsResponse instance */ - public static create(properties?: vtctldata.IRemoveKeyspaceCellRequest): vtctldata.RemoveKeyspaceCellRequest; + public static create(properties?: vtctldata.IGetTabletsResponse): vtctldata.GetTabletsResponse; /** - * 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 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.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletsResponse, 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 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.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveKeyspaceCellRequest 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 RemoveKeyspaceCellRequest + * @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.RemoveKeyspaceCellRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsResponse; /** - * Decodes a RemoveKeyspaceCellRequest 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 RemoveKeyspaceCellRequest + * @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.RemoveKeyspaceCellRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsResponse; /** - * Verifies a RemoveKeyspaceCellRequest 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 RemoveKeyspaceCellRequest 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 RemoveKeyspaceCellRequest + * @returns GetTabletsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsResponse; /** - * 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 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.RemoveKeyspaceCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveKeyspaceCellRequest to JSON. + * Converts this GetTabletsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RemoveKeyspaceCellResponse. */ - interface IRemoveKeyspaceCellResponse { + /** Properties of a GetVSchemaRequest. */ + interface IGetVSchemaRequest { + + /** GetVSchemaRequest keyspace */ + keyspace?: (string|null); } - /** Represents a RemoveKeyspaceCellResponse. */ - class RemoveKeyspaceCellResponse implements IRemoveKeyspaceCellResponse { + /** Represents a GetVSchemaRequest. */ + class GetVSchemaRequest implements IGetVSchemaRequest { /** - * Constructs a new RemoveKeyspaceCellResponse. + * Constructs a new GetVSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveKeyspaceCellResponse); + constructor(properties?: vtctldata.IGetVSchemaRequest); + + /** GetVSchemaRequest keyspace. */ + public keyspace: string; /** - * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. + * Creates a new GetVSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveKeyspaceCellResponse instance + * @returns GetVSchemaRequest instance */ - public static create(properties?: vtctldata.IRemoveKeyspaceCellResponse): vtctldata.RemoveKeyspaceCellResponse; + public static create(properties?: vtctldata.IGetVSchemaRequest): vtctldata.GetVSchemaRequest; /** - * 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 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.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetVSchemaRequest, 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 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.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveKeyspaceCellResponse 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 RemoveKeyspaceCellResponse + * @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.RemoveKeyspaceCellResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaRequest; /** - * Decodes a RemoveKeyspaceCellResponse 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 RemoveKeyspaceCellResponse + * @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.RemoveKeyspaceCellResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaRequest; /** - * Verifies a RemoveKeyspaceCellResponse 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 a RemoveKeyspaceCellResponse 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 RemoveKeyspaceCellResponse + * @returns GetVSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaRequest; /** - * 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 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.RemoveKeyspaceCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveKeyspaceCellResponse to JSON. + * Converts this GetVSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** 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); + /** Properties of a GetVSchemaResponse. */ + interface IGetVSchemaResponse { - /** RemoveShardCellRequest recursive */ - recursive?: (boolean|null); + /** GetVSchemaResponse v_schema */ + v_schema?: (vschema.IKeyspace|null); } - /** Represents a RemoveShardCellRequest. */ - class RemoveShardCellRequest implements IRemoveShardCellRequest { + /** Represents a GetVSchemaResponse. */ + class GetVSchemaResponse implements IGetVSchemaResponse { /** - * Constructs a new RemoveShardCellRequest. + * Constructs a new GetVSchemaResponse. * @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; + constructor(properties?: vtctldata.IGetVSchemaResponse); - /** RemoveShardCellRequest recursive. */ - public recursive: boolean; + /** GetVSchemaResponse v_schema. */ + public v_schema?: (vschema.IKeyspace|null); /** - * Creates a new RemoveShardCellRequest instance using the specified properties. + * Creates a new GetVSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveShardCellRequest instance + * @returns GetVSchemaResponse instance */ - public static create(properties?: vtctldata.IRemoveShardCellRequest): vtctldata.RemoveShardCellRequest; + public static create(properties?: vtctldata.IGetVSchemaResponse): vtctldata.GetVSchemaResponse; /** - * 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 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.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetVSchemaResponse, 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 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.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveShardCellRequest 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 RemoveShardCellRequest + * @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.RemoveShardCellRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaResponse; /** - * Decodes a RemoveShardCellRequest 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 RemoveShardCellRequest + * @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.RemoveShardCellRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaResponse; /** - * Verifies a RemoveShardCellRequest 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 RemoveShardCellRequest 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 RemoveShardCellRequest + * @returns GetVSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaResponse; /** - * 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 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.RemoveShardCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveShardCellRequest to JSON. + * Converts this GetVSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RemoveShardCellResponse. */ - interface IRemoveShardCellResponse { + /** Properties of a GetWorkflowsRequest. */ + interface IGetWorkflowsRequest { + + /** GetWorkflowsRequest keyspace */ + keyspace?: (string|null); + + /** GetWorkflowsRequest active_only */ + active_only?: (boolean|null); } - /** Represents a RemoveShardCellResponse. */ - class RemoveShardCellResponse implements IRemoveShardCellResponse { + /** Represents a GetWorkflowsRequest. */ + class GetWorkflowsRequest implements IGetWorkflowsRequest { /** - * Constructs a new RemoveShardCellResponse. + * Constructs a new GetWorkflowsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveShardCellResponse); + constructor(properties?: vtctldata.IGetWorkflowsRequest); + + /** GetWorkflowsRequest keyspace. */ + public keyspace: string; + + /** GetWorkflowsRequest active_only. */ + public active_only: boolean; /** - * Creates a new RemoveShardCellResponse instance using the specified properties. + * Creates a new GetWorkflowsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveShardCellResponse instance + * @returns GetWorkflowsRequest instance */ - public static create(properties?: vtctldata.IRemoveShardCellResponse): vtctldata.RemoveShardCellResponse; + public static create(properties?: vtctldata.IGetWorkflowsRequest): vtctldata.GetWorkflowsRequest; /** - * 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 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.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetWorkflowsRequest, 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 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.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveShardCellResponse 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 RemoveShardCellResponse + * @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.RemoveShardCellResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsRequest; /** - * Decodes a RemoveShardCellResponse 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 RemoveShardCellResponse + * @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.RemoveShardCellResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsRequest; /** - * Verifies a RemoveShardCellResponse 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 RemoveShardCellResponse 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 RemoveShardCellResponse + * @returns GetWorkflowsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsRequest; /** - * 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 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.RemoveShardCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveShardCellResponse to JSON. + * Converts this GetWorkflowsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReparentTabletRequest. */ - interface IReparentTabletRequest { + /** Properties of a GetWorkflowsResponse. */ + interface IGetWorkflowsResponse { - /** ReparentTabletRequest tablet */ - tablet?: (topodata.ITabletAlias|null); + /** GetWorkflowsResponse workflows */ + workflows?: (vtctldata.IWorkflow[]|null); } - /** Represents a ReparentTabletRequest. */ - class ReparentTabletRequest implements IReparentTabletRequest { + /** Represents a GetWorkflowsResponse. */ + class GetWorkflowsResponse implements IGetWorkflowsResponse { /** - * Constructs a new ReparentTabletRequest. + * Constructs a new GetWorkflowsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IReparentTabletRequest); + constructor(properties?: vtctldata.IGetWorkflowsResponse); - /** ReparentTabletRequest tablet. */ - public tablet?: (topodata.ITabletAlias|null); + /** GetWorkflowsResponse workflows. */ + public workflows: vtctldata.IWorkflow[]; /** - * Creates a new ReparentTabletRequest instance using the specified properties. + * Creates a new GetWorkflowsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReparentTabletRequest instance + * @returns GetWorkflowsResponse instance */ - public static create(properties?: vtctldata.IReparentTabletRequest): vtctldata.ReparentTabletRequest; + public static create(properties?: vtctldata.IGetWorkflowsResponse): vtctldata.GetWorkflowsResponse; /** - * 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 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.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetWorkflowsResponse, 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 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.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReparentTabletRequest 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 ReparentTabletRequest + * @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.ReparentTabletRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsResponse; /** - * Decodes a ReparentTabletRequest 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 ReparentTabletRequest + * @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.ReparentTabletRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsResponse; /** - * Verifies a ReparentTabletRequest 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 ReparentTabletRequest 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 ReparentTabletRequest + * @returns GetWorkflowsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsResponse; /** - * 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 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.ReparentTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReparentTabletRequest to JSON. + * Converts this GetWorkflowsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReparentTabletResponse. */ - interface IReparentTabletResponse { + /** Properties of an InitShardPrimaryRequest. */ + interface IInitShardPrimaryRequest { - /** ReparentTabletResponse keyspace */ + /** InitShardPrimaryRequest keyspace */ keyspace?: (string|null); - /** ReparentTabletResponse shard */ + /** InitShardPrimaryRequest shard */ shard?: (string|null); - /** ReparentTabletResponse primary */ - primary?: (topodata.ITabletAlias|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 ReparentTabletResponse. */ - class ReparentTabletResponse implements IReparentTabletResponse { + /** Represents an InitShardPrimaryRequest. */ + class InitShardPrimaryRequest implements IInitShardPrimaryRequest { /** - * Constructs a new ReparentTabletResponse. + * Constructs a new InitShardPrimaryRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IReparentTabletResponse); + constructor(properties?: vtctldata.IInitShardPrimaryRequest); - /** ReparentTabletResponse keyspace. */ + /** InitShardPrimaryRequest keyspace. */ public keyspace: string; - /** ReparentTabletResponse shard. */ + /** InitShardPrimaryRequest shard. */ public shard: string; - /** ReparentTabletResponse primary. */ - public primary?: (topodata.ITabletAlias|null); + /** 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 ReparentTabletResponse instance using the specified properties. + * Creates a new InitShardPrimaryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReparentTabletResponse instance + * @returns InitShardPrimaryRequest instance */ - public static create(properties?: vtctldata.IReparentTabletResponse): vtctldata.ReparentTabletResponse; + public static create(properties?: vtctldata.IInitShardPrimaryRequest): vtctldata.InitShardPrimaryRequest; /** - * 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 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.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IInitShardPrimaryRequest, 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 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.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReparentTabletResponse 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 ReparentTabletResponse + * @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.ReparentTabletResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryRequest; /** - * Decodes a ReparentTabletResponse 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 ReparentTabletResponse + * @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.ReparentTabletResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryRequest; /** - * Verifies a ReparentTabletResponse 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 ReparentTabletResponse 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 ReparentTabletResponse + * @returns InitShardPrimaryRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryRequest; /** - * Creates a plain object from a ReparentTabletResponse message. Also converts values to other types if specified. - * @param message ReparentTabletResponse + * 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.ReparentTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.InitShardPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReparentTabletResponse to JSON. + * Converts this InitShardPrimaryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TabletExternallyReparentedRequest. */ - interface ITabletExternallyReparentedRequest { + /** Properties of an InitShardPrimaryResponse. */ + interface IInitShardPrimaryResponse { - /** TabletExternallyReparentedRequest tablet */ - tablet?: (topodata.ITabletAlias|null); + /** InitShardPrimaryResponse events */ + events?: (logutil.IEvent[]|null); } - /** Represents a TabletExternallyReparentedRequest. */ - class TabletExternallyReparentedRequest implements ITabletExternallyReparentedRequest { + /** Represents an InitShardPrimaryResponse. */ + class InitShardPrimaryResponse implements IInitShardPrimaryResponse { /** - * Constructs a new TabletExternallyReparentedRequest. + * Constructs a new InitShardPrimaryResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ITabletExternallyReparentedRequest); + constructor(properties?: vtctldata.IInitShardPrimaryResponse); - /** TabletExternallyReparentedRequest tablet. */ - public tablet?: (topodata.ITabletAlias|null); + /** InitShardPrimaryResponse events. */ + public events: logutil.IEvent[]; /** - * Creates a new TabletExternallyReparentedRequest instance using the specified properties. + * Creates a new InitShardPrimaryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TabletExternallyReparentedRequest instance + * @returns InitShardPrimaryResponse instance */ - public static create(properties?: vtctldata.ITabletExternallyReparentedRequest): vtctldata.TabletExternallyReparentedRequest; + public static create(properties?: vtctldata.IInitShardPrimaryResponse): vtctldata.InitShardPrimaryResponse; /** - * 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 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.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IInitShardPrimaryResponse, 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 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.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TabletExternallyReparentedRequest 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 TabletExternallyReparentedRequest + * @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.TabletExternallyReparentedRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryResponse; /** - * Decodes a TabletExternallyReparentedRequest 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 TabletExternallyReparentedRequest + * @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.TabletExternallyReparentedRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryResponse; /** - * Verifies a TabletExternallyReparentedRequest 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 TabletExternallyReparentedRequest 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 TabletExternallyReparentedRequest + * @returns InitShardPrimaryResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryResponse; /** - * Creates a plain object from a TabletExternallyReparentedRequest message. Also converts values to other types if specified. - * @param message TabletExternallyReparentedRequest + * 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.TabletExternallyReparentedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.InitShardPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TabletExternallyReparentedRequest to JSON. + * Converts this InitShardPrimaryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TabletExternallyReparentedResponse. */ - interface ITabletExternallyReparentedResponse { + /** Properties of a PlannedReparentShardRequest. */ + interface IPlannedReparentShardRequest { - /** TabletExternallyReparentedResponse keyspace */ + /** PlannedReparentShardRequest keyspace */ keyspace?: (string|null); - /** TabletExternallyReparentedResponse shard */ + /** PlannedReparentShardRequest shard */ shard?: (string|null); - /** TabletExternallyReparentedResponse new_primary */ + /** PlannedReparentShardRequest new_primary */ new_primary?: (topodata.ITabletAlias|null); - /** TabletExternallyReparentedResponse old_primary */ - old_primary?: (topodata.ITabletAlias|null); + /** PlannedReparentShardRequest avoid_primary */ + avoid_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); } - /** Represents a TabletExternallyReparentedResponse. */ - class TabletExternallyReparentedResponse implements ITabletExternallyReparentedResponse { + /** Represents a PlannedReparentShardRequest. */ + class PlannedReparentShardRequest implements IPlannedReparentShardRequest { /** - * Constructs a new TabletExternallyReparentedResponse. + * Constructs a new PlannedReparentShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ITabletExternallyReparentedResponse); + constructor(properties?: vtctldata.IPlannedReparentShardRequest); - /** TabletExternallyReparentedResponse keyspace. */ + /** PlannedReparentShardRequest keyspace. */ public keyspace: string; - /** TabletExternallyReparentedResponse shard. */ + /** PlannedReparentShardRequest shard. */ public shard: string; - /** TabletExternallyReparentedResponse new_primary. */ + /** PlannedReparentShardRequest new_primary. */ public new_primary?: (topodata.ITabletAlias|null); - /** TabletExternallyReparentedResponse old_primary. */ - public old_primary?: (topodata.ITabletAlias|null); + /** PlannedReparentShardRequest avoid_primary. */ + public avoid_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); /** - * Creates a new TabletExternallyReparentedResponse instance using the specified properties. + * Creates a new PlannedReparentShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TabletExternallyReparentedResponse instance + * @returns PlannedReparentShardRequest instance */ - public static create(properties?: vtctldata.ITabletExternallyReparentedResponse): vtctldata.TabletExternallyReparentedResponse; + public static create(properties?: vtctldata.IPlannedReparentShardRequest): vtctldata.PlannedReparentShardRequest; /** - * 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 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.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IPlannedReparentShardRequest, 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 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.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TabletExternallyReparentedResponse 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 TabletExternallyReparentedResponse + * @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.TabletExternallyReparentedResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardRequest; /** - * Decodes a TabletExternallyReparentedResponse 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 TabletExternallyReparentedResponse + * @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.TabletExternallyReparentedResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardRequest; /** - * Verifies a TabletExternallyReparentedResponse 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 TabletExternallyReparentedResponse 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 TabletExternallyReparentedResponse + * @returns PlannedReparentShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardRequest; /** - * 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 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.TabletExternallyReparentedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.PlannedReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TabletExternallyReparentedResponse to JSON. + * Converts this PlannedReparentShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } -} -/** Namespace binlogdata. */ -export namespace binlogdata { + /** Properties of a PlannedReparentShardResponse. */ + interface IPlannedReparentShardResponse { - /** Properties of a Charset. */ - interface ICharset { + /** PlannedReparentShardResponse keyspace */ + keyspace?: (string|null); - /** Charset client */ - client?: (number|null); + /** PlannedReparentShardResponse shard */ + shard?: (string|null); - /** Charset conn */ - conn?: (number|null); + /** PlannedReparentShardResponse promoted_primary */ + promoted_primary?: (topodata.ITabletAlias|null); - /** Charset server */ - server?: (number|null); + /** PlannedReparentShardResponse events */ + events?: (logutil.IEvent[]|null); } - /** Represents a Charset. */ - class Charset implements ICharset { + /** Represents a PlannedReparentShardResponse. */ + class PlannedReparentShardResponse implements IPlannedReparentShardResponse { /** - * Constructs a new Charset. + * Constructs a new PlannedReparentShardResponse. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.ICharset); + constructor(properties?: vtctldata.IPlannedReparentShardResponse); - /** Charset client. */ - public client: number; + /** PlannedReparentShardResponse keyspace. */ + public keyspace: string; - /** Charset conn. */ - public conn: number; + /** PlannedReparentShardResponse shard. */ + public shard: string; - /** Charset server. */ - public server: number; + /** PlannedReparentShardResponse promoted_primary. */ + public promoted_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardResponse events. */ + public events: logutil.IEvent[]; /** - * Creates a new Charset instance using the specified properties. + * Creates a new PlannedReparentShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Charset instance + * @returns PlannedReparentShardResponse instance */ - public static create(properties?: binlogdata.ICharset): binlogdata.Charset; + public static create(properties?: vtctldata.IPlannedReparentShardResponse): vtctldata.PlannedReparentShardResponse; /** - * Encodes the specified Charset message. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. - * @param message Charset 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: binlogdata.ICharset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IPlannedReparentShardResponse, 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 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: binlogdata.ICharset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Charset 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 Charset + * @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): binlogdata.Charset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardResponse; /** - * Decodes a Charset 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 Charset + * @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)): binlogdata.Charset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardResponse; /** - * Verifies a Charset 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 Charset 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 Charset + * @returns PlannedReparentShardResponse */ - public static fromObject(object: { [k: string]: any }): binlogdata.Charset; + public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardResponse; /** - * 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 PlannedReparentShardResponse message. Also converts values to other types if specified. + * @param message PlannedReparentShardResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.Charset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.PlannedReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Charset to JSON. + * Converts this PlannedReparentShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BinlogTransaction. */ - interface IBinlogTransaction { + /** Properties of a RemoveKeyspaceCellRequest. */ + interface IRemoveKeyspaceCellRequest { - /** BinlogTransaction statements */ - statements?: (binlogdata.BinlogTransaction.IStatement[]|null); + /** RemoveKeyspaceCellRequest keyspace */ + keyspace?: (string|null); - /** BinlogTransaction event_token */ - event_token?: (query.IEventToken|null); + /** RemoveKeyspaceCellRequest cell */ + cell?: (string|null); + + /** RemoveKeyspaceCellRequest force */ + force?: (boolean|null); + + /** RemoveKeyspaceCellRequest recursive */ + recursive?: (boolean|null); } - /** Represents a BinlogTransaction. */ - class BinlogTransaction implements IBinlogTransaction { + /** Represents a RemoveKeyspaceCellRequest. */ + class RemoveKeyspaceCellRequest implements IRemoveKeyspaceCellRequest { /** - * Constructs a new BinlogTransaction. + * Constructs a new RemoveKeyspaceCellRequest. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IBinlogTransaction); + constructor(properties?: vtctldata.IRemoveKeyspaceCellRequest); - /** BinlogTransaction statements. */ - public statements: binlogdata.BinlogTransaction.IStatement[]; + /** RemoveKeyspaceCellRequest keyspace. */ + public keyspace: string; - /** BinlogTransaction event_token. */ - public event_token?: (query.IEventToken|null); + /** RemoveKeyspaceCellRequest cell. */ + public cell: string; + + /** RemoveKeyspaceCellRequest force. */ + public force: boolean; + + /** RemoveKeyspaceCellRequest recursive. */ + public recursive: boolean; /** - * Creates a new BinlogTransaction instance using the specified properties. + * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BinlogTransaction instance + * @returns RemoveKeyspaceCellRequest instance */ - public static create(properties?: binlogdata.IBinlogTransaction): binlogdata.BinlogTransaction; + public static create(properties?: vtctldata.IRemoveKeyspaceCellRequest): vtctldata.RemoveKeyspaceCellRequest; /** - * 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 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: binlogdata.IBinlogTransaction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveKeyspaceCellRequest, 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 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: binlogdata.IBinlogTransaction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BinlogTransaction 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 BinlogTransaction + * @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): binlogdata.BinlogTransaction; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellRequest; /** - * Decodes a BinlogTransaction 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 BinlogTransaction + * @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)): binlogdata.BinlogTransaction; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellRequest; /** - * Verifies a BinlogTransaction 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 BinlogTransaction 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 BinlogTransaction + * @returns RemoveKeyspaceCellRequest */ - public static fromObject(object: { [k: string]: any }): binlogdata.BinlogTransaction; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellRequest; /** - * 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 RemoveKeyspaceCellRequest message. Also converts values to other types if specified. + * @param message RemoveKeyspaceCellRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.BinlogTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveKeyspaceCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BinlogTransaction to JSON. + * Converts this RemoveKeyspaceCellRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace BinlogTransaction { - - /** Properties of a Statement. */ - interface IStatement { - - /** Statement category */ - category?: (binlogdata.BinlogTransaction.Statement.Category|null); - - /** Statement charset */ - charset?: (binlogdata.ICharset|null); - - /** Statement sql */ - sql?: (Uint8Array|null); - } - - /** Represents a Statement. */ - class Statement implements IStatement { - - /** - * Constructs a new Statement. - * @param [properties] Properties to set - */ - constructor(properties?: binlogdata.BinlogTransaction.IStatement); - - /** 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 }; - } - - 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); + /** Properties of a RemoveKeyspaceCellResponse. */ + interface IRemoveKeyspaceCellResponse { } - /** Represents a StreamKeyRangeRequest. */ - class StreamKeyRangeRequest implements IStreamKeyRangeRequest { + /** Represents a RemoveKeyspaceCellResponse. */ + class RemoveKeyspaceCellResponse implements IRemoveKeyspaceCellResponse { /** - * Constructs a new StreamKeyRangeRequest. + * Constructs a new RemoveKeyspaceCellResponse. * @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); + constructor(properties?: vtctldata.IRemoveKeyspaceCellResponse); /** - * Creates a new StreamKeyRangeRequest instance using the specified properties. + * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StreamKeyRangeRequest instance + * @returns RemoveKeyspaceCellResponse instance */ - public static create(properties?: binlogdata.IStreamKeyRangeRequest): binlogdata.StreamKeyRangeRequest; + public static create(properties?: vtctldata.IRemoveKeyspaceCellResponse): vtctldata.RemoveKeyspaceCellResponse; /** - * Encodes the specified StreamKeyRangeRequest message. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. - * @param message StreamKeyRangeRequest 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: binlogdata.IStreamKeyRangeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveKeyspaceCellResponse, 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 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: binlogdata.IStreamKeyRangeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamKeyRangeRequest 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 StreamKeyRangeRequest + * @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): binlogdata.StreamKeyRangeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellResponse; /** - * Decodes a StreamKeyRangeRequest 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 StreamKeyRangeRequest + * @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)): binlogdata.StreamKeyRangeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellResponse; /** - * Verifies a StreamKeyRangeRequest 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 StreamKeyRangeRequest 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 StreamKeyRangeRequest + * @returns RemoveKeyspaceCellResponse */ - public static fromObject(object: { [k: string]: any }): binlogdata.StreamKeyRangeRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellResponse; /** - * 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 RemoveKeyspaceCellResponse message. Also converts values to other types if specified. + * @param message RemoveKeyspaceCellResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.StreamKeyRangeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveKeyspaceCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamKeyRangeRequest to JSON. + * Converts this RemoveKeyspaceCellResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StreamKeyRangeResponse. */ - interface IStreamKeyRangeResponse { + /** Properties of a RemoveShardCellRequest. */ + interface IRemoveShardCellRequest { - /** StreamKeyRangeResponse binlog_transaction */ - binlog_transaction?: (binlogdata.IBinlogTransaction|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 StreamKeyRangeResponse. */ - class StreamKeyRangeResponse implements IStreamKeyRangeResponse { + /** Represents a RemoveShardCellRequest. */ + class RemoveShardCellRequest implements IRemoveShardCellRequest { /** - * Constructs a new StreamKeyRangeResponse. + * Constructs a new RemoveShardCellRequest. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IStreamKeyRangeResponse); + 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; - /** StreamKeyRangeResponse binlog_transaction. */ - public binlog_transaction?: (binlogdata.IBinlogTransaction|null); + /** RemoveShardCellRequest recursive. */ + public recursive: boolean; /** - * Creates a new StreamKeyRangeResponse instance using the specified properties. + * Creates a new RemoveShardCellRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StreamKeyRangeResponse instance + * @returns RemoveShardCellRequest instance */ - public static create(properties?: binlogdata.IStreamKeyRangeResponse): binlogdata.StreamKeyRangeResponse; + public static create(properties?: vtctldata.IRemoveShardCellRequest): vtctldata.RemoveShardCellRequest; /** - * 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 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: binlogdata.IStreamKeyRangeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveShardCellRequest, 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 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: binlogdata.IStreamKeyRangeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamKeyRangeResponse 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 StreamKeyRangeResponse + * @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): binlogdata.StreamKeyRangeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellRequest; /** - * Decodes a StreamKeyRangeResponse 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 StreamKeyRangeResponse + * @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)): binlogdata.StreamKeyRangeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellRequest; /** - * Verifies a StreamKeyRangeResponse 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 StreamKeyRangeResponse 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 StreamKeyRangeResponse + * @returns RemoveShardCellRequest */ - public static fromObject(object: { [k: string]: any }): binlogdata.StreamKeyRangeResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellRequest; /** - * 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 RemoveShardCellRequest message. Also converts values to other types if specified. + * @param message RemoveShardCellRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.StreamKeyRangeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveShardCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamKeyRangeResponse to JSON. + * Converts this RemoveShardCellRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StreamTablesRequest. */ - interface IStreamTablesRequest { - - /** StreamTablesRequest position */ - position?: (string|null); - - /** StreamTablesRequest tables */ - tables?: (string[]|null); - - /** StreamTablesRequest charset */ - charset?: (binlogdata.ICharset|null); + /** Properties of a RemoveShardCellResponse. */ + interface IRemoveShardCellResponse { } - /** Represents a StreamTablesRequest. */ - class StreamTablesRequest implements IStreamTablesRequest { + /** Represents a RemoveShardCellResponse. */ + class RemoveShardCellResponse implements IRemoveShardCellResponse { /** - * Constructs a new StreamTablesRequest. + * Constructs a new RemoveShardCellResponse. * @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); + constructor(properties?: vtctldata.IRemoveShardCellResponse); /** - * Creates a new StreamTablesRequest instance using the specified properties. + * Creates a new RemoveShardCellResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StreamTablesRequest instance + * @returns RemoveShardCellResponse instance */ - public static create(properties?: binlogdata.IStreamTablesRequest): binlogdata.StreamTablesRequest; + public static create(properties?: vtctldata.IRemoveShardCellResponse): vtctldata.RemoveShardCellResponse; /** - * 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 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: binlogdata.IStreamTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveShardCellResponse, 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 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: binlogdata.IStreamTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamTablesRequest 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 StreamTablesRequest + * @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): binlogdata.StreamTablesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellResponse; /** - * Decodes a StreamTablesRequest 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 StreamTablesRequest + * @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)): binlogdata.StreamTablesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellResponse; /** - * Verifies a StreamTablesRequest 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 StreamTablesRequest 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 StreamTablesRequest + * @returns RemoveShardCellResponse */ - public static fromObject(object: { [k: string]: any }): binlogdata.StreamTablesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellResponse; /** - * 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 RemoveShardCellResponse message. Also converts values to other types if specified. + * @param message RemoveShardCellResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.StreamTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveShardCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamTablesRequest to JSON. + * Converts this RemoveShardCellResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StreamTablesResponse. */ - interface IStreamTablesResponse { + /** Properties of a ReparentTabletRequest. */ + interface IReparentTabletRequest { - /** StreamTablesResponse binlog_transaction */ - binlog_transaction?: (binlogdata.IBinlogTransaction|null); + /** ReparentTabletRequest tablet */ + tablet?: (topodata.ITabletAlias|null); } - /** Represents a StreamTablesResponse. */ - class StreamTablesResponse implements IStreamTablesResponse { + /** Represents a ReparentTabletRequest. */ + class ReparentTabletRequest implements IReparentTabletRequest { /** - * Constructs a new StreamTablesResponse. + * Constructs a new ReparentTabletRequest. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IStreamTablesResponse); + constructor(properties?: vtctldata.IReparentTabletRequest); - /** StreamTablesResponse binlog_transaction. */ - public binlog_transaction?: (binlogdata.IBinlogTransaction|null); + /** ReparentTabletRequest tablet. */ + public tablet?: (topodata.ITabletAlias|null); /** - * Creates a new StreamTablesResponse instance using the specified properties. + * Creates a new ReparentTabletRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StreamTablesResponse instance + * @returns ReparentTabletRequest instance */ - public static create(properties?: binlogdata.IStreamTablesResponse): binlogdata.StreamTablesResponse; + public static create(properties?: vtctldata.IReparentTabletRequest): vtctldata.ReparentTabletRequest; /** - * 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 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: binlogdata.IStreamTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReparentTabletRequest, 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 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: binlogdata.IStreamTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamTablesResponse 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 StreamTablesResponse + * @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): binlogdata.StreamTablesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletRequest; /** - * Decodes a StreamTablesResponse 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 StreamTablesResponse + * @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)): binlogdata.StreamTablesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletRequest; /** - * Verifies a StreamTablesResponse 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 StreamTablesResponse 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 StreamTablesResponse + * @returns ReparentTabletRequest */ - public static fromObject(object: { [k: string]: any }): binlogdata.StreamTablesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletRequest; /** - * 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 ReparentTabletRequest message. Also converts values to other types if specified. + * @param message ReparentTabletRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.StreamTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReparentTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamTablesResponse to JSON. + * Converts this ReparentTabletRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Rule. */ - interface IRule { + /** Properties of a ReparentTabletResponse. */ + interface IReparentTabletResponse { - /** Rule match */ - match?: (string|null); + /** ReparentTabletResponse keyspace */ + keyspace?: (string|null); - /** Rule filter */ - filter?: (string|null); + /** ReparentTabletResponse shard */ + shard?: (string|null); + + /** ReparentTabletResponse primary */ + primary?: (topodata.ITabletAlias|null); } - /** Represents a Rule. */ - class Rule implements IRule { + /** Represents a ReparentTabletResponse. */ + class ReparentTabletResponse implements IReparentTabletResponse { /** - * Constructs a new Rule. + * Constructs a new ReparentTabletResponse. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IRule); + constructor(properties?: vtctldata.IReparentTabletResponse); - /** Rule match. */ - public match: string; + /** ReparentTabletResponse keyspace. */ + public keyspace: string; - /** Rule filter. */ - public filter: string; + /** ReparentTabletResponse shard. */ + public shard: string; + + /** ReparentTabletResponse primary. */ + public primary?: (topodata.ITabletAlias|null); /** - * Creates a new Rule instance using the specified properties. + * Creates a new ReparentTabletResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Rule instance + * @returns ReparentTabletResponse instance */ - public static create(properties?: binlogdata.IRule): binlogdata.Rule; + public static create(properties?: vtctldata.IReparentTabletResponse): vtctldata.ReparentTabletResponse; /** - * 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 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: binlogdata.IRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReparentTabletResponse, 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 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: binlogdata.IRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Rule 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 Rule + * @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): binlogdata.Rule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletResponse; /** - * Decodes a Rule 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 Rule + * @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)): binlogdata.Rule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletResponse; /** - * Verifies a Rule 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 Rule 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 Rule + * @returns ReparentTabletResponse */ - public static fromObject(object: { [k: string]: any }): binlogdata.Rule; + public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletResponse; /** - * 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 ReparentTabletResponse message. Also converts values to other types if specified. + * @param message ReparentTabletResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.Rule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReparentTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Rule to JSON. + * Converts this ReparentTabletResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Filter. */ - interface IFilter { - - /** Filter rules */ - rules?: (binlogdata.IRule[]|null); + /** Properties of a TabletExternallyReparentedRequest. */ + interface ITabletExternallyReparentedRequest { - /** Filter fieldEventMode */ - fieldEventMode?: (binlogdata.Filter.FieldEventMode|null); + /** TabletExternallyReparentedRequest tablet */ + tablet?: (topodata.ITabletAlias|null); } - /** Represents a Filter. */ - class Filter implements IFilter { + /** Represents a TabletExternallyReparentedRequest. */ + class TabletExternallyReparentedRequest implements ITabletExternallyReparentedRequest { /** - * Constructs a new Filter. + * Constructs a new TabletExternallyReparentedRequest. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IFilter); - - /** Filter rules. */ - public rules: binlogdata.IRule[]; + constructor(properties?: vtctldata.ITabletExternallyReparentedRequest); - /** Filter fieldEventMode. */ - public fieldEventMode: binlogdata.Filter.FieldEventMode; + /** TabletExternallyReparentedRequest tablet. */ + public tablet?: (topodata.ITabletAlias|null); /** - * Creates a new Filter instance using the specified properties. + * Creates a new TabletExternallyReparentedRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Filter instance + * @returns TabletExternallyReparentedRequest instance */ - public static create(properties?: binlogdata.IFilter): binlogdata.Filter; + public static create(properties?: vtctldata.ITabletExternallyReparentedRequest): vtctldata.TabletExternallyReparentedRequest; /** - * 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 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: binlogdata.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ITabletExternallyReparentedRequest, 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 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: binlogdata.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Filter 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 Filter + * @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): binlogdata.Filter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedRequest; /** - * Decodes a Filter 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 Filter + * @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)): binlogdata.Filter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedRequest; /** - * Verifies a Filter 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 Filter 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 Filter + * @returns TabletExternallyReparentedRequest */ - public static fromObject(object: { [k: string]: any }): binlogdata.Filter; + public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedRequest; /** - * 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 TabletExternallyReparentedRequest message. Also converts values to other types if specified. + * @param message TabletExternallyReparentedRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.Filter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.TabletExternallyReparentedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Filter to JSON. + * Converts this TabletExternallyReparentedRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - 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 - } - - /** Properties of a BinlogSource. */ - interface IBinlogSource { + /** Properties of a TabletExternallyReparentedResponse. */ + interface ITabletExternallyReparentedResponse { - /** BinlogSource keyspace */ + /** TabletExternallyReparentedResponse keyspace */ keyspace?: (string|null); - /** BinlogSource shard */ + /** TabletExternallyReparentedResponse shard */ shard?: (string|null); - /** BinlogSource tablet_type */ - tablet_type?: (topodata.TabletType|null); - - /** BinlogSource key_range */ - key_range?: (topodata.IKeyRange|null); - - /** BinlogSource tables */ - tables?: (string[]|null); - - /** BinlogSource filter */ - filter?: (binlogdata.IFilter|null); - - /** BinlogSource on_ddl */ - on_ddl?: (binlogdata.OnDDLAction|null); - - /** BinlogSource external_mysql */ - external_mysql?: (string|null); - - /** BinlogSource stop_after_copy */ - stop_after_copy?: (boolean|null); + /** TabletExternallyReparentedResponse new_primary */ + new_primary?: (topodata.ITabletAlias|null); - /** BinlogSource external_cluster */ - external_cluster?: (string|null); + /** TabletExternallyReparentedResponse old_primary */ + old_primary?: (topodata.ITabletAlias|null); } - /** Represents a BinlogSource. */ - class BinlogSource implements IBinlogSource { + /** Represents a TabletExternallyReparentedResponse. */ + class TabletExternallyReparentedResponse implements ITabletExternallyReparentedResponse { /** - * Constructs a new BinlogSource. + * Constructs a new TabletExternallyReparentedResponse. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IBinlogSource); + constructor(properties?: vtctldata.ITabletExternallyReparentedResponse); - /** BinlogSource keyspace. */ + /** TabletExternallyReparentedResponse keyspace. */ public keyspace: string; - /** BinlogSource shard. */ + /** TabletExternallyReparentedResponse shard. */ public shard: string; - /** BinlogSource tablet_type. */ - public tablet_type: topodata.TabletType; - - /** BinlogSource key_range. */ - public key_range?: (topodata.IKeyRange|null); - - /** BinlogSource tables. */ - public tables: string[]; - - /** BinlogSource filter. */ - public filter?: (binlogdata.IFilter|null); - - /** BinlogSource on_ddl. */ - public on_ddl: binlogdata.OnDDLAction; - - /** BinlogSource external_mysql. */ - public external_mysql: string; - - /** BinlogSource stop_after_copy. */ - public stop_after_copy: boolean; + /** TabletExternallyReparentedResponse new_primary. */ + public new_primary?: (topodata.ITabletAlias|null); - /** BinlogSource external_cluster. */ - public external_cluster: string; + /** TabletExternallyReparentedResponse old_primary. */ + public old_primary?: (topodata.ITabletAlias|null); /** - * Creates a new BinlogSource instance using the specified properties. + * Creates a new TabletExternallyReparentedResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BinlogSource instance + * @returns TabletExternallyReparentedResponse instance */ - public static create(properties?: binlogdata.IBinlogSource): binlogdata.BinlogSource; + public static create(properties?: vtctldata.ITabletExternallyReparentedResponse): vtctldata.TabletExternallyReparentedResponse; /** - * Encodes the specified BinlogSource message. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. - * @param message BinlogSource 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: binlogdata.IBinlogSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BinlogSource message, length delimited. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. - * @param message BinlogSource 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: binlogdata.IBinlogSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BinlogSource 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 BinlogSource + * @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): binlogdata.BinlogSource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedResponse; /** - * Decodes a BinlogSource 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 BinlogSource + * @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)): binlogdata.BinlogSource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedResponse; /** - * Verifies a BinlogSource 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 BinlogSource 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 BinlogSource + * @returns TabletExternallyReparentedResponse */ - public static fromObject(object: { [k: string]: any }): binlogdata.BinlogSource; + public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedResponse; /** - * Creates a plain object from a BinlogSource message. Also converts values to other types if specified. - * @param message BinlogSource + * 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: binlogdata.BinlogSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.TabletExternallyReparentedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BinlogSource to JSON. + * Converts this TabletExternallyReparentedResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } +} - /** VEventType enum. */ - enum VEventType { - UNKNOWN = 0, - GTID = 1, - BEGIN = 2, - COMMIT = 3, - ROLLBACK = 4, - DDL = 5, - INSERT = 6, - REPLACE = 7, - UPDATE = 8, - DELETE = 9, - SET = 10, - OTHER = 11, - ROW = 12, - FIELD = 13, - HEARTBEAT = 14, - VGTID = 15, - JOURNAL = 16, - VERSION = 17, - LASTPK = 18, - SAVEPOINT = 19 - } +/** Namespace binlogdata. */ +export namespace binlogdata { - /** Properties of a RowChange. */ - interface IRowChange { + /** Properties of a Charset. */ + interface ICharset { + + /** Charset client */ + client?: (number|null); - /** RowChange before */ - before?: (query.IRow|null); + /** Charset conn */ + conn?: (number|null); - /** RowChange after */ - after?: (query.IRow|null); + /** Charset server */ + server?: (number|null); } - /** Represents a RowChange. */ - class RowChange implements IRowChange { + /** Represents a Charset. */ + class Charset implements ICharset { /** - * Constructs a new RowChange. + * Constructs a new Charset. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IRowChange); + constructor(properties?: binlogdata.ICharset); - /** RowChange before. */ - public before?: (query.IRow|null); + /** Charset client. */ + public client: number; - /** RowChange after. */ - public after?: (query.IRow|null); + /** Charset conn. */ + public conn: number; + + /** Charset server. */ + public server: number; /** - * Creates a new RowChange instance using the specified properties. + * Creates a new Charset instance using the specified properties. * @param [properties] Properties to set - * @returns RowChange instance + * @returns Charset instance */ - public static create(properties?: binlogdata.IRowChange): binlogdata.RowChange; + public static create(properties?: binlogdata.ICharset): binlogdata.Charset; /** - * Encodes the specified RowChange message. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. - * @param message RowChange 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.IRowChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.ICharset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RowChange message, length delimited. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. - * @param message RowChange 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.IRowChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.ICharset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RowChange 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 RowChange + * @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.RowChange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.Charset; /** - * Decodes a RowChange 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 RowChange + * @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.RowChange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.Charset; /** - * Verifies a RowChange 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 RowChange 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 RowChange + * @returns Charset */ - public static fromObject(object: { [k: string]: any }): binlogdata.RowChange; + public static fromObject(object: { [k: string]: any }): binlogdata.Charset; /** - * Creates a plain object from a RowChange message. Also converts values to other types if specified. - * @param message RowChange + * 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.RowChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.Charset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RowChange to JSON. + * Converts this Charset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RowEvent. */ - interface IRowEvent { + /** Properties of a BinlogTransaction. */ + interface IBinlogTransaction { - /** RowEvent table_name */ - table_name?: (string|null); + /** BinlogTransaction statements */ + statements?: (binlogdata.BinlogTransaction.IStatement[]|null); - /** RowEvent row_changes */ - row_changes?: (binlogdata.IRowChange[]|null); + /** BinlogTransaction event_token */ + event_token?: (query.IEventToken|null); } - /** Represents a RowEvent. */ - class RowEvent implements IRowEvent { + /** Represents a BinlogTransaction. */ + class BinlogTransaction implements IBinlogTransaction { /** - * Constructs a new RowEvent. + * Constructs a new BinlogTransaction. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IRowEvent); + constructor(properties?: binlogdata.IBinlogTransaction); - /** RowEvent table_name. */ - public table_name: string; + /** BinlogTransaction statements. */ + public statements: binlogdata.BinlogTransaction.IStatement[]; - /** RowEvent row_changes. */ - public row_changes: binlogdata.IRowChange[]; + /** BinlogTransaction event_token. */ + public event_token?: (query.IEventToken|null); /** - * Creates a new RowEvent instance using the specified properties. + * Creates a new BinlogTransaction instance using the specified properties. * @param [properties] Properties to set - * @returns RowEvent instance + * @returns BinlogTransaction instance */ - public static create(properties?: binlogdata.IRowEvent): binlogdata.RowEvent; + public static create(properties?: binlogdata.IBinlogTransaction): binlogdata.BinlogTransaction; /** - * Encodes the specified RowEvent message. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. - * @param message RowEvent 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.IRowEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IBinlogTransaction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RowEvent message, length delimited. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. - * @param message RowEvent 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.IRowEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IBinlogTransaction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RowEvent 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 RowEvent + * @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.RowEvent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.BinlogTransaction; /** - * Decodes a RowEvent 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 RowEvent + * @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.RowEvent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.BinlogTransaction; /** - * Verifies a RowEvent 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 RowEvent 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 RowEvent + * @returns BinlogTransaction */ - public static fromObject(object: { [k: string]: any }): binlogdata.RowEvent; + public static fromObject(object: { [k: string]: any }): binlogdata.BinlogTransaction; /** - * Creates a plain object from a RowEvent message. Also converts values to other types if specified. - * @param message RowEvent + * 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.RowEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.BinlogTransaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BinlogTransaction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace BinlogTransaction { + + /** Properties of a Statement. */ + interface IStatement { + + /** Statement category */ + category?: (binlogdata.BinlogTransaction.Statement.Category|null); + + /** Statement charset */ + charset?: (binlogdata.ICharset|null); + + /** Statement sql */ + sql?: (Uint8Array|null); + } + + /** Represents a Statement. */ + class Statement implements IStatement { + + /** + * Constructs a new Statement. + * @param [properties] Properties to set + */ + constructor(properties?: binlogdata.BinlogTransaction.IStatement); + + /** 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 }; + } - /** - * Converts this RowEvent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + 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 FieldEvent. */ - interface IFieldEvent { + /** Properties of a StreamKeyRangeRequest. */ + interface IStreamKeyRangeRequest { - /** FieldEvent table_name */ - table_name?: (string|null); + /** StreamKeyRangeRequest position */ + position?: (string|null); - /** FieldEvent fields */ - fields?: (query.IField[]|null); + /** StreamKeyRangeRequest key_range */ + key_range?: (topodata.IKeyRange|null); + + /** StreamKeyRangeRequest charset */ + charset?: (binlogdata.ICharset|null); } - /** Represents a FieldEvent. */ - class FieldEvent implements IFieldEvent { + /** Represents a StreamKeyRangeRequest. */ + class StreamKeyRangeRequest implements IStreamKeyRangeRequest { /** - * Constructs a new FieldEvent. + * Constructs a new StreamKeyRangeRequest. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IFieldEvent); + constructor(properties?: binlogdata.IStreamKeyRangeRequest); - /** FieldEvent table_name. */ - public table_name: string; + /** StreamKeyRangeRequest position. */ + public position: string; - /** FieldEvent fields. */ - public fields: query.IField[]; + /** StreamKeyRangeRequest key_range. */ + public key_range?: (topodata.IKeyRange|null); + + /** StreamKeyRangeRequest charset. */ + public charset?: (binlogdata.ICharset|null); /** - * Creates a new FieldEvent instance using the specified properties. + * Creates a new StreamKeyRangeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FieldEvent instance + * @returns StreamKeyRangeRequest instance */ - public static create(properties?: binlogdata.IFieldEvent): binlogdata.FieldEvent; + public static create(properties?: binlogdata.IStreamKeyRangeRequest): binlogdata.StreamKeyRangeRequest; /** - * Encodes the specified FieldEvent message. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. - * @param message FieldEvent message or plain object to encode + * 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.IFieldEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IStreamKeyRangeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FieldEvent message, length delimited. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. - * @param message FieldEvent 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.IFieldEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IStreamKeyRangeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FieldEvent 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 FieldEvent + * @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.FieldEvent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamKeyRangeRequest; /** - * Decodes a FieldEvent 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 FieldEvent + * @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.FieldEvent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamKeyRangeRequest; /** - * Verifies a FieldEvent 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 FieldEvent 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 FieldEvent + * @returns StreamKeyRangeRequest */ - public static fromObject(object: { [k: string]: any }): binlogdata.FieldEvent; + public static fromObject(object: { [k: string]: any }): binlogdata.StreamKeyRangeRequest; /** - * Creates a plain object from a FieldEvent message. Also converts values to other types if specified. - * @param message FieldEvent + * 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.FieldEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.StreamKeyRangeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FieldEvent to JSON. + * Converts this StreamKeyRangeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ShardGtid. */ - interface IShardGtid { - - /** ShardGtid keyspace */ - keyspace?: (string|null); - - /** ShardGtid shard */ - shard?: (string|null); - - /** ShardGtid gtid */ - gtid?: (string|null); + /** Properties of a StreamKeyRangeResponse. */ + interface IStreamKeyRangeResponse { - /** ShardGtid table_p_ks */ - table_p_ks?: (binlogdata.ITableLastPK[]|null); + /** StreamKeyRangeResponse binlog_transaction */ + binlog_transaction?: (binlogdata.IBinlogTransaction|null); } - /** Represents a ShardGtid. */ - class ShardGtid implements IShardGtid { + /** Represents a StreamKeyRangeResponse. */ + class StreamKeyRangeResponse implements IStreamKeyRangeResponse { /** - * Constructs a new ShardGtid. + * Constructs a new StreamKeyRangeResponse. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IShardGtid); - - /** ShardGtid keyspace. */ - public keyspace: string; - - /** ShardGtid shard. */ - public shard: string; - - /** ShardGtid gtid. */ - public gtid: string; + constructor(properties?: binlogdata.IStreamKeyRangeResponse); - /** ShardGtid table_p_ks. */ - public table_p_ks: binlogdata.ITableLastPK[]; + /** StreamKeyRangeResponse binlog_transaction. */ + public binlog_transaction?: (binlogdata.IBinlogTransaction|null); /** - * Creates a new ShardGtid instance using the specified properties. + * Creates a new StreamKeyRangeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ShardGtid instance + * @returns StreamKeyRangeResponse instance */ - public static create(properties?: binlogdata.IShardGtid): binlogdata.ShardGtid; + public static create(properties?: binlogdata.IStreamKeyRangeResponse): binlogdata.StreamKeyRangeResponse; /** - * Encodes the specified ShardGtid message. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. - * @param message ShardGtid message or plain object to encode + * 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.IShardGtid, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IStreamKeyRangeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ShardGtid message, length delimited. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. - * @param message ShardGtid message or plain object to encode + * 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.IShardGtid, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IStreamKeyRangeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShardGtid message from the specified reader or buffer. + * 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 ShardGtid + * @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.ShardGtid; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamKeyRangeResponse; /** - * Decodes a ShardGtid message from the specified reader or buffer, length delimited. + * Decodes a StreamKeyRangeResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShardGtid + * @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.ShardGtid; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamKeyRangeResponse; /** - * Verifies a ShardGtid message. + * 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); /** - * Creates a ShardGtid 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. * @param object Plain object - * @returns ShardGtid + * @returns StreamKeyRangeResponse */ - public static fromObject(object: { [k: string]: any }): binlogdata.ShardGtid; + public static fromObject(object: { [k: string]: any }): binlogdata.StreamKeyRangeResponse; /** - * Creates a plain object from a ShardGtid message. Also converts values to other types if specified. - * @param message ShardGtid + * 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.ShardGtid, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.StreamKeyRangeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShardGtid to JSON. + * Converts this StreamKeyRangeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a VGtid. */ - interface IVGtid { + /** Properties of a StreamTablesRequest. */ + interface IStreamTablesRequest { - /** VGtid shard_gtids */ - shard_gtids?: (binlogdata.IShardGtid[]|null); + /** StreamTablesRequest position */ + position?: (string|null); + + /** StreamTablesRequest tables */ + tables?: (string[]|null); + + /** StreamTablesRequest charset */ + charset?: (binlogdata.ICharset|null); } - /** Represents a VGtid. */ - class VGtid implements IVGtid { + /** Represents a StreamTablesRequest. */ + class StreamTablesRequest implements IStreamTablesRequest { /** - * Constructs a new VGtid. + * Constructs a new StreamTablesRequest. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IVGtid); + constructor(properties?: binlogdata.IStreamTablesRequest); - /** VGtid shard_gtids. */ - public shard_gtids: binlogdata.IShardGtid[]; + /** StreamTablesRequest position. */ + public position: string; + + /** StreamTablesRequest tables. */ + public tables: string[]; + + /** StreamTablesRequest charset. */ + public charset?: (binlogdata.ICharset|null); /** - * Creates a new VGtid instance using the specified properties. + * Creates a new StreamTablesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VGtid instance + * @returns StreamTablesRequest instance */ - public static create(properties?: binlogdata.IVGtid): binlogdata.VGtid; + public static create(properties?: binlogdata.IStreamTablesRequest): binlogdata.StreamTablesRequest; /** - * Encodes the specified VGtid message. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. - * @param message VGtid 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.IVGtid, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IStreamTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VGtid message, length delimited. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. - * @param message VGtid 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.IVGtid, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IStreamTablesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VGtid 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 VGtid + * @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.VGtid; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamTablesRequest; /** - * Decodes a VGtid 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 VGtid + * @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.VGtid; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamTablesRequest; /** - * Verifies a VGtid 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 VGtid 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 VGtid + * @returns StreamTablesRequest */ - public static fromObject(object: { [k: string]: any }): binlogdata.VGtid; + public static fromObject(object: { [k: string]: any }): binlogdata.StreamTablesRequest; /** - * Creates a plain object from a VGtid message. Also converts values to other types if specified. - * @param message VGtid + * 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.VGtid, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.StreamTablesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VGtid to JSON. + * Converts this StreamTablesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a KeyspaceShard. */ - interface IKeyspaceShard { - - /** KeyspaceShard keyspace */ - keyspace?: (string|null); + /** Properties of a StreamTablesResponse. */ + interface IStreamTablesResponse { - /** KeyspaceShard shard */ - shard?: (string|null); + /** StreamTablesResponse binlog_transaction */ + binlog_transaction?: (binlogdata.IBinlogTransaction|null); } - /** Represents a KeyspaceShard. */ - class KeyspaceShard implements IKeyspaceShard { + /** Represents a StreamTablesResponse. */ + class StreamTablesResponse implements IStreamTablesResponse { /** - * Constructs a new KeyspaceShard. + * Constructs a new StreamTablesResponse. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IKeyspaceShard); - - /** KeyspaceShard keyspace. */ - public keyspace: string; + constructor(properties?: binlogdata.IStreamTablesResponse); - /** KeyspaceShard shard. */ - public shard: string; + /** StreamTablesResponse binlog_transaction. */ + public binlog_transaction?: (binlogdata.IBinlogTransaction|null); /** - * Creates a new KeyspaceShard instance using the specified properties. + * Creates a new StreamTablesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns KeyspaceShard instance + * @returns StreamTablesResponse instance */ - public static create(properties?: binlogdata.IKeyspaceShard): binlogdata.KeyspaceShard; + public static create(properties?: binlogdata.IStreamTablesResponse): binlogdata.StreamTablesResponse; /** - * Encodes the specified KeyspaceShard message. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. - * @param message KeyspaceShard 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.IKeyspaceShard, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IStreamTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified KeyspaceShard message, length delimited. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. - * @param message KeyspaceShard 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.IKeyspaceShard, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IStreamTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KeyspaceShard 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 KeyspaceShard + * @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.KeyspaceShard; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.StreamTablesResponse; /** - * Decodes a KeyspaceShard 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 KeyspaceShard + * @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.KeyspaceShard; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.StreamTablesResponse; /** - * Verifies a KeyspaceShard 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 KeyspaceShard 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 KeyspaceShard + * @returns StreamTablesResponse */ - public static fromObject(object: { [k: string]: any }): binlogdata.KeyspaceShard; + public static fromObject(object: { [k: string]: any }): binlogdata.StreamTablesResponse; /** - * Creates a plain object from a KeyspaceShard message. Also converts values to other types if specified. - * @param message KeyspaceShard + * 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.KeyspaceShard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.StreamTablesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KeyspaceShard to JSON. + * Converts this StreamTablesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** MigrationType enum. */ - enum MigrationType { - TABLES = 0, - SHARDS = 1 - } - - /** Properties of a Journal. */ - interface IJournal { - - /** Journal id */ - id?: (number|Long|null); - - /** Journal migration_type */ - migration_type?: (binlogdata.MigrationType|null); - - /** Journal tables */ - tables?: (string[]|null); - - /** Journal local_position */ - local_position?: (string|null); - - /** Journal shard_gtids */ - shard_gtids?: (binlogdata.IShardGtid[]|null); + /** Properties of a Rule. */ + interface IRule { - /** Journal participants */ - participants?: (binlogdata.IKeyspaceShard[]|null); + /** Rule match */ + match?: (string|null); - /** Journal source_workflows */ - source_workflows?: (string[]|null); + /** Rule filter */ + filter?: (string|null); } - /** Represents a Journal. */ - class Journal implements IJournal { + /** Represents a Rule. */ + class Rule implements IRule { /** - * Constructs a new Journal. + * Constructs a new Rule. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IJournal); - - /** Journal id. */ - public id: (number|Long); - - /** Journal migration_type. */ - public migration_type: binlogdata.MigrationType; - - /** Journal tables. */ - public tables: string[]; - - /** Journal local_position. */ - public local_position: string; - - /** Journal shard_gtids. */ - public shard_gtids: binlogdata.IShardGtid[]; + constructor(properties?: binlogdata.IRule); - /** Journal participants. */ - public participants: binlogdata.IKeyspaceShard[]; + /** Rule match. */ + public match: string; - /** Journal source_workflows. */ - public source_workflows: string[]; + /** Rule filter. */ + public filter: string; /** - * Creates a new Journal instance using the specified properties. + * Creates a new Rule instance using the specified properties. * @param [properties] Properties to set - * @returns Journal instance + * @returns Rule instance */ - public static create(properties?: binlogdata.IJournal): binlogdata.Journal; + public static create(properties?: binlogdata.IRule): binlogdata.Rule; /** - * Encodes the specified Journal message. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. - * @param message Journal message or plain object to encode + * 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.IJournal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Journal message, length delimited. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. - * @param message Journal message or plain object to encode + * 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.IJournal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Journal message from the specified reader or buffer. + * 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 Journal + * @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.Journal; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.Rule; /** - * Decodes a Journal message from the specified reader or buffer, length delimited. + * Decodes a Rule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Journal + * @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.Journal; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.Rule; /** - * Verifies a Journal message. + * 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 Journal 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. * @param object Plain object - * @returns Journal + * @returns Rule */ - public static fromObject(object: { [k: string]: any }): binlogdata.Journal; + public static fromObject(object: { [k: string]: any }): binlogdata.Rule; /** - * Creates a plain object from a Journal message. Also converts values to other types if specified. - * @param message Journal + * 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.Journal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.Rule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Journal to JSON. + * Converts this Rule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a VEvent. */ - interface IVEvent { - - /** VEvent type */ - type?: (binlogdata.VEventType|null); - - /** VEvent timestamp */ - timestamp?: (number|Long|null); - - /** VEvent gtid */ - gtid?: (string|null); - - /** VEvent statement */ - statement?: (string|null); - - /** VEvent row_event */ - row_event?: (binlogdata.IRowEvent|null); - - /** VEvent field_event */ - field_event?: (binlogdata.IFieldEvent|null); - - /** VEvent vgtid */ - vgtid?: (binlogdata.IVGtid|null); - - /** VEvent journal */ - journal?: (binlogdata.IJournal|null); - - /** VEvent dml */ - dml?: (string|null); - - /** VEvent current_time */ - current_time?: (number|Long|null); - - /** VEvent last_p_k_event */ - last_p_k_event?: (binlogdata.ILastPKEvent|null); - } - - /** Represents a VEvent. */ - class VEvent implements IVEvent { - - /** - * Constructs a new VEvent. - * @param [properties] Properties to set - */ - constructor(properties?: binlogdata.IVEvent); - - /** VEvent type. */ - public type: binlogdata.VEventType; - - /** VEvent timestamp. */ - public timestamp: (number|Long); - - /** VEvent gtid. */ - public gtid: string; - - /** VEvent statement. */ - public statement: string; - - /** VEvent row_event. */ - public row_event?: (binlogdata.IRowEvent|null); + /** Properties of a Filter. */ + interface IFilter { - /** VEvent field_event. */ - public field_event?: (binlogdata.IFieldEvent|null); + /** Filter rules */ + rules?: (binlogdata.IRule[]|null); - /** VEvent vgtid. */ - public vgtid?: (binlogdata.IVGtid|null); + /** Filter fieldEventMode */ + fieldEventMode?: (binlogdata.Filter.FieldEventMode|null); + } - /** VEvent journal. */ - public journal?: (binlogdata.IJournal|null); + /** Represents a Filter. */ + class Filter implements IFilter { - /** VEvent dml. */ - public dml: string; + /** + * Constructs a new Filter. + * @param [properties] Properties to set + */ + constructor(properties?: binlogdata.IFilter); - /** VEvent current_time. */ - public current_time: (number|Long); + /** Filter rules. */ + public rules: binlogdata.IRule[]; - /** VEvent last_p_k_event. */ - public last_p_k_event?: (binlogdata.ILastPKEvent|null); + /** Filter fieldEventMode. */ + public fieldEventMode: binlogdata.Filter.FieldEventMode; /** - * Creates a new VEvent instance using the specified properties. + * Creates a new Filter instance using the specified properties. * @param [properties] Properties to set - * @returns VEvent instance + * @returns Filter instance */ - public static create(properties?: binlogdata.IVEvent): binlogdata.VEvent; + public static create(properties?: binlogdata.IFilter): binlogdata.Filter; /** - * Encodes the specified VEvent message. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. - * @param message VEvent message or plain object to encode + * 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.IVEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VEvent message, length delimited. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. - * @param message VEvent message or plain object to encode + * 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.IVEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VEvent message from the specified reader or buffer. + * 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 VEvent + * @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.VEvent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.Filter; /** - * Decodes a VEvent message from the specified reader or buffer, length delimited. + * Decodes a Filter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VEvent + * @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.VEvent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.Filter; /** - * Verifies a VEvent message. + * 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 VEvent 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. * @param object Plain object - * @returns VEvent + * @returns Filter */ - public static fromObject(object: { [k: string]: any }): binlogdata.VEvent; + public static fromObject(object: { [k: string]: any }): binlogdata.Filter; /** - * Creates a plain object from a VEvent message. Also converts values to other types if specified. - * @param message VEvent + * 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.VEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.Filter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VEvent to JSON. + * Converts this Filter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MinimalTable. */ - interface IMinimalTable { + namespace Filter { - /** MinimalTable name */ - name?: (string|null); + /** FieldEventMode enum. */ + enum FieldEventMode { + ERR_ON_MISMATCH = 0, + BEST_EFFORT = 1 + } + } - /** MinimalTable fields */ - fields?: (query.IField[]|null); + /** OnDDLAction enum. */ + enum OnDDLAction { + IGNORE = 0, + STOP = 1, + EXEC = 2, + EXEC_IGNORE = 3 + } - /** MinimalTable p_k_columns */ - p_k_columns?: ((number|Long)[]|null); + /** Properties of a BinlogSource. */ + interface IBinlogSource { + + /** BinlogSource keyspace */ + keyspace?: (string|null); + + /** BinlogSource shard */ + shard?: (string|null); + + /** BinlogSource tablet_type */ + tablet_type?: (topodata.TabletType|null); + + /** BinlogSource key_range */ + key_range?: (topodata.IKeyRange|null); + + /** BinlogSource tables */ + tables?: (string[]|null); + + /** BinlogSource filter */ + filter?: (binlogdata.IFilter|null); + + /** BinlogSource on_ddl */ + on_ddl?: (binlogdata.OnDDLAction|null); + + /** BinlogSource external_mysql */ + external_mysql?: (string|null); + + /** BinlogSource stop_after_copy */ + stop_after_copy?: (boolean|null); + + /** BinlogSource external_cluster */ + external_cluster?: (string|null); } - /** Represents a MinimalTable. */ - class MinimalTable implements IMinimalTable { + /** Represents a BinlogSource. */ + class BinlogSource implements IBinlogSource { /** - * Constructs a new MinimalTable. + * Constructs a new BinlogSource. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IMinimalTable); + constructor(properties?: binlogdata.IBinlogSource); - /** MinimalTable name. */ - public name: string; + /** BinlogSource keyspace. */ + public keyspace: string; - /** MinimalTable fields. */ - public fields: query.IField[]; + /** BinlogSource shard. */ + public shard: string; - /** MinimalTable p_k_columns. */ - public p_k_columns: (number|Long)[]; + /** BinlogSource tablet_type. */ + public tablet_type: topodata.TabletType; + + /** BinlogSource key_range. */ + public key_range?: (topodata.IKeyRange|null); + + /** BinlogSource tables. */ + public tables: string[]; + + /** BinlogSource filter. */ + public filter?: (binlogdata.IFilter|null); + + /** BinlogSource on_ddl. */ + public on_ddl: binlogdata.OnDDLAction; + + /** BinlogSource external_mysql. */ + public external_mysql: string; + + /** BinlogSource stop_after_copy. */ + public stop_after_copy: boolean; + + /** BinlogSource external_cluster. */ + public external_cluster: string; /** - * Creates a new MinimalTable instance using the specified properties. + * Creates a new BinlogSource instance using the specified properties. * @param [properties] Properties to set - * @returns MinimalTable instance + * @returns BinlogSource instance */ - public static create(properties?: binlogdata.IMinimalTable): binlogdata.MinimalTable; + public static create(properties?: binlogdata.IBinlogSource): binlogdata.BinlogSource; /** - * Encodes the specified MinimalTable message. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. - * @param message MinimalTable message or plain object to encode + * Encodes the specified BinlogSource message. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. + * @param message BinlogSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.IMinimalTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IBinlogSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MinimalTable message, length delimited. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. - * @param message MinimalTable message or plain object to encode + * Encodes the specified BinlogSource message, length delimited. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. + * @param message BinlogSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.IMinimalTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IBinlogSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MinimalTable message from the specified reader or buffer. + * Decodes a BinlogSource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MinimalTable + * @returns BinlogSource * @throws {Error} If the payload is 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.MinimalTable; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.BinlogSource; /** - * Decodes a MinimalTable message from the specified reader or buffer, length delimited. + * Decodes a BinlogSource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MinimalTable + * @returns BinlogSource * @throws {Error} If the 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.MinimalTable; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.BinlogSource; /** - * Verifies a MinimalTable message. + * Verifies a BinlogSource message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MinimalTable 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. * @param object Plain object - * @returns MinimalTable + * @returns BinlogSource */ - public static fromObject(object: { [k: string]: any }): binlogdata.MinimalTable; + public static fromObject(object: { [k: string]: any }): binlogdata.BinlogSource; /** - * Creates a plain object from a MinimalTable message. Also converts values to other types if specified. - * @param message MinimalTable + * Creates a plain object from a BinlogSource message. Also converts values to other types if specified. + * @param message BinlogSource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.MinimalTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.BinlogSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MinimalTable to JSON. + * Converts this BinlogSource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MinimalSchema. */ - interface IMinimalSchema { + /** VEventType enum. */ + enum VEventType { + UNKNOWN = 0, + GTID = 1, + BEGIN = 2, + COMMIT = 3, + ROLLBACK = 4, + DDL = 5, + INSERT = 6, + REPLACE = 7, + UPDATE = 8, + DELETE = 9, + SET = 10, + OTHER = 11, + ROW = 12, + FIELD = 13, + HEARTBEAT = 14, + VGTID = 15, + JOURNAL = 16, + VERSION = 17, + LASTPK = 18, + SAVEPOINT = 19 + } - /** MinimalSchema tables */ - tables?: (binlogdata.IMinimalTable[]|null); + /** Properties of a RowChange. */ + interface IRowChange { + + /** RowChange before */ + before?: (query.IRow|null); + + /** RowChange after */ + after?: (query.IRow|null); } - /** Represents a MinimalSchema. */ - class MinimalSchema implements IMinimalSchema { + /** Represents a RowChange. */ + class RowChange implements IRowChange { /** - * Constructs a new MinimalSchema. + * Constructs a new RowChange. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IMinimalSchema); + constructor(properties?: binlogdata.IRowChange); + + /** RowChange before. */ + public before?: (query.IRow|null); - /** MinimalSchema tables. */ - public tables: binlogdata.IMinimalTable[]; + /** RowChange after. */ + public after?: (query.IRow|null); /** - * Creates a new MinimalSchema instance using the specified properties. + * Creates a new RowChange instance using the specified properties. * @param [properties] Properties to set - * @returns MinimalSchema instance + * @returns RowChange instance */ - public static create(properties?: binlogdata.IMinimalSchema): binlogdata.MinimalSchema; + public static create(properties?: binlogdata.IRowChange): binlogdata.RowChange; /** - * Encodes the specified MinimalSchema message. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. - * @param message MinimalSchema message or plain object to encode + * Encodes the specified RowChange message. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. + * @param message RowChange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.IMinimalSchema, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IRowChange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MinimalSchema message, length delimited. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. - * @param message MinimalSchema message or plain object to encode + * Encodes the specified RowChange message, length delimited. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. + * @param message RowChange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.IMinimalSchema, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IRowChange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MinimalSchema message from the specified reader or buffer. + * Decodes a RowChange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MinimalSchema + * @returns RowChange * @throws {Error} If the payload is 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.MinimalSchema; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.RowChange; /** - * Decodes a MinimalSchema message from the specified reader or buffer, length delimited. + * Decodes a RowChange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MinimalSchema + * @returns RowChange * @throws {Error} If the 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.MinimalSchema; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.RowChange; /** - * Verifies a MinimalSchema message. + * Verifies a RowChange message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MinimalSchema 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. * @param object Plain object - * @returns MinimalSchema + * @returns RowChange */ - public static fromObject(object: { [k: string]: any }): binlogdata.MinimalSchema; + public static fromObject(object: { [k: string]: any }): binlogdata.RowChange; /** - * Creates a plain object from a MinimalSchema message. Also converts values to other types if specified. - * @param message MinimalSchema + * Creates a plain object from a RowChange message. Also converts values to other types if specified. + * @param message RowChange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.MinimalSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.RowChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MinimalSchema to JSON. + * Converts this RowChange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a VStreamRequest. */ - interface IVStreamRequest { - - /** VStreamRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** VStreamRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** VStreamRequest target */ - target?: (query.ITarget|null); - - /** VStreamRequest position */ - position?: (string|null); + /** Properties of a RowEvent. */ + interface IRowEvent { - /** VStreamRequest filter */ - filter?: (binlogdata.IFilter|null); + /** RowEvent table_name */ + table_name?: (string|null); - /** VStreamRequest table_last_p_ks */ - table_last_p_ks?: (binlogdata.ITableLastPK[]|null); + /** RowEvent row_changes */ + row_changes?: (binlogdata.IRowChange[]|null); } - /** Represents a VStreamRequest. */ - class VStreamRequest implements IVStreamRequest { + /** Represents a RowEvent. */ + class RowEvent implements IRowEvent { /** - * Constructs a new VStreamRequest. + * Constructs a new RowEvent. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IVStreamRequest); - - /** VStreamRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** VStreamRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** VStreamRequest target. */ - public target?: (query.ITarget|null); - - /** VStreamRequest position. */ - public position: string; + constructor(properties?: binlogdata.IRowEvent); - /** VStreamRequest filter. */ - public filter?: (binlogdata.IFilter|null); + /** RowEvent table_name. */ + public table_name: string; - /** VStreamRequest table_last_p_ks. */ - public table_last_p_ks: binlogdata.ITableLastPK[]; + /** RowEvent row_changes. */ + public row_changes: binlogdata.IRowChange[]; /** - * Creates a new VStreamRequest instance using the specified properties. + * Creates a new RowEvent instance using the specified properties. * @param [properties] Properties to set - * @returns VStreamRequest instance + * @returns RowEvent instance */ - public static create(properties?: binlogdata.IVStreamRequest): binlogdata.VStreamRequest; + public static create(properties?: binlogdata.IRowEvent): binlogdata.RowEvent; /** - * Encodes the specified VStreamRequest message. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. - * @param message VStreamRequest message or plain object to encode + * Encodes the specified RowEvent message. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. + * @param message RowEvent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.IVStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IRowEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VStreamRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. - * @param message VStreamRequest message or plain object to encode + * Encodes the specified RowEvent message, length delimited. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. + * @param message RowEvent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.IVStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IRowEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VStreamRequest message from the specified reader or buffer. + * Decodes a RowEvent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VStreamRequest + * @returns RowEvent * @throws {Error} If the payload is 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.VStreamRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.RowEvent; /** - * Decodes a VStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a RowEvent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VStreamRequest + * @returns RowEvent * @throws {Error} If the 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.VStreamRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.RowEvent; /** - * Verifies a VStreamRequest message. + * Verifies a RowEvent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VStreamRequest 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. * @param object Plain object - * @returns VStreamRequest + * @returns RowEvent */ - public static fromObject(object: { [k: string]: any }): binlogdata.VStreamRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.RowEvent; /** - * Creates a plain object from a VStreamRequest message. Also converts values to other types if specified. - * @param message VStreamRequest + * Creates a plain object from a RowEvent message. Also converts values to other types if specified. + * @param message RowEvent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.VStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.RowEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VStreamRequest to JSON. + * Converts this RowEvent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a VStreamResponse. */ - interface IVStreamResponse { + /** Properties of a FieldEvent. */ + interface IFieldEvent { - /** VStreamResponse events */ - events?: (binlogdata.IVEvent[]|null); + /** FieldEvent table_name */ + table_name?: (string|null); + + /** FieldEvent fields */ + fields?: (query.IField[]|null); } - /** Represents a VStreamResponse. */ - class VStreamResponse implements IVStreamResponse { + /** Represents a FieldEvent. */ + class FieldEvent implements IFieldEvent { /** - * Constructs a new VStreamResponse. + * Constructs a new FieldEvent. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IVStreamResponse); + constructor(properties?: binlogdata.IFieldEvent); - /** VStreamResponse events. */ - public events: binlogdata.IVEvent[]; + /** FieldEvent table_name. */ + public table_name: string; + + /** FieldEvent fields. */ + public fields: query.IField[]; /** - * Creates a new VStreamResponse instance using the specified properties. + * Creates a new FieldEvent instance using the specified properties. * @param [properties] Properties to set - * @returns VStreamResponse instance + * @returns FieldEvent instance */ - public static create(properties?: binlogdata.IVStreamResponse): binlogdata.VStreamResponse; + public static create(properties?: binlogdata.IFieldEvent): binlogdata.FieldEvent; /** - * Encodes the specified VStreamResponse message. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. - * @param message VStreamResponse message or plain object to encode + * Encodes the specified FieldEvent message. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. + * @param message FieldEvent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.IVStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IFieldEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VStreamResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. - * @param message VStreamResponse message or plain object to encode + * Encodes the specified FieldEvent message, length delimited. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. + * @param message FieldEvent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.IVStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IFieldEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VStreamResponse message from the specified reader or buffer. + * Decodes a FieldEvent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VStreamResponse + * @returns FieldEvent * @throws {Error} If the payload is 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.VStreamResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.FieldEvent; /** - * Decodes a VStreamResponse message from the specified reader or buffer, length delimited. + * Decodes a FieldEvent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VStreamResponse + * @returns FieldEvent * @throws {Error} If the 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.VStreamResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.FieldEvent; /** - * Verifies a VStreamResponse message. + * Verifies a FieldEvent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VStreamResponse 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. * @param object Plain object - * @returns VStreamResponse + * @returns FieldEvent */ - public static fromObject(object: { [k: string]: any }): binlogdata.VStreamResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.FieldEvent; /** - * Creates a plain object from a VStreamResponse message. Also converts values to other types if specified. - * @param message VStreamResponse + * Creates a plain object from a FieldEvent message. Also converts values to other types if specified. + * @param message FieldEvent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.VStreamResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.FieldEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VStreamResponse to JSON. + * Converts this FieldEvent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a VStreamRowsRequest. */ - interface IVStreamRowsRequest { - - /** VStreamRowsRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); + /** Properties of a ShardGtid. */ + interface IShardGtid { - /** VStreamRowsRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); + /** ShardGtid keyspace */ + keyspace?: (string|null); - /** VStreamRowsRequest target */ - target?: (query.ITarget|null); + /** ShardGtid shard */ + shard?: (string|null); - /** VStreamRowsRequest query */ - query?: (string|null); + /** ShardGtid gtid */ + gtid?: (string|null); - /** VStreamRowsRequest lastpk */ - lastpk?: (query.IQueryResult|null); + /** ShardGtid table_p_ks */ + table_p_ks?: (binlogdata.ITableLastPK[]|null); } - /** Represents a VStreamRowsRequest. */ - class VStreamRowsRequest implements IVStreamRowsRequest { + /** Represents a ShardGtid. */ + class ShardGtid implements IShardGtid { /** - * Constructs a new VStreamRowsRequest. + * Constructs a new ShardGtid. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IVStreamRowsRequest); - - /** VStreamRowsRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); + constructor(properties?: binlogdata.IShardGtid); - /** VStreamRowsRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); + /** ShardGtid keyspace. */ + public keyspace: string; - /** VStreamRowsRequest target. */ - public target?: (query.ITarget|null); + /** ShardGtid shard. */ + public shard: string; - /** VStreamRowsRequest query. */ - public query: string; + /** ShardGtid gtid. */ + public gtid: string; - /** VStreamRowsRequest lastpk. */ - public lastpk?: (query.IQueryResult|null); + /** ShardGtid table_p_ks. */ + public table_p_ks: binlogdata.ITableLastPK[]; /** - * Creates a new VStreamRowsRequest instance using the specified properties. + * Creates a new ShardGtid instance using the specified properties. * @param [properties] Properties to set - * @returns VStreamRowsRequest instance + * @returns ShardGtid instance */ - public static create(properties?: binlogdata.IVStreamRowsRequest): binlogdata.VStreamRowsRequest; + public static create(properties?: binlogdata.IShardGtid): binlogdata.ShardGtid; /** - * Encodes the specified VStreamRowsRequest message. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. - * @param message VStreamRowsRequest message or plain object to encode + * Encodes the specified ShardGtid message. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. + * @param message ShardGtid message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.IVStreamRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IShardGtid, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VStreamRowsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. - * @param message VStreamRowsRequest message or plain object to encode + * Encodes the specified ShardGtid message, length delimited. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. + * @param message ShardGtid message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.IVStreamRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IShardGtid, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VStreamRowsRequest message from the specified reader or buffer. + * Decodes a ShardGtid message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VStreamRowsRequest + * @returns ShardGtid * @throws {Error} If the payload is 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.VStreamRowsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.ShardGtid; /** - * Decodes a VStreamRowsRequest message from the specified reader or buffer, length delimited. + * Decodes a ShardGtid message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VStreamRowsRequest + * @returns ShardGtid * @throws {Error} If the 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.VStreamRowsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.ShardGtid; /** - * Verifies a VStreamRowsRequest message. + * Verifies a ShardGtid message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VStreamRowsRequest 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. * @param object Plain object - * @returns VStreamRowsRequest + * @returns ShardGtid */ - public static fromObject(object: { [k: string]: any }): binlogdata.VStreamRowsRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.ShardGtid; /** - * Creates a plain object from a VStreamRowsRequest message. Also converts values to other types if specified. - * @param message VStreamRowsRequest + * Creates a plain object from a ShardGtid message. Also converts values to other types if specified. + * @param message ShardGtid * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.VStreamRowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.ShardGtid, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VStreamRowsRequest to JSON. + * Converts this ShardGtid to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a VStreamRowsResponse. */ - interface IVStreamRowsResponse { - - /** VStreamRowsResponse fields */ - fields?: (query.IField[]|null); - - /** VStreamRowsResponse pkfields */ - pkfields?: (query.IField[]|null); - - /** VStreamRowsResponse gtid */ - gtid?: (string|null); - - /** VStreamRowsResponse rows */ - rows?: (query.IRow[]|null); + /** Properties of a VGtid. */ + interface IVGtid { - /** VStreamRowsResponse lastpk */ - lastpk?: (query.IRow|null); + /** VGtid shard_gtids */ + shard_gtids?: (binlogdata.IShardGtid[]|null); } - /** Represents a VStreamRowsResponse. */ - class VStreamRowsResponse implements IVStreamRowsResponse { + /** Represents a VGtid. */ + class VGtid implements IVGtid { /** - * Constructs a new VStreamRowsResponse. + * Constructs a new VGtid. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IVStreamRowsResponse); - - /** VStreamRowsResponse fields. */ - public fields: query.IField[]; - - /** VStreamRowsResponse pkfields. */ - public pkfields: query.IField[]; - - /** VStreamRowsResponse gtid. */ - public gtid: string; - - /** VStreamRowsResponse rows. */ - public rows: query.IRow[]; + constructor(properties?: binlogdata.IVGtid); - /** VStreamRowsResponse lastpk. */ - public lastpk?: (query.IRow|null); + /** VGtid shard_gtids. */ + public shard_gtids: binlogdata.IShardGtid[]; /** - * Creates a new VStreamRowsResponse instance using the specified properties. + * Creates a new VGtid instance using the specified properties. * @param [properties] Properties to set - * @returns VStreamRowsResponse instance + * @returns VGtid instance */ - public static create(properties?: binlogdata.IVStreamRowsResponse): binlogdata.VStreamRowsResponse; + public static create(properties?: binlogdata.IVGtid): binlogdata.VGtid; /** - * Encodes the specified VStreamRowsResponse message. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. - * @param message VStreamRowsResponse message or plain object to encode + * Encodes the specified VGtid message. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. + * @param message VGtid message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.IVStreamRowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IVGtid, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VStreamRowsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. - * @param message VStreamRowsResponse message or plain object to encode + * Encodes the specified VGtid message, length delimited. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. + * @param message VGtid message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.IVStreamRowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IVGtid, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VStreamRowsResponse message from the specified reader or buffer. + * Decodes a VGtid message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VStreamRowsResponse + * @returns VGtid * @throws {Error} If the payload is 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.VStreamRowsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.VGtid; /** - * Decodes a VStreamRowsResponse message from the specified reader or buffer, length delimited. + * Decodes a VGtid message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VStreamRowsResponse + * @returns VGtid * @throws {Error} If the 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.VStreamRowsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.VGtid; /** - * Verifies a VStreamRowsResponse message. + * Verifies a VGtid message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VStreamRowsResponse 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. * @param object Plain object - * @returns VStreamRowsResponse + * @returns VGtid */ - public static fromObject(object: { [k: string]: any }): binlogdata.VStreamRowsResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.VGtid; /** - * Creates a plain object from a VStreamRowsResponse message. Also converts values to other types if specified. - * @param message VStreamRowsResponse + * Creates a plain object from a VGtid message. Also converts values to other types if specified. + * @param message VGtid * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.VStreamRowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VGtid, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VStreamRowsResponse to JSON. + * Converts this VGtid to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a LastPKEvent. */ - interface ILastPKEvent { + /** Properties of a KeyspaceShard. */ + interface IKeyspaceShard { - /** LastPKEvent table_last_p_k */ - table_last_p_k?: (binlogdata.ITableLastPK|null); + /** KeyspaceShard keyspace */ + keyspace?: (string|null); - /** LastPKEvent completed */ - completed?: (boolean|null); + /** KeyspaceShard shard */ + shard?: (string|null); } - /** Represents a LastPKEvent. */ - class LastPKEvent implements ILastPKEvent { + /** Represents a KeyspaceShard. */ + class KeyspaceShard implements IKeyspaceShard { /** - * Constructs a new LastPKEvent. + * Constructs a new KeyspaceShard. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.ILastPKEvent); + constructor(properties?: binlogdata.IKeyspaceShard); - /** LastPKEvent table_last_p_k. */ - public table_last_p_k?: (binlogdata.ITableLastPK|null); + /** KeyspaceShard keyspace. */ + public keyspace: string; - /** LastPKEvent completed. */ - public completed: boolean; + /** KeyspaceShard shard. */ + public shard: string; /** - * Creates a new LastPKEvent instance using the specified properties. + * Creates a new KeyspaceShard instance using the specified properties. * @param [properties] Properties to set - * @returns LastPKEvent instance + * @returns KeyspaceShard instance */ - public static create(properties?: binlogdata.ILastPKEvent): binlogdata.LastPKEvent; + public static create(properties?: binlogdata.IKeyspaceShard): binlogdata.KeyspaceShard; /** - * Encodes the specified LastPKEvent message. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. - * @param message LastPKEvent message or plain object to encode + * Encodes the specified KeyspaceShard message. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. + * @param message KeyspaceShard message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.ILastPKEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IKeyspaceShard, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LastPKEvent message, length delimited. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. - * @param message LastPKEvent message or plain object to encode + * Encodes the specified KeyspaceShard message, length delimited. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. + * @param message KeyspaceShard message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.ILastPKEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IKeyspaceShard, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LastPKEvent message from the specified reader or buffer. + * Decodes a KeyspaceShard message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LastPKEvent + * @returns KeyspaceShard * @throws {Error} If the payload is 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.LastPKEvent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.KeyspaceShard; /** - * Decodes a LastPKEvent message from the specified reader or buffer, length delimited. + * Decodes a KeyspaceShard message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LastPKEvent + * @returns KeyspaceShard * @throws {Error} If the 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.LastPKEvent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.KeyspaceShard; /** - * Verifies a LastPKEvent message. + * Verifies a KeyspaceShard message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LastPKEvent 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. * @param object Plain object - * @returns LastPKEvent + * @returns KeyspaceShard */ - public static fromObject(object: { [k: string]: any }): binlogdata.LastPKEvent; + public static fromObject(object: { [k: string]: any }): binlogdata.KeyspaceShard; /** - * Creates a plain object from a LastPKEvent message. Also converts values to other types if specified. - * @param message LastPKEvent + * Creates a plain object from a KeyspaceShard message. Also converts values to other types if specified. + * @param message KeyspaceShard * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.LastPKEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.KeyspaceShard, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LastPKEvent to JSON. + * Converts this KeyspaceShard to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TableLastPK. */ - interface ITableLastPK { + /** MigrationType enum. */ + enum MigrationType { + TABLES = 0, + SHARDS = 1 + } - /** TableLastPK table_name */ - table_name?: (string|null); + /** Properties of a Journal. */ + interface IJournal { - /** TableLastPK lastpk */ - lastpk?: (query.IQueryResult|null); + /** Journal id */ + id?: (number|Long|null); + + /** Journal migration_type */ + migration_type?: (binlogdata.MigrationType|null); + + /** Journal tables */ + tables?: (string[]|null); + + /** Journal local_position */ + local_position?: (string|null); + + /** Journal shard_gtids */ + shard_gtids?: (binlogdata.IShardGtid[]|null); + + /** Journal participants */ + participants?: (binlogdata.IKeyspaceShard[]|null); + + /** Journal source_workflows */ + source_workflows?: (string[]|null); } - /** Represents a TableLastPK. */ - class TableLastPK implements ITableLastPK { + /** Represents a Journal. */ + class Journal implements IJournal { /** - * Constructs a new TableLastPK. + * Constructs a new Journal. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.ITableLastPK); + constructor(properties?: binlogdata.IJournal); - /** TableLastPK table_name. */ - public table_name: string; + /** Journal id. */ + public id: (number|Long); - /** TableLastPK lastpk. */ - public lastpk?: (query.IQueryResult|null); + /** Journal migration_type. */ + public migration_type: binlogdata.MigrationType; + + /** Journal tables. */ + public tables: string[]; + + /** Journal local_position. */ + public local_position: string; + + /** Journal shard_gtids. */ + public shard_gtids: binlogdata.IShardGtid[]; + + /** Journal participants. */ + public participants: binlogdata.IKeyspaceShard[]; + + /** Journal source_workflows. */ + public source_workflows: string[]; /** - * Creates a new TableLastPK instance using the specified properties. + * Creates a new Journal instance using the specified properties. * @param [properties] Properties to set - * @returns TableLastPK instance + * @returns Journal instance */ - public static create(properties?: binlogdata.ITableLastPK): binlogdata.TableLastPK; + public static create(properties?: binlogdata.IJournal): binlogdata.Journal; /** - * Encodes the specified TableLastPK message. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. - * @param message TableLastPK message or plain object to encode + * Encodes the specified Journal message. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. + * @param message Journal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.ITableLastPK, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IJournal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TableLastPK message, length delimited. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. - * @param message TableLastPK message or plain object to encode + * Encodes the specified Journal message, length delimited. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. + * @param message Journal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.ITableLastPK, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IJournal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TableLastPK message from the specified reader or buffer. + * Decodes a Journal message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TableLastPK + * @returns Journal * @throws {Error} If the payload is 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.TableLastPK; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.Journal; /** - * Decodes a TableLastPK message from the specified reader or buffer, length delimited. + * Decodes a Journal message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TableLastPK + * @returns Journal * @throws {Error} If the 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.TableLastPK; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.Journal; /** - * Verifies a TableLastPK message. + * Verifies a Journal message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TableLastPK 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. * @param object Plain object - * @returns TableLastPK + * @returns Journal */ - public static fromObject(object: { [k: string]: any }): binlogdata.TableLastPK; + public static fromObject(object: { [k: string]: any }): binlogdata.Journal; /** - * Creates a plain object from a TableLastPK message. Also converts values to other types if specified. - * @param message TableLastPK + * Creates a plain object from a Journal message. Also converts values to other types if specified. + * @param message Journal * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.TableLastPK, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.Journal, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TableLastPK to JSON. + * Converts this Journal to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a VStreamResultsRequest. */ - interface IVStreamResultsRequest { + /** Properties of a VEvent. */ + interface IVEvent { - /** VStreamResultsRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); + /** VEvent type */ + type?: (binlogdata.VEventType|null); - /** VStreamResultsRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); + /** VEvent timestamp */ + timestamp?: (number|Long|null); - /** VStreamResultsRequest target */ - target?: (query.ITarget|null); + /** VEvent gtid */ + gtid?: (string|null); - /** VStreamResultsRequest query */ - query?: (string|null); + /** VEvent statement */ + statement?: (string|null); + + /** VEvent row_event */ + row_event?: (binlogdata.IRowEvent|null); + + /** VEvent field_event */ + field_event?: (binlogdata.IFieldEvent|null); + + /** VEvent vgtid */ + vgtid?: (binlogdata.IVGtid|null); + + /** VEvent journal */ + journal?: (binlogdata.IJournal|null); + + /** VEvent dml */ + dml?: (string|null); + + /** VEvent current_time */ + current_time?: (number|Long|null); + + /** VEvent last_p_k_event */ + last_p_k_event?: (binlogdata.ILastPKEvent|null); } - /** Represents a VStreamResultsRequest. */ - class VStreamResultsRequest implements IVStreamResultsRequest { + /** Represents a VEvent. */ + class VEvent implements IVEvent { /** - * Constructs a new VStreamResultsRequest. + * Constructs a new VEvent. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IVStreamResultsRequest); + constructor(properties?: binlogdata.IVEvent); - /** VStreamResultsRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); + /** VEvent type. */ + public type: binlogdata.VEventType; - /** VStreamResultsRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); + /** VEvent timestamp. */ + public timestamp: (number|Long); - /** VStreamResultsRequest target. */ - public target?: (query.ITarget|null); + /** VEvent gtid. */ + public gtid: string; - /** VStreamResultsRequest query. */ - public query: string; + /** VEvent statement. */ + public statement: string; + + /** VEvent row_event. */ + public row_event?: (binlogdata.IRowEvent|null); + + /** VEvent field_event. */ + public field_event?: (binlogdata.IFieldEvent|null); + + /** VEvent vgtid. */ + public vgtid?: (binlogdata.IVGtid|null); + + /** VEvent journal. */ + public journal?: (binlogdata.IJournal|null); + + /** VEvent dml. */ + public dml: string; + + /** VEvent current_time. */ + public current_time: (number|Long); + + /** VEvent last_p_k_event. */ + public last_p_k_event?: (binlogdata.ILastPKEvent|null); /** - * Creates a new VStreamResultsRequest instance using the specified properties. + * Creates a new VEvent instance using the specified properties. * @param [properties] Properties to set - * @returns VStreamResultsRequest instance + * @returns VEvent instance */ - public static create(properties?: binlogdata.IVStreamResultsRequest): binlogdata.VStreamResultsRequest; + public static create(properties?: binlogdata.IVEvent): binlogdata.VEvent; /** - * Encodes the specified VStreamResultsRequest message. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. - * @param message VStreamResultsRequest message or plain object to encode + * Encodes the specified VEvent message. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. + * @param message VEvent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.IVStreamResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IVEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VStreamResultsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. - * @param message VStreamResultsRequest message or plain object to encode + * Encodes the specified VEvent message, length delimited. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. + * @param message VEvent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.IVStreamResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IVEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VStreamResultsRequest message from the specified reader or buffer. + * Decodes a VEvent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VStreamResultsRequest + * @returns VEvent * @throws {Error} If the payload is 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.VStreamResultsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.VEvent; /** - * Decodes a VStreamResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a VEvent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VStreamResultsRequest + * @returns VEvent * @throws {Error} If the 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.VStreamResultsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.VEvent; /** - * Verifies a VStreamResultsRequest message. + * Verifies a VEvent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VStreamResultsRequest 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. * @param object Plain object - * @returns VStreamResultsRequest + * @returns VEvent */ - public static fromObject(object: { [k: string]: any }): binlogdata.VStreamResultsRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.VEvent; /** - * Creates a plain object from a VStreamResultsRequest message. Also converts values to other types if specified. - * @param message VStreamResultsRequest + * Creates a plain object from a VEvent message. Also converts values to other types if specified. + * @param message VEvent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.VStreamResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VStreamResultsRequest to JSON. + * Converts this VEvent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a VStreamResultsResponse. */ - interface IVStreamResultsResponse { + /** Properties of a MinimalTable. */ + interface IMinimalTable { - /** VStreamResultsResponse fields */ - fields?: (query.IField[]|null); + /** MinimalTable name */ + name?: (string|null); - /** VStreamResultsResponse gtid */ - gtid?: (string|null); + /** MinimalTable fields */ + fields?: (query.IField[]|null); - /** VStreamResultsResponse rows */ - rows?: (query.IRow[]|null); + /** MinimalTable p_k_columns */ + p_k_columns?: ((number|Long)[]|null); } - /** Represents a VStreamResultsResponse. */ - class VStreamResultsResponse implements IVStreamResultsResponse { + /** Represents a MinimalTable. */ + class MinimalTable implements IMinimalTable { /** - * Constructs a new VStreamResultsResponse. + * Constructs a new MinimalTable. * @param [properties] Properties to set */ - constructor(properties?: binlogdata.IVStreamResultsResponse); + constructor(properties?: binlogdata.IMinimalTable); - /** VStreamResultsResponse fields. */ - public fields: query.IField[]; + /** MinimalTable name. */ + public name: string; - /** VStreamResultsResponse gtid. */ - public gtid: string; + /** MinimalTable fields. */ + public fields: query.IField[]; - /** VStreamResultsResponse rows. */ - public rows: query.IRow[]; + /** MinimalTable p_k_columns. */ + public p_k_columns: (number|Long)[]; /** - * Creates a new VStreamResultsResponse instance using the specified properties. + * Creates a new MinimalTable instance using the specified properties. * @param [properties] Properties to set - * @returns VStreamResultsResponse instance + * @returns MinimalTable instance */ - public static create(properties?: binlogdata.IVStreamResultsResponse): binlogdata.VStreamResultsResponse; + public static create(properties?: binlogdata.IMinimalTable): binlogdata.MinimalTable; /** - * Encodes the specified VStreamResultsResponse message. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. - * @param message VStreamResultsResponse message or plain object to encode + * Encodes the specified MinimalTable message. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. + * @param message MinimalTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: binlogdata.IVStreamResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: binlogdata.IMinimalTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VStreamResultsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. - * @param message VStreamResultsResponse message or plain object to encode + * Encodes the specified MinimalTable message, length delimited. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. + * @param message MinimalTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: binlogdata.IVStreamResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: binlogdata.IMinimalTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VStreamResultsResponse message from the specified reader or buffer. + * Decodes a MinimalTable message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VStreamResultsResponse + * @returns MinimalTable * @throws {Error} If the payload is 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.VStreamResultsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): binlogdata.MinimalTable; /** - * Decodes a VStreamResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a MinimalTable message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VStreamResultsResponse + * @returns MinimalTable * @throws {Error} If the 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.VStreamResultsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): binlogdata.MinimalTable; /** - * Verifies a VStreamResultsResponse message. + * Verifies a MinimalTable message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VStreamResultsResponse 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. * @param object Plain object - * @returns VStreamResultsResponse + * @returns MinimalTable */ - public static fromObject(object: { [k: string]: any }): binlogdata.VStreamResultsResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.MinimalTable; /** - * Creates a plain object from a VStreamResultsResponse message. Also converts values to other types if specified. - * @param message VStreamResultsResponse + * Creates a plain object from a MinimalTable message. Also converts values to other types if specified. + * @param message MinimalTable * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: binlogdata.VStreamResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.MinimalTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VStreamResultsResponse to JSON. + * Converts this MinimalTable to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } -} - -/** Namespace mysqlctl. */ -export namespace mysqlctl { - /** Properties of a StartRequest. */ - interface IStartRequest { + /** Properties of a MinimalSchema. */ + interface IMinimalSchema { - /** StartRequest mysqld_args */ - mysqld_args?: (string[]|null); + /** MinimalSchema tables */ + tables?: (binlogdata.IMinimalTable[]|null); } - /** Represents a StartRequest. */ - class StartRequest implements IStartRequest { + /** Represents a MinimalSchema. */ + class MinimalSchema implements IMinimalSchema { /** - * Constructs a new StartRequest. + * Constructs a new MinimalSchema. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IStartRequest); + constructor(properties?: binlogdata.IMinimalSchema); - /** StartRequest mysqld_args. */ - public mysqld_args: string[]; + /** MinimalSchema tables. */ + public tables: binlogdata.IMinimalTable[]; /** - * Creates a new StartRequest instance using the specified properties. + * Creates a new MinimalSchema instance using the specified properties. * @param [properties] Properties to set - * @returns StartRequest instance + * @returns MinimalSchema instance */ - public static create(properties?: mysqlctl.IStartRequest): mysqlctl.StartRequest; + public static create(properties?: binlogdata.IMinimalSchema): binlogdata.MinimalSchema; /** - * 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 MinimalSchema message. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. + * @param message MinimalSchema 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: binlogdata.IMinimalSchema, 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 MinimalSchema message, length delimited. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. + * @param message MinimalSchema 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: binlogdata.IMinimalSchema, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartRequest message from the specified reader or buffer. + * Decodes a MinimalSchema 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 MinimalSchema * @throws {Error} If the payload is 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): binlogdata.MinimalSchema; /** - * Decodes a StartRequest message from the specified reader or buffer, length delimited. + * Decodes a MinimalSchema message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartRequest + * @returns MinimalSchema * @throws {Error} If the 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)): binlogdata.MinimalSchema; /** - * Verifies a StartRequest message. + * Verifies a MinimalSchema message. * @param message Plain object 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 MinimalSchema message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartRequest + * @returns MinimalSchema */ - public static fromObject(object: { [k: string]: any }): mysqlctl.StartRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.MinimalSchema; /** - * 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 MinimalSchema message. Also converts values to other types if specified. + * @param message MinimalSchema * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.StartRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.MinimalSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartRequest to JSON. + * Converts this MinimalSchema to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StartResponse. */ - interface IStartResponse { + /** Properties of a VStreamRequest. */ + interface IVStreamRequest { + + /** VStreamRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** VStreamRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** VStreamRequest target */ + target?: (query.ITarget|null); + + /** VStreamRequest position */ + position?: (string|null); + + /** VStreamRequest filter */ + filter?: (binlogdata.IFilter|null); + + /** VStreamRequest table_last_p_ks */ + table_last_p_ks?: (binlogdata.ITableLastPK[]|null); } - /** Represents a StartResponse. */ - class StartResponse implements IStartResponse { + /** Represents a VStreamRequest. */ + class VStreamRequest implements IVStreamRequest { /** - * Constructs a new StartResponse. + * Constructs a new VStreamRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IStartResponse); + constructor(properties?: binlogdata.IVStreamRequest); + + /** VStreamRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** VStreamRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** VStreamRequest target. */ + public target?: (query.ITarget|null); + + /** VStreamRequest position. */ + public position: string; + + /** VStreamRequest filter. */ + public filter?: (binlogdata.IFilter|null); + + /** VStreamRequest table_last_p_ks. */ + public table_last_p_ks: binlogdata.ITableLastPK[]; /** - * Creates a new StartResponse instance using the specified properties. + * Creates a new VStreamRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StartResponse instance + * @returns VStreamRequest instance */ - public static create(properties?: mysqlctl.IStartResponse): mysqlctl.StartResponse; + public static create(properties?: binlogdata.IVStreamRequest): binlogdata.VStreamRequest; /** - * 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 VStreamRequest message. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. + * @param message VStreamRequest 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: binlogdata.IVStreamRequest, 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 VStreamRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. + * @param message VStreamRequest 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: binlogdata.IVStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartResponse message from the specified reader or buffer. + * Decodes a VStreamRequest 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 VStreamRequest * @throws {Error} If the payload is 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): binlogdata.VStreamRequest; /** - * Decodes a StartResponse message from the specified reader or buffer, length delimited. + * Decodes a VStreamRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartResponse + * @returns VStreamRequest * @throws {Error} If the 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)): binlogdata.VStreamRequest; /** - * Verifies a StartResponse message. + * Verifies a VStreamRequest message. * @param message Plain object 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 VStreamRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartResponse + * @returns VStreamRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.StartResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.VStreamRequest; /** - * 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 VStreamRequest message. Also converts values to other types if specified. + * @param message VStreamRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.StartResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartResponse to JSON. + * Converts this VStreamRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ShutdownRequest. */ - interface IShutdownRequest { + /** Properties of a VStreamResponse. */ + interface IVStreamResponse { - /** ShutdownRequest wait_for_mysqld */ - wait_for_mysqld?: (boolean|null); + /** VStreamResponse events */ + events?: (binlogdata.IVEvent[]|null); } - /** Represents a ShutdownRequest. */ - class ShutdownRequest implements IShutdownRequest { + /** Represents a VStreamResponse. */ + class VStreamResponse implements IVStreamResponse { /** - * Constructs a new ShutdownRequest. + * Constructs a new VStreamResponse. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IShutdownRequest); + constructor(properties?: binlogdata.IVStreamResponse); - /** ShutdownRequest wait_for_mysqld. */ - public wait_for_mysqld: boolean; + /** VStreamResponse events. */ + public events: binlogdata.IVEvent[]; /** - * Creates a new ShutdownRequest instance using the specified properties. + * Creates a new VStreamResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ShutdownRequest instance + * @returns VStreamResponse instance */ - public static create(properties?: mysqlctl.IShutdownRequest): mysqlctl.ShutdownRequest; + public static create(properties?: binlogdata.IVStreamResponse): binlogdata.VStreamResponse; /** - * 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 VStreamResponse message. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. + * @param message VStreamResponse 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: binlogdata.IVStreamResponse, 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 VStreamResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. + * @param message VStreamResponse 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: binlogdata.IVStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShutdownRequest message from the specified reader or buffer. + * Decodes a VStreamResponse 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 VStreamResponse * @throws {Error} If the payload is 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): binlogdata.VStreamResponse; /** - * Decodes a ShutdownRequest message from the specified reader or buffer, length delimited. + * Decodes a VStreamResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShutdownRequest + * @returns VStreamResponse * @throws {Error} If the 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)): binlogdata.VStreamResponse; /** - * Verifies a ShutdownRequest message. + * Verifies a VStreamResponse message. * @param message Plain object 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 VStreamResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShutdownRequest + * @returns VStreamResponse */ - public static fromObject(object: { [k: string]: any }): mysqlctl.ShutdownRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.VStreamResponse; /** - * 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 VStreamResponse message. Also converts values to other types if specified. + * @param message VStreamResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.ShutdownRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VStreamResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShutdownRequest to JSON. + * Converts this VStreamResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ShutdownResponse. */ - interface IShutdownResponse { + /** Properties of a VStreamRowsRequest. */ + interface IVStreamRowsRequest { + + /** VStreamRowsRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** VStreamRowsRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** VStreamRowsRequest target */ + target?: (query.ITarget|null); + + /** VStreamRowsRequest query */ + query?: (string|null); + + /** VStreamRowsRequest lastpk */ + lastpk?: (query.IQueryResult|null); } - /** Represents a ShutdownResponse. */ - class ShutdownResponse implements IShutdownResponse { + /** Represents a VStreamRowsRequest. */ + class VStreamRowsRequest implements IVStreamRowsRequest { /** - * Constructs a new ShutdownResponse. + * Constructs a new VStreamRowsRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IShutdownResponse); + constructor(properties?: binlogdata.IVStreamRowsRequest); + + /** VStreamRowsRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** VStreamRowsRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** VStreamRowsRequest target. */ + public target?: (query.ITarget|null); + + /** VStreamRowsRequest query. */ + public query: string; + + /** VStreamRowsRequest lastpk. */ + public lastpk?: (query.IQueryResult|null); /** - * Creates a new ShutdownResponse instance using the specified properties. + * Creates a new VStreamRowsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ShutdownResponse instance + * @returns VStreamRowsRequest instance */ - public static create(properties?: mysqlctl.IShutdownResponse): mysqlctl.ShutdownResponse; + public static create(properties?: binlogdata.IVStreamRowsRequest): binlogdata.VStreamRowsRequest; /** - * 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 VStreamRowsRequest message. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. + * @param message VStreamRowsRequest 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: binlogdata.IVStreamRowsRequest, 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 VStreamRowsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. + * @param message VStreamRowsRequest 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: binlogdata.IVStreamRowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShutdownResponse message from the specified reader or buffer. + * Decodes a VStreamRowsRequest 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 VStreamRowsRequest * @throws {Error} If the payload is 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): binlogdata.VStreamRowsRequest; /** - * Decodes a ShutdownResponse message from the specified reader or buffer, length delimited. + * Decodes a VStreamRowsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ShutdownResponse + * @returns VStreamRowsRequest * @throws {Error} If the 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)): binlogdata.VStreamRowsRequest; /** - * Verifies a ShutdownResponse message. + * Verifies a VStreamRowsRequest message. * @param message Plain object 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 VStreamRowsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShutdownResponse + * @returns VStreamRowsRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.ShutdownResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.VStreamRowsRequest; /** - * 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 VStreamRowsRequest message. Also converts values to other types if specified. + * @param message VStreamRowsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.ShutdownResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VStreamRowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShutdownResponse to JSON. + * Converts this VStreamRowsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunMysqlUpgradeRequest. */ - interface IRunMysqlUpgradeRequest { + /** Properties of a VStreamRowsResponse. */ + interface IVStreamRowsResponse { + + /** VStreamRowsResponse fields */ + fields?: (query.IField[]|null); + + /** VStreamRowsResponse pkfields */ + pkfields?: (query.IField[]|null); + + /** VStreamRowsResponse gtid */ + gtid?: (string|null); + + /** VStreamRowsResponse rows */ + rows?: (query.IRow[]|null); + + /** VStreamRowsResponse lastpk */ + lastpk?: (query.IRow|null); } - /** Represents a RunMysqlUpgradeRequest. */ - class RunMysqlUpgradeRequest implements IRunMysqlUpgradeRequest { + /** Represents a VStreamRowsResponse. */ + class VStreamRowsResponse implements IVStreamRowsResponse { /** - * Constructs a new RunMysqlUpgradeRequest. + * Constructs a new VStreamRowsResponse. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IRunMysqlUpgradeRequest); + constructor(properties?: binlogdata.IVStreamRowsResponse); + + /** VStreamRowsResponse fields. */ + public fields: query.IField[]; + + /** VStreamRowsResponse pkfields. */ + public pkfields: query.IField[]; + + /** VStreamRowsResponse gtid. */ + public gtid: string; + + /** VStreamRowsResponse rows. */ + public rows: query.IRow[]; + + /** VStreamRowsResponse lastpk. */ + public lastpk?: (query.IRow|null); /** - * Creates a new RunMysqlUpgradeRequest instance using the specified properties. + * Creates a new VStreamRowsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RunMysqlUpgradeRequest instance + * @returns VStreamRowsResponse instance */ - public static create(properties?: mysqlctl.IRunMysqlUpgradeRequest): mysqlctl.RunMysqlUpgradeRequest; + public static create(properties?: binlogdata.IVStreamRowsResponse): binlogdata.VStreamRowsResponse; /** - * 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 VStreamRowsResponse message. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. + * @param message VStreamRowsResponse 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: binlogdata.IVStreamRowsResponse, 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 VStreamRowsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. + * @param message VStreamRowsResponse 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: binlogdata.IVStreamRowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer. + * Decodes a VStreamRowsResponse 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 VStreamRowsResponse * @throws {Error} If the payload is 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): binlogdata.VStreamRowsResponse; /** - * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer, length delimited. + * Decodes a VStreamRowsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunMysqlUpgradeRequest + * @returns VStreamRowsResponse * @throws {Error} If the 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)): binlogdata.VStreamRowsResponse; /** - * Verifies a RunMysqlUpgradeRequest message. + * Verifies a VStreamRowsResponse message. * @param message Plain object 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 VStreamRowsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunMysqlUpgradeRequest + * @returns VStreamRowsResponse */ - public static fromObject(object: { [k: string]: any }): mysqlctl.RunMysqlUpgradeRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.VStreamRowsResponse; /** - * 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 VStreamRowsResponse message. Also converts values to other types if specified. + * @param message VStreamRowsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.RunMysqlUpgradeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VStreamRowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunMysqlUpgradeRequest to JSON. + * Converts this VStreamRowsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunMysqlUpgradeResponse. */ - interface IRunMysqlUpgradeResponse { + /** Properties of a LastPKEvent. */ + interface ILastPKEvent { + + /** LastPKEvent table_last_p_k */ + table_last_p_k?: (binlogdata.ITableLastPK|null); + + /** LastPKEvent completed */ + completed?: (boolean|null); } - /** Represents a RunMysqlUpgradeResponse. */ - class RunMysqlUpgradeResponse implements IRunMysqlUpgradeResponse { + /** Represents a LastPKEvent. */ + class LastPKEvent implements ILastPKEvent { /** - * Constructs a new RunMysqlUpgradeResponse. + * Constructs a new LastPKEvent. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IRunMysqlUpgradeResponse); + constructor(properties?: binlogdata.ILastPKEvent); + + /** LastPKEvent table_last_p_k. */ + public table_last_p_k?: (binlogdata.ITableLastPK|null); + + /** LastPKEvent completed. */ + public completed: boolean; /** - * Creates a new RunMysqlUpgradeResponse instance using the specified properties. + * Creates a new LastPKEvent instance using the specified properties. * @param [properties] Properties to set - * @returns RunMysqlUpgradeResponse instance + * @returns LastPKEvent instance */ - public static create(properties?: mysqlctl.IRunMysqlUpgradeResponse): mysqlctl.RunMysqlUpgradeResponse; + public static create(properties?: binlogdata.ILastPKEvent): binlogdata.LastPKEvent; /** - * 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 LastPKEvent message. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. + * @param message LastPKEvent 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: binlogdata.ILastPKEvent, 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 LastPKEvent message, length delimited. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. + * @param message LastPKEvent 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: binlogdata.ILastPKEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer. + * Decodes a LastPKEvent 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 LastPKEvent * @throws {Error} If the payload is 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): binlogdata.LastPKEvent; /** - * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer, length delimited. + * Decodes a LastPKEvent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunMysqlUpgradeResponse + * @returns LastPKEvent * @throws {Error} If the 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)): binlogdata.LastPKEvent; /** - * Verifies a RunMysqlUpgradeResponse message. + * Verifies a LastPKEvent message. * @param message Plain object 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 LastPKEvent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunMysqlUpgradeResponse + * @returns LastPKEvent */ - public static fromObject(object: { [k: string]: any }): mysqlctl.RunMysqlUpgradeResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.LastPKEvent; /** - * 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 LastPKEvent message. Also converts values to other types if specified. + * @param message LastPKEvent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.RunMysqlUpgradeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.LastPKEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunMysqlUpgradeResponse to JSON. + * Converts this LastPKEvent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReinitConfigRequest. */ - interface IReinitConfigRequest { + /** Properties of a TableLastPK. */ + interface ITableLastPK { + + /** TableLastPK table_name */ + table_name?: (string|null); + + /** TableLastPK lastpk */ + lastpk?: (query.IQueryResult|null); } - /** Represents a ReinitConfigRequest. */ - class ReinitConfigRequest implements IReinitConfigRequest { + /** Represents a TableLastPK. */ + class TableLastPK implements ITableLastPK { /** - * Constructs a new ReinitConfigRequest. + * Constructs a new TableLastPK. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IReinitConfigRequest); + constructor(properties?: binlogdata.ITableLastPK); + + /** TableLastPK table_name. */ + public table_name: string; + + /** TableLastPK lastpk. */ + public lastpk?: (query.IQueryResult|null); /** - * Creates a new ReinitConfigRequest instance using the specified properties. + * Creates a new TableLastPK instance using the specified properties. * @param [properties] Properties to set - * @returns ReinitConfigRequest instance + * @returns TableLastPK instance */ - public static create(properties?: mysqlctl.IReinitConfigRequest): mysqlctl.ReinitConfigRequest; + public static create(properties?: binlogdata.ITableLastPK): binlogdata.TableLastPK; /** - * 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 TableLastPK message. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. + * @param message TableLastPK 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: binlogdata.ITableLastPK, 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 TableLastPK message, length delimited. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. + * @param message TableLastPK 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: binlogdata.ITableLastPK, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReinitConfigRequest message from the specified reader or buffer. + * Decodes a TableLastPK 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 TableLastPK * @throws {Error} If the payload is 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): binlogdata.TableLastPK; /** - * Decodes a ReinitConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a TableLastPK message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReinitConfigRequest + * @returns TableLastPK * @throws {Error} If the 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)): binlogdata.TableLastPK; /** - * Verifies a ReinitConfigRequest message. + * Verifies a TableLastPK message. * @param message Plain object 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 TableLastPK message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReinitConfigRequest + * @returns TableLastPK */ - public static fromObject(object: { [k: string]: any }): mysqlctl.ReinitConfigRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.TableLastPK; /** - * 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 TableLastPK message. Also converts values to other types if specified. + * @param message TableLastPK * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.ReinitConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.TableLastPK, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReinitConfigRequest to JSON. + * Converts this TableLastPK to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReinitConfigResponse. */ - interface IReinitConfigResponse { + /** Properties of a VStreamResultsRequest. */ + interface IVStreamResultsRequest { + + /** VStreamResultsRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** VStreamResultsRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** VStreamResultsRequest target */ + target?: (query.ITarget|null); + + /** VStreamResultsRequest query */ + query?: (string|null); } - /** Represents a ReinitConfigResponse. */ - class ReinitConfigResponse implements IReinitConfigResponse { + /** Represents a VStreamResultsRequest. */ + class VStreamResultsRequest implements IVStreamResultsRequest { /** - * Constructs a new ReinitConfigResponse. + * Constructs a new VStreamResultsRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IReinitConfigResponse); + constructor(properties?: binlogdata.IVStreamResultsRequest); + + /** VStreamResultsRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** VStreamResultsRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** VStreamResultsRequest target. */ + public target?: (query.ITarget|null); + + /** VStreamResultsRequest query. */ + public query: string; /** - * Creates a new ReinitConfigResponse instance using the specified properties. + * Creates a new VStreamResultsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReinitConfigResponse instance + * @returns VStreamResultsRequest instance */ - public static create(properties?: mysqlctl.IReinitConfigResponse): mysqlctl.ReinitConfigResponse; + public static create(properties?: binlogdata.IVStreamResultsRequest): binlogdata.VStreamResultsRequest; /** - * 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 VStreamResultsRequest message. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. + * @param message VStreamResultsRequest 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: binlogdata.IVStreamResultsRequest, 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 VStreamResultsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. + * @param message VStreamResultsRequest 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: binlogdata.IVStreamResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReinitConfigResponse message from the specified reader or buffer. + * Decodes a VStreamResultsRequest 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 VStreamResultsRequest * @throws {Error} If the payload is 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): binlogdata.VStreamResultsRequest; /** - * Decodes a ReinitConfigResponse message from the specified reader or buffer, length delimited. + * Decodes a VStreamResultsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReinitConfigResponse + * @returns VStreamResultsRequest * @throws {Error} If the 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)): binlogdata.VStreamResultsRequest; /** - * Verifies a ReinitConfigResponse message. + * Verifies a VStreamResultsRequest message. * @param message Plain object 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 VStreamResultsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReinitConfigResponse + * @returns VStreamResultsRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.ReinitConfigResponse; + public static fromObject(object: { [k: string]: any }): binlogdata.VStreamResultsRequest; /** - * 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 VStreamResultsRequest message. Also converts values to other types if specified. + * @param message VStreamResultsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.ReinitConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VStreamResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReinitConfigResponse to JSON. + * Converts this VStreamResultsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RefreshConfigRequest. */ - interface IRefreshConfigRequest { + /** Properties of a VStreamResultsResponse. */ + interface IVStreamResultsResponse { + + /** VStreamResultsResponse fields */ + fields?: (query.IField[]|null); + + /** VStreamResultsResponse gtid */ + gtid?: (string|null); + + /** VStreamResultsResponse rows */ + rows?: (query.IRow[]|null); } - /** Represents a RefreshConfigRequest. */ - class RefreshConfigRequest implements IRefreshConfigRequest { + /** Represents a VStreamResultsResponse. */ + class VStreamResultsResponse implements IVStreamResultsResponse { /** - * Constructs a new RefreshConfigRequest. + * Constructs a new VStreamResultsResponse. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IRefreshConfigRequest); + constructor(properties?: binlogdata.IVStreamResultsResponse); + + /** VStreamResultsResponse fields. */ + public fields: query.IField[]; + + /** VStreamResultsResponse gtid. */ + public gtid: string; + + /** VStreamResultsResponse rows. */ + public rows: query.IRow[]; /** - * Creates a new RefreshConfigRequest instance using the specified properties. + * Creates a new VStreamResultsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RefreshConfigRequest instance + * @returns VStreamResultsResponse instance */ - public static create(properties?: mysqlctl.IRefreshConfigRequest): mysqlctl.RefreshConfigRequest; + public static create(properties?: binlogdata.IVStreamResultsResponse): binlogdata.VStreamResultsResponse; /** - * 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 VStreamResultsResponse message. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. + * @param message VStreamResultsResponse 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: binlogdata.IVStreamResultsResponse, 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 VStreamResultsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. + * @param message VStreamResultsResponse 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: binlogdata.IVStreamResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RefreshConfigRequest message from the specified reader or buffer. + * Decodes a VStreamResultsResponse 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 VStreamResultsResponse * @throws {Error} If the payload is 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): binlogdata.VStreamResultsResponse; /** - * Decodes a RefreshConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a VStreamResultsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RefreshConfigRequest + * @returns VStreamResultsResponse * @throws {Error} If the 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)): binlogdata.VStreamResultsResponse; /** - * Verifies a RefreshConfigRequest message. + * Verifies a VStreamResultsResponse message. * @param message Plain object 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 VStreamResultsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RefreshConfigRequest + * @returns VStreamResultsResponse */ - public static fromObject(object: { [k: string]: any }): mysqlctl.RefreshConfigRequest; + public static fromObject(object: { [k: string]: any }): binlogdata.VStreamResultsResponse; /** - * 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 VStreamResultsResponse message. Also converts values to other types if specified. + * @param message VStreamResultsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: mysqlctl.RefreshConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: binlogdata.VStreamResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RefreshConfigRequest to JSON. + * Converts this VStreamResultsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } +} - /** Properties of a RefreshConfigResponse. */ - interface IRefreshConfigResponse { +/** Namespace mysqlctl. */ +export namespace mysqlctl { + + /** Properties of a StartRequest. */ + interface IStartRequest { + + /** StartRequest mysqld_args */ + mysqld_args?: (string[]|null); } - /** Represents a RefreshConfigResponse. */ - class RefreshConfigResponse implements IRefreshConfigResponse { + /** Represents a StartRequest. */ + class StartRequest implements IStartRequest { /** - * Constructs a new RefreshConfigResponse. + * Constructs a new StartRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IRefreshConfigResponse); + constructor(properties?: mysqlctl.IStartRequest); + + /** StartRequest mysqld_args. */ + public mysqld_args: string[]; /** - * Creates a new RefreshConfigResponse instance using the specified properties. + * Creates a new StartRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RefreshConfigResponse instance + * @returns StartRequest instance */ - public static create(properties?: mysqlctl.IRefreshConfigResponse): mysqlctl.RefreshConfigResponse; + public static create(properties?: mysqlctl.IStartRequest): mysqlctl.StartRequest; /** - * 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 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.IRefreshConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IStartRequest, 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 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.IRefreshConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IStartRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RefreshConfigResponse 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 RefreshConfigResponse + * @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.RefreshConfigResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.StartRequest; /** - * Decodes a RefreshConfigResponse 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 RefreshConfigResponse + * @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.RefreshConfigResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.StartRequest; /** - * Verifies a RefreshConfigResponse 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 RefreshConfigResponse 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 RefreshConfigResponse + * @returns StartRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.RefreshConfigResponse; + public static fromObject(object: { [k: string]: any }): mysqlctl.StartRequest; /** - * 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 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.RefreshConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.StartRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RefreshConfigResponse to JSON. + * Converts this StartRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a MysqlCtl */ - class MysqlCtl extends $protobuf.rpc.Service { - - /** - * 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); - - /** - * 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; - - /** - * 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; - - /** - * Calls Start. - * @param request StartRequest message or plain object - * @returns Promise - */ - public start(request: mysqlctl.IStartRequest): Promise; - - /** - * 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; - - /** - * Calls Shutdown. - * @param request ShutdownRequest message or plain object - * @returns Promise - */ - public shutdown(request: mysqlctl.IShutdownRequest): Promise; + /** Properties of a StartResponse. */ + interface IStartResponse { + } - /** - * 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; + /** Represents a StartResponse. */ + class StartResponse implements IStartResponse { /** - * Calls RunMysqlUpgrade. - * @param request RunMysqlUpgradeRequest message or plain object - * @returns Promise + * Constructs a new StartResponse. + * @param [properties] Properties to set */ - public runMysqlUpgrade(request: mysqlctl.IRunMysqlUpgradeRequest): Promise; + constructor(properties?: mysqlctl.IStartResponse); /** - * Calls ReinitConfig. - * @param request ReinitConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReinitConfigResponse + * Creates a new StartResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StartResponse instance */ - public reinitConfig(request: mysqlctl.IReinitConfigRequest, callback: mysqlctl.MysqlCtl.ReinitConfigCallback): void; + public static create(properties?: mysqlctl.IStartResponse): mysqlctl.StartResponse; /** - * Calls ReinitConfig. - * @param request ReinitConfigRequest message or plain object - * @returns Promise + * 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 reinitConfig(request: mysqlctl.IReinitConfigRequest): Promise; + public static encode(message: mysqlctl.IStartResponse, 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 + * 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 refreshConfig(request: mysqlctl.IRefreshConfigRequest, callback: mysqlctl.MysqlCtl.RefreshConfigCallback): void; + public static encodeDelimited(message: mysqlctl.IStartResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls RefreshConfig. - * @param request RefreshConfigRequest message or plain object - * @returns Promise + * 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 StartResponse + * @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; - } - - namespace MysqlCtl { + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.StartResponse; /** - * Callback as used by {@link mysqlctl.MysqlCtl#start}. - * @param error Error, if any - * @param [response] StartResponse + * Decodes a StartResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StartResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type StartCallback = (error: (Error|null), response?: mysqlctl.StartResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.StartResponse; /** - * Callback as used by {@link mysqlctl.MysqlCtl#shutdown}. - * @param error Error, if any - * @param [response] ShutdownResponse + * Verifies a StartResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ShutdownCallback = (error: (Error|null), response?: mysqlctl.ShutdownResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link mysqlctl.MysqlCtl#runMysqlUpgrade}. - * @param error Error, if any - * @param [response] RunMysqlUpgradeResponse + * Creates a StartResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartResponse */ - type RunMysqlUpgradeCallback = (error: (Error|null), response?: mysqlctl.RunMysqlUpgradeResponse) => void; + public static fromObject(object: { [k: string]: any }): mysqlctl.StartResponse; /** - * Callback as used by {@link mysqlctl.MysqlCtl#reinitConfig}. - * @param error Error, if any - * @param [response] ReinitConfigResponse + * 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 */ - type ReinitConfigCallback = (error: (Error|null), response?: mysqlctl.ReinitConfigResponse) => void; + public static toObject(message: mysqlctl.StartResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link mysqlctl.MysqlCtl#refreshConfig}. - * @param error Error, if any - * @param [response] RefreshConfigResponse + * Converts this StartResponse to JSON. + * @returns JSON object */ - type RefreshConfigCallback = (error: (Error|null), response?: mysqlctl.RefreshConfigResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a BackupInfo. */ - interface IBackupInfo { - - /** BackupInfo name */ - name?: (string|null); + /** Properties of a ShutdownRequest. */ + interface IShutdownRequest { - /** BackupInfo directory */ - directory?: (string|null); + /** ShutdownRequest wait_for_mysqld */ + wait_for_mysqld?: (boolean|null); } - /** Represents a BackupInfo. */ - class BackupInfo implements IBackupInfo { + /** Represents a ShutdownRequest. */ + class ShutdownRequest implements IShutdownRequest { /** - * Constructs a new BackupInfo. + * Constructs a new ShutdownRequest. * @param [properties] Properties to set */ - constructor(properties?: mysqlctl.IBackupInfo); - - /** BackupInfo name. */ - public name: string; + constructor(properties?: mysqlctl.IShutdownRequest); - /** BackupInfo directory. */ - public directory: string; + /** ShutdownRequest wait_for_mysqld. */ + public wait_for_mysqld: boolean; /** - * Creates a new BackupInfo instance using the specified properties. + * Creates a new ShutdownRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BackupInfo instance + * @returns ShutdownRequest instance */ - public static create(properties?: mysqlctl.IBackupInfo): mysqlctl.BackupInfo; + public static create(properties?: mysqlctl.IShutdownRequest): mysqlctl.ShutdownRequest; /** - * 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 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.IBackupInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IShutdownRequest, 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 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.IBackupInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IShutdownRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BackupInfo 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 BackupInfo + * @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.BackupInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ShutdownRequest; /** - * Decodes a BackupInfo 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 BackupInfo + * @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.BackupInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ShutdownRequest; /** - * Verifies a BackupInfo 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 BackupInfo 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 BackupInfo + * @returns ShutdownRequest */ - public static fromObject(object: { [k: string]: any }): mysqlctl.BackupInfo; + public static fromObject(object: { [k: string]: any }): mysqlctl.ShutdownRequest; - /** - * 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 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.BackupInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.ShutdownRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BackupInfo to JSON. + * Converts this ShutdownRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } -} -/** Namespace vschema. */ -export namespace vschema { - - /** Properties of a RoutingRules. */ - interface IRoutingRules { - - /** RoutingRules rules */ - rules?: (vschema.IRoutingRule[]|null); + /** Properties of a ShutdownResponse. */ + interface IShutdownResponse { } - /** Represents a RoutingRules. */ - class RoutingRules implements IRoutingRules { + /** Represents a ShutdownResponse. */ + class ShutdownResponse implements IShutdownResponse { /** - * Constructs a new RoutingRules. + * Constructs a new ShutdownResponse. * @param [properties] Properties to set */ - constructor(properties?: vschema.IRoutingRules); - - /** RoutingRules rules. */ - public rules: vschema.IRoutingRule[]; + constructor(properties?: mysqlctl.IShutdownResponse); /** - * Creates a new RoutingRules instance using the specified properties. + * Creates a new ShutdownResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RoutingRules instance + * @returns ShutdownResponse instance */ - public static create(properties?: vschema.IRoutingRules): vschema.RoutingRules; + public static create(properties?: mysqlctl.IShutdownResponse): mysqlctl.ShutdownResponse; /** - * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. - * @param message RoutingRules 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: vschema.IRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IShutdownResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. - * @param message RoutingRules message or plain object to encode + * 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: vschema.IRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IShutdownResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RoutingRules 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 RoutingRules + * @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): vschema.RoutingRules; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ShutdownResponse; /** - * Decodes a RoutingRules 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 RoutingRules + * @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)): vschema.RoutingRules; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ShutdownResponse; /** - * Verifies a RoutingRules 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 RoutingRules 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 RoutingRules + * @returns ShutdownResponse */ - public static fromObject(object: { [k: string]: any }): vschema.RoutingRules; + public static fromObject(object: { [k: string]: any }): mysqlctl.ShutdownResponse; /** - * Creates a plain object from a RoutingRules message. Also converts values to other types if specified. - * @param message RoutingRules + * 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: vschema.RoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.ShutdownResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RoutingRules to JSON. + * Converts this ShutdownResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RoutingRule. */ - interface IRoutingRule { - - /** RoutingRule from_table */ - from_table?: (string|null); - - /** RoutingRule to_tables */ - to_tables?: (string[]|null); + /** Properties of a RunMysqlUpgradeRequest. */ + interface IRunMysqlUpgradeRequest { } - /** Represents a RoutingRule. */ - class RoutingRule implements IRoutingRule { + /** Represents a RunMysqlUpgradeRequest. */ + class RunMysqlUpgradeRequest implements IRunMysqlUpgradeRequest { /** - * Constructs a new RoutingRule. + * Constructs a new RunMysqlUpgradeRequest. * @param [properties] Properties to set */ - constructor(properties?: vschema.IRoutingRule); - - /** RoutingRule from_table. */ - public from_table: string; - - /** RoutingRule to_tables. */ - public to_tables: string[]; + constructor(properties?: mysqlctl.IRunMysqlUpgradeRequest); /** - * Creates a new RoutingRule instance using the specified properties. + * Creates a new RunMysqlUpgradeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RoutingRule instance + * @returns RunMysqlUpgradeRequest instance */ - public static create(properties?: vschema.IRoutingRule): vschema.RoutingRule; + public static create(properties?: mysqlctl.IRunMysqlUpgradeRequest): mysqlctl.RunMysqlUpgradeRequest; /** - * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. - * @param message RoutingRule 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: vschema.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IRunMysqlUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. - * @param message RoutingRule message or plain object to encode + * 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: vschema.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IRunMysqlUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RoutingRule 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 RoutingRule + * @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): vschema.RoutingRule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.RunMysqlUpgradeRequest; /** - * Decodes a RoutingRule 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 RoutingRule + * @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)): vschema.RoutingRule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.RunMysqlUpgradeRequest; /** - * Verifies a RoutingRule 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 RoutingRule 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 RoutingRule + * @returns RunMysqlUpgradeRequest */ - public static fromObject(object: { [k: string]: any }): vschema.RoutingRule; + public static fromObject(object: { [k: string]: any }): mysqlctl.RunMysqlUpgradeRequest; /** - * Creates a plain object from a RoutingRule message. Also converts values to other types if specified. - * @param message RoutingRule + * 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: vschema.RoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.RunMysqlUpgradeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RoutingRule to JSON. + * Converts this RunMysqlUpgradeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Keyspace. */ - interface IKeyspace { - - /** Keyspace sharded */ - sharded?: (boolean|null); - - /** Keyspace vindexes */ - vindexes?: ({ [k: string]: vschema.IVindex }|null); - - /** Keyspace tables */ - tables?: ({ [k: string]: vschema.ITable }|null); - - /** Keyspace require_explicit_routing */ - require_explicit_routing?: (boolean|null); + /** Properties of a RunMysqlUpgradeResponse. */ + interface IRunMysqlUpgradeResponse { } - /** Represents a Keyspace. */ - class Keyspace implements IKeyspace { + /** Represents a RunMysqlUpgradeResponse. */ + class RunMysqlUpgradeResponse implements IRunMysqlUpgradeResponse { /** - * Constructs a new Keyspace. + * Constructs a new RunMysqlUpgradeResponse. * @param [properties] Properties to set */ - constructor(properties?: vschema.IKeyspace); - - /** Keyspace sharded. */ - public sharded: boolean; - - /** Keyspace vindexes. */ - public vindexes: { [k: string]: vschema.IVindex }; - - /** Keyspace tables. */ - public tables: { [k: string]: vschema.ITable }; - - /** Keyspace require_explicit_routing. */ - public require_explicit_routing: boolean; + constructor(properties?: mysqlctl.IRunMysqlUpgradeResponse); /** - * Creates a new Keyspace instance using the specified properties. + * Creates a new RunMysqlUpgradeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Keyspace instance + * @returns RunMysqlUpgradeResponse instance */ - public static create(properties?: vschema.IKeyspace): vschema.Keyspace; + public static create(properties?: mysqlctl.IRunMysqlUpgradeResponse): mysqlctl.RunMysqlUpgradeResponse; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. - * @param message Keyspace 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: vschema.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IRunMysqlUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode + * 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: vschema.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IRunMysqlUpgradeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Keyspace 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 Keyspace + * @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): vschema.Keyspace; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.RunMysqlUpgradeResponse; /** - * Decodes a Keyspace 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 Keyspace + * @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)): vschema.Keyspace; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.RunMysqlUpgradeResponse; /** - * Verifies a Keyspace 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 Keyspace 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 Keyspace + * @returns RunMysqlUpgradeResponse */ - public static fromObject(object: { [k: string]: any }): vschema.Keyspace; + public static fromObject(object: { [k: string]: any }): mysqlctl.RunMysqlUpgradeResponse; /** - * 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 RunMysqlUpgradeResponse message. Also converts values to other types if specified. + * @param message RunMysqlUpgradeResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vschema.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.RunMysqlUpgradeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Keyspace to JSON. + * Converts this RunMysqlUpgradeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Vindex. */ - interface IVindex { - - /** Vindex type */ - type?: (string|null); - - /** Vindex params */ - params?: ({ [k: string]: string }|null); - - /** Vindex owner */ - owner?: (string|null); + /** Properties of a ReinitConfigRequest. */ + interface IReinitConfigRequest { } - /** Represents a Vindex. */ - class Vindex implements IVindex { + /** Represents a ReinitConfigRequest. */ + class ReinitConfigRequest implements IReinitConfigRequest { /** - * Constructs a new Vindex. + * Constructs a new ReinitConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: vschema.IVindex); - - /** Vindex type. */ - public type: string; - - /** Vindex params. */ - public params: { [k: string]: string }; - - /** Vindex owner. */ - public owner: string; + constructor(properties?: mysqlctl.IReinitConfigRequest); /** - * Creates a new Vindex instance using the specified properties. + * Creates a new ReinitConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Vindex instance + * @returns ReinitConfigRequest instance */ - public static create(properties?: vschema.IVindex): vschema.Vindex; + public static create(properties?: mysqlctl.IReinitConfigRequest): mysqlctl.ReinitConfigRequest; /** - * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. - * @param message Vindex message or plain object to encode + * 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 static encode(message: vschema.IVindex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IReinitConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. - * @param message Vindex message or plain object to encode + * 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 static encodeDelimited(message: vschema.IVindex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IReinitConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Vindex message from the specified reader or buffer. + * 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 Vindex + * @returns ReinitConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Vindex; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ReinitConfigRequest; /** - * Decodes a Vindex message from the specified reader or buffer, length delimited. + * Decodes a ReinitConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Vindex + * @returns ReinitConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Vindex; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ReinitConfigRequest; /** - * Verifies a Vindex message. + * Verifies a ReinitConfigRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Vindex message from a plain object. Also converts values to their respective internal types. + * Creates a ReinitConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Vindex + * @returns ReinitConfigRequest */ - public static fromObject(object: { [k: string]: any }): vschema.Vindex; + public static fromObject(object: { [k: string]: any }): mysqlctl.ReinitConfigRequest; /** - * Creates a plain object from a Vindex message. Also converts values to other types if specified. - * @param message Vindex + * 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 static toObject(message: vschema.Vindex, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.ReinitConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Vindex to JSON. + * Converts this ReinitConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Table. */ - interface ITable { - - /** Table type */ - type?: (string|null); - - /** Table column_vindexes */ - column_vindexes?: (vschema.IColumnVindex[]|null); - - /** Table auto_increment */ - auto_increment?: (vschema.IAutoIncrement|null); - - /** Table columns */ - columns?: (vschema.IColumn[]|null); - - /** Table pinned */ - pinned?: (string|null); - - /** Table column_list_authoritative */ - column_list_authoritative?: (boolean|null); + /** Properties of a ReinitConfigResponse. */ + interface IReinitConfigResponse { } - /** Represents a Table. */ - class Table implements ITable { + /** Represents a ReinitConfigResponse. */ + class ReinitConfigResponse implements IReinitConfigResponse { /** - * Constructs a new Table. + * Constructs a new ReinitConfigResponse. * @param [properties] Properties to set */ - constructor(properties?: vschema.ITable); - - /** Table type. */ - public type: string; - - /** Table column_vindexes. */ - public column_vindexes: vschema.IColumnVindex[]; - - /** Table auto_increment. */ - public auto_increment?: (vschema.IAutoIncrement|null); - - /** Table columns. */ - public columns: vschema.IColumn[]; - - /** Table pinned. */ - public pinned: string; - - /** Table column_list_authoritative. */ - public column_list_authoritative: boolean; + constructor(properties?: mysqlctl.IReinitConfigResponse); /** - * Creates a new Table instance using the specified properties. + * Creates a new ReinitConfigResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Table instance + * @returns ReinitConfigResponse instance */ - public static create(properties?: vschema.ITable): vschema.Table; + public static create(properties?: mysqlctl.IReinitConfigResponse): mysqlctl.ReinitConfigResponse; /** - * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. - * @param message Table message or plain object to encode + * 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 */ - public static encode(message: vschema.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IReinitConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. - * @param message Table message or plain object to encode + * 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 */ - public static encodeDelimited(message: vschema.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IReinitConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Table message from the specified reader or buffer. + * 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 Table + * @returns ReinitConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Table; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.ReinitConfigResponse; /** - * Decodes a Table message from the specified reader or buffer, length delimited. + * Decodes a ReinitConfigResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Table + * @returns ReinitConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Table; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.ReinitConfigResponse; /** - * Verifies a Table message. + * Verifies a ReinitConfigResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Table message from a plain object. Also converts values to their respective internal types. + * Creates a ReinitConfigResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Table + * @returns ReinitConfigResponse */ - public static fromObject(object: { [k: string]: any }): vschema.Table; + public static fromObject(object: { [k: string]: any }): mysqlctl.ReinitConfigResponse; /** - * Creates a plain object from a Table message. Also converts values to other types if specified. - * @param message Table + * 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 */ - public static toObject(message: vschema.Table, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.ReinitConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Table to JSON. + * Converts this ReinitConfigResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ColumnVindex. */ - interface IColumnVindex { - - /** ColumnVindex column */ - column?: (string|null); - - /** ColumnVindex name */ - name?: (string|null); - - /** ColumnVindex columns */ - columns?: (string[]|null); + /** Properties of a RefreshConfigRequest. */ + interface IRefreshConfigRequest { } - /** Represents a ColumnVindex. */ - class ColumnVindex implements IColumnVindex { + /** Represents a RefreshConfigRequest. */ + class RefreshConfigRequest implements IRefreshConfigRequest { /** - * Constructs a new ColumnVindex. + * Constructs a new RefreshConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: vschema.IColumnVindex); - - /** ColumnVindex column. */ - public column: string; - - /** ColumnVindex name. */ - public name: string; - - /** ColumnVindex columns. */ - public columns: string[]; + constructor(properties?: mysqlctl.IRefreshConfigRequest); /** - * Creates a new ColumnVindex instance using the specified properties. + * Creates a new RefreshConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ColumnVindex instance + * @returns RefreshConfigRequest instance */ - public static create(properties?: vschema.IColumnVindex): vschema.ColumnVindex; + public static create(properties?: mysqlctl.IRefreshConfigRequest): mysqlctl.RefreshConfigRequest; /** - * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. - * @param message ColumnVindex 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: vschema.IColumnVindex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IRefreshConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. - * @param message ColumnVindex message or plain object to encode + * 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: vschema.IColumnVindex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IRefreshConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ColumnVindex 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 ColumnVindex + * @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): vschema.ColumnVindex; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.RefreshConfigRequest; /** - * Decodes a ColumnVindex 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 ColumnVindex + * @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)): vschema.ColumnVindex; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.RefreshConfigRequest; /** - * Verifies a ColumnVindex 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 ColumnVindex 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 ColumnVindex + * @returns RefreshConfigRequest */ - public static fromObject(object: { [k: string]: any }): vschema.ColumnVindex; + public static fromObject(object: { [k: string]: any }): mysqlctl.RefreshConfigRequest; /** - * Creates a plain object from a ColumnVindex message. Also converts values to other types if specified. - * @param message ColumnVindex + * 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: vschema.ColumnVindex, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.RefreshConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ColumnVindex to JSON. + * Converts this RefreshConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AutoIncrement. */ - interface IAutoIncrement { - - /** AutoIncrement column */ - column?: (string|null); - - /** AutoIncrement sequence */ - sequence?: (string|null); + /** Properties of a RefreshConfigResponse. */ + interface IRefreshConfigResponse { } - /** Represents an AutoIncrement. */ - class AutoIncrement implements IAutoIncrement { + /** Represents a RefreshConfigResponse. */ + class RefreshConfigResponse implements IRefreshConfigResponse { /** - * Constructs a new AutoIncrement. + * Constructs a new RefreshConfigResponse. * @param [properties] Properties to set */ - constructor(properties?: vschema.IAutoIncrement); - - /** AutoIncrement column. */ - public column: string; - - /** AutoIncrement sequence. */ - public sequence: string; + constructor(properties?: mysqlctl.IRefreshConfigResponse); /** - * Creates a new AutoIncrement instance using the specified properties. + * Creates a new RefreshConfigResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AutoIncrement instance + * @returns RefreshConfigResponse instance */ - public static create(properties?: vschema.IAutoIncrement): vschema.AutoIncrement; + public static create(properties?: mysqlctl.IRefreshConfigResponse): mysqlctl.RefreshConfigResponse; /** - * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. - * @param message AutoIncrement 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: vschema.IAutoIncrement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IRefreshConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. - * @param message AutoIncrement message or plain object to encode + * 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: vschema.IAutoIncrement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IRefreshConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoIncrement 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 AutoIncrement + * @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): vschema.AutoIncrement; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.RefreshConfigResponse; /** - * Decodes an AutoIncrement 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 AutoIncrement + * @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)): vschema.AutoIncrement; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.RefreshConfigResponse; /** - * Verifies an AutoIncrement 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 an AutoIncrement 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 AutoIncrement + * @returns RefreshConfigResponse */ - public static fromObject(object: { [k: string]: any }): vschema.AutoIncrement; + public static fromObject(object: { [k: string]: any }): mysqlctl.RefreshConfigResponse; /** - * Creates a plain object from an AutoIncrement message. Also converts values to other types if specified. - * @param message AutoIncrement + * 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: vschema.AutoIncrement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.RefreshConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoIncrement to JSON. + * Converts this RefreshConfigResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Column. */ - interface IColumn { + /** Represents a MysqlCtl */ + class MysqlCtl extends $protobuf.rpc.Service { - /** Column name */ - name?: (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); - /** Column type */ - type?: (query.Type|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; - /** Represents a Column. */ - class Column implements IColumn { + /** + * 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; /** - * Constructs a new Column. - * @param [properties] Properties to set + * Calls Start. + * @param request StartRequest message or plain object + * @returns Promise */ - constructor(properties?: vschema.IColumn); + public start(request: mysqlctl.IStartRequest): Promise; - /** Column name. */ - public name: string; + /** + * 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; - /** Column type. */ - public type: query.Type; + /** + * Calls Shutdown. + * @param request ShutdownRequest message or plain object + * @returns Promise + */ + public shutdown(request: mysqlctl.IShutdownRequest): Promise; /** - * Creates a new Column instance using the specified properties. - * @param [properties] Properties to set - * @returns Column instance + * Calls RunMysqlUpgrade. + * @param request RunMysqlUpgradeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RunMysqlUpgradeResponse */ - public static create(properties?: vschema.IColumn): vschema.Column; + public runMysqlUpgrade(request: mysqlctl.IRunMysqlUpgradeRequest, callback: mysqlctl.MysqlCtl.RunMysqlUpgradeCallback): void; /** - * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. - * @param message Column message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls RunMysqlUpgrade. + * @param request RunMysqlUpgradeRequest message or plain object + * @returns Promise */ - public static encode(message: vschema.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; + public runMysqlUpgrade(request: mysqlctl.IRunMysqlUpgradeRequest): Promise; /** - * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. - * @param message Column message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ReinitConfig. + * @param request ReinitConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReinitConfigResponse */ - public static encodeDelimited(message: vschema.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; + public reinitConfig(request: mysqlctl.IReinitConfigRequest, callback: mysqlctl.MysqlCtl.ReinitConfigCallback): void; /** - * Decodes a Column message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Column - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ReinitConfig. + * @param request ReinitConfigRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Column; + public reinitConfig(request: mysqlctl.IReinitConfigRequest): Promise; /** - * Decodes a Column message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Column - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls RefreshConfig. + * @param request RefreshConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RefreshConfigResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Column; + public refreshConfig(request: mysqlctl.IRefreshConfigRequest, callback: mysqlctl.MysqlCtl.RefreshConfigCallback): void; /** - * Verifies a Column message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls RefreshConfig. + * @param request RefreshConfigRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public refreshConfig(request: mysqlctl.IRefreshConfigRequest): Promise; + } + + namespace MysqlCtl { /** - * Creates a Column message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Column + * Callback as used by {@link mysqlctl.MysqlCtl#start}. + * @param error Error, if any + * @param [response] StartResponse */ - public static fromObject(object: { [k: string]: any }): vschema.Column; + type StartCallback = (error: (Error|null), response?: mysqlctl.StartResponse) => void; /** - * Creates a plain object from a Column message. Also converts values to other types if specified. - * @param message Column - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link mysqlctl.MysqlCtl#shutdown}. + * @param error Error, if any + * @param [response] ShutdownResponse */ - public static toObject(message: vschema.Column, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ShutdownCallback = (error: (Error|null), response?: mysqlctl.ShutdownResponse) => void; /** - * Converts this Column to JSON. - * @returns JSON object + * Callback as used by {@link mysqlctl.MysqlCtl#runMysqlUpgrade}. + * @param error Error, if any + * @param [response] RunMysqlUpgradeResponse */ - public toJSON(): { [k: string]: any }; + type RunMysqlUpgradeCallback = (error: (Error|null), response?: mysqlctl.RunMysqlUpgradeResponse) => void; + + /** + * 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; } - /** Properties of a SrvVSchema. */ - interface ISrvVSchema { + /** Properties of a BackupInfo. */ + interface IBackupInfo { - /** SrvVSchema keyspaces */ - keyspaces?: ({ [k: string]: vschema.IKeyspace }|null); + /** BackupInfo name */ + name?: (string|null); - /** SrvVSchema routing_rules */ - routing_rules?: (vschema.IRoutingRules|null); + /** BackupInfo directory */ + directory?: (string|null); } - /** Represents a SrvVSchema. */ - class SrvVSchema implements ISrvVSchema { + /** Represents a BackupInfo. */ + class BackupInfo implements IBackupInfo { /** - * Constructs a new SrvVSchema. + * Constructs a new BackupInfo. * @param [properties] Properties to set */ - constructor(properties?: vschema.ISrvVSchema); + constructor(properties?: mysqlctl.IBackupInfo); - /** SrvVSchema keyspaces. */ - public keyspaces: { [k: string]: vschema.IKeyspace }; + /** BackupInfo name. */ + public name: string; - /** SrvVSchema routing_rules. */ - public routing_rules?: (vschema.IRoutingRules|null); + /** BackupInfo directory. */ + public directory: string; /** - * Creates a new SrvVSchema instance using the specified properties. + * Creates a new BackupInfo instance using the specified properties. * @param [properties] Properties to set - * @returns SrvVSchema instance + * @returns BackupInfo instance */ - public static create(properties?: vschema.ISrvVSchema): vschema.SrvVSchema; + public static create(properties?: mysqlctl.IBackupInfo): mysqlctl.BackupInfo; /** - * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. - * @param message SrvVSchema 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: vschema.ISrvVSchema, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: mysqlctl.IBackupInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. - * @param message SrvVSchema message or plain object to encode + * 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: vschema.ISrvVSchema, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: mysqlctl.IBackupInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SrvVSchema 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 SrvVSchema + * @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): vschema.SrvVSchema; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): mysqlctl.BackupInfo; /** - * Decodes a SrvVSchema 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 SrvVSchema + * @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)): vschema.SrvVSchema; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): mysqlctl.BackupInfo; /** - * Verifies a SrvVSchema 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 SrvVSchema 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 SrvVSchema + * @returns BackupInfo */ - public static fromObject(object: { [k: string]: any }): vschema.SrvVSchema; + public static fromObject(object: { [k: string]: any }): mysqlctl.BackupInfo; /** - * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. - * @param message SrvVSchema + * 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: vschema.SrvVSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: mysqlctl.BackupInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SrvVSchema to JSON. + * Converts this BackupInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; diff --git a/web/vtadmin/src/proto/vtadmin.js b/web/vtadmin/src/proto/vtadmin.js index 0946f07d665..261f288cc9d 100644 --- a/web/vtadmin/src/proto/vtadmin.js +++ b/web/vtadmin/src/proto/vtadmin.js @@ -314,6 +314,72 @@ $root.vtadmin = (function() { * @variation 2 */ + /** + * Callback as used by {@link vtadmin.VTAdmin#getVSchema}. + * @memberof vtadmin.VTAdmin + * @typedef GetVSchemaCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtadmin.VSchema} [response] VSchema + */ + + /** + * Calls GetVSchema. + * @function getVSchema + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IGetVSchemaRequest} request GetVSchemaRequest message or plain object + * @param {vtadmin.VTAdmin.GetVSchemaCallback} callback Node-style callback called with the error, if any, and VSchema + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.getVSchema = function getVSchema(request, callback) { + return this.rpcCall(getVSchema, $root.vtadmin.GetVSchemaRequest, $root.vtadmin.VSchema, request, callback); + }, "name", { value: "GetVSchema" }); + + /** + * Calls GetVSchema. + * @function getVSchema + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IGetVSchemaRequest} request GetVSchemaRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link vtadmin.VTAdmin#getVSchemas}. + * @memberof vtadmin.VTAdmin + * @typedef GetVSchemasCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtadmin.GetVSchemasResponse} [response] GetVSchemasResponse + */ + + /** + * Calls GetVSchemas. + * @function getVSchemas + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IGetVSchemasRequest} request GetVSchemasRequest message or plain object + * @param {vtadmin.VTAdmin.GetVSchemasCallback} callback Node-style callback called with the error, if any, and GetVSchemasResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.getVSchemas = function getVSchemas(request, callback) { + return this.rpcCall(getVSchemas, $root.vtadmin.GetVSchemasRequest, $root.vtadmin.GetVSchemasResponse, request, callback); + }, "name", { value: "GetVSchemas" }); + + /** + * Calls GetVSchemas. + * @function getVSchemas + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IGetVSchemasRequest} request GetVSchemasRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link vtadmin.VTAdmin#vTExplain}. * @memberof vtadmin.VTAdmin @@ -1380,6 +1446,248 @@ $root.vtadmin = (function() { return Tablet; })(); + vtadmin.VSchema = (function() { + + /** + * Properties of a VSchema. + * @memberof vtadmin + * @interface IVSchema + * @property {vtadmin.ICluster|null} [cluster] VSchema cluster + * @property {string|null} [name] VSchema name + * @property {vschema.IKeyspace|null} [v_schema] VSchema v_schema + */ + + /** + * Constructs a new VSchema. + * @memberof vtadmin + * @classdesc Represents a VSchema. + * @implements IVSchema + * @constructor + * @param {vtadmin.IVSchema=} [properties] Properties to set + */ + function VSchema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VSchema cluster. + * @member {vtadmin.ICluster|null|undefined} cluster + * @memberof vtadmin.VSchema + * @instance + */ + VSchema.prototype.cluster = null; + + /** + * VSchema name. + * @member {string} name + * @memberof vtadmin.VSchema + * @instance + */ + VSchema.prototype.name = ""; + + /** + * VSchema v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtadmin.VSchema + * @instance + */ + VSchema.prototype.v_schema = null; + + /** + * Creates a new VSchema instance using the specified properties. + * @function create + * @memberof vtadmin.VSchema + * @static + * @param {vtadmin.IVSchema=} [properties] Properties to set + * @returns {vtadmin.VSchema} VSchema instance + */ + VSchema.create = function create(properties) { + return new VSchema(properties); + }; + + /** + * Encodes the specified VSchema message. Does not implicitly {@link vtadmin.VSchema.verify|verify} messages. + * @function encode + * @memberof vtadmin.VSchema + * @static + * @param {vtadmin.IVSchema} message VSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) + $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VSchema message, length delimited. Does not implicitly {@link vtadmin.VSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof vtadmin.VSchema + * @static + * @param {vtadmin.IVSchema} message VSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VSchema message from the specified reader or buffer. + * @function decode + * @memberof vtadmin.VSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtadmin.VSchema} VSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VSchema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtadmin.VSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtadmin.VSchema} VSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VSchema message. + * @function verify + * @memberof vtadmin.VSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.vtadmin.Cluster.verify(message.cluster); + if (error) + return "cluster." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + var error = $root.vschema.Keyspace.verify(message.v_schema); + if (error) + return "v_schema." + error; + } + return null; + }; + + /** + * Creates a VSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtadmin.VSchema + * @static + * @param {Object.} object Plain object + * @returns {vtadmin.VSchema} VSchema + */ + VSchema.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VSchema) + return object; + var message = new $root.vtadmin.VSchema(); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".vtadmin.VSchema.cluster: object expected"); + message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); + } + if (object.name != null) + message.name = String(object.name); + if (object.v_schema != null) { + if (typeof object.v_schema !== "object") + throw TypeError(".vtadmin.VSchema.v_schema: object expected"); + message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); + } + return message; + }; + + /** + * Creates a plain object from a VSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof vtadmin.VSchema + * @static + * @param {vtadmin.VSchema} message VSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cluster = null; + object.name = ""; + object.v_schema = null; + } + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + return object; + }; + + /** + * Converts this VSchema to JSON. + * @function toJSON + * @memberof vtadmin.VSchema + * @instance + * @returns {Object.} JSON object + */ + VSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VSchema; + })(); + vtadmin.Vtctld = (function() { /** @@ -4589,26 +4897,25 @@ $root.vtadmin = (function() { return GetTabletsResponse; })(); - vtadmin.VTExplainRequest = (function() { + vtadmin.GetVSchemaRequest = (function() { /** - * Properties of a VTExplainRequest. + * Properties of a GetVSchemaRequest. * @memberof vtadmin - * @interface IVTExplainRequest - * @property {string|null} [cluster] VTExplainRequest cluster - * @property {string|null} [keyspace] VTExplainRequest keyspace - * @property {string|null} [sql] VTExplainRequest sql + * @interface IGetVSchemaRequest + * @property {string|null} [cluster_id] GetVSchemaRequest cluster_id + * @property {string|null} [keyspace] GetVSchemaRequest keyspace */ /** - * Constructs a new VTExplainRequest. + * Constructs a new GetVSchemaRequest. * @memberof vtadmin - * @classdesc Represents a VTExplainRequest. - * @implements IVTExplainRequest + * @classdesc Represents a GetVSchemaRequest. + * @implements IGetVSchemaRequest * @constructor - * @param {vtadmin.IVTExplainRequest=} [properties] Properties to set + * @param {vtadmin.IGetVSchemaRequest=} [properties] Properties to set */ - function VTExplainRequest(properties) { + function GetVSchemaRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4616,102 +4923,89 @@ $root.vtadmin = (function() { } /** - * VTExplainRequest cluster. - * @member {string} cluster - * @memberof vtadmin.VTExplainRequest + * GetVSchemaRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.GetVSchemaRequest * @instance */ - VTExplainRequest.prototype.cluster = ""; + GetVSchemaRequest.prototype.cluster_id = ""; /** - * VTExplainRequest keyspace. + * GetVSchemaRequest keyspace. * @member {string} keyspace - * @memberof vtadmin.VTExplainRequest - * @instance - */ - VTExplainRequest.prototype.keyspace = ""; - - /** - * VTExplainRequest sql. - * @member {string} sql - * @memberof vtadmin.VTExplainRequest + * @memberof vtadmin.GetVSchemaRequest * @instance */ - VTExplainRequest.prototype.sql = ""; + GetVSchemaRequest.prototype.keyspace = ""; /** - * Creates a new VTExplainRequest instance using the specified properties. + * Creates a new GetVSchemaRequest instance using the specified properties. * @function create - * @memberof vtadmin.VTExplainRequest + * @memberof vtadmin.GetVSchemaRequest * @static - * @param {vtadmin.IVTExplainRequest=} [properties] Properties to set - * @returns {vtadmin.VTExplainRequest} VTExplainRequest instance + * @param {vtadmin.IGetVSchemaRequest=} [properties] Properties to set + * @returns {vtadmin.GetVSchemaRequest} GetVSchemaRequest instance */ - VTExplainRequest.create = function create(properties) { - return new VTExplainRequest(properties); + GetVSchemaRequest.create = function create(properties) { + return new GetVSchemaRequest(properties); }; /** - * Encodes the specified VTExplainRequest message. Does not implicitly {@link vtadmin.VTExplainRequest.verify|verify} messages. + * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtadmin.GetVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtadmin.VTExplainRequest + * @memberof vtadmin.GetVSchemaRequest * @static - * @param {vtadmin.IVTExplainRequest} message VTExplainRequest message or plain object to encode + * @param {vtadmin.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTExplainRequest.encode = function encode(message, writer) { + GetVSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); - if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sql); return writer; }; /** - * Encodes the specified VTExplainRequest message, length delimited. Does not implicitly {@link vtadmin.VTExplainRequest.verify|verify} messages. + * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtadmin.GetVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.VTExplainRequest + * @memberof vtadmin.GetVSchemaRequest * @static - * @param {vtadmin.IVTExplainRequest} message VTExplainRequest message or plain object to encode + * @param {vtadmin.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTExplainRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VTExplainRequest message from the specified reader or buffer. + * Decodes a GetVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtadmin.VTExplainRequest + * @memberof vtadmin.GetVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.VTExplainRequest} VTExplainRequest + * @returns {vtadmin.GetVSchemaRequest} GetVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VTExplainRequest.decode = function decode(reader, length) { + GetVSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VTExplainRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.GetVSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cluster = reader.string(); + message.cluster_id = reader.string(); break; case 2: message.keyspace = reader.string(); break; - case 3: - message.sql = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -4721,124 +5015,117 @@ $root.vtadmin = (function() { }; /** - * Decodes a VTExplainRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.VTExplainRequest + * @memberof vtadmin.GetVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.VTExplainRequest} VTExplainRequest + * @returns {vtadmin.GetVSchemaRequest} GetVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VTExplainRequest.decodeDelimited = function decodeDelimited(reader) { + GetVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VTExplainRequest message. + * Verifies a GetVSchemaRequest message. * @function verify - * @memberof vtadmin.VTExplainRequest + * @memberof vtadmin.GetVSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VTExplainRequest.verify = function verify(message) { + GetVSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cluster != null && message.hasOwnProperty("cluster")) - if (!$util.isString(message.cluster)) - return "cluster: string expected"; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string 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 (!$util.isString(message.sql)) - return "sql: string expected"; return null; }; /** - * Creates a VTExplainRequest 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. * @function fromObject - * @memberof vtadmin.VTExplainRequest + * @memberof vtadmin.GetVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtadmin.VTExplainRequest} VTExplainRequest + * @returns {vtadmin.GetVSchemaRequest} GetVSchemaRequest */ - VTExplainRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.VTExplainRequest) + GetVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.GetVSchemaRequest) return object; - var message = new $root.vtadmin.VTExplainRequest(); - if (object.cluster != null) - message.cluster = String(object.cluster); + var message = new $root.vtadmin.GetVSchemaRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.sql != null) - message.sql = String(object.sql); return message; }; /** - * Creates a plain object from a VTExplainRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.VTExplainRequest + * @memberof vtadmin.GetVSchemaRequest * @static - * @param {vtadmin.VTExplainRequest} message VTExplainRequest + * @param {vtadmin.GetVSchemaRequest} message GetVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VTExplainRequest.toObject = function toObject(message, options) { + GetVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.cluster = ""; + object.cluster_id = ""; object.keyspace = ""; - object.sql = ""; } - if (message.cluster != null && message.hasOwnProperty("cluster")) - object.cluster = message.cluster; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = message.sql; return object; }; /** - * Converts this VTExplainRequest to JSON. + * Converts this GetVSchemaRequest to JSON. * @function toJSON - * @memberof vtadmin.VTExplainRequest + * @memberof vtadmin.GetVSchemaRequest * @instance * @returns {Object.} JSON object */ - VTExplainRequest.prototype.toJSON = function toJSON() { + GetVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VTExplainRequest; + return GetVSchemaRequest; })(); - vtadmin.VTExplainResponse = (function() { + vtadmin.GetVSchemasRequest = (function() { /** - * Properties of a VTExplainResponse. + * Properties of a GetVSchemasRequest. * @memberof vtadmin - * @interface IVTExplainResponse - * @property {string|null} [response] VTExplainResponse response + * @interface IGetVSchemasRequest + * @property {Array.|null} [cluster_ids] GetVSchemasRequest cluster_ids */ /** - * Constructs a new VTExplainResponse. + * Constructs a new GetVSchemasRequest. * @memberof vtadmin - * @classdesc Represents a VTExplainResponse. - * @implements IVTExplainResponse + * @classdesc Represents a GetVSchemasRequest. + * @implements IGetVSchemasRequest * @constructor - * @param {vtadmin.IVTExplainResponse=} [properties] Properties to set + * @param {vtadmin.IGetVSchemasRequest=} [properties] Properties to set */ - function VTExplainResponse(properties) { + function GetVSchemasRequest(properties) { + this.cluster_ids = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4846,75 +5133,78 @@ $root.vtadmin = (function() { } /** - * VTExplainResponse response. - * @member {string} response - * @memberof vtadmin.VTExplainResponse + * GetVSchemasRequest cluster_ids. + * @member {Array.} cluster_ids + * @memberof vtadmin.GetVSchemasRequest * @instance */ - VTExplainResponse.prototype.response = ""; + GetVSchemasRequest.prototype.cluster_ids = $util.emptyArray; /** - * Creates a new VTExplainResponse instance using the specified properties. + * Creates a new GetVSchemasRequest instance using the specified properties. * @function create - * @memberof vtadmin.VTExplainResponse + * @memberof vtadmin.GetVSchemasRequest * @static - * @param {vtadmin.IVTExplainResponse=} [properties] Properties to set - * @returns {vtadmin.VTExplainResponse} VTExplainResponse instance + * @param {vtadmin.IGetVSchemasRequest=} [properties] Properties to set + * @returns {vtadmin.GetVSchemasRequest} GetVSchemasRequest instance */ - VTExplainResponse.create = function create(properties) { - return new VTExplainResponse(properties); + GetVSchemasRequest.create = function create(properties) { + return new GetVSchemasRequest(properties); }; /** - * Encodes the specified VTExplainResponse message. Does not implicitly {@link vtadmin.VTExplainResponse.verify|verify} messages. + * Encodes the specified GetVSchemasRequest message. Does not implicitly {@link vtadmin.GetVSchemasRequest.verify|verify} messages. * @function encode - * @memberof vtadmin.VTExplainResponse + * @memberof vtadmin.GetVSchemasRequest * @static - * @param {vtadmin.IVTExplainResponse} message VTExplainResponse message or plain object to encode + * @param {vtadmin.IGetVSchemasRequest} message GetVSchemasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTExplainResponse.encode = function encode(message, writer) { + GetVSchemasRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.response != null && Object.hasOwnProperty.call(message, "response")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.response); + if (message.cluster_ids != null && message.cluster_ids.length) + for (var i = 0; i < message.cluster_ids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_ids[i]); return writer; }; /** - * Encodes the specified VTExplainResponse message, length delimited. Does not implicitly {@link vtadmin.VTExplainResponse.verify|verify} messages. + * Encodes the specified GetVSchemasRequest message, length delimited. Does not implicitly {@link vtadmin.GetVSchemasRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.VTExplainResponse + * @memberof vtadmin.GetVSchemasRequest * @static - * @param {vtadmin.IVTExplainResponse} message VTExplainResponse message or plain object to encode + * @param {vtadmin.IGetVSchemasRequest} message GetVSchemasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTExplainResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetVSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VTExplainResponse message from the specified reader or buffer. + * Decodes a GetVSchemasRequest message from the specified reader or buffer. * @function decode - * @memberof vtadmin.VTExplainResponse + * @memberof vtadmin.GetVSchemasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.VTExplainResponse} VTExplainResponse + * @returns {vtadmin.GetVSchemasRequest} GetVSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VTExplainResponse.decode = function decode(reader, length) { + GetVSchemasRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VTExplainResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.GetVSchemasRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.response = reader.string(); + if (!(message.cluster_ids && message.cluster_ids.length)) + message.cluster_ids = []; + message.cluster_ids.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -4925,129 +5215,120 @@ $root.vtadmin = (function() { }; /** - * Decodes a VTExplainResponse message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemasRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.VTExplainResponse + * @memberof vtadmin.GetVSchemasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.VTExplainResponse} VTExplainResponse + * @returns {vtadmin.GetVSchemasRequest} GetVSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VTExplainResponse.decodeDelimited = function decodeDelimited(reader) { + GetVSchemasRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VTExplainResponse message. + * Verifies a GetVSchemasRequest message. * @function verify - * @memberof vtadmin.VTExplainResponse + * @memberof vtadmin.GetVSchemasRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VTExplainResponse.verify = function verify(message) { + GetVSchemasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.response != null && message.hasOwnProperty("response")) - if (!$util.isString(message.response)) - return "response: string expected"; + if (message.cluster_ids != null && message.hasOwnProperty("cluster_ids")) { + if (!Array.isArray(message.cluster_ids)) + return "cluster_ids: array expected"; + for (var i = 0; i < message.cluster_ids.length; ++i) + if (!$util.isString(message.cluster_ids[i])) + return "cluster_ids: string[] expected"; + } return null; }; /** - * Creates a VTExplainResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetVSchemasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.VTExplainResponse + * @memberof vtadmin.GetVSchemasRequest * @static * @param {Object.} object Plain object - * @returns {vtadmin.VTExplainResponse} VTExplainResponse + * @returns {vtadmin.GetVSchemasRequest} GetVSchemasRequest */ - VTExplainResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.VTExplainResponse) + GetVSchemasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.GetVSchemasRequest) return object; - var message = new $root.vtadmin.VTExplainResponse(); - if (object.response != null) - message.response = String(object.response); + var message = new $root.vtadmin.GetVSchemasRequest(); + if (object.cluster_ids) { + if (!Array.isArray(object.cluster_ids)) + throw TypeError(".vtadmin.GetVSchemasRequest.cluster_ids: array expected"); + message.cluster_ids = []; + for (var i = 0; i < object.cluster_ids.length; ++i) + message.cluster_ids[i] = String(object.cluster_ids[i]); + } return message; }; /** - * Creates a plain object from a VTExplainResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetVSchemasRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.VTExplainResponse + * @memberof vtadmin.GetVSchemasRequest * @static - * @param {vtadmin.VTExplainResponse} message VTExplainResponse + * @param {vtadmin.GetVSchemasRequest} message GetVSchemasRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VTExplainResponse.toObject = function toObject(message, options) { + GetVSchemasRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.response = ""; - if (message.response != null && message.hasOwnProperty("response")) - object.response = message.response; + if (options.arrays || options.defaults) + object.cluster_ids = []; + if (message.cluster_ids && message.cluster_ids.length) { + object.cluster_ids = []; + for (var j = 0; j < message.cluster_ids.length; ++j) + object.cluster_ids[j] = message.cluster_ids[j]; + } return object; }; /** - * Converts this VTExplainResponse to JSON. + * Converts this GetVSchemasRequest to JSON. * @function toJSON - * @memberof vtadmin.VTExplainResponse + * @memberof vtadmin.GetVSchemasRequest * @instance * @returns {Object.} JSON object */ - VTExplainResponse.prototype.toJSON = function toJSON() { + GetVSchemasRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VTExplainResponse; + return GetVSchemasRequest; })(); - return vtadmin; -})(); - -$root.tabletmanagerdata = (function() { - - /** - * Namespace tabletmanagerdata. - * @exports tabletmanagerdata - * @namespace - */ - var tabletmanagerdata = {}; - - tabletmanagerdata.TableDefinition = (function() { + vtadmin.GetVSchemasResponse = (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 GetVSchemasResponse. + * @memberof vtadmin + * @interface IGetVSchemasResponse + * @property {Array.|null} [v_schemas] GetVSchemasResponse v_schemas */ /** - * Constructs a new TableDefinition. - * @memberof tabletmanagerdata - * @classdesc Represents a TableDefinition. - * @implements ITableDefinition + * Constructs a new GetVSchemasResponse. + * @memberof vtadmin + * @classdesc Represents a GetVSchemasResponse. + * @implements IGetVSchemasResponse * @constructor - * @param {tabletmanagerdata.ITableDefinition=} [properties] Properties to set + * @param {vtadmin.IGetVSchemasResponse=} [properties] Properties to set */ - function TableDefinition(properties) { - this.columns = []; - this.primary_key_columns = []; - this.fields = []; + function GetVSchemasResponse(properties) { + this.v_schemas = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5055,175 +5336,78 @@ $root.tabletmanagerdata = (function() { } /** - * TableDefinition name. - * @member {string} name - * @memberof tabletmanagerdata.TableDefinition + * GetVSchemasResponse v_schemas. + * @member {Array.} v_schemas + * @memberof vtadmin.GetVSchemasResponse * @instance */ - TableDefinition.prototype.name = ""; + GetVSchemasResponse.prototype.v_schemas = $util.emptyArray; /** - * TableDefinition schema. - * @member {string} schema - * @memberof tabletmanagerdata.TableDefinition - * @instance + * Creates a new GetVSchemasResponse instance using the specified properties. + * @function create + * @memberof vtadmin.GetVSchemasResponse + * @static + * @param {vtadmin.IGetVSchemasResponse=} [properties] Properties to set + * @returns {vtadmin.GetVSchemasResponse} GetVSchemasResponse instance */ - TableDefinition.prototype.schema = ""; + GetVSchemasResponse.create = function create(properties) { + return new GetVSchemasResponse(properties); + }; /** - * TableDefinition columns. - * @member {Array.} columns - * @memberof tabletmanagerdata.TableDefinition - * @instance + * Encodes the specified GetVSchemasResponse message. Does not implicitly {@link vtadmin.GetVSchemasResponse.verify|verify} messages. + * @function encode + * @memberof vtadmin.GetVSchemasResponse + * @static + * @param {vtadmin.IGetVSchemasResponse} message GetVSchemasResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - TableDefinition.prototype.columns = $util.emptyArray; + GetVSchemasResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.v_schemas != null && message.v_schemas.length) + for (var i = 0; i < message.v_schemas.length; ++i) + $root.vtadmin.VSchema.encode(message.v_schemas[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * TableDefinition primary_key_columns. - * @member {Array.} primary_key_columns - * @memberof tabletmanagerdata.TableDefinition - * @instance + * Encodes the specified GetVSchemasResponse message, length delimited. Does not implicitly {@link vtadmin.GetVSchemasResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtadmin.GetVSchemasResponse + * @static + * @param {vtadmin.IGetVSchemasResponse} message GetVSchemasResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - TableDefinition.prototype.primary_key_columns = $util.emptyArray; + GetVSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * 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.TableDefinition - * @static - * @param {tabletmanagerdata.ITableDefinition=} [properties] Properties to set - * @returns {tabletmanagerdata.TableDefinition} TableDefinition instance - */ - TableDefinition.create = function create(properties) { - return new TableDefinition(properties); - }; - - /** - * Encodes the specified TableDefinition message. Does not implicitly {@link tabletmanagerdata.TableDefinition.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.TableDefinition - * @static - * @param {tabletmanagerdata.ITableDefinition} message TableDefinition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TableDefinition.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 (var 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 (var 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 (var 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 TableDefinition message, length delimited. Does not implicitly {@link tabletmanagerdata.TableDefinition.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.TableDefinition - * @static - * @param {tabletmanagerdata.ITableDefinition} message TableDefinition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TableDefinition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TableDefinition message from the specified reader or buffer. + * Decodes a GetVSchemasResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.TableDefinition + * @memberof vtadmin.GetVSchemasResponse * @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 {vtadmin.GetVSchemasResponse} GetVSchemasResponse * @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) { + GetVSchemasResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.TableDefinition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.GetVSchemasResponse(); while (reader.pos < end) { var 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(); - 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())); + if (!(message.v_schemas && message.v_schemas.length)) + message.v_schemas = []; + message.v_schemas.push($root.vtadmin.VSchema.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -5234,238 +5418,126 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a TableDefinition message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemasResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.TableDefinition + * @memberof vtadmin.GetVSchemasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.TableDefinition} TableDefinition + * @returns {vtadmin.GetVSchemasResponse} GetVSchemasResponse * @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) { + GetVSchemasResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TableDefinition message. + * Verifies a GetVSchemasResponse message. * @function verify - * @memberof tabletmanagerdata.TableDefinition + * @memberof vtadmin.GetVSchemasResponse * @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) { + GetVSchemasResponse.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 (var 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 (var 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 (var i = 0; i < message.fields.length; ++i) { - var error = $root.query.Field.verify(message.fields[i]); + if (message.v_schemas != null && message.hasOwnProperty("v_schemas")) { + if (!Array.isArray(message.v_schemas)) + return "v_schemas: array expected"; + for (var i = 0; i < message.v_schemas.length; ++i) { + var error = $root.vtadmin.VSchema.verify(message.v_schemas[i]); if (error) - return "fields." + error; + return "v_schemas." + error; } } return null; }; /** - * Creates a TableDefinition message from a plain object. Also converts values to their respective internal types. + * Creates a GetVSchemasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.TableDefinition + * @memberof vtadmin.GetVSchemasResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.TableDefinition} TableDefinition + * @returns {vtadmin.GetVSchemasResponse} GetVSchemasResponse */ - TableDefinition.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.TableDefinition) + GetVSchemasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.GetVSchemasResponse) return object; - var 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 (var 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 (var 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 (var 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]); + var message = new $root.vtadmin.GetVSchemasResponse(); + if (object.v_schemas) { + if (!Array.isArray(object.v_schemas)) + throw TypeError(".vtadmin.GetVSchemasResponse.v_schemas: array expected"); + message.v_schemas = []; + for (var i = 0; i < object.v_schemas.length; ++i) { + if (typeof object.v_schemas[i] !== "object") + throw TypeError(".vtadmin.GetVSchemasResponse.v_schemas: object expected"); + message.v_schemas[i] = $root.vtadmin.VSchema.fromObject(object.v_schemas[i]); } } return message; }; /** - * Creates a plain object from a TableDefinition message. Also converts values to other types if specified. + * Creates a plain object from a GetVSchemasResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.TableDefinition + * @memberof vtadmin.GetVSchemasResponse * @static - * @param {tabletmanagerdata.TableDefinition} message TableDefinition + * @param {vtadmin.GetVSchemasResponse} message GetVSchemasResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TableDefinition.toObject = function toObject(message, options) { + GetVSchemasResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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) { - var 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) { - var 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 (var 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 (var 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 (var j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + if (options.arrays || options.defaults) + object.v_schemas = []; + if (message.v_schemas && message.v_schemas.length) { + object.v_schemas = []; + for (var j = 0; j < message.v_schemas.length; ++j) + object.v_schemas[j] = $root.vtadmin.VSchema.toObject(message.v_schemas[j], options); } return object; }; /** - * Converts this TableDefinition to JSON. + * Converts this GetVSchemasResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.TableDefinition + * @memberof vtadmin.GetVSchemasResponse * @instance * @returns {Object.} JSON object */ - TableDefinition.prototype.toJSON = function toJSON() { + GetVSchemasResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TableDefinition; + return GetVSchemasResponse; })(); - tabletmanagerdata.SchemaDefinition = (function() { + vtadmin.VTExplainRequest = (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 - * @property {string|null} [version] SchemaDefinition version + * Properties of a VTExplainRequest. + * @memberof vtadmin + * @interface IVTExplainRequest + * @property {string|null} [cluster] VTExplainRequest cluster + * @property {string|null} [keyspace] VTExplainRequest keyspace + * @property {string|null} [sql] VTExplainRequest sql */ /** - * Constructs a new SchemaDefinition. - * @memberof tabletmanagerdata - * @classdesc Represents a SchemaDefinition. - * @implements ISchemaDefinition + * Constructs a new VTExplainRequest. + * @memberof vtadmin + * @classdesc Represents a VTExplainRequest. + * @implements IVTExplainRequest * @constructor - * @param {tabletmanagerdata.ISchemaDefinition=} [properties] Properties to set + * @param {vtadmin.IVTExplainRequest=} [properties] Properties to set */ - function SchemaDefinition(properties) { - this.table_definitions = []; + function VTExplainRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5473,104 +5545,101 @@ $root.tabletmanagerdata = (function() { } /** - * SchemaDefinition database_schema. - * @member {string} database_schema - * @memberof tabletmanagerdata.SchemaDefinition + * VTExplainRequest cluster. + * @member {string} cluster + * @memberof vtadmin.VTExplainRequest * @instance */ - SchemaDefinition.prototype.database_schema = ""; + VTExplainRequest.prototype.cluster = ""; /** - * SchemaDefinition table_definitions. - * @member {Array.} table_definitions - * @memberof tabletmanagerdata.SchemaDefinition + * VTExplainRequest keyspace. + * @member {string} keyspace + * @memberof vtadmin.VTExplainRequest * @instance */ - SchemaDefinition.prototype.table_definitions = $util.emptyArray; + VTExplainRequest.prototype.keyspace = ""; /** - * SchemaDefinition version. - * @member {string} version - * @memberof tabletmanagerdata.SchemaDefinition + * VTExplainRequest sql. + * @member {string} sql + * @memberof vtadmin.VTExplainRequest * @instance */ - SchemaDefinition.prototype.version = ""; + VTExplainRequest.prototype.sql = ""; /** - * Creates a new SchemaDefinition instance using the specified properties. + * Creates a new VTExplainRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof vtadmin.VTExplainRequest * @static - * @param {tabletmanagerdata.ISchemaDefinition=} [properties] Properties to set - * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition instance + * @param {vtadmin.IVTExplainRequest=} [properties] Properties to set + * @returns {vtadmin.VTExplainRequest} VTExplainRequest instance */ - SchemaDefinition.create = function create(properties) { - return new SchemaDefinition(properties); + VTExplainRequest.create = function create(properties) { + return new VTExplainRequest(properties); }; /** - * Encodes the specified SchemaDefinition message. Does not implicitly {@link tabletmanagerdata.SchemaDefinition.verify|verify} messages. + * Encodes the specified VTExplainRequest message. Does not implicitly {@link vtadmin.VTExplainRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof vtadmin.VTExplainRequest * @static - * @param {tabletmanagerdata.ISchemaDefinition} message SchemaDefinition message or plain object to encode + * @param {vtadmin.IVTExplainRequest} message VTExplainRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchemaDefinition.encode = function encode(message, writer) { + VTExplainRequest.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 (var 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.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.version); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); + if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sql); return writer; }; /** - * Encodes the specified SchemaDefinition message, length delimited. Does not implicitly {@link tabletmanagerdata.SchemaDefinition.verify|verify} messages. + * Encodes the specified VTExplainRequest message, length delimited. Does not implicitly {@link vtadmin.VTExplainRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof vtadmin.VTExplainRequest * @static - * @param {tabletmanagerdata.ISchemaDefinition} message SchemaDefinition message or plain object to encode + * @param {vtadmin.IVTExplainRequest} message VTExplainRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchemaDefinition.encodeDelimited = function encodeDelimited(message, writer) { + VTExplainRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SchemaDefinition message from the specified reader or buffer. + * Decodes a VTExplainRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof vtadmin.VTExplainRequest * @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 {vtadmin.VTExplainRequest} VTExplainRequest * @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) { + VTExplainRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SchemaDefinition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VTExplainRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.database_schema = reader.string(); + message.cluster = 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.keyspace = reader.string(); break; case 3: - message.version = reader.string(); + message.sql = reader.string(); break; default: reader.skipType(tag & 7); @@ -5581,143 +5650,124 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a SchemaDefinition message from the specified reader or buffer, length delimited. + * Decodes a VTExplainRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof vtadmin.VTExplainRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition + * @returns {vtadmin.VTExplainRequest} VTExplainRequest * @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) { + VTExplainRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SchemaDefinition message. + * Verifies a VTExplainRequest message. * @function verify - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof vtadmin.VTExplainRequest * @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) { + VTExplainRequest.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 (var i = 0; i < message.table_definitions.length; ++i) { - var error = $root.tabletmanagerdata.TableDefinition.verify(message.table_definitions[i]); - if (error) - return "table_definitions." + error; - } - } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) + if (!$util.isString(message.cluster)) + return "cluster: string 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 (!$util.isString(message.sql)) + return "sql: string expected"; return null; }; /** - * Creates a SchemaDefinition message from a plain object. Also converts values to their respective internal types. + * Creates a VTExplainRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof vtadmin.VTExplainRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition + * @returns {vtadmin.VTExplainRequest} VTExplainRequest */ - SchemaDefinition.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SchemaDefinition) + VTExplainRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VTExplainRequest) return object; - var 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 (var 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]); - } - } - if (object.version != null) - message.version = String(object.version); + var message = new $root.vtadmin.VTExplainRequest(); + if (object.cluster != null) + message.cluster = String(object.cluster); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.sql != null) + message.sql = String(object.sql); return message; }; /** - * Creates a plain object from a SchemaDefinition message. Also converts values to other types if specified. + * Creates a plain object from a VTExplainRequest message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof vtadmin.VTExplainRequest * @static - * @param {tabletmanagerdata.SchemaDefinition} message SchemaDefinition + * @param {vtadmin.VTExplainRequest} message VTExplainRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SchemaDefinition.toObject = function toObject(message, options) { + VTExplainRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.table_definitions = []; if (options.defaults) { - object.database_schema = ""; - object.version = ""; - } - 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 (var j = 0; j < message.table_definitions.length; ++j) - object.table_definitions[j] = $root.tabletmanagerdata.TableDefinition.toObject(message.table_definitions[j], options); + object.cluster = ""; + object.keyspace = ""; + object.sql = ""; } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = message.cluster; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = message.sql; return object; }; /** - * Converts this SchemaDefinition to JSON. + * Converts this VTExplainRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.SchemaDefinition + * @memberof vtadmin.VTExplainRequest * @instance * @returns {Object.} JSON object */ - SchemaDefinition.prototype.toJSON = function toJSON() { + VTExplainRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SchemaDefinition; + return VTExplainRequest; })(); - tabletmanagerdata.SchemaChangeResult = (function() { + vtadmin.VTExplainResponse = (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 VTExplainResponse. + * @memberof vtadmin + * @interface IVTExplainResponse + * @property {string|null} [response] VTExplainResponse response */ /** - * Constructs a new SchemaChangeResult. - * @memberof tabletmanagerdata - * @classdesc Represents a SchemaChangeResult. - * @implements ISchemaChangeResult + * Constructs a new VTExplainResponse. + * @memberof vtadmin + * @classdesc Represents a VTExplainResponse. + * @implements IVTExplainResponse * @constructor - * @param {tabletmanagerdata.ISchemaChangeResult=} [properties] Properties to set + * @param {vtadmin.IVTExplainResponse=} [properties] Properties to set */ - function SchemaChangeResult(properties) { + function VTExplainResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5725,88 +5775,75 @@ $root.tabletmanagerdata = (function() { } /** - * 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 + * VTExplainResponse response. + * @member {string} response + * @memberof vtadmin.VTExplainResponse * @instance */ - SchemaChangeResult.prototype.after_schema = null; + VTExplainResponse.prototype.response = ""; /** - * Creates a new SchemaChangeResult instance using the specified properties. + * Creates a new VTExplainResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof vtadmin.VTExplainResponse * @static - * @param {tabletmanagerdata.ISchemaChangeResult=} [properties] Properties to set - * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult instance + * @param {vtadmin.IVTExplainResponse=} [properties] Properties to set + * @returns {vtadmin.VTExplainResponse} VTExplainResponse instance */ - SchemaChangeResult.create = function create(properties) { - return new SchemaChangeResult(properties); + VTExplainResponse.create = function create(properties) { + return new VTExplainResponse(properties); }; /** - * Encodes the specified SchemaChangeResult message. Does not implicitly {@link tabletmanagerdata.SchemaChangeResult.verify|verify} messages. + * Encodes the specified VTExplainResponse message. Does not implicitly {@link vtadmin.VTExplainResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof vtadmin.VTExplainResponse * @static - * @param {tabletmanagerdata.ISchemaChangeResult} message SchemaChangeResult message or plain object to encode + * @param {vtadmin.IVTExplainResponse} message VTExplainResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchemaChangeResult.encode = function encode(message, writer) { + VTExplainResponse.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.response != null && Object.hasOwnProperty.call(message, "response")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.response); return writer; }; /** - * Encodes the specified SchemaChangeResult message, length delimited. Does not implicitly {@link tabletmanagerdata.SchemaChangeResult.verify|verify} messages. + * Encodes the specified VTExplainResponse message, length delimited. Does not implicitly {@link vtadmin.VTExplainResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof vtadmin.VTExplainResponse * @static - * @param {tabletmanagerdata.ISchemaChangeResult} message SchemaChangeResult message or plain object to encode + * @param {vtadmin.IVTExplainResponse} message VTExplainResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SchemaChangeResult.encodeDelimited = function encodeDelimited(message, writer) { + VTExplainResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SchemaChangeResult message from the specified reader or buffer. + * Decodes a VTExplainResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof vtadmin.VTExplainResponse * @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 {vtadmin.VTExplainResponse} VTExplainResponse * @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) { + VTExplainResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SchemaChangeResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VTExplainResponse(); while (reader.pos < end) { var 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()); + message.response = reader.string(); break; default: reader.skipType(tag & 7); @@ -5817,130 +5854,129 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a SchemaChangeResult message from the specified reader or buffer, length delimited. + * Decodes a VTExplainResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof vtadmin.VTExplainResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult + * @returns {vtadmin.VTExplainResponse} VTExplainResponse * @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) { + VTExplainResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SchemaChangeResult message. + * Verifies a VTExplainResponse message. * @function verify - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof vtadmin.VTExplainResponse * @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) { + VTExplainResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before_schema != null && message.hasOwnProperty("before_schema")) { - var error = $root.tabletmanagerdata.SchemaDefinition.verify(message.before_schema); - if (error) - return "before_schema." + error; - } - if (message.after_schema != null && message.hasOwnProperty("after_schema")) { - var error = $root.tabletmanagerdata.SchemaDefinition.verify(message.after_schema); - if (error) - return "after_schema." + error; - } + if (message.response != null && message.hasOwnProperty("response")) + if (!$util.isString(message.response)) + return "response: string expected"; return null; }; /** - * Creates a SchemaChangeResult message from a plain object. Also converts values to their respective internal types. + * Creates a VTExplainResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof vtadmin.VTExplainResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult + * @returns {vtadmin.VTExplainResponse} VTExplainResponse */ - SchemaChangeResult.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SchemaChangeResult) + VTExplainResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VTExplainResponse) return object; - var 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); - } + var message = new $root.vtadmin.VTExplainResponse(); + if (object.response != null) + message.response = String(object.response); return message; }; /** - * Creates a plain object from a SchemaChangeResult message. Also converts values to other types if specified. + * Creates a plain object from a VTExplainResponse message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof vtadmin.VTExplainResponse * @static - * @param {tabletmanagerdata.SchemaChangeResult} message SchemaChangeResult + * @param {vtadmin.VTExplainResponse} message VTExplainResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SchemaChangeResult.toObject = function toObject(message, options) { + VTExplainResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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); + if (options.defaults) + object.response = ""; + if (message.response != null && message.hasOwnProperty("response")) + object.response = message.response; return object; }; /** - * Converts this SchemaChangeResult to JSON. + * Converts this VTExplainResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.SchemaChangeResult + * @memberof vtadmin.VTExplainResponse * @instance * @returns {Object.} JSON object */ - SchemaChangeResult.prototype.toJSON = function toJSON() { + VTExplainResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SchemaChangeResult; + return VTExplainResponse; })(); - tabletmanagerdata.UserPermission = (function() { + return vtadmin; +})(); + +$root.tabletmanagerdata = (function() { + + /** + * Namespace tabletmanagerdata. + * @exports tabletmanagerdata + * @namespace + */ + var tabletmanagerdata = {}; + + tabletmanagerdata.TableDefinition = (function() { /** - * Properties of a UserPermission. + * Properties of a TableDefinition. * @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 + * @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 UserPermission. + * Constructs a new TableDefinition. * @memberof tabletmanagerdata - * @classdesc Represents a UserPermission. - * @implements IUserPermission + * @classdesc Represents a TableDefinition. + * @implements ITableDefinition * @constructor - * @param {tabletmanagerdata.IUserPermission=} [properties] Properties to set + * @param {tabletmanagerdata.ITableDefinition=} [properties] Properties to set */ - function UserPermission(properties) { - this.privileges = {}; + function TableDefinition(properties) { + this.columns = []; + this.primary_key_columns = []; + this.fields = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5948,134 +5984,175 @@ $root.tabletmanagerdata = (function() { } /** - * UserPermission host. - * @member {string} host - * @memberof tabletmanagerdata.UserPermission + * TableDefinition name. + * @member {string} name + * @memberof tabletmanagerdata.TableDefinition * @instance */ - UserPermission.prototype.host = ""; + TableDefinition.prototype.name = ""; /** - * UserPermission user. - * @member {string} user - * @memberof tabletmanagerdata.UserPermission + * TableDefinition schema. + * @member {string} schema + * @memberof tabletmanagerdata.TableDefinition * @instance */ - UserPermission.prototype.user = ""; + TableDefinition.prototype.schema = ""; /** - * UserPermission password_checksum. - * @member {number|Long} password_checksum - * @memberof tabletmanagerdata.UserPermission + * TableDefinition columns. + * @member {Array.} columns + * @memberof tabletmanagerdata.TableDefinition * @instance */ - UserPermission.prototype.password_checksum = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + TableDefinition.prototype.columns = $util.emptyArray; /** - * UserPermission privileges. - * @member {Object.} privileges - * @memberof tabletmanagerdata.UserPermission + * TableDefinition primary_key_columns. + * @member {Array.} primary_key_columns + * @memberof tabletmanagerdata.TableDefinition * @instance */ - UserPermission.prototype.privileges = $util.emptyObject; + TableDefinition.prototype.primary_key_columns = $util.emptyArray; /** - * Creates a new UserPermission instance using the specified properties. + * 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.UserPermission + * @memberof tabletmanagerdata.TableDefinition * @static - * @param {tabletmanagerdata.IUserPermission=} [properties] Properties to set - * @returns {tabletmanagerdata.UserPermission} UserPermission instance + * @param {tabletmanagerdata.ITableDefinition=} [properties] Properties to set + * @returns {tabletmanagerdata.TableDefinition} TableDefinition instance */ - UserPermission.create = function create(properties) { - return new UserPermission(properties); + TableDefinition.create = function create(properties) { + return new TableDefinition(properties); }; /** - * Encodes the specified UserPermission message. Does not implicitly {@link tabletmanagerdata.UserPermission.verify|verify} messages. + * Encodes the specified TableDefinition message. Does not implicitly {@link tabletmanagerdata.TableDefinition.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.UserPermission + * @memberof tabletmanagerdata.TableDefinition * @static - * @param {tabletmanagerdata.IUserPermission} message UserPermission 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 */ - UserPermission.encode = function encode(message, writer) { + TableDefinition.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 (var 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.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 (var 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 (var 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 (var 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 UserPermission message, length delimited. Does not implicitly {@link tabletmanagerdata.UserPermission.verify|verify} messages. + * Encodes the specified TableDefinition message, length delimited. Does not implicitly {@link tabletmanagerdata.TableDefinition.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.UserPermission + * @memberof tabletmanagerdata.TableDefinition * @static - * @param {tabletmanagerdata.IUserPermission} message UserPermission 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 */ - UserPermission.encodeDelimited = function encodeDelimited(message, writer) { + TableDefinition.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a UserPermission message from the specified reader or buffer. + * Decodes a TableDefinition message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.UserPermission + * @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.UserPermission} UserPermission + * @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 */ - UserPermission.decode = function decode(reader, length) { + TableDefinition.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UserPermission(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.TableDefinition(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.host = reader.string(); + message.name = reader.string(); break; case 2: - message.user = reader.string(); + message.schema = reader.string(); break; case 3: - message.password_checksum = reader.uint64(); + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push(reader.string()); break; case 4: - if (message.privileges === $util.emptyObject) - message.privileges = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.privileges[key] = value; + 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: reader.skipType(tag & 7); @@ -6086,165 +6163,238 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a UserPermission 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.UserPermission + * @memberof tabletmanagerdata.TableDefinition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UserPermission} UserPermission + * @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 */ - UserPermission.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 UserPermission message. + * Verifies a TableDefinition message. * @function verify - * @memberof tabletmanagerdata.UserPermission + * @memberof tabletmanagerdata.TableDefinition * @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) { + TableDefinition.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"; - var key = Object.keys(message.privileges); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.privileges[key[i]])) - return "privileges: string{k:string} 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 (var 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 (var 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 (var i = 0; i < message.fields.length; ++i) { + var error = $root.query.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } } return null; }; /** - * Creates a UserPermission 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.UserPermission + * @memberof tabletmanagerdata.TableDefinition * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UserPermission} UserPermission + * @returns {tabletmanagerdata.TableDefinition} TableDefinition */ - UserPermission.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UserPermission) + TableDefinition.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.TableDefinition) return object; - var 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) + var 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 (var 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 (var 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.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 (var keys = Object.keys(object.privileges), i = 0; i < keys.length; ++i) - message.privileges[keys[i]] = String(object.privileges[keys[i]]); + (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 (var 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 UserPermission 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.UserPermission + * @memberof tabletmanagerdata.TableDefinition * @static - * @param {tabletmanagerdata.UserPermission} message UserPermission + * @param {tabletmanagerdata.TableDefinition} message TableDefinition * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserPermission.toObject = function toObject(message, options) { + TableDefinition.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.privileges = {}; + if (options.arrays || options.defaults) { + object.columns = []; + object.primary_key_columns = []; + object.fields = []; + } if (options.defaults) { - object.host = ""; - object.user = ""; + object.name = ""; + object.schema = ""; + object.type = ""; if ($util.Long) { var long = new $util.Long(0, 0, true); - object.password_checksum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.data_length = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.password_checksum = options.longs === String ? "0" : 0; + object.data_length = options.longs === String ? "0" : 0; + if ($util.Long) { + var 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.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; + 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 (var 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 (var 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.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; - var keys2; - if (message.privileges && (keys2 = Object.keys(message.privileges)).length) { - object.privileges = {}; - for (var j = 0; j < keys2.length; ++j) - object.privileges[keys2[j]] = message.privileges[keys2[j]]; + 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 (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); } return object; }; /** - * Converts this UserPermission to JSON. + * Converts this TableDefinition to JSON. * @function toJSON - * @memberof tabletmanagerdata.UserPermission + * @memberof tabletmanagerdata.TableDefinition * @instance * @returns {Object.} JSON object */ - UserPermission.prototype.toJSON = function toJSON() { + TableDefinition.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UserPermission; + return TableDefinition; })(); - tabletmanagerdata.DbPermission = (function() { + tabletmanagerdata.SchemaDefinition = (function() { /** - * Properties of a DbPermission. + * Properties of a SchemaDefinition. * @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 + * @interface ISchemaDefinition + * @property {string|null} [database_schema] SchemaDefinition database_schema + * @property {Array.|null} [table_definitions] SchemaDefinition table_definitions + * @property {string|null} [version] SchemaDefinition version */ /** - * Constructs a new DbPermission. + * Constructs a new SchemaDefinition. * @memberof tabletmanagerdata - * @classdesc Represents a DbPermission. - * @implements IDbPermission + * @classdesc Represents a SchemaDefinition. + * @implements ISchemaDefinition * @constructor - * @param {tabletmanagerdata.IDbPermission=} [properties] Properties to set + * @param {tabletmanagerdata.ISchemaDefinition=} [properties] Properties to set */ - function DbPermission(properties) { - this.privileges = {}; + function SchemaDefinition(properties) { + this.table_definitions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6252,134 +6402,104 @@ $root.tabletmanagerdata = (function() { } /** - * DbPermission host. - * @member {string} host - * @memberof tabletmanagerdata.DbPermission - * @instance - */ - DbPermission.prototype.host = ""; - - /** - * DbPermission db. - * @member {string} db - * @memberof tabletmanagerdata.DbPermission + * SchemaDefinition database_schema. + * @member {string} database_schema + * @memberof tabletmanagerdata.SchemaDefinition * @instance */ - DbPermission.prototype.db = ""; + SchemaDefinition.prototype.database_schema = ""; /** - * DbPermission user. - * @member {string} user - * @memberof tabletmanagerdata.DbPermission + * SchemaDefinition table_definitions. + * @member {Array.} table_definitions + * @memberof tabletmanagerdata.SchemaDefinition * @instance */ - DbPermission.prototype.user = ""; + SchemaDefinition.prototype.table_definitions = $util.emptyArray; /** - * DbPermission privileges. - * @member {Object.} privileges - * @memberof tabletmanagerdata.DbPermission + * SchemaDefinition version. + * @member {string} version + * @memberof tabletmanagerdata.SchemaDefinition * @instance */ - DbPermission.prototype.privileges = $util.emptyObject; + SchemaDefinition.prototype.version = ""; /** - * Creates a new DbPermission instance using the specified properties. + * Creates a new SchemaDefinition instance using the specified properties. * @function create - * @memberof tabletmanagerdata.DbPermission + * @memberof tabletmanagerdata.SchemaDefinition * @static - * @param {tabletmanagerdata.IDbPermission=} [properties] Properties to set - * @returns {tabletmanagerdata.DbPermission} DbPermission instance + * @param {tabletmanagerdata.ISchemaDefinition=} [properties] Properties to set + * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition instance */ - DbPermission.create = function create(properties) { - return new DbPermission(properties); + SchemaDefinition.create = function create(properties) { + return new SchemaDefinition(properties); }; /** - * Encodes the specified DbPermission message. Does not implicitly {@link tabletmanagerdata.DbPermission.verify|verify} messages. + * Encodes the specified SchemaDefinition message. Does not implicitly {@link tabletmanagerdata.SchemaDefinition.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.DbPermission + * @memberof tabletmanagerdata.SchemaDefinition * @static - * @param {tabletmanagerdata.IDbPermission} message DbPermission 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 */ - DbPermission.encode = function encode(message, writer) { + SchemaDefinition.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 (var 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.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 (var 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.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.version); return writer; }; /** - * Encodes the specified DbPermission message, length delimited. Does not implicitly {@link tabletmanagerdata.DbPermission.verify|verify} messages. + * Encodes the specified SchemaDefinition message, length delimited. Does not implicitly {@link tabletmanagerdata.SchemaDefinition.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.DbPermission + * @memberof tabletmanagerdata.SchemaDefinition * @static - * @param {tabletmanagerdata.IDbPermission} message DbPermission 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 */ - DbPermission.encodeDelimited = function encodeDelimited(message, writer) { + SchemaDefinition.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DbPermission message from the specified reader or buffer. + * Decodes a SchemaDefinition message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.DbPermission + * @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.DbPermission} DbPermission + * @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 */ - DbPermission.decode = function decode(reader, length) { + SchemaDefinition.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DbPermission(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SchemaDefinition(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.host = reader.string(); + message.database_schema = reader.string(); break; case 2: - message.db = reader.string(); + if (!(message.table_definitions && message.table_definitions.length)) + message.table_definitions = []; + message.table_definitions.push($root.tabletmanagerdata.TableDefinition.decode(reader, reader.uint32())); break; case 3: - message.user = reader.string(); - break; - case 4: - if (message.privileges === $util.emptyObject) - message.privileges = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.privileges[key] = value; + message.version = reader.string(); break; default: reader.skipType(tag & 7); @@ -6390,150 +6510,143 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a DbPermission 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.DbPermission + * @memberof tabletmanagerdata.SchemaDefinition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.DbPermission} DbPermission + * @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 */ - DbPermission.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 DbPermission message. + * Verifies a SchemaDefinition message. * @function verify - * @memberof tabletmanagerdata.DbPermission + * @memberof tabletmanagerdata.SchemaDefinition * @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) { + SchemaDefinition.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"; - var key = Object.keys(message.privileges); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.privileges[key[i]])) - return "privileges: string{k:string} 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 (var i = 0; i < message.table_definitions.length; ++i) { + var error = $root.tabletmanagerdata.TableDefinition.verify(message.table_definitions[i]); + if (error) + return "table_definitions." + error; + } } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; return null; }; /** - * Creates a DbPermission 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.DbPermission + * @memberof tabletmanagerdata.SchemaDefinition * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.DbPermission} DbPermission + * @returns {tabletmanagerdata.SchemaDefinition} SchemaDefinition */ - DbPermission.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.DbPermission) + SchemaDefinition.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SchemaDefinition) return object; - var 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 (var keys = Object.keys(object.privileges), i = 0; i < keys.length; ++i) - message.privileges[keys[i]] = String(object.privileges[keys[i]]); + var 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 (var 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]); + } } + if (object.version != null) + message.version = String(object.version); return message; }; /** - * Creates a plain object from a DbPermission 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.DbPermission + * @memberof tabletmanagerdata.SchemaDefinition * @static - * @param {tabletmanagerdata.DbPermission} message DbPermission + * @param {tabletmanagerdata.SchemaDefinition} message SchemaDefinition * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DbPermission.toObject = function toObject(message, options) { + SchemaDefinition.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.privileges = {}; + if (options.arrays || options.defaults) + object.table_definitions = []; if (options.defaults) { - object.host = ""; - object.db = ""; - object.user = ""; + object.database_schema = ""; + object.version = ""; } - 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; - var keys2; - if (message.privileges && (keys2 = Object.keys(message.privileges)).length) { - object.privileges = {}; - for (var j = 0; j < keys2.length; ++j) - object.privileges[keys2[j]] = message.privileges[keys2[j]]; + 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 (var j = 0; j < message.table_definitions.length; ++j) + object.table_definitions[j] = $root.tabletmanagerdata.TableDefinition.toObject(message.table_definitions[j], options); } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; return object; }; /** - * Converts this DbPermission to JSON. + * Converts this SchemaDefinition to JSON. * @function toJSON - * @memberof tabletmanagerdata.DbPermission + * @memberof tabletmanagerdata.SchemaDefinition * @instance * @returns {Object.} JSON object */ - DbPermission.prototype.toJSON = function toJSON() { + SchemaDefinition.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DbPermission; + return SchemaDefinition; })(); - tabletmanagerdata.Permissions = (function() { + tabletmanagerdata.SchemaChangeResult = (function() { /** - * Properties of a Permissions. + * Properties of a SchemaChangeResult. * @memberof tabletmanagerdata - * @interface IPermissions - * @property {Array.|null} [user_permissions] Permissions user_permissions - * @property {Array.|null} [db_permissions] Permissions db_permissions + * @interface ISchemaChangeResult + * @property {tabletmanagerdata.ISchemaDefinition|null} [before_schema] SchemaChangeResult before_schema + * @property {tabletmanagerdata.ISchemaDefinition|null} [after_schema] SchemaChangeResult after_schema */ /** - * Constructs a new Permissions. + * Constructs a new SchemaChangeResult. * @memberof tabletmanagerdata - * @classdesc Represents a Permissions. - * @implements IPermissions + * @classdesc Represents a SchemaChangeResult. + * @implements ISchemaChangeResult * @constructor - * @param {tabletmanagerdata.IPermissions=} [properties] Properties to set + * @param {tabletmanagerdata.ISchemaChangeResult=} [properties] Properties to set */ - function Permissions(properties) { - this.user_permissions = []; - this.db_permissions = []; + function SchemaChangeResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6541,94 +6654,88 @@ $root.tabletmanagerdata = (function() { } /** - * Permissions user_permissions. - * @member {Array.} user_permissions - * @memberof tabletmanagerdata.Permissions + * SchemaChangeResult before_schema. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} before_schema + * @memberof tabletmanagerdata.SchemaChangeResult * @instance */ - Permissions.prototype.user_permissions = $util.emptyArray; + SchemaChangeResult.prototype.before_schema = null; /** - * Permissions db_permissions. - * @member {Array.} db_permissions - * @memberof tabletmanagerdata.Permissions + * SchemaChangeResult after_schema. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} after_schema + * @memberof tabletmanagerdata.SchemaChangeResult * @instance */ - Permissions.prototype.db_permissions = $util.emptyArray; + SchemaChangeResult.prototype.after_schema = null; /** - * Creates a new Permissions instance using the specified properties. + * Creates a new SchemaChangeResult instance using the specified properties. * @function create - * @memberof tabletmanagerdata.Permissions + * @memberof tabletmanagerdata.SchemaChangeResult * @static - * @param {tabletmanagerdata.IPermissions=} [properties] Properties to set - * @returns {tabletmanagerdata.Permissions} Permissions instance + * @param {tabletmanagerdata.ISchemaChangeResult=} [properties] Properties to set + * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult instance */ - Permissions.create = function create(properties) { - return new Permissions(properties); + SchemaChangeResult.create = function create(properties) { + return new SchemaChangeResult(properties); }; /** - * Encodes the specified Permissions message. Does not implicitly {@link tabletmanagerdata.Permissions.verify|verify} messages. + * Encodes the specified SchemaChangeResult message. Does not implicitly {@link tabletmanagerdata.SchemaChangeResult.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.Permissions + * @memberof tabletmanagerdata.SchemaChangeResult * @static - * @param {tabletmanagerdata.IPermissions} message Permissions 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 */ - Permissions.encode = function encode(message, writer) { + SchemaChangeResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.user_permissions != null && message.user_permissions.length) - for (var 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 (var 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.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 Permissions message, length delimited. Does not implicitly {@link tabletmanagerdata.Permissions.verify|verify} messages. + * Encodes the specified SchemaChangeResult message, length delimited. Does not implicitly {@link tabletmanagerdata.SchemaChangeResult.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.Permissions + * @memberof tabletmanagerdata.SchemaChangeResult * @static - * @param {tabletmanagerdata.IPermissions} message Permissions 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 */ - Permissions.encodeDelimited = function encodeDelimited(message, writer) { + SchemaChangeResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Permissions message from the specified reader or buffer. + * Decodes a SchemaChangeResult message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.Permissions + * @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.Permissions} Permissions + * @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 */ - Permissions.decode = function decode(reader, length) { + SchemaChangeResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.Permissions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SchemaChangeResult(); while (reader.pos < end) { var 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())); + message.before_schema = $root.tabletmanagerdata.SchemaDefinition.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())); + message.after_schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -6639,150 +6746,130 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a Permissions 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.Permissions + * @memberof tabletmanagerdata.SchemaChangeResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.Permissions} Permissions + * @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 */ - Permissions.decodeDelimited = function decodeDelimited(reader) { + SchemaChangeResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Permissions message. + * Verifies a SchemaChangeResult message. * @function verify - * @memberof tabletmanagerdata.Permissions + * @memberof tabletmanagerdata.SchemaChangeResult * @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) { + SchemaChangeResult.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 (var i = 0; i < message.user_permissions.length; ++i) { - var error = $root.tabletmanagerdata.UserPermission.verify(message.user_permissions[i]); - if (error) - return "user_permissions." + error; - } + if (message.before_schema != null && message.hasOwnProperty("before_schema")) { + var error = $root.tabletmanagerdata.SchemaDefinition.verify(message.before_schema); + if (error) + return "before_schema." + error; } - if (message.db_permissions != null && message.hasOwnProperty("db_permissions")) { - if (!Array.isArray(message.db_permissions)) - return "db_permissions: array expected"; - for (var i = 0; i < message.db_permissions.length; ++i) { - var error = $root.tabletmanagerdata.DbPermission.verify(message.db_permissions[i]); - if (error) - return "db_permissions." + error; - } + if (message.after_schema != null && message.hasOwnProperty("after_schema")) { + var error = $root.tabletmanagerdata.SchemaDefinition.verify(message.after_schema); + if (error) + return "after_schema." + error; } return null; }; /** - * Creates a Permissions 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.Permissions + * @memberof tabletmanagerdata.SchemaChangeResult * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.Permissions} Permissions + * @returns {tabletmanagerdata.SchemaChangeResult} SchemaChangeResult */ - Permissions.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.Permissions) + SchemaChangeResult.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SchemaChangeResult) return object; - var 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 (var 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 (var 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]); - } + var 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); } - return message; - }; + 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 a Permissions 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.Permissions + * @memberof tabletmanagerdata.SchemaChangeResult * @static - * @param {tabletmanagerdata.Permissions} message Permissions + * @param {tabletmanagerdata.SchemaChangeResult} message SchemaChangeResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Permissions.toObject = function toObject(message, options) { + SchemaChangeResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.user_permissions = []; - object.db_permissions = []; - } - if (message.user_permissions && message.user_permissions.length) { - object.user_permissions = []; - for (var 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 (var j = 0; j < message.db_permissions.length; ++j) - object.db_permissions[j] = $root.tabletmanagerdata.DbPermission.toObject(message.db_permissions[j], 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 Permissions to JSON. + * Converts this SchemaChangeResult to JSON. * @function toJSON - * @memberof tabletmanagerdata.Permissions + * @memberof tabletmanagerdata.SchemaChangeResult * @instance * @returns {Object.} JSON object */ - Permissions.prototype.toJSON = function toJSON() { + SchemaChangeResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Permissions; + return SchemaChangeResult; })(); - tabletmanagerdata.PingRequest = (function() { + tabletmanagerdata.UserPermission = (function() { /** - * Properties of a PingRequest. + * Properties of a UserPermission. * @memberof tabletmanagerdata - * @interface IPingRequest - * @property {string|null} [payload] PingRequest payload + * @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 PingRequest. + * Constructs a new UserPermission. * @memberof tabletmanagerdata - * @classdesc Represents a PingRequest. - * @implements IPingRequest + * @classdesc Represents a UserPermission. + * @implements IUserPermission * @constructor - * @param {tabletmanagerdata.IPingRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IUserPermission=} [properties] Properties to set */ - function PingRequest(properties) { + function UserPermission(properties) { + this.privileges = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6790,75 +6877,134 @@ $root.tabletmanagerdata = (function() { } /** - * PingRequest payload. - * @member {string} payload - * @memberof tabletmanagerdata.PingRequest + * UserPermission host. + * @member {string} host + * @memberof tabletmanagerdata.UserPermission * @instance */ - PingRequest.prototype.payload = ""; + UserPermission.prototype.host = ""; /** - * Creates a new PingRequest instance using the specified properties. + * UserPermission user. + * @member {string} user + * @memberof tabletmanagerdata.UserPermission + * @instance + */ + UserPermission.prototype.user = ""; + + /** + * UserPermission password_checksum. + * @member {number|Long} password_checksum + * @memberof tabletmanagerdata.UserPermission + * @instance + */ + UserPermission.prototype.password_checksum = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * 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.PingRequest + * @memberof tabletmanagerdata.UserPermission * @static - * @param {tabletmanagerdata.IPingRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.PingRequest} PingRequest instance + * @param {tabletmanagerdata.IUserPermission=} [properties] Properties to set + * @returns {tabletmanagerdata.UserPermission} UserPermission instance */ - PingRequest.create = function create(properties) { - return new PingRequest(properties); + UserPermission.create = function create(properties) { + return new UserPermission(properties); }; /** - * Encodes the specified PingRequest message. Does not implicitly {@link tabletmanagerdata.PingRequest.verify|verify} messages. + * Encodes the specified UserPermission message. Does not implicitly {@link tabletmanagerdata.UserPermission.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PingRequest + * @memberof tabletmanagerdata.UserPermission * @static - * @param {tabletmanagerdata.IPingRequest} message PingRequest 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 */ - PingRequest.encode = function encode(message, writer) { + UserPermission.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.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 (var 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 PingRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PingRequest.verify|verify} messages. + * Encodes the specified UserPermission message, length delimited. Does not implicitly {@link tabletmanagerdata.UserPermission.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PingRequest + * @memberof tabletmanagerdata.UserPermission * @static - * @param {tabletmanagerdata.IPingRequest} message PingRequest 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 */ - PingRequest.encodeDelimited = function encodeDelimited(message, writer) { + UserPermission.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PingRequest message from the specified reader or buffer. + * Decodes a UserPermission message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PingRequest + * @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.PingRequest} PingRequest + * @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 */ - PingRequest.decode = function decode(reader, length) { + UserPermission.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PingRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UserPermission(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.payload = reader.string(); + message.host = reader.string(); + break; + case 2: + message.user = reader.string(); + break; + case 3: + message.password_checksum = reader.uint64(); + break; + case 4: + if (message.privileges === $util.emptyObject) + message.privileges = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.privileges[key] = value; break; default: reader.skipType(tag & 7); @@ -6869,107 +7015,165 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a PingRequest 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.PingRequest + * @memberof tabletmanagerdata.UserPermission * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PingRequest} PingRequest + * @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 */ - PingRequest.decodeDelimited = function decodeDelimited(reader) { + UserPermission.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PingRequest message. + * Verifies a UserPermission message. * @function verify - * @memberof tabletmanagerdata.PingRequest + * @memberof tabletmanagerdata.UserPermission * @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) { + UserPermission.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.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"; + var key = Object.keys(message.privileges); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.privileges[key[i]])) + return "privileges: string{k:string} expected"; + } return null; }; /** - * Creates a PingRequest 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.PingRequest + * @memberof tabletmanagerdata.UserPermission * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PingRequest} PingRequest + * @returns {tabletmanagerdata.UserPermission} UserPermission */ - PingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PingRequest) + UserPermission.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UserPermission) return object; - var message = new $root.tabletmanagerdata.PingRequest(); - if (object.payload != null) - message.payload = String(object.payload); + var 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 (var 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 a PingRequest 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.PingRequest + * @memberof tabletmanagerdata.UserPermission * @static - * @param {tabletmanagerdata.PingRequest} message PingRequest + * @param {tabletmanagerdata.UserPermission} message UserPermission * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PingRequest.toObject = function toObject(message, options) { + UserPermission.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.payload = ""; - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = message.payload; + if (options.objects || options.defaults) + object.privileges = {}; + if (options.defaults) { + object.host = ""; + object.user = ""; + if ($util.Long) { + var 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; + var keys2; + if (message.privileges && (keys2 = Object.keys(message.privileges)).length) { + object.privileges = {}; + for (var j = 0; j < keys2.length; ++j) + object.privileges[keys2[j]] = message.privileges[keys2[j]]; + } return object; }; /** - * Converts this PingRequest to JSON. + * Converts this UserPermission to JSON. * @function toJSON - * @memberof tabletmanagerdata.PingRequest + * @memberof tabletmanagerdata.UserPermission * @instance * @returns {Object.} JSON object */ - PingRequest.prototype.toJSON = function toJSON() { + UserPermission.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PingRequest; + return UserPermission; })(); - tabletmanagerdata.PingResponse = (function() { + tabletmanagerdata.DbPermission = (function() { /** - * Properties of a PingResponse. + * Properties of a DbPermission. * @memberof tabletmanagerdata - * @interface IPingResponse - * @property {string|null} [payload] PingResponse payload + * @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 PingResponse. + * Constructs a new DbPermission. * @memberof tabletmanagerdata - * @classdesc Represents a PingResponse. - * @implements IPingResponse + * @classdesc Represents a DbPermission. + * @implements IDbPermission * @constructor - * @param {tabletmanagerdata.IPingResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IDbPermission=} [properties] Properties to set */ - function PingResponse(properties) { + function DbPermission(properties) { + this.privileges = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6977,75 +7181,134 @@ $root.tabletmanagerdata = (function() { } /** - * PingResponse payload. - * @member {string} payload - * @memberof tabletmanagerdata.PingResponse + * DbPermission host. + * @member {string} host + * @memberof tabletmanagerdata.DbPermission * @instance */ - PingResponse.prototype.payload = ""; + DbPermission.prototype.host = ""; /** - * Creates a new PingResponse instance using the specified properties. + * 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 + * @instance + */ + DbPermission.prototype.privileges = $util.emptyObject; + + /** + * Creates a new DbPermission instance using the specified properties. * @function create - * @memberof tabletmanagerdata.PingResponse + * @memberof tabletmanagerdata.DbPermission * @static - * @param {tabletmanagerdata.IPingResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.PingResponse} PingResponse instance + * @param {tabletmanagerdata.IDbPermission=} [properties] Properties to set + * @returns {tabletmanagerdata.DbPermission} DbPermission instance */ - PingResponse.create = function create(properties) { - return new PingResponse(properties); + DbPermission.create = function create(properties) { + return new DbPermission(properties); }; /** - * Encodes the specified PingResponse message. Does not implicitly {@link tabletmanagerdata.PingResponse.verify|verify} messages. + * Encodes the specified DbPermission message. Does not implicitly {@link tabletmanagerdata.DbPermission.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.PingResponse + * @memberof tabletmanagerdata.DbPermission * @static - * @param {tabletmanagerdata.IPingResponse} message PingResponse 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 */ - PingResponse.encode = function encode(message, writer) { + DbPermission.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.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 (var 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 PingResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PingResponse.verify|verify} messages. + * Encodes the specified DbPermission message, length delimited. Does not implicitly {@link tabletmanagerdata.DbPermission.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.PingResponse + * @memberof tabletmanagerdata.DbPermission * @static - * @param {tabletmanagerdata.IPingResponse} message PingResponse 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 */ - PingResponse.encodeDelimited = function encodeDelimited(message, writer) { + DbPermission.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PingResponse message from the specified reader or buffer. + * Decodes a DbPermission message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.PingResponse + * @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.PingResponse} PingResponse + * @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 */ - PingResponse.decode = function decode(reader, length) { + DbPermission.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PingResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.DbPermission(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.payload = reader.string(); + 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 = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.privileges[key] = value; break; default: reader.skipType(tag & 7); @@ -7056,107 +7319,150 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a PingResponse 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.PingResponse + * @memberof tabletmanagerdata.DbPermission * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.PingResponse} PingResponse + * @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 */ - PingResponse.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 PingResponse message. + * Verifies a DbPermission message. * @function verify - * @memberof tabletmanagerdata.PingResponse + * @memberof tabletmanagerdata.DbPermission * @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) { + DbPermission.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.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"; + var key = Object.keys(message.privileges); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.privileges[key[i]])) + return "privileges: string{k:string} expected"; + } return null; }; /** - * Creates a PingResponse 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.PingResponse + * @memberof tabletmanagerdata.DbPermission * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.PingResponse} PingResponse + * @returns {tabletmanagerdata.DbPermission} DbPermission */ - PingResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.PingResponse) + DbPermission.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.DbPermission) return object; - var message = new $root.tabletmanagerdata.PingResponse(); - if (object.payload != null) - message.payload = String(object.payload); + var 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 (var 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 a PingResponse 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.PingResponse + * @memberof tabletmanagerdata.DbPermission * @static - * @param {tabletmanagerdata.PingResponse} message PingResponse + * @param {tabletmanagerdata.DbPermission} message DbPermission * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PingResponse.toObject = function toObject(message, options) { + DbPermission.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.payload = ""; - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = message.payload; - return object; - }; - - /** - * Converts this PingResponse to JSON. - * @function toJSON - * @memberof tabletmanagerdata.PingResponse - * @instance - * @returns {Object.} JSON object - */ - PingResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PingResponse; - })(); + 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; + var keys2; + if (message.privileges && (keys2 = Object.keys(message.privileges)).length) { + object.privileges = {}; + for (var j = 0; j < keys2.length; ++j) + object.privileges[keys2[j]] = message.privileges[keys2[j]]; + } + return object; + }; - tabletmanagerdata.SleepRequest = (function() { + /** + * Converts this DbPermission to JSON. + * @function toJSON + * @memberof tabletmanagerdata.DbPermission + * @instance + * @returns {Object.} JSON object + */ + DbPermission.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DbPermission; + })(); + + tabletmanagerdata.Permissions = (function() { /** - * Properties of a SleepRequest. + * Properties of a Permissions. * @memberof tabletmanagerdata - * @interface ISleepRequest - * @property {number|Long|null} [duration] SleepRequest duration + * @interface IPermissions + * @property {Array.|null} [user_permissions] Permissions user_permissions + * @property {Array.|null} [db_permissions] Permissions db_permissions */ /** - * Constructs a new SleepRequest. + * Constructs a new Permissions. * @memberof tabletmanagerdata - * @classdesc Represents a SleepRequest. - * @implements ISleepRequest + * @classdesc Represents a Permissions. + * @implements IPermissions * @constructor - * @param {tabletmanagerdata.ISleepRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IPermissions=} [properties] Properties to set */ - function SleepRequest(properties) { + function Permissions(properties) { + this.user_permissions = []; + this.db_permissions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7164,75 +7470,94 @@ $root.tabletmanagerdata = (function() { } /** - * SleepRequest duration. - * @member {number|Long} duration - * @memberof tabletmanagerdata.SleepRequest + * Permissions user_permissions. + * @member {Array.} user_permissions + * @memberof tabletmanagerdata.Permissions * @instance */ - SleepRequest.prototype.duration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Permissions.prototype.user_permissions = $util.emptyArray; /** - * Creates a new SleepRequest 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.SleepRequest + * @memberof tabletmanagerdata.Permissions * @static - * @param {tabletmanagerdata.ISleepRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.SleepRequest} SleepRequest instance + * @param {tabletmanagerdata.IPermissions=} [properties] Properties to set + * @returns {tabletmanagerdata.Permissions} Permissions instance */ - SleepRequest.create = function create(properties) { - return new SleepRequest(properties); + Permissions.create = function create(properties) { + return new Permissions(properties); }; /** - * Encodes the specified SleepRequest message. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. + * Encodes the specified Permissions message. Does not implicitly {@link tabletmanagerdata.Permissions.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.Permissions * @static - * @param {tabletmanagerdata.ISleepRequest} message SleepRequest 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 */ - SleepRequest.encode = function encode(message, writer) { + Permissions.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.user_permissions != null && message.user_permissions.length) + for (var 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 (var 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 SleepRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. + * Encodes the specified Permissions message, length delimited. Does not implicitly {@link tabletmanagerdata.Permissions.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.Permissions * @static - * @param {tabletmanagerdata.ISleepRequest} message SleepRequest 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 */ - SleepRequest.encodeDelimited = function encodeDelimited(message, writer) { + Permissions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SleepRequest message from the specified reader or buffer. + * Decodes a Permissions message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SleepRequest + * @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.SleepRequest} SleepRequest + * @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 */ - SleepRequest.decode = function decode(reader, length) { + Permissions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SleepRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.Permissions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.duration = reader.int64(); + 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: reader.skipType(tag & 7); @@ -7243,120 +7568,150 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a SleepRequest 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.SleepRequest + * @memberof tabletmanagerdata.Permissions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SleepRequest} SleepRequest + * @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 */ - SleepRequest.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 SleepRequest message. + * Verifies a Permissions message. * @function verify - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.Permissions * @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) { + Permissions.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.user_permissions != null && message.hasOwnProperty("user_permissions")) { + if (!Array.isArray(message.user_permissions)) + return "user_permissions: array expected"; + for (var i = 0; i < message.user_permissions.length; ++i) { + var 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 (var i = 0; i < message.db_permissions.length; ++i) { + var error = $root.tabletmanagerdata.DbPermission.verify(message.db_permissions[i]); + if (error) + return "db_permissions." + error; + } + } return null; }; /** - * Creates a SleepRequest 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.SleepRequest + * @memberof tabletmanagerdata.Permissions * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SleepRequest} SleepRequest + * @returns {tabletmanagerdata.Permissions} Permissions */ - SleepRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SleepRequest) + Permissions.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.Permissions) return object; - var 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(); + var 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 (var 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 (var 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 SleepRequest 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.SleepRequest + * @memberof tabletmanagerdata.Permissions * @static - * @param {tabletmanagerdata.SleepRequest} message SleepRequest + * @param {tabletmanagerdata.Permissions} message Permissions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SleepRequest.toObject = function toObject(message, options) { + Permissions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.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; + if (options.arrays || options.defaults) { + object.user_permissions = []; + object.db_permissions = []; + } + if (message.user_permissions && message.user_permissions.length) { + object.user_permissions = []; + for (var 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 (var 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 SleepRequest to JSON. + * Converts this Permissions to JSON. * @function toJSON - * @memberof tabletmanagerdata.SleepRequest + * @memberof tabletmanagerdata.Permissions * @instance * @returns {Object.} JSON object */ - SleepRequest.prototype.toJSON = function toJSON() { + Permissions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SleepRequest; + return Permissions; })(); - tabletmanagerdata.SleepResponse = (function() { + tabletmanagerdata.PingRequest = (function() { /** - * Properties of a SleepResponse. + * Properties of a PingRequest. * @memberof tabletmanagerdata - * @interface ISleepResponse + * @interface IPingRequest + * @property {string|null} [payload] PingRequest payload */ /** - * Constructs a new SleepResponse. + * Constructs a new PingRequest. * @memberof tabletmanagerdata - * @classdesc Represents a SleepResponse. - * @implements ISleepResponse + * @classdesc Represents a PingRequest. + * @implements IPingRequest * @constructor - * @param {tabletmanagerdata.ISleepResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IPingRequest=} [properties] Properties to set */ - function SleepResponse(properties) { + function PingRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7364,63 +7719,76 @@ $root.tabletmanagerdata = (function() { } /** - * Creates a new SleepResponse 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.SleepResponse + * @memberof tabletmanagerdata.PingRequest * @static - * @param {tabletmanagerdata.ISleepResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.SleepResponse} SleepResponse instance + * @param {tabletmanagerdata.IPingRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.PingRequest} PingRequest instance */ - SleepResponse.create = function create(properties) { - return new SleepResponse(properties); + PingRequest.create = function create(properties) { + return new PingRequest(properties); }; /** - * Encodes the specified SleepResponse message. Does not implicitly {@link tabletmanagerdata.SleepResponse.verify|verify} messages. + * Encodes the specified PingRequest message. Does not implicitly {@link tabletmanagerdata.PingRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.PingRequest * @static - * @param {tabletmanagerdata.ISleepResponse} message SleepResponse 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 */ - SleepResponse.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 SleepResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SleepResponse.verify|verify} messages. + * Encodes the specified PingRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.PingRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.PingRequest * @static - * @param {tabletmanagerdata.ISleepResponse} message SleepResponse 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 */ - SleepResponse.encodeDelimited = function encodeDelimited(message, writer) { + PingRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SleepResponse message from the specified reader or buffer. + * Decodes a PingRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SleepResponse + * @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.SleepResponse} SleepResponse + * @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 */ - SleepResponse.decode = function decode(reader, length) { + PingRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SleepResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PingRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.payload = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -7430,98 +7798,107 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a SleepResponse 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.SleepResponse + * @memberof tabletmanagerdata.PingRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SleepResponse} SleepResponse + * @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 */ - SleepResponse.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 SleepResponse message. + * Verifies a PingRequest message. * @function verify - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.PingRequest * @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) { + 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 SleepResponse 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.SleepResponse + * @memberof tabletmanagerdata.PingRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SleepResponse} SleepResponse + * @returns {tabletmanagerdata.PingRequest} PingRequest */ - SleepResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SleepResponse) + PingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PingRequest) return object; - return new $root.tabletmanagerdata.SleepResponse(); + var message = new $root.tabletmanagerdata.PingRequest(); + if (object.payload != null) + message.payload = String(object.payload); + return message; }; /** - * Creates a plain object from a SleepResponse 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.SleepResponse + * @memberof tabletmanagerdata.PingRequest * @static - * @param {tabletmanagerdata.SleepResponse} message SleepResponse + * @param {tabletmanagerdata.PingRequest} message PingRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SleepResponse.toObject = function toObject() { - return {}; + PingRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.payload = ""; + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = message.payload; + return object; }; /** - * Converts this SleepResponse to JSON. + * Converts this PingRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.SleepResponse + * @memberof tabletmanagerdata.PingRequest * @instance * @returns {Object.} JSON object */ - SleepResponse.prototype.toJSON = function toJSON() { + PingRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SleepResponse; + return PingRequest; })(); - tabletmanagerdata.ExecuteHookRequest = (function() { + tabletmanagerdata.PingResponse = (function() { /** - * Properties of an ExecuteHookRequest. + * Properties of a PingResponse. * @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 IPingResponse + * @property {string|null} [payload] PingResponse payload */ /** - * Constructs a new ExecuteHookRequest. + * Constructs a new PingResponse. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteHookRequest. - * @implements IExecuteHookRequest + * @classdesc Represents a PingResponse. + * @implements IPingResponse * @constructor - * @param {tabletmanagerdata.IExecuteHookRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IPingResponse=} [properties] Properties to set */ - function ExecuteHookRequest(properties) { - this.parameters = []; - this.extra_env = {}; + function PingResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7529,124 +7906,75 @@ $root.tabletmanagerdata = (function() { } /** - * 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 + * PingResponse payload. + * @member {string} payload + * @memberof tabletmanagerdata.PingResponse * @instance */ - ExecuteHookRequest.prototype.extra_env = $util.emptyObject; + PingResponse.prototype.payload = ""; /** - * Creates a new ExecuteHookRequest instance using the specified properties. + * Creates a new PingResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.PingResponse * @static - * @param {tabletmanagerdata.IExecuteHookRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest instance + * @param {tabletmanagerdata.IPingResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.PingResponse} PingResponse instance */ - ExecuteHookRequest.create = function create(properties) { - return new ExecuteHookRequest(properties); + PingResponse.create = function create(properties) { + return new PingResponse(properties); }; /** - * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteHookRequest.verify|verify} messages. + * Encodes the specified PingResponse message. Does not implicitly {@link tabletmanagerdata.PingResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.PingResponse * @static - * @param {tabletmanagerdata.IExecuteHookRequest} message ExecuteHookRequest 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 */ - ExecuteHookRequest.encode = function encode(message, writer) { + PingResponse.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 (var 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 (var 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.payload != null && Object.hasOwnProperty.call(message, "payload")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.payload); return writer; }; /** - * Encodes the specified ExecuteHookRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteHookRequest.verify|verify} messages. + * Encodes the specified PingResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.PingResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.PingResponse * @static - * @param {tabletmanagerdata.IExecuteHookRequest} message ExecuteHookRequest 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 */ - ExecuteHookRequest.encodeDelimited = function encodeDelimited(message, writer) { + PingResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer. + * Decodes a PingResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteHookRequest + * @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.ExecuteHookRequest} ExecuteHookRequest + * @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 */ - ExecuteHookRequest.decode = function decode(reader, length) { + PingResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteHookRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.PingResponse(); while (reader.pos < end) { var 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 = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.extra_env[key] = value; + message.payload = reader.string(); break; default: reader.skipType(tag & 7); @@ -7657,153 +7985,107 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes an ExecuteHookRequest 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.ExecuteHookRequest + * @memberof tabletmanagerdata.PingResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest + * @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 */ - ExecuteHookRequest.decodeDelimited = function decodeDelimited(reader) { + PingResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteHookRequest message. + * Verifies a PingResponse message. * @function verify - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.PingResponse * @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) { + PingResponse.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 (var 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"; - var key = Object.keys(message.extra_env); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.extra_env[key[i]])) - return "extra_env: string{k:string} expected"; - } + if (message.payload != null && message.hasOwnProperty("payload")) + if (!$util.isString(message.payload)) + return "payload: string expected"; return null; }; /** - * Creates an ExecuteHookRequest 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.ExecuteHookRequest + * @memberof tabletmanagerdata.PingResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest + * @returns {tabletmanagerdata.PingResponse} PingResponse */ - ExecuteHookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteHookRequest) + PingResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.PingResponse) return object; - var 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 (var 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 (var keys = Object.keys(object.extra_env), i = 0; i < keys.length; ++i) - message.extra_env[keys[i]] = String(object.extra_env[keys[i]]); - } + var message = new $root.tabletmanagerdata.PingResponse(); + if (object.payload != null) + message.payload = String(object.payload); return message; }; /** - * Creates a plain object from an ExecuteHookRequest 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.ExecuteHookRequest + * @memberof tabletmanagerdata.PingResponse * @static - * @param {tabletmanagerdata.ExecuteHookRequest} message ExecuteHookRequest + * @param {tabletmanagerdata.PingResponse} message PingResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteHookRequest.toObject = function toObject(message, options) { + PingResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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 (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = message.parameters[j]; - } - var keys2; - if (message.extra_env && (keys2 = Object.keys(message.extra_env)).length) { - object.extra_env = {}; - for (var j = 0; j < keys2.length; ++j) - object.extra_env[keys2[j]] = message.extra_env[keys2[j]]; - } + object.payload = ""; + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = message.payload; return object; }; /** - * Converts this ExecuteHookRequest to JSON. + * Converts this PingResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteHookRequest + * @memberof tabletmanagerdata.PingResponse * @instance * @returns {Object.} JSON object */ - ExecuteHookRequest.prototype.toJSON = function toJSON() { + PingResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteHookRequest; + return PingResponse; })(); - tabletmanagerdata.ExecuteHookResponse = (function() { + tabletmanagerdata.SleepRequest = (function() { /** - * Properties of an ExecuteHookResponse. + * Properties of a SleepRequest. * @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 ISleepRequest + * @property {number|Long|null} [duration] SleepRequest duration */ /** - * Constructs a new ExecuteHookResponse. + * Constructs a new SleepRequest. * @memberof tabletmanagerdata - * @classdesc Represents an ExecuteHookResponse. - * @implements IExecuteHookResponse + * @classdesc Represents a SleepRequest. + * @implements ISleepRequest * @constructor - * @param {tabletmanagerdata.IExecuteHookResponse=} [properties] Properties to set + * @param {tabletmanagerdata.ISleepRequest=} [properties] Properties to set */ - function ExecuteHookResponse(properties) { + function SleepRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7811,101 +8093,75 @@ $root.tabletmanagerdata = (function() { } /** - * 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 + * SleepRequest duration. + * @member {number|Long} duration + * @memberof tabletmanagerdata.SleepRequest * @instance */ - ExecuteHookResponse.prototype.stderr = ""; + SleepRequest.prototype.duration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ExecuteHookResponse instance using the specified properties. + * Creates a new SleepRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.SleepRequest * @static - * @param {tabletmanagerdata.IExecuteHookResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse instance + * @param {tabletmanagerdata.ISleepRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.SleepRequest} SleepRequest instance */ - ExecuteHookResponse.create = function create(properties) { - return new ExecuteHookResponse(properties); + SleepRequest.create = function create(properties) { + return new SleepRequest(properties); }; /** - * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteHookResponse.verify|verify} messages. + * Encodes the specified SleepRequest message. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.SleepRequest * @static - * @param {tabletmanagerdata.IExecuteHookResponse} message ExecuteHookResponse 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 */ - ExecuteHookResponse.encode = function encode(message, writer) { + SleepRequest.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.duration != null && Object.hasOwnProperty.call(message, "duration")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.duration); return writer; }; /** - * Encodes the specified ExecuteHookResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteHookResponse.verify|verify} messages. + * Encodes the specified SleepRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SleepRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.SleepRequest * @static - * @param {tabletmanagerdata.IExecuteHookResponse} message ExecuteHookResponse 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 */ - ExecuteHookResponse.encodeDelimited = function encodeDelimited(message, writer) { + SleepRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer. + * Decodes a SleepRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ExecuteHookResponse + * @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.ExecuteHookResponse} ExecuteHookResponse + * @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 */ - ExecuteHookResponse.decode = function decode(reader, length) { + SleepRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteHookResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SleepRequest(); while (reader.pos < end) { var 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(); + message.duration = reader.int64(); break; default: reader.skipType(tag & 7); @@ -7916,142 +8172,120 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes an ExecuteHookResponse 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.ExecuteHookResponse + * @memberof tabletmanagerdata.SleepRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse + * @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 */ - ExecuteHookResponse.decodeDelimited = function decodeDelimited(reader) { + SleepRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteHookResponse message. + * Verifies a SleepRequest message. * @function verify - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.SleepRequest * @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) { + SleepRequest.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.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 an ExecuteHookResponse 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.ExecuteHookResponse + * @memberof tabletmanagerdata.SleepRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse + * @returns {tabletmanagerdata.SleepRequest} SleepRequest */ - ExecuteHookResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ExecuteHookResponse) + SleepRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SleepRequest) return object; - var message = new $root.tabletmanagerdata.ExecuteHookResponse(); - if (object.exit_status != null) + var message = new $root.tabletmanagerdata.SleepRequest(); + if (object.duration != 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.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 an ExecuteHookResponse 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.ExecuteHookResponse + * @memberof tabletmanagerdata.SleepRequest * @static - * @param {tabletmanagerdata.ExecuteHookResponse} message ExecuteHookResponse + * @param {tabletmanagerdata.SleepRequest} message SleepRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteHookResponse.toObject = function toObject(message, options) { + SleepRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) if ($util.Long) { var long = new $util.Long(0, 0, false); - object.exit_status = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.duration = 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; + 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.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.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 ExecuteHookResponse to JSON. + * Converts this SleepRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.ExecuteHookResponse + * @memberof tabletmanagerdata.SleepRequest * @instance * @returns {Object.} JSON object */ - ExecuteHookResponse.prototype.toJSON = function toJSON() { + SleepRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteHookResponse; + return SleepRequest; })(); - tabletmanagerdata.GetSchemaRequest = (function() { + tabletmanagerdata.SleepResponse = (function() { /** - * Properties of a GetSchemaRequest. + * Properties of a SleepResponse. * @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 + * @interface ISleepResponse */ /** - * Constructs a new GetSchemaRequest. + * Constructs a new SleepResponse. * @memberof tabletmanagerdata - * @classdesc Represents a GetSchemaRequest. - * @implements IGetSchemaRequest + * @classdesc Represents a SleepResponse. + * @implements ISleepResponse * @constructor - * @param {tabletmanagerdata.IGetSchemaRequest=} [properties] Properties to set + * @param {tabletmanagerdata.ISleepResponse=} [properties] Properties to set */ - function GetSchemaRequest(properties) { - this.tables = []; - this.exclude_tables = []; + function SleepResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8059,108 +8293,63 @@ $root.tabletmanagerdata = (function() { } /** - * 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; - - /** - * Creates a new GetSchemaRequest instance using the specified properties. + * Creates a new SleepResponse instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.SleepResponse * @static - * @param {tabletmanagerdata.IGetSchemaRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest instance + * @param {tabletmanagerdata.ISleepResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.SleepResponse} SleepResponse instance */ - GetSchemaRequest.create = function create(properties) { - return new GetSchemaRequest(properties); + SleepResponse.create = function create(properties) { + return new SleepResponse(properties); }; /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link tabletmanagerdata.GetSchemaRequest.verify|verify} messages. + * Encodes the specified SleepResponse message. Does not implicitly {@link tabletmanagerdata.SleepResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.SleepResponse * @static - * @param {tabletmanagerdata.IGetSchemaRequest} message GetSchemaRequest 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 */ - GetSchemaRequest.encode = function encode(message, writer) { + SleepResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tables != null && message.tables.length) - for (var 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 (var i = 0; i < message.exclude_tables.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]); return writer; }; /** - * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetSchemaRequest.verify|verify} messages. + * Encodes the specified SleepResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SleepResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.SleepResponse * @static - * @param {tabletmanagerdata.IGetSchemaRequest} message GetSchemaRequest 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 */ - GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + SleepResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. + * Decodes a SleepResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetSchemaRequest + * @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.GetSchemaRequest} GetSchemaRequest + * @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 */ - GetSchemaRequest.decode = function decode(reader, length) { + SleepResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SleepResponse(); while (reader.pos < end) { var 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; default: reader.skipType(tag & 7); break; @@ -8170,149 +8359,98 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a GetSchemaRequest 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.GetSchemaRequest + * @memberof tabletmanagerdata.SleepResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest + * @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 */ - GetSchemaRequest.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 GetSchemaRequest message. + * Verifies a SleepResponse message. * @function verify - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.SleepResponse * @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) { + SleepResponse.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 (var 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 (var i = 0; i < message.exclude_tables.length; ++i) - if (!$util.isString(message.exclude_tables[i])) - return "exclude_tables: string[] expected"; - } return null; }; /** - * Creates a GetSchemaRequest 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.GetSchemaRequest + * @memberof tabletmanagerdata.SleepResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest + * @returns {tabletmanagerdata.SleepResponse} SleepResponse */ - GetSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetSchemaRequest) + SleepResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SleepResponse) return object; - var message = new $root.tabletmanagerdata.GetSchemaRequest(); - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".tabletmanagerdata.GetSchemaRequest.tables: array expected"); - message.tables = []; - for (var 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 (var i = 0; i < object.exclude_tables.length; ++i) - message.exclude_tables[i] = String(object.exclude_tables[i]); - } - return message; + return new $root.tabletmanagerdata.SleepResponse(); }; /** - * Creates a plain object from a GetSchemaRequest 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.GetSchemaRequest + * @memberof tabletmanagerdata.SleepResponse * @static - * @param {tabletmanagerdata.GetSchemaRequest} message GetSchemaRequest + * @param {tabletmanagerdata.SleepResponse} message SleepResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.tables = []; - object.exclude_tables = []; - } - if (options.defaults) - object.include_views = false; - if (message.tables && message.tables.length) { - object.tables = []; - for (var 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 (var j = 0; j < message.exclude_tables.length; ++j) - object.exclude_tables[j] = message.exclude_tables[j]; - } - return object; + SleepResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetSchemaRequest to JSON. + * Converts this SleepResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetSchemaRequest + * @memberof tabletmanagerdata.SleepResponse * @instance * @returns {Object.} JSON object */ - GetSchemaRequest.prototype.toJSON = function toJSON() { + SleepResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSchemaRequest; + return SleepResponse; })(); - tabletmanagerdata.GetSchemaResponse = (function() { + tabletmanagerdata.ExecuteHookRequest = (function() { /** - * Properties of a GetSchemaResponse. + * Properties of an ExecuteHookRequest. * @memberof tabletmanagerdata - * @interface IGetSchemaResponse - * @property {tabletmanagerdata.ISchemaDefinition|null} [schema_definition] GetSchemaResponse schema_definition + * @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 GetSchemaResponse. + * Constructs a new ExecuteHookRequest. * @memberof tabletmanagerdata - * @classdesc Represents a GetSchemaResponse. - * @implements IGetSchemaResponse + * @classdesc Represents an ExecuteHookRequest. + * @implements IExecuteHookRequest * @constructor - * @param {tabletmanagerdata.IGetSchemaResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteHookRequest=} [properties] Properties to set */ - function GetSchemaResponse(properties) { + function ExecuteHookRequest(properties) { + this.parameters = []; + this.extra_env = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8320,75 +8458,124 @@ $root.tabletmanagerdata = (function() { } /** - * GetSchemaResponse schema_definition. - * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} schema_definition - * @memberof tabletmanagerdata.GetSchemaResponse + * ExecuteHookRequest name. + * @member {string} name + * @memberof tabletmanagerdata.ExecuteHookRequest * @instance */ - GetSchemaResponse.prototype.schema_definition = null; + ExecuteHookRequest.prototype.name = ""; /** - * Creates a new GetSchemaResponse instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.GetSchemaResponse - * @static - * @param {tabletmanagerdata.IGetSchemaResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse instance + * ExecuteHookRequest parameters. + * @member {Array.} parameters + * @memberof tabletmanagerdata.ExecuteHookRequest + * @instance */ - GetSchemaResponse.create = function create(properties) { - return new GetSchemaResponse(properties); + 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.ExecuteHookRequest + * @static + * @param {tabletmanagerdata.IExecuteHookRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest instance + */ + ExecuteHookRequest.create = function create(properties) { + return new ExecuteHookRequest(properties); }; /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link tabletmanagerdata.GetSchemaResponse.verify|verify} messages. + * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link tabletmanagerdata.ExecuteHookRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.ExecuteHookRequest * @static - * @param {tabletmanagerdata.IGetSchemaResponse} message GetSchemaResponse 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 */ - GetSchemaResponse.encode = function encode(message, writer) { + ExecuteHookRequest.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.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 (var 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 (var 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 GetSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetSchemaResponse.verify|verify} messages. + * Encodes the specified ExecuteHookRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteHookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.ExecuteHookRequest * @static - * @param {tabletmanagerdata.IGetSchemaResponse} message GetSchemaResponse 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 */ - GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteHookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. + * Decodes an ExecuteHookRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetSchemaResponse + * @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.GetSchemaResponse} GetSchemaResponse + * @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 */ - GetSchemaResponse.decode = function decode(reader, length) { + ExecuteHookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetSchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteHookRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.schema_definition = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); + 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 = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.extra_env[key] = value; break; default: reader.skipType(tag & 7); @@ -8399,111 +8586,153 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a GetSchemaResponse 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.GetSchemaResponse + * @memberof tabletmanagerdata.ExecuteHookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse + * @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 */ - GetSchemaResponse.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 GetSchemaResponse message. + * Verifies an ExecuteHookRequest message. * @function verify - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.ExecuteHookRequest * @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) { + ExecuteHookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.schema_definition != null && message.hasOwnProperty("schema_definition")) { - var error = $root.tabletmanagerdata.SchemaDefinition.verify(message.schema_definition); - if (error) - return "schema_definition." + error; + 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 (var 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"; + var key = Object.keys(message.extra_env); + for (var 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 GetSchemaResponse 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.GetSchemaResponse + * @memberof tabletmanagerdata.ExecuteHookRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse + * @returns {tabletmanagerdata.ExecuteHookRequest} ExecuteHookRequest */ - GetSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetSchemaResponse) + ExecuteHookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteHookRequest) return object; - var 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); + var 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 (var 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 (var 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 GetSchemaResponse 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.GetSchemaResponse + * @memberof tabletmanagerdata.ExecuteHookRequest * @static - * @param {tabletmanagerdata.GetSchemaResponse} message GetSchemaResponse + * @param {tabletmanagerdata.ExecuteHookRequest} message ExecuteHookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaResponse.toObject = function toObject(message, options) { + ExecuteHookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.parameters = []; + if (options.objects || options.defaults) + object.extra_env = {}; 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); + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (var j = 0; j < message.parameters.length; ++j) + object.parameters[j] = message.parameters[j]; + } + var keys2; + if (message.extra_env && (keys2 = Object.keys(message.extra_env)).length) { + object.extra_env = {}; + for (var j = 0; j < keys2.length; ++j) + object.extra_env[keys2[j]] = message.extra_env[keys2[j]]; + } return object; }; /** - * Converts this GetSchemaResponse to JSON. + * Converts this ExecuteHookRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetSchemaResponse + * @memberof tabletmanagerdata.ExecuteHookRequest * @instance * @returns {Object.} JSON object */ - GetSchemaResponse.prototype.toJSON = function toJSON() { + ExecuteHookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSchemaResponse; + return ExecuteHookRequest; })(); - tabletmanagerdata.GetPermissionsRequest = (function() { + tabletmanagerdata.ExecuteHookResponse = (function() { /** - * Properties of a GetPermissionsRequest. + * Properties of an ExecuteHookResponse. * @memberof tabletmanagerdata - * @interface IGetPermissionsRequest + * @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 GetPermissionsRequest. + * Constructs a new ExecuteHookResponse. * @memberof tabletmanagerdata - * @classdesc Represents a GetPermissionsRequest. - * @implements IGetPermissionsRequest + * @classdesc Represents an ExecuteHookResponse. + * @implements IExecuteHookResponse * @constructor - * @param {tabletmanagerdata.IGetPermissionsRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IExecuteHookResponse=} [properties] Properties to set */ - function GetPermissionsRequest(properties) { + function ExecuteHookResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8511,63 +8740,102 @@ $root.tabletmanagerdata = (function() { } /** - * Creates a new GetPermissionsRequest 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.GetPermissionsRequest + * @memberof tabletmanagerdata.ExecuteHookResponse * @static - * @param {tabletmanagerdata.IGetPermissionsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest instance + * @param {tabletmanagerdata.IExecuteHookResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse instance */ - GetPermissionsRequest.create = function create(properties) { - return new GetPermissionsRequest(properties); + ExecuteHookResponse.create = function create(properties) { + return new ExecuteHookResponse(properties); }; /** - * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link tabletmanagerdata.GetPermissionsRequest.verify|verify} messages. + * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link tabletmanagerdata.ExecuteHookResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.ExecuteHookResponse * @static - * @param {tabletmanagerdata.IGetPermissionsRequest} message GetPermissionsRequest 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 */ - GetPermissionsRequest.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 GetPermissionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetPermissionsRequest.verify|verify} messages. + * Encodes the specified ExecuteHookResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ExecuteHookResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.ExecuteHookResponse * @static - * @param {tabletmanagerdata.IGetPermissionsRequest} message GetPermissionsRequest 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 */ - GetPermissionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteHookResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer. + * Decodes an ExecuteHookResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetPermissionsRequest + * @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.GetPermissionsRequest} GetPermissionsRequest + * @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 */ - GetPermissionsRequest.decode = function decode(reader, length) { + ExecuteHookResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetPermissionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ExecuteHookResponse(); while (reader.pos < end) { var 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; @@ -8577,94 +8845,142 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a GetPermissionsRequest 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.GetPermissionsRequest + * @memberof tabletmanagerdata.ExecuteHookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest + * @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 */ - GetPermissionsRequest.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 GetPermissionsRequest message. + * Verifies an ExecuteHookResponse message. * @function verify - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.ExecuteHookResponse * @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) { + 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 GetPermissionsRequest 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.GetPermissionsRequest + * @memberof tabletmanagerdata.ExecuteHookResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest + * @returns {tabletmanagerdata.ExecuteHookResponse} ExecuteHookResponse */ - GetPermissionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetPermissionsRequest) + ExecuteHookResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ExecuteHookResponse) return object; - return new $root.tabletmanagerdata.GetPermissionsRequest(); + var 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 GetPermissionsRequest 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.GetPermissionsRequest + * @memberof tabletmanagerdata.ExecuteHookResponse * @static - * @param {tabletmanagerdata.GetPermissionsRequest} message GetPermissionsRequest + * @param {tabletmanagerdata.ExecuteHookResponse} message ExecuteHookResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPermissionsRequest.toObject = function toObject() { - return {}; + ExecuteHookResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.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 GetPermissionsRequest to JSON. + * Converts this ExecuteHookResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetPermissionsRequest + * @memberof tabletmanagerdata.ExecuteHookResponse * @instance * @returns {Object.} JSON object */ - GetPermissionsRequest.prototype.toJSON = function toJSON() { + ExecuteHookResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetPermissionsRequest; + return ExecuteHookResponse; })(); - tabletmanagerdata.GetPermissionsResponse = (function() { + tabletmanagerdata.GetSchemaRequest = (function() { /** - * Properties of a GetPermissionsResponse. + * Properties of a GetSchemaRequest. * @memberof tabletmanagerdata - * @interface IGetPermissionsResponse - * @property {tabletmanagerdata.IPermissions|null} [permissions] GetPermissionsResponse permissions + * @interface IGetSchemaRequest + * @property {Array.|null} [tables] GetSchemaRequest tables + * @property {boolean|null} [include_views] GetSchemaRequest include_views + * @property {Array.|null} [exclude_tables] GetSchemaRequest exclude_tables */ /** - * Constructs a new GetPermissionsResponse. + * Constructs a new GetSchemaRequest. * @memberof tabletmanagerdata - * @classdesc Represents a GetPermissionsResponse. - * @implements IGetPermissionsResponse + * @classdesc Represents a GetSchemaRequest. + * @implements IGetSchemaRequest * @constructor - * @param {tabletmanagerdata.IGetPermissionsResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IGetSchemaRequest=} [properties] Properties to set */ - function GetPermissionsResponse(properties) { + function GetSchemaRequest(properties) { + this.tables = []; + this.exclude_tables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8672,75 +8988,107 @@ $root.tabletmanagerdata = (function() { } /** - * GetPermissionsResponse permissions. - * @member {tabletmanagerdata.IPermissions|null|undefined} permissions - * @memberof tabletmanagerdata.GetPermissionsResponse + * GetSchemaRequest tables. + * @member {Array.} tables + * @memberof tabletmanagerdata.GetSchemaRequest * @instance */ - GetPermissionsResponse.prototype.permissions = null; + GetSchemaRequest.prototype.tables = $util.emptyArray; /** - * Creates a new GetPermissionsResponse instance using the specified properties. + * 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; + + /** + * Creates a new GetSchemaRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.GetSchemaRequest * @static - * @param {tabletmanagerdata.IGetPermissionsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse instance + * @param {tabletmanagerdata.IGetSchemaRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest instance */ - GetPermissionsResponse.create = function create(properties) { - return new GetPermissionsResponse(properties); + GetSchemaRequest.create = function create(properties) { + return new GetSchemaRequest(properties); }; /** - * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link tabletmanagerdata.GetPermissionsResponse.verify|verify} messages. + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link tabletmanagerdata.GetSchemaRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.GetSchemaRequest * @static - * @param {tabletmanagerdata.IGetPermissionsResponse} message GetPermissionsResponse 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 */ - GetPermissionsResponse.encode = function encode(message, writer) { + GetSchemaRequest.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.tables != null && message.tables.length) + for (var 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 (var i = 0; i < message.exclude_tables.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]); return writer; }; /** - * Encodes the specified GetPermissionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetPermissionsResponse.verify|verify} messages. + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.GetSchemaRequest * @static - * @param {tabletmanagerdata.IGetPermissionsResponse} message GetPermissionsResponse 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 */ - GetPermissionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer. + * Decodes a GetSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.GetPermissionsResponse + * @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.GetPermissionsResponse} GetPermissionsResponse + * @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 */ - GetPermissionsResponse.decode = function decode(reader, length) { + GetSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetPermissionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.permissions = $root.tabletmanagerdata.Permissions.decode(reader, reader.uint32()); + 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; default: reader.skipType(tag & 7); @@ -8751,111 +9099,149 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a GetPermissionsResponse 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.GetPermissionsResponse + * @memberof tabletmanagerdata.GetSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse + * @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 */ - GetPermissionsResponse.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 GetPermissionsResponse message. + * Verifies a GetSchemaRequest message. * @function verify - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.GetSchemaRequest * @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) { + GetSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.permissions != null && message.hasOwnProperty("permissions")) { - var error = $root.tabletmanagerdata.Permissions.verify(message.permissions); - if (error) - return "permissions." + error; + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (var i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; } - return null; - }; + 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 (var i = 0; i < message.exclude_tables.length; ++i) + if (!$util.isString(message.exclude_tables[i])) + return "exclude_tables: string[] expected"; + } + return null; + }; /** - * Creates a GetPermissionsResponse 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.GetPermissionsResponse + * @memberof tabletmanagerdata.GetSchemaRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse + * @returns {tabletmanagerdata.GetSchemaRequest} GetSchemaRequest */ - GetPermissionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetPermissionsResponse) + GetSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetSchemaRequest) return object; - var 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); + var message = new $root.tabletmanagerdata.GetSchemaRequest(); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".tabletmanagerdata.GetSchemaRequest.tables: array expected"); + message.tables = []; + for (var 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 (var i = 0; i < object.exclude_tables.length; ++i) + message.exclude_tables[i] = String(object.exclude_tables[i]); } return message; }; /** - * Creates a plain object from a GetPermissionsResponse 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.GetPermissionsResponse + * @memberof tabletmanagerdata.GetSchemaRequest * @static - * @param {tabletmanagerdata.GetPermissionsResponse} message GetPermissionsResponse + * @param {tabletmanagerdata.GetSchemaRequest} message GetSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPermissionsResponse.toObject = function toObject(message, options) { + GetSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.tables = []; + object.exclude_tables = []; + } if (options.defaults) - object.permissions = null; - if (message.permissions != null && message.hasOwnProperty("permissions")) - object.permissions = $root.tabletmanagerdata.Permissions.toObject(message.permissions, options); + object.include_views = false; + if (message.tables && message.tables.length) { + object.tables = []; + for (var 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 (var j = 0; j < message.exclude_tables.length; ++j) + object.exclude_tables[j] = message.exclude_tables[j]; + } return object; }; /** - * Converts this GetPermissionsResponse to JSON. + * Converts this GetSchemaRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.GetPermissionsResponse + * @memberof tabletmanagerdata.GetSchemaRequest * @instance * @returns {Object.} JSON object */ - GetPermissionsResponse.prototype.toJSON = function toJSON() { + GetSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetPermissionsResponse; + return GetSchemaRequest; })(); - tabletmanagerdata.SetReadOnlyRequest = (function() { + tabletmanagerdata.GetSchemaResponse = (function() { /** - * Properties of a SetReadOnlyRequest. + * Properties of a GetSchemaResponse. * @memberof tabletmanagerdata - * @interface ISetReadOnlyRequest + * @interface IGetSchemaResponse + * @property {tabletmanagerdata.ISchemaDefinition|null} [schema_definition] GetSchemaResponse schema_definition */ /** - * Constructs a new SetReadOnlyRequest. + * Constructs a new GetSchemaResponse. * @memberof tabletmanagerdata - * @classdesc Represents a SetReadOnlyRequest. - * @implements ISetReadOnlyRequest + * @classdesc Represents a GetSchemaResponse. + * @implements IGetSchemaResponse * @constructor - * @param {tabletmanagerdata.ISetReadOnlyRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IGetSchemaResponse=} [properties] Properties to set */ - function SetReadOnlyRequest(properties) { + function GetSchemaResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8863,63 +9249,76 @@ $root.tabletmanagerdata = (function() { } /** - * Creates a new SetReadOnlyRequest 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.SetReadOnlyRequest + * @memberof tabletmanagerdata.GetSchemaResponse * @static - * @param {tabletmanagerdata.ISetReadOnlyRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest instance + * @param {tabletmanagerdata.IGetSchemaResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse instance */ - SetReadOnlyRequest.create = function create(properties) { - return new SetReadOnlyRequest(properties); + GetSchemaResponse.create = function create(properties) { + return new GetSchemaResponse(properties); }; /** - * Encodes the specified SetReadOnlyRequest message. Does not implicitly {@link tabletmanagerdata.SetReadOnlyRequest.verify|verify} messages. + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link tabletmanagerdata.GetSchemaResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.GetSchemaResponse * @static - * @param {tabletmanagerdata.ISetReadOnlyRequest} message SetReadOnlyRequest 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 */ - SetReadOnlyRequest.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 SetReadOnlyRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadOnlyRequest.verify|verify} messages. + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.GetSchemaResponse * @static - * @param {tabletmanagerdata.ISetReadOnlyRequest} message SetReadOnlyRequest 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 */ - SetReadOnlyRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetReadOnlyRequest message from the specified reader or buffer. + * Decodes a GetSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @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.SetReadOnlyRequest} SetReadOnlyRequest + * @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 */ - SetReadOnlyRequest.decode = function decode(reader, length) { + GetSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadOnlyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetSchemaResponse(); while (reader.pos < end) { var 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; @@ -8929,93 +9328,111 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a SetReadOnlyRequest 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.SetReadOnlyRequest + * @memberof tabletmanagerdata.GetSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest + * @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 */ - SetReadOnlyRequest.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 SetReadOnlyRequest message. + * Verifies a GetSchemaResponse message. * @function verify - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.GetSchemaResponse * @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) { + GetSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.schema_definition != null && message.hasOwnProperty("schema_definition")) { + var error = $root.tabletmanagerdata.SchemaDefinition.verify(message.schema_definition); + if (error) + return "schema_definition." + error; + } return null; }; /** - * Creates a SetReadOnlyRequest 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.SetReadOnlyRequest + * @memberof tabletmanagerdata.GetSchemaResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest + * @returns {tabletmanagerdata.GetSchemaResponse} GetSchemaResponse */ - SetReadOnlyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SetReadOnlyRequest) + GetSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetSchemaResponse) return object; - return new $root.tabletmanagerdata.SetReadOnlyRequest(); + var 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 SetReadOnlyRequest 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.SetReadOnlyRequest + * @memberof tabletmanagerdata.GetSchemaResponse * @static - * @param {tabletmanagerdata.SetReadOnlyRequest} message SetReadOnlyRequest + * @param {tabletmanagerdata.GetSchemaResponse} message GetSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetReadOnlyRequest.toObject = function toObject() { - return {}; + GetSchemaResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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 SetReadOnlyRequest to JSON. + * Converts this GetSchemaResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.SetReadOnlyRequest + * @memberof tabletmanagerdata.GetSchemaResponse * @instance * @returns {Object.} JSON object */ - SetReadOnlyRequest.prototype.toJSON = function toJSON() { + GetSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetReadOnlyRequest; + return GetSchemaResponse; })(); - tabletmanagerdata.SetReadOnlyResponse = (function() { + tabletmanagerdata.GetPermissionsRequest = (function() { /** - * Properties of a SetReadOnlyResponse. + * Properties of a GetPermissionsRequest. * @memberof tabletmanagerdata - * @interface ISetReadOnlyResponse + * @interface IGetPermissionsRequest */ /** - * Constructs a new SetReadOnlyResponse. + * Constructs a new GetPermissionsRequest. * @memberof tabletmanagerdata - * @classdesc Represents a SetReadOnlyResponse. - * @implements ISetReadOnlyResponse + * @classdesc Represents a GetPermissionsRequest. + * @implements IGetPermissionsRequest * @constructor - * @param {tabletmanagerdata.ISetReadOnlyResponse=} [properties] Properties to set + * @param {tabletmanagerdata.IGetPermissionsRequest=} [properties] Properties to set */ - function SetReadOnlyResponse(properties) { + function GetPermissionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9023,60 +9440,60 @@ $root.tabletmanagerdata = (function() { } /** - * Creates a new SetReadOnlyResponse instance using the specified properties. + * Creates a new GetPermissionsRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.GetPermissionsRequest * @static - * @param {tabletmanagerdata.ISetReadOnlyResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse instance + * @param {tabletmanagerdata.IGetPermissionsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest instance */ - SetReadOnlyResponse.create = function create(properties) { - return new SetReadOnlyResponse(properties); + GetPermissionsRequest.create = function create(properties) { + return new GetPermissionsRequest(properties); }; /** - * Encodes the specified SetReadOnlyResponse message. Does not implicitly {@link tabletmanagerdata.SetReadOnlyResponse.verify|verify} messages. + * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link tabletmanagerdata.GetPermissionsRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.GetPermissionsRequest * @static - * @param {tabletmanagerdata.ISetReadOnlyResponse} message SetReadOnlyResponse 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 */ - SetReadOnlyResponse.encode = function encode(message, writer) { + GetPermissionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified SetReadOnlyResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadOnlyResponse.verify|verify} messages. + * Encodes the specified GetPermissionsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetPermissionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.GetPermissionsRequest * @static - * @param {tabletmanagerdata.ISetReadOnlyResponse} message SetReadOnlyResponse 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 */ - SetReadOnlyResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetPermissionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetReadOnlyResponse message from the specified reader or buffer. + * Decodes a GetPermissionsRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @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.SetReadOnlyResponse} SetReadOnlyResponse + * @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 */ - SetReadOnlyResponse.decode = function decode(reader, length) { + GetPermissionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadOnlyResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetPermissionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9089,93 +9506,94 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a SetReadOnlyResponse 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.SetReadOnlyResponse + * @memberof tabletmanagerdata.GetPermissionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse + * @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 */ - SetReadOnlyResponse.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 SetReadOnlyResponse message. + * Verifies a GetPermissionsRequest message. * @function verify - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.GetPermissionsRequest * @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) { + GetPermissionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a SetReadOnlyResponse 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.SetReadOnlyResponse + * @memberof tabletmanagerdata.GetPermissionsRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse + * @returns {tabletmanagerdata.GetPermissionsRequest} GetPermissionsRequest */ - SetReadOnlyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SetReadOnlyResponse) + GetPermissionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetPermissionsRequest) return object; - return new $root.tabletmanagerdata.SetReadOnlyResponse(); + return new $root.tabletmanagerdata.GetPermissionsRequest(); }; /** - * Creates a plain object from a SetReadOnlyResponse 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.SetReadOnlyResponse + * @memberof tabletmanagerdata.GetPermissionsRequest * @static - * @param {tabletmanagerdata.SetReadOnlyResponse} message SetReadOnlyResponse + * @param {tabletmanagerdata.GetPermissionsRequest} message GetPermissionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetReadOnlyResponse.toObject = function toObject() { + GetPermissionsRequest.toObject = function toObject() { return {}; }; /** - * Converts this SetReadOnlyResponse to JSON. + * Converts this GetPermissionsRequest to JSON. * @function toJSON - * @memberof tabletmanagerdata.SetReadOnlyResponse + * @memberof tabletmanagerdata.GetPermissionsRequest * @instance * @returns {Object.} JSON object */ - SetReadOnlyResponse.prototype.toJSON = function toJSON() { + GetPermissionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetReadOnlyResponse; + return GetPermissionsRequest; })(); - tabletmanagerdata.SetReadWriteRequest = (function() { + tabletmanagerdata.GetPermissionsResponse = (function() { /** - * Properties of a SetReadWriteRequest. + * Properties of a GetPermissionsResponse. * @memberof tabletmanagerdata - * @interface ISetReadWriteRequest + * @interface IGetPermissionsResponse + * @property {tabletmanagerdata.IPermissions|null} [permissions] GetPermissionsResponse permissions */ /** - * Constructs a new SetReadWriteRequest. + * Constructs a new GetPermissionsResponse. * @memberof tabletmanagerdata - * @classdesc Represents a SetReadWriteRequest. - * @implements ISetReadWriteRequest + * @classdesc Represents a GetPermissionsResponse. + * @implements IGetPermissionsResponse * @constructor - * @param {tabletmanagerdata.ISetReadWriteRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IGetPermissionsResponse=} [properties] Properties to set */ - function SetReadWriteRequest(properties) { + function GetPermissionsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9183,63 +9601,76 @@ $root.tabletmanagerdata = (function() { } /** - * Creates a new SetReadWriteRequest 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.SetReadWriteRequest + * @memberof tabletmanagerdata.GetPermissionsResponse * @static - * @param {tabletmanagerdata.ISetReadWriteRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest instance + * @param {tabletmanagerdata.IGetPermissionsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse instance */ - SetReadWriteRequest.create = function create(properties) { - return new SetReadWriteRequest(properties); + GetPermissionsResponse.create = function create(properties) { + return new GetPermissionsResponse(properties); }; /** - * Encodes the specified SetReadWriteRequest message. Does not implicitly {@link tabletmanagerdata.SetReadWriteRequest.verify|verify} messages. + * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link tabletmanagerdata.GetPermissionsResponse.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetPermissionsResponse * @static - * @param {tabletmanagerdata.ISetReadWriteRequest} message SetReadWriteRequest 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 */ - SetReadWriteRequest.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 SetReadWriteRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadWriteRequest.verify|verify} messages. + * Encodes the specified GetPermissionsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetPermissionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetPermissionsResponse * @static - * @param {tabletmanagerdata.ISetReadWriteRequest} message SetReadWriteRequest 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 */ - SetReadWriteRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetPermissionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetReadWriteRequest message from the specified reader or buffer. + * Decodes a GetPermissionsResponse message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SetReadWriteRequest + * @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.SetReadWriteRequest} SetReadWriteRequest + * @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 */ - SetReadWriteRequest.decode = function decode(reader, length) { + GetPermissionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadWriteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetPermissionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.permissions = $root.tabletmanagerdata.Permissions.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -9249,93 +9680,111 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a SetReadWriteRequest 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.SetReadWriteRequest + * @memberof tabletmanagerdata.GetPermissionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest + * @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 */ - SetReadWriteRequest.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 SetReadWriteRequest message. + * Verifies a GetPermissionsResponse message. * @function verify - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetPermissionsResponse * @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) { + GetPermissionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.permissions != null && message.hasOwnProperty("permissions")) { + var error = $root.tabletmanagerdata.Permissions.verify(message.permissions); + if (error) + return "permissions." + error; + } return null; }; /** - * Creates a SetReadWriteRequest 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.SetReadWriteRequest + * @memberof tabletmanagerdata.GetPermissionsResponse * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest + * @returns {tabletmanagerdata.GetPermissionsResponse} GetPermissionsResponse */ - SetReadWriteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SetReadWriteRequest) + GetPermissionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetPermissionsResponse) return object; - return new $root.tabletmanagerdata.SetReadWriteRequest(); + var 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 SetReadWriteRequest 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.SetReadWriteRequest + * @memberof tabletmanagerdata.GetPermissionsResponse * @static - * @param {tabletmanagerdata.SetReadWriteRequest} message SetReadWriteRequest + * @param {tabletmanagerdata.GetPermissionsResponse} message GetPermissionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetReadWriteRequest.toObject = function toObject() { - return {}; + GetPermissionsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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 SetReadWriteRequest to JSON. + * Converts this GetPermissionsResponse to JSON. * @function toJSON - * @memberof tabletmanagerdata.SetReadWriteRequest + * @memberof tabletmanagerdata.GetPermissionsResponse * @instance * @returns {Object.} JSON object */ - SetReadWriteRequest.prototype.toJSON = function toJSON() { + GetPermissionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetReadWriteRequest; + return GetPermissionsResponse; })(); - tabletmanagerdata.SetReadWriteResponse = (function() { + tabletmanagerdata.SetReadOnlyRequest = (function() { /** - * Properties of a SetReadWriteResponse. + * Properties of a SetReadOnlyRequest. * @memberof tabletmanagerdata - * @interface ISetReadWriteResponse + * @interface ISetReadOnlyRequest */ /** - * Constructs a new SetReadWriteResponse. + * Constructs a new SetReadOnlyRequest. * @memberof tabletmanagerdata - * @classdesc Represents a SetReadWriteResponse. - * @implements ISetReadWriteResponse + * @classdesc Represents a SetReadOnlyRequest. + * @implements ISetReadOnlyRequest * @constructor - * @param {tabletmanagerdata.ISetReadWriteResponse=} [properties] Properties to set + * @param {tabletmanagerdata.ISetReadOnlyRequest=} [properties] Properties to set */ - function SetReadWriteResponse(properties) { + function SetReadOnlyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9343,60 +9792,60 @@ $root.tabletmanagerdata = (function() { } /** - * Creates a new SetReadWriteResponse instance using the specified properties. + * Creates a new SetReadOnlyRequest instance using the specified properties. * @function create - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static - * @param {tabletmanagerdata.ISetReadWriteResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse instance + * @param {tabletmanagerdata.ISetReadOnlyRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest instance */ - SetReadWriteResponse.create = function create(properties) { - return new SetReadWriteResponse(properties); + SetReadOnlyRequest.create = function create(properties) { + return new SetReadOnlyRequest(properties); }; /** - * Encodes the specified SetReadWriteResponse message. Does not implicitly {@link tabletmanagerdata.SetReadWriteResponse.verify|verify} messages. + * Encodes the specified SetReadOnlyRequest message. Does not implicitly {@link tabletmanagerdata.SetReadOnlyRequest.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static - * @param {tabletmanagerdata.ISetReadWriteResponse} message SetReadWriteResponse 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 */ - SetReadWriteResponse.encode = function encode(message, writer) { + SetReadOnlyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified SetReadWriteResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadWriteResponse.verify|verify} messages. + * Encodes the specified SetReadOnlyRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadOnlyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static - * @param {tabletmanagerdata.ISetReadWriteResponse} message SetReadWriteResponse 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 */ - SetReadWriteResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetReadOnlyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetReadWriteResponse message from the specified reader or buffer. + * Decodes a SetReadOnlyRequest message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.SetReadWriteResponse + * @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.SetReadWriteResponse} SetReadWriteResponse + * @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 */ - SetReadWriteResponse.decode = function decode(reader, length) { + SetReadOnlyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadWriteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadOnlyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9409,46 +9858,526 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a SetReadWriteResponse 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.SetReadWriteResponse + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse + * @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 */ - SetReadWriteResponse.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 SetReadWriteResponse message. + * Verifies a SetReadOnlyRequest message. * @function verify - * @memberof tabletmanagerdata.SetReadWriteResponse + * @memberof tabletmanagerdata.SetReadOnlyRequest * @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) { + SetReadOnlyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a SetReadWriteResponse 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.SetReadWriteResponse + * @memberof tabletmanagerdata.SetReadOnlyRequest * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse + * @returns {tabletmanagerdata.SetReadOnlyRequest} SetReadOnlyRequest */ - SetReadWriteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.SetReadWriteResponse) - return object; + SetReadOnlyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SetReadOnlyRequest) + return object; + return new $root.tabletmanagerdata.SetReadOnlyRequest(); + }; + + /** + * Creates a plain object from a SetReadOnlyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.SetReadOnlyRequest + * @static + * @param {tabletmanagerdata.SetReadOnlyRequest} message SetReadOnlyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetReadOnlyRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this SetReadOnlyRequest to JSON. + * @function toJSON + * @memberof tabletmanagerdata.SetReadOnlyRequest + * @instance + * @returns {Object.} JSON object + */ + SetReadOnlyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetReadOnlyRequest; + })(); + + tabletmanagerdata.SetReadOnlyResponse = (function() { + + /** + * Properties of a SetReadOnlyResponse. + * @memberof tabletmanagerdata + * @interface ISetReadOnlyResponse + */ + + /** + * Constructs a new SetReadOnlyResponse. + * @memberof tabletmanagerdata + * @classdesc Represents a SetReadOnlyResponse. + * @implements ISetReadOnlyResponse + * @constructor + * @param {tabletmanagerdata.ISetReadOnlyResponse=} [properties] Properties to set + */ + function SetReadOnlyResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new SetReadOnlyResponse instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.SetReadOnlyResponse + * @static + * @param {tabletmanagerdata.ISetReadOnlyResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse instance + */ + SetReadOnlyResponse.create = function create(properties) { + return new SetReadOnlyResponse(properties); + }; + + /** + * Encodes the specified SetReadOnlyResponse message. Does not implicitly {@link tabletmanagerdata.SetReadOnlyResponse.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.SetReadOnlyResponse + * @static + * @param {tabletmanagerdata.ISetReadOnlyResponse} message SetReadOnlyResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetReadOnlyResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified SetReadOnlyResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadOnlyResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.SetReadOnlyResponse + * @static + * @param {tabletmanagerdata.ISetReadOnlyResponse} message SetReadOnlyResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetReadOnlyResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetReadOnlyResponse message from the specified reader or buffer. + * @function decode + * @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.SetReadOnlyResponse} SetReadOnlyResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadOnlyResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetReadOnlyResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.SetReadOnlyResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetReadOnlyResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetReadOnlyResponse message. + * @function verify + * @memberof tabletmanagerdata.SetReadOnlyResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a SetReadOnlyResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.SetReadOnlyResponse + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.SetReadOnlyResponse} SetReadOnlyResponse + */ + SetReadOnlyResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SetReadOnlyResponse) + return object; + return new $root.tabletmanagerdata.SetReadOnlyResponse(); + }; + + /** + * Creates a plain object from a SetReadOnlyResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.SetReadOnlyResponse + * @static + * @param {tabletmanagerdata.SetReadOnlyResponse} message SetReadOnlyResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetReadOnlyResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this SetReadOnlyResponse to JSON. + * @function toJSON + * @memberof tabletmanagerdata.SetReadOnlyResponse + * @instance + * @returns {Object.} JSON object + */ + SetReadOnlyResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetReadOnlyResponse; + })(); + + tabletmanagerdata.SetReadWriteRequest = (function() { + + /** + * Properties of a SetReadWriteRequest. + * @memberof tabletmanagerdata + * @interface ISetReadWriteRequest + */ + + /** + * Constructs a new SetReadWriteRequest. + * @memberof tabletmanagerdata + * @classdesc Represents a SetReadWriteRequest. + * @implements ISetReadWriteRequest + * @constructor + * @param {tabletmanagerdata.ISetReadWriteRequest=} [properties] Properties to set + */ + function SetReadWriteRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new SetReadWriteRequest instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.SetReadWriteRequest + * @static + * @param {tabletmanagerdata.ISetReadWriteRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest instance + */ + SetReadWriteRequest.create = function create(properties) { + return new SetReadWriteRequest(properties); + }; + + /** + * Encodes the specified SetReadWriteRequest message. Does not implicitly {@link tabletmanagerdata.SetReadWriteRequest.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.SetReadWriteRequest + * @static + * @param {tabletmanagerdata.ISetReadWriteRequest} message SetReadWriteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetReadWriteRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified SetReadWriteRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadWriteRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.SetReadWriteRequest + * @static + * @param {tabletmanagerdata.ISetReadWriteRequest} message SetReadWriteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetReadWriteRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetReadWriteRequest message from the specified reader or buffer. + * @function decode + * @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.SetReadWriteRequest} SetReadWriteRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadWriteRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetReadWriteRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.SetReadWriteRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetReadWriteRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetReadWriteRequest message. + * @function verify + * @memberof tabletmanagerdata.SetReadWriteRequest + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a SetReadWriteRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.SetReadWriteRequest + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.SetReadWriteRequest} SetReadWriteRequest + */ + SetReadWriteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SetReadWriteRequest) + return object; + return new $root.tabletmanagerdata.SetReadWriteRequest(); + }; + + /** + * Creates a plain object from a SetReadWriteRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.SetReadWriteRequest + * @static + * @param {tabletmanagerdata.SetReadWriteRequest} message SetReadWriteRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetReadWriteRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this SetReadWriteRequest to JSON. + * @function toJSON + * @memberof tabletmanagerdata.SetReadWriteRequest + * @instance + * @returns {Object.} JSON object + */ + SetReadWriteRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetReadWriteRequest; + })(); + + tabletmanagerdata.SetReadWriteResponse = (function() { + + /** + * Properties of a SetReadWriteResponse. + * @memberof tabletmanagerdata + * @interface ISetReadWriteResponse + */ + + /** + * Constructs a new SetReadWriteResponse. + * @memberof tabletmanagerdata + * @classdesc Represents a SetReadWriteResponse. + * @implements ISetReadWriteResponse + * @constructor + * @param {tabletmanagerdata.ISetReadWriteResponse=} [properties] Properties to set + */ + function SetReadWriteResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new SetReadWriteResponse instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.SetReadWriteResponse + * @static + * @param {tabletmanagerdata.ISetReadWriteResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse instance + */ + SetReadWriteResponse.create = function create(properties) { + return new SetReadWriteResponse(properties); + }; + + /** + * Encodes the specified SetReadWriteResponse message. Does not implicitly {@link tabletmanagerdata.SetReadWriteResponse.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.SetReadWriteResponse + * @static + * @param {tabletmanagerdata.ISetReadWriteResponse} message SetReadWriteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetReadWriteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified SetReadWriteResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.SetReadWriteResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.SetReadWriteResponse + * @static + * @param {tabletmanagerdata.ISetReadWriteResponse} message SetReadWriteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetReadWriteResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetReadWriteResponse message from the specified reader or buffer. + * @function decode + * @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.SetReadWriteResponse} SetReadWriteResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.SetReadWriteResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetReadWriteResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.SetReadWriteResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetReadWriteResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetReadWriteResponse message. + * @function verify + * @memberof tabletmanagerdata.SetReadWriteResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a SetReadWriteResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.SetReadWriteResponse + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.SetReadWriteResponse} SetReadWriteResponse + */ + SetReadWriteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.SetReadWriteResponse) + return object; return new $root.tabletmanagerdata.SetReadWriteResponse(); }; @@ -48603,35 +49532,34 @@ $root.logutil = (function() { return logutil; })(); -$root.vtctldata = (function() { +$root.vschema = (function() { /** - * Namespace vtctldata. - * @exports vtctldata + * Namespace vschema. + * @exports vschema * @namespace */ - var vtctldata = {}; + var vschema = {}; - vtctldata.ExecuteVtctlCommandRequest = (function() { + vschema.RoutingRules = (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 RoutingRules. + * @memberof vschema + * @interface IRoutingRules + * @property {Array.|null} [rules] RoutingRules rules */ /** - * Constructs a new ExecuteVtctlCommandRequest. - * @memberof vtctldata - * @classdesc Represents an ExecuteVtctlCommandRequest. - * @implements IExecuteVtctlCommandRequest + * Constructs a new RoutingRules. + * @memberof vschema + * @classdesc Represents a RoutingRules. + * @implements IRoutingRules * @constructor - * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set + * @param {vschema.IRoutingRules=} [properties] Properties to set */ - function ExecuteVtctlCommandRequest(properties) { - this.args = []; + function RoutingRules(properties) { + this.rules = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48639,91 +49567,78 @@ $root.vtctldata = (function() { } /** - * ExecuteVtctlCommandRequest args. - * @member {Array.} args - * @memberof vtctldata.ExecuteVtctlCommandRequest - * @instance - */ - ExecuteVtctlCommandRequest.prototype.args = $util.emptyArray; - - /** - * ExecuteVtctlCommandRequest action_timeout. - * @member {number|Long} action_timeout - * @memberof vtctldata.ExecuteVtctlCommandRequest + * RoutingRules rules. + * @member {Array.} rules + * @memberof vschema.RoutingRules * @instance */ - ExecuteVtctlCommandRequest.prototype.action_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoutingRules.prototype.rules = $util.emptyArray; /** - * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * Creates a new RoutingRules instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.RoutingRules * @static - * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest instance + * @param {vschema.IRoutingRules=} [properties] Properties to set + * @returns {vschema.RoutingRules} RoutingRules instance */ - ExecuteVtctlCommandRequest.create = function create(properties) { - return new ExecuteVtctlCommandRequest(properties); + RoutingRules.create = function create(properties) { + return new RoutingRules(properties); }; /** - * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.RoutingRules * @static - * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest 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 */ - ExecuteVtctlCommandRequest.encode = function encode(message, writer) { + RoutingRules.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.args != null && message.args.length) - for (var i = 0; i < message.args.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.args[i]); - if (message.action_timeout != null && Object.hasOwnProperty.call(message, "action_timeout")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.action_timeout); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.vschema.RoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.RoutingRules * @static - * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest 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 */ - ExecuteVtctlCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + RoutingRules.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * Decodes a RoutingRules message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.RoutingRules * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @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 */ - ExecuteVtctlCommandRequest.decode = function decode(reader, length) { + RoutingRules.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRules(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); - break; - case 2: - message.action_timeout = reader.int64(); + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.vschema.RoutingRule.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -48734,142 +49649,126 @@ $root.vtctldata = (function() { }; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a RoutingRules message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.RoutingRules * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @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 */ - ExecuteVtctlCommandRequest.decodeDelimited = function decodeDelimited(reader) { + RoutingRules.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteVtctlCommandRequest message. + * Verifies a RoutingRules message. * @function verify - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.RoutingRules * @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) { + RoutingRules.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.args != null && message.hasOwnProperty("args")) { - if (!Array.isArray(message.args)) - return "args: array expected"; - for (var i = 0; i < message.args.length; ++i) - if (!$util.isString(message.args[i])) - return "args: string[] expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.vschema.RoutingRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } } - if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) - if (!$util.isInteger(message.action_timeout) && !(message.action_timeout && $util.isInteger(message.action_timeout.low) && $util.isInteger(message.action_timeout.high))) - return "action_timeout: integer|Long expected"; return null; }; /** - * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RoutingRules message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.RoutingRules * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @returns {vschema.RoutingRules} RoutingRules */ - ExecuteVtctlCommandRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteVtctlCommandRequest) + RoutingRules.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.RoutingRules) return object; - var message = new $root.vtctldata.ExecuteVtctlCommandRequest(); - if (object.args) { - if (!Array.isArray(object.args)) - throw TypeError(".vtctldata.ExecuteVtctlCommandRequest.args: array expected"); - message.args = []; - for (var i = 0; i < object.args.length; ++i) - message.args[i] = String(object.args[i]); + var message = new $root.vschema.RoutingRules(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".vschema.RoutingRules.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".vschema.RoutingRules.rules: object expected"); + message.rules[i] = $root.vschema.RoutingRule.fromObject(object.rules[i]); + } } - if (object.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 RoutingRules message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.RoutingRules * @static - * @param {vtctldata.ExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest + * @param {vschema.RoutingRules} message RoutingRules * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteVtctlCommandRequest.toObject = function toObject(message, options) { + RoutingRules.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.args = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.action_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.action_timeout = options.longs === String ? "0" : 0; - if (message.args && message.args.length) { - object.args = []; - for (var j = 0; j < message.args.length; ++j) - object.args[j] = message.args[j]; + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.vschema.RoutingRule.toObject(message.rules[j], options); } - if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) - if (typeof message.action_timeout === "number") - object.action_timeout = options.longs === String ? String(message.action_timeout) : message.action_timeout; - else - object.action_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.action_timeout) : options.longs === Number ? new $util.LongBits(message.action_timeout.low >>> 0, message.action_timeout.high >>> 0).toNumber() : message.action_timeout; return object; }; /** - * Converts this ExecuteVtctlCommandRequest to JSON. + * Converts this RoutingRules to JSON. * @function toJSON - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.RoutingRules * @instance * @returns {Object.} JSON object */ - ExecuteVtctlCommandRequest.prototype.toJSON = function toJSON() { + RoutingRules.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteVtctlCommandRequest; + return RoutingRules; })(); - vtctldata.ExecuteVtctlCommandResponse = (function() { + vschema.RoutingRule = (function() { /** - * Properties of an ExecuteVtctlCommandResponse. - * @memberof vtctldata - * @interface IExecuteVtctlCommandResponse - * @property {logutil.IEvent|null} [event] ExecuteVtctlCommandResponse event + * Properties of a RoutingRule. + * @memberof vschema + * @interface IRoutingRule + * @property {string|null} [from_table] RoutingRule from_table + * @property {Array.|null} [to_tables] RoutingRule to_tables */ /** - * Constructs a new ExecuteVtctlCommandResponse. - * @memberof vtctldata - * @classdesc Represents an ExecuteVtctlCommandResponse. - * @implements IExecuteVtctlCommandResponse + * Constructs a new RoutingRule. + * @memberof vschema + * @classdesc Represents a RoutingRule. + * @implements IRoutingRule * @constructor - * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set + * @param {vschema.IRoutingRule=} [properties] Properties to set */ - function ExecuteVtctlCommandResponse(properties) { + function RoutingRule(properties) { + this.to_tables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48877,75 +49776,91 @@ $root.vtctldata = (function() { } /** - * ExecuteVtctlCommandResponse event. - * @member {logutil.IEvent|null|undefined} event - * @memberof vtctldata.ExecuteVtctlCommandResponse + * RoutingRule from_table. + * @member {string} from_table + * @memberof vschema.RoutingRule * @instance */ - ExecuteVtctlCommandResponse.prototype.event = null; + RoutingRule.prototype.from_table = ""; /** - * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * RoutingRule to_tables. + * @member {Array.} to_tables + * @memberof vschema.RoutingRule + * @instance + */ + RoutingRule.prototype.to_tables = $util.emptyArray; + + /** + * Creates a new RoutingRule instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.RoutingRule * @static - * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse instance + * @param {vschema.IRoutingRule=} [properties] Properties to set + * @returns {vschema.RoutingRule} RoutingRule instance */ - ExecuteVtctlCommandResponse.create = function create(properties) { - return new ExecuteVtctlCommandResponse(properties); + RoutingRule.create = function create(properties) { + return new RoutingRule(properties); }; /** - * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.RoutingRule * @static - * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse 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 */ - ExecuteVtctlCommandResponse.encode = function encode(message, writer) { + RoutingRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.logutil.Event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.from_table != null && Object.hasOwnProperty.call(message, "from_table")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_table); + if (message.to_tables != null && message.to_tables.length) + for (var i = 0; i < message.to_tables.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_tables[i]); return writer; }; /** - * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.RoutingRule * @static - * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse 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 */ - ExecuteVtctlCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + RoutingRule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * Decodes a RoutingRule message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.RoutingRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @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 */ - ExecuteVtctlCommandResponse.decode = function decode(reader, length) { + RoutingRule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRule(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.event = $root.logutil.Event.decode(reader, reader.uint32()); + message.from_table = reader.string(); + break; + case 2: + if (!(message.to_tables && message.to_tables.length)) + message.to_tables = []; + message.to_tables.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -48956,114 +49871,133 @@ $root.vtctldata = (function() { }; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a RoutingRule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.RoutingRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @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 */ - ExecuteVtctlCommandResponse.decodeDelimited = function decodeDelimited(reader) { + RoutingRule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteVtctlCommandResponse message. + * Verifies a RoutingRule message. * @function verify - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.RoutingRule * @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) { + RoutingRule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.logutil.Event.verify(message.event); - if (error) - return "event." + error; + if (message.from_table != null && message.hasOwnProperty("from_table")) + if (!$util.isString(message.from_table)) + return "from_table: string expected"; + if (message.to_tables != null && message.hasOwnProperty("to_tables")) { + if (!Array.isArray(message.to_tables)) + return "to_tables: array expected"; + for (var i = 0; i < message.to_tables.length; ++i) + if (!$util.isString(message.to_tables[i])) + return "to_tables: string[] expected"; } return null; }; /** - * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RoutingRule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.RoutingRule * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @returns {vschema.RoutingRule} RoutingRule */ - ExecuteVtctlCommandResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteVtctlCommandResponse) + RoutingRule.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.RoutingRule) return object; - var message = new $root.vtctldata.ExecuteVtctlCommandResponse(); - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".vtctldata.ExecuteVtctlCommandResponse.event: object expected"); - message.event = $root.logutil.Event.fromObject(object.event); + var message = new $root.vschema.RoutingRule(); + if (object.from_table != null) + message.from_table = String(object.from_table); + if (object.to_tables) { + if (!Array.isArray(object.to_tables)) + throw TypeError(".vschema.RoutingRule.to_tables: array expected"); + message.to_tables = []; + for (var i = 0; i < object.to_tables.length; ++i) + message.to_tables[i] = String(object.to_tables[i]); } return message; }; /** - * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. + * Creates a plain object from a RoutingRule message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.RoutingRule * @static - * @param {vtctldata.ExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse + * @param {vschema.RoutingRule} message RoutingRule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteVtctlCommandResponse.toObject = function toObject(message, options) { + RoutingRule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.to_tables = []; if (options.defaults) - object.event = null; - if (message.event != null && message.hasOwnProperty("event")) - object.event = $root.logutil.Event.toObject(message.event, options); + object.from_table = ""; + if (message.from_table != null && message.hasOwnProperty("from_table")) + object.from_table = message.from_table; + if (message.to_tables && message.to_tables.length) { + object.to_tables = []; + for (var j = 0; j < message.to_tables.length; ++j) + object.to_tables[j] = message.to_tables[j]; + } return object; }; /** - * Converts this ExecuteVtctlCommandResponse to JSON. + * Converts this RoutingRule to JSON. * @function toJSON - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.RoutingRule * @instance * @returns {Object.} JSON object */ - ExecuteVtctlCommandResponse.prototype.toJSON = function toJSON() { + RoutingRule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteVtctlCommandResponse; + return RoutingRule; })(); - vtctldata.TableMaterializeSettings = (function() { + vschema.Keyspace = (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 Keyspace. + * @memberof vschema + * @interface IKeyspace + * @property {boolean|null} [sharded] Keyspace sharded + * @property {Object.|null} [vindexes] Keyspace vindexes + * @property {Object.|null} [tables] Keyspace tables + * @property {boolean|null} [require_explicit_routing] Keyspace require_explicit_routing */ /** - * Constructs a new TableMaterializeSettings. - * @memberof vtctldata - * @classdesc Represents a TableMaterializeSettings. - * @implements ITableMaterializeSettings + * Constructs a new Keyspace. + * @memberof vschema + * @classdesc Represents a Keyspace. + * @implements IKeyspace * @constructor - * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + * @param {vschema.IKeyspace=} [properties] Properties to set */ - function TableMaterializeSettings(properties) { + function Keyspace(properties) { + this.vindexes = {}; + this.tables = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49071,237 +50005,336 @@ $root.vtctldata = (function() { } /** - * TableMaterializeSettings target_table. - * @member {string} target_table - * @memberof vtctldata.TableMaterializeSettings + * Keyspace sharded. + * @member {boolean} sharded + * @memberof vschema.Keyspace * @instance */ - TableMaterializeSettings.prototype.target_table = ""; + Keyspace.prototype.sharded = false; /** - * TableMaterializeSettings source_expression. - * @member {string} source_expression - * @memberof vtctldata.TableMaterializeSettings + * Keyspace vindexes. + * @member {Object.} vindexes + * @memberof vschema.Keyspace * @instance */ - TableMaterializeSettings.prototype.source_expression = ""; + Keyspace.prototype.vindexes = $util.emptyObject; /** - * TableMaterializeSettings create_ddl. - * @member {string} create_ddl - * @memberof vtctldata.TableMaterializeSettings + * Keyspace tables. + * @member {Object.} tables + * @memberof vschema.Keyspace * @instance */ - TableMaterializeSettings.prototype.create_ddl = ""; + Keyspace.prototype.tables = $util.emptyObject; /** - * Creates a new TableMaterializeSettings instance using the specified properties. + * Keyspace require_explicit_routing. + * @member {boolean} require_explicit_routing + * @memberof vschema.Keyspace + * @instance + */ + Keyspace.prototype.require_explicit_routing = false; + + /** + * Creates a new Keyspace instance using the specified properties. * @function create - * @memberof vtctldata.TableMaterializeSettings + * @memberof vschema.Keyspace * @static - * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings instance + * @param {vschema.IKeyspace=} [properties] Properties to set + * @returns {vschema.Keyspace} Keyspace instance */ - TableMaterializeSettings.create = function create(properties) { - return new TableMaterializeSettings(properties); + Keyspace.create = function create(properties) { + return new Keyspace(properties); }; /** - * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. * @function encode - * @memberof vtctldata.TableMaterializeSettings + * @memberof vschema.Keyspace * @static - * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings 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 */ - TableMaterializeSettings.encode = function encode(message, writer) { + Keyspace.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.sharded != null && Object.hasOwnProperty.call(message, "sharded")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.sharded); + if (message.vindexes != null && Object.hasOwnProperty.call(message, "vindexes")) + for (var keys = Object.keys(message.vindexes), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vschema.Vindex.encode(message.vindexes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.tables != null && Object.hasOwnProperty.call(message, "tables")) + for (var keys = Object.keys(message.tables), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vschema.Table.encode(message.tables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.require_explicit_routing != null && Object.hasOwnProperty.call(message, "require_explicit_routing")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.require_explicit_routing); return writer; }; /** - * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.TableMaterializeSettings + * @memberof vschema.Keyspace * @static - * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings 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 */ - TableMaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + Keyspace.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer. + * Decodes a Keyspace message from the specified reader or buffer. * @function decode - * @memberof vtctldata.TableMaterializeSettings + * @memberof vschema.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @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 */ - TableMaterializeSettings.decode = function decode(reader, length) { + Keyspace.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TableMaterializeSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Keyspace(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.target_table = reader.string(); + message.sharded = reader.bool(); break; case 2: - message.source_expression = reader.string(); - break; - case 3: - message.create_ddl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; + if (message.vindexes === $util.emptyObject) + message.vindexes = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vschema.Vindex.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.vindexes[key] = value; + break; + case 3: + if (message.tables === $util.emptyObject) + message.tables = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vschema.Table.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tables[key] = value; + break; + case 4: + message.require_explicit_routing = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; }; /** - * Decodes a TableMaterializeSettings 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.TableMaterializeSettings + * @memberof vschema.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @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 */ - TableMaterializeSettings.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 TableMaterializeSettings message. + * Verifies a Keyspace message. * @function verify - * @memberof vtctldata.TableMaterializeSettings + * @memberof vschema.Keyspace * @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) { + Keyspace.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.sharded != null && message.hasOwnProperty("sharded")) + if (typeof message.sharded !== "boolean") + return "sharded: boolean expected"; + if (message.vindexes != null && message.hasOwnProperty("vindexes")) { + if (!$util.isObject(message.vindexes)) + return "vindexes: object expected"; + var key = Object.keys(message.vindexes); + for (var i = 0; i < key.length; ++i) { + var error = $root.vschema.Vindex.verify(message.vindexes[key[i]]); + if (error) + return "vindexes." + error; + } + } + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!$util.isObject(message.tables)) + return "tables: object expected"; + var key = Object.keys(message.tables); + for (var i = 0; i < key.length; ++i) { + var error = $root.vschema.Table.verify(message.tables[key[i]]); + if (error) + return "tables." + error; + } + } + if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) + if (typeof message.require_explicit_routing !== "boolean") + return "require_explicit_routing: boolean expected"; return null; }; /** - * Creates a TableMaterializeSettings 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.TableMaterializeSettings + * @memberof vschema.Keyspace * @static * @param {Object.} object Plain object - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @returns {vschema.Keyspace} Keyspace */ - TableMaterializeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.TableMaterializeSettings) + Keyspace.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Keyspace) return object; - var message = new $root.vtctldata.TableMaterializeSettings(); - if (object.target_table != null) - message.target_table = String(object.target_table); - if (object.source_expression != null) - message.source_expression = String(object.source_expression); - if (object.create_ddl != null) - message.create_ddl = String(object.create_ddl); + var message = new $root.vschema.Keyspace(); + if (object.sharded != null) + message.sharded = Boolean(object.sharded); + if (object.vindexes) { + if (typeof object.vindexes !== "object") + throw TypeError(".vschema.Keyspace.vindexes: object expected"); + message.vindexes = {}; + for (var keys = Object.keys(object.vindexes), i = 0; i < keys.length; ++i) { + if (typeof object.vindexes[keys[i]] !== "object") + throw TypeError(".vschema.Keyspace.vindexes: object expected"); + message.vindexes[keys[i]] = $root.vschema.Vindex.fromObject(object.vindexes[keys[i]]); + } + } + if (object.tables) { + if (typeof object.tables !== "object") + throw TypeError(".vschema.Keyspace.tables: object expected"); + message.tables = {}; + for (var keys = Object.keys(object.tables), i = 0; i < keys.length; ++i) { + if (typeof object.tables[keys[i]] !== "object") + throw TypeError(".vschema.Keyspace.tables: object expected"); + message.tables[keys[i]] = $root.vschema.Table.fromObject(object.tables[keys[i]]); + } + } + if (object.require_explicit_routing != null) + message.require_explicit_routing = Boolean(object.require_explicit_routing); return message; }; /** - * Creates a plain object from a TableMaterializeSettings 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.TableMaterializeSettings + * @memberof vschema.Keyspace * @static - * @param {vtctldata.TableMaterializeSettings} message TableMaterializeSettings + * @param {vschema.Keyspace} message Keyspace * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TableMaterializeSettings.toObject = function toObject(message, options) { + Keyspace.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) { + object.vindexes = {}; + object.tables = {}; + } if (options.defaults) { - object.target_table = ""; - object.source_expression = ""; - object.create_ddl = ""; + object.sharded = false; + object.require_explicit_routing = false; } - if (message.target_table != null && message.hasOwnProperty("target_table")) - object.target_table = message.target_table; - if (message.source_expression != null && message.hasOwnProperty("source_expression")) - object.source_expression = message.source_expression; - if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) - object.create_ddl = message.create_ddl; + if (message.sharded != null && message.hasOwnProperty("sharded")) + object.sharded = message.sharded; + var keys2; + if (message.vindexes && (keys2 = Object.keys(message.vindexes)).length) { + object.vindexes = {}; + for (var j = 0; j < keys2.length; ++j) + object.vindexes[keys2[j]] = $root.vschema.Vindex.toObject(message.vindexes[keys2[j]], options); + } + if (message.tables && (keys2 = Object.keys(message.tables)).length) { + object.tables = {}; + for (var j = 0; j < keys2.length; ++j) + object.tables[keys2[j]] = $root.vschema.Table.toObject(message.tables[keys2[j]], options); + } + if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) + object.require_explicit_routing = message.require_explicit_routing; return object; }; /** - * Converts this TableMaterializeSettings to JSON. + * Converts this Keyspace to JSON. * @function toJSON - * @memberof vtctldata.TableMaterializeSettings + * @memberof vschema.Keyspace * @instance * @returns {Object.} JSON object */ - TableMaterializeSettings.prototype.toJSON = function toJSON() { + Keyspace.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TableMaterializeSettings; + return Keyspace; })(); - vtctldata.MaterializeSettings = (function() { + vschema.Vindex = (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 + * 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 */ /** - * Constructs a new MaterializeSettings. - * @memberof vtctldata - * @classdesc Represents a MaterializeSettings. - * @implements IMaterializeSettings + * Constructs a new Vindex. + * @memberof vschema + * @classdesc Represents a Vindex. + * @implements IVindex * @constructor - * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set + * @param {vschema.IVindex=} [properties] Properties to set */ - function MaterializeSettings(properties) { - this.table_settings = []; + function Vindex(properties) { + this.params = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49309,169 +50342,121 @@ $root.vtctldata = (function() { } /** - * 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 + * Vindex type. + * @member {string} type + * @memberof vschema.Vindex * @instance */ - MaterializeSettings.prototype.cell = ""; + Vindex.prototype.type = ""; /** - * MaterializeSettings tablet_types. - * @member {string} tablet_types - * @memberof vtctldata.MaterializeSettings + * Vindex params. + * @member {Object.} params + * @memberof vschema.Vindex * @instance */ - MaterializeSettings.prototype.tablet_types = ""; + Vindex.prototype.params = $util.emptyObject; /** - * MaterializeSettings external_cluster. - * @member {string} external_cluster - * @memberof vtctldata.MaterializeSettings + * Vindex owner. + * @member {string} owner + * @memberof vschema.Vindex * @instance */ - MaterializeSettings.prototype.external_cluster = ""; + Vindex.prototype.owner = ""; /** - * Creates a new MaterializeSettings instance using the specified properties. + * Creates a new Vindex instance using the specified properties. * @function create - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.Vindex * @static - * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set - * @returns {vtctldata.MaterializeSettings} MaterializeSettings instance + * @param {vschema.IVindex=} [properties] Properties to set + * @returns {vschema.Vindex} Vindex instance */ - MaterializeSettings.create = function create(properties) { - return new MaterializeSettings(properties); + Vindex.create = function create(properties) { + return new Vindex(properties); }; /** - * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. * @function encode - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.Vindex * @static - * @param {vtctldata.IMaterializeSettings} message MaterializeSettings 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 */ - MaterializeSettings.encode = function encode(message, writer) { + Vindex.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); - if (message.source_keyspace != null && Object.hasOwnProperty.call(message, "source_keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_keyspace); - if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); - if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.stop_after_copy); - if (message.table_settings != null && message.table_settings.length) - for (var i = 0; i < message.table_settings.length; ++i) - $root.vtctldata.TableMaterializeSettings.encode(message.table_settings[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.cell); - if (message.tablet_types != null && Object.hasOwnProperty.call(message, "tablet_types")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.tablet_types); - if (message.external_cluster != null && Object.hasOwnProperty.call(message, "external_cluster")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.external_cluster); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + for (var keys = Object.keys(message.params), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.params[keys[i]]).ldelim(); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.owner); return writer; }; /** - * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.Vindex * @static - * @param {vtctldata.IMaterializeSettings} message MaterializeSettings 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 */ - MaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + Vindex.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaterializeSettings message from the specified reader or buffer. + * Decodes a Vindex message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.Vindex * @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.Vindex} Vindex * @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) { + Vindex.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Vindex(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.workflow = reader.string(); + message.type = reader.string(); break; case 2: - message.source_keyspace = reader.string(); + if (message.params === $util.emptyObject) + message.params = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.params[key] = value; break; case 3: - 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(); + message.owner = reader.string(); break; default: reader.skipType(tag & 7); @@ -49482,183 +50467,146 @@ $root.vtctldata = (function() { }; /** - * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. + * Decodes a Vindex message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.Vindex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @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 */ - MaterializeSettings.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 MaterializeSettings message. + * Verifies a Vindex message. * @function verify - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.Vindex * @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) { + Vindex.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) - if (!$util.isString(message.source_keyspace)) - return "source_keyspace: string expected"; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - if (!$util.isString(message.target_keyspace)) - return "target_keyspace: string expected"; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - if (typeof message.stop_after_copy !== "boolean") - return "stop_after_copy: boolean expected"; - if (message.table_settings != null && message.hasOwnProperty("table_settings")) { - if (!Array.isArray(message.table_settings)) - return "table_settings: array expected"; - for (var i = 0; i < message.table_settings.length; ++i) { - var error = $root.vtctldata.TableMaterializeSettings.verify(message.table_settings[i]); - if (error) - return "table_settings." + error; - } + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + if (!$util.isObject(message.params)) + return "params: object expected"; + var key = Object.keys(message.params); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.params[key[i]])) + return "params: string{k:string} expected"; } - if (message.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.owner != null && message.hasOwnProperty("owner")) + if (!$util.isString(message.owner)) + return "owner: string expected"; return null; }; /** - * Creates a MaterializeSettings 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 vtctldata.MaterializeSettings + * @memberof vschema.Vindex * @static * @param {Object.} object Plain object - * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @returns {vschema.Vindex} Vindex */ - MaterializeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MaterializeSettings) + Vindex.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Vindex) return object; - var message = new $root.vtctldata.MaterializeSettings(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.source_keyspace != null) - message.source_keyspace = String(object.source_keyspace); - if (object.target_keyspace != null) - message.target_keyspace = String(object.target_keyspace); - if (object.stop_after_copy != null) - message.stop_after_copy = Boolean(object.stop_after_copy); - if (object.table_settings) { - if (!Array.isArray(object.table_settings)) - throw TypeError(".vtctldata.MaterializeSettings.table_settings: array expected"); - message.table_settings = []; - for (var i = 0; i < object.table_settings.length; ++i) { - if (typeof object.table_settings[i] !== "object") - throw TypeError(".vtctldata.MaterializeSettings.table_settings: object expected"); - message.table_settings[i] = $root.vtctldata.TableMaterializeSettings.fromObject(object.table_settings[i]); - } + var message = new $root.vschema.Vindex(); + if (object.type != null) + message.type = String(object.type); + if (object.params) { + if (typeof object.params !== "object") + throw TypeError(".vschema.Vindex.params: object expected"); + message.params = {}; + for (var keys = Object.keys(object.params), i = 0; i < keys.length; ++i) + message.params[keys[i]] = String(object.params[keys[i]]); } - if (object.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); + if (object.owner != null) + message.owner = String(object.owner); return message; }; /** - * Creates a plain object from a MaterializeSettings 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 vtctldata.MaterializeSettings + * @memberof vschema.Vindex * @static - * @param {vtctldata.MaterializeSettings} message MaterializeSettings + * @param {vschema.Vindex} message Vindex * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaterializeSettings.toObject = function toObject(message, options) { + Vindex.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.table_settings = []; + if (options.objects || options.defaults) + object.params = {}; 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.type = ""; + object.owner = ""; } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) - object.source_keyspace = message.source_keyspace; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - object.target_keyspace = message.target_keyspace; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - object.stop_after_copy = message.stop_after_copy; - if (message.table_settings && message.table_settings.length) { - object.table_settings = []; - for (var j = 0; j < message.table_settings.length; ++j) - object.table_settings[j] = $root.vtctldata.TableMaterializeSettings.toObject(message.table_settings[j], options); + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + var keys2; + if (message.params && (keys2 = Object.keys(message.params)).length) { + object.params = {}; + for (var j = 0; j < keys2.length; ++j) + object.params[keys2[j]] = message.params[keys2[j]]; } - if (message.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.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; return object; }; /** - * Converts this MaterializeSettings to JSON. + * Converts this Vindex to JSON. * @function toJSON - * @memberof vtctldata.MaterializeSettings + * @memberof vschema.Vindex * @instance * @returns {Object.} JSON object */ - MaterializeSettings.prototype.toJSON = function toJSON() { + Vindex.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MaterializeSettings; + return Vindex; })(); - vtctldata.Keyspace = (function() { + vschema.Table = (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 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 */ /** - * Constructs a new Keyspace. - * @memberof vtctldata - * @classdesc Represents a Keyspace. - * @implements IKeyspace + * Constructs a new Table. + * @memberof vschema + * @classdesc Represents a Table. + * @implements ITable * @constructor - * @param {vtctldata.IKeyspace=} [properties] Properties to set + * @param {vschema.ITable=} [properties] Properties to set */ - function Keyspace(properties) { + function Table(properties) { + this.column_vindexes = []; + this.columns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49666,88 +50614,146 @@ $root.vtctldata = (function() { } /** - * Keyspace name. - * @member {string} name - * @memberof vtctldata.Keyspace + * Table type. + * @member {string} type + * @memberof vschema.Table * @instance */ - Keyspace.prototype.name = ""; + Table.prototype.type = ""; /** - * Keyspace keyspace. - * @member {topodata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.Keyspace + * Table column_vindexes. + * @member {Array.} column_vindexes + * @memberof vschema.Table * @instance */ - Keyspace.prototype.keyspace = null; + Table.prototype.column_vindexes = $util.emptyArray; /** - * Creates a new Keyspace instance using the specified properties. + * Table auto_increment. + * @member {vschema.IAutoIncrement|null|undefined} auto_increment + * @memberof vschema.Table + * @instance + */ + Table.prototype.auto_increment = null; + + /** + * Table columns. + * @member {Array.} columns + * @memberof vschema.Table + * @instance + */ + Table.prototype.columns = $util.emptyArray; + + /** + * Table pinned. + * @member {string} pinned + * @memberof vschema.Table + * @instance + */ + Table.prototype.pinned = ""; + + /** + * Table column_list_authoritative. + * @member {boolean} column_list_authoritative + * @memberof vschema.Table + * @instance + */ + Table.prototype.column_list_authoritative = false; + + /** + * Creates a new Table instance using the specified properties. * @function create - * @memberof vtctldata.Keyspace + * @memberof vschema.Table * @static - * @param {vtctldata.IKeyspace=} [properties] Properties to set - * @returns {vtctldata.Keyspace} Keyspace instance + * @param {vschema.ITable=} [properties] Properties to set + * @returns {vschema.Table} Table instance */ - Keyspace.create = function create(properties) { - return new Keyspace(properties); + Table.create = function create(properties) { + return new Table(properties); }; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. * @function encode - * @memberof vtctldata.Keyspace + * @memberof vschema.Table * @static - * @param {vtctldata.IKeyspace} message Keyspace 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 */ - Keyspace.encode = function encode(message, writer) { + Table.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.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.column_vindexes != null && message.column_vindexes.length) + for (var i = 0; i < message.column_vindexes.length; ++i) + $root.vschema.ColumnVindex.encode(message.column_vindexes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.auto_increment != null && Object.hasOwnProperty.call(message, "auto_increment")) + $root.vschema.AutoIncrement.encode(message.auto_increment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.vschema.Column.encode(message.columns[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.pinned != null && Object.hasOwnProperty.call(message, "pinned")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.pinned); + if (message.column_list_authoritative != null && Object.hasOwnProperty.call(message, "column_list_authoritative")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.column_list_authoritative); return writer; }; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Keyspace + * @memberof vschema.Table * @static - * @param {vtctldata.IKeyspace} message Keyspace 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 */ - Keyspace.encodeDelimited = function encodeDelimited(message, writer) { + Table.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a Table message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Keyspace + * @memberof vschema.Table * @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.Table} Table * @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) { + Table.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Keyspace(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Table(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.type = reader.string(); break; case 2: - message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); + if (!(message.column_vindexes && message.column_vindexes.length)) + message.column_vindexes = []; + message.column_vindexes.push($root.vschema.ColumnVindex.decode(reader, reader.uint32())); + break; + case 3: + message.auto_increment = $root.vschema.AutoIncrement.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.vschema.Column.decode(reader, reader.uint32())); + break; + case 5: + message.pinned = reader.string(); + break; + case 6: + message.column_list_authoritative = reader.bool(); break; default: reader.skipType(tag & 7); @@ -49758,123 +50764,192 @@ $root.vtctldata = (function() { }; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * Decodes a Table message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.Keyspace + * @memberof vschema.Table * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Keyspace} Keyspace + * @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 */ - Keyspace.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 Keyspace message. + * Verifies a Table message. * @function verify - * @memberof vtctldata.Keyspace + * @memberof vschema.Table * @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) { + Table.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.topodata.Keyspace.verify(message.keyspace); + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.column_vindexes != null && message.hasOwnProperty("column_vindexes")) { + if (!Array.isArray(message.column_vindexes)) + return "column_vindexes: array expected"; + for (var i = 0; i < message.column_vindexes.length; ++i) { + var error = $root.vschema.ColumnVindex.verify(message.column_vindexes[i]); + if (error) + return "column_vindexes." + error; + } + } + if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) { + var error = $root.vschema.AutoIncrement.verify(message.auto_increment); if (error) - return "keyspace." + error; + return "auto_increment." + error; } + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.vschema.Column.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } + if (message.pinned != null && message.hasOwnProperty("pinned")) + if (!$util.isString(message.pinned)) + return "pinned: string expected"; + if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) + if (typeof message.column_list_authoritative !== "boolean") + return "column_list_authoritative: boolean expected"; return null; }; /** - * Creates a Keyspace 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 vtctldata.Keyspace + * @memberof vschema.Table * @static * @param {Object.} object Plain object - * @returns {vtctldata.Keyspace} Keyspace + * @returns {vschema.Table} Table */ - Keyspace.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Keyspace) + Table.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Table) return object; - var message = new $root.vtctldata.Keyspace(); - if (object.name != null) - message.name = String(object.name); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtctldata.Keyspace.keyspace: object expected"); - message.keyspace = $root.topodata.Keyspace.fromObject(object.keyspace); + var message = new $root.vschema.Table(); + if (object.type != null) + message.type = String(object.type); + if (object.column_vindexes) { + if (!Array.isArray(object.column_vindexes)) + throw TypeError(".vschema.Table.column_vindexes: array expected"); + message.column_vindexes = []; + for (var i = 0; i < object.column_vindexes.length; ++i) { + if (typeof object.column_vindexes[i] !== "object") + throw TypeError(".vschema.Table.column_vindexes: object expected"); + message.column_vindexes[i] = $root.vschema.ColumnVindex.fromObject(object.column_vindexes[i]); + } + } + if (object.auto_increment != null) { + if (typeof object.auto_increment !== "object") + throw TypeError(".vschema.Table.auto_increment: object expected"); + message.auto_increment = $root.vschema.AutoIncrement.fromObject(object.auto_increment); + } + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".vschema.Table.columns: array expected"); + message.columns = []; + for (var i = 0; i < object.columns.length; ++i) { + if (typeof object.columns[i] !== "object") + throw TypeError(".vschema.Table.columns: object expected"); + message.columns[i] = $root.vschema.Column.fromObject(object.columns[i]); + } } + if (object.pinned != null) + message.pinned = String(object.pinned); + if (object.column_list_authoritative != null) + message.column_list_authoritative = Boolean(object.column_list_authoritative); return message; }; /** - * Creates a plain object from a Keyspace 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 vtctldata.Keyspace + * @memberof vschema.Table * @static - * @param {vtctldata.Keyspace} message Keyspace + * @param {vschema.Table} message Table * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Keyspace.toObject = function toObject(message, options) { + Table.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.column_vindexes = []; + object.columns = []; + } if (options.defaults) { - object.name = ""; - object.keyspace = null; + object.type = ""; + object.auto_increment = null; + object.pinned = ""; + object.column_list_authoritative = false; } - 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.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.column_vindexes && message.column_vindexes.length) { + object.column_vindexes = []; + for (var j = 0; j < message.column_vindexes.length; ++j) + object.column_vindexes[j] = $root.vschema.ColumnVindex.toObject(message.column_vindexes[j], options); + } + if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) + object.auto_increment = $root.vschema.AutoIncrement.toObject(message.auto_increment, options); + if (message.columns && message.columns.length) { + object.columns = []; + for (var j = 0; j < message.columns.length; ++j) + object.columns[j] = $root.vschema.Column.toObject(message.columns[j], options); + } + if (message.pinned != null && message.hasOwnProperty("pinned")) + object.pinned = message.pinned; + if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) + object.column_list_authoritative = message.column_list_authoritative; return object; }; /** - * Converts this Keyspace to JSON. + * Converts this Table to JSON. * @function toJSON - * @memberof vtctldata.Keyspace + * @memberof vschema.Table * @instance * @returns {Object.} JSON object */ - Keyspace.prototype.toJSON = function toJSON() { + Table.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Keyspace; + return Table; })(); - vtctldata.Shard = (function() { + vschema.ColumnVindex = (function() { /** - * Properties of a Shard. - * @memberof vtctldata - * @interface IShard - * @property {string|null} [keyspace] Shard keyspace - * @property {string|null} [name] Shard name - * @property {topodata.IShard|null} [shard] Shard shard + * Properties of a ColumnVindex. + * @memberof vschema + * @interface IColumnVindex + * @property {string|null} [column] ColumnVindex column + * @property {string|null} [name] ColumnVindex name + * @property {Array.|null} [columns] ColumnVindex columns */ /** - * Constructs a new Shard. - * @memberof vtctldata - * @classdesc Represents a Shard. - * @implements IShard + * Constructs a new ColumnVindex. + * @memberof vschema + * @classdesc Represents a ColumnVindex. + * @implements IColumnVindex * @constructor - * @param {vtctldata.IShard=} [properties] Properties to set + * @param {vschema.IColumnVindex=} [properties] Properties to set */ - function Shard(properties) { + function ColumnVindex(properties) { + this.columns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49882,101 +50957,104 @@ $root.vtctldata = (function() { } /** - * Shard keyspace. - * @member {string} keyspace - * @memberof vtctldata.Shard + * ColumnVindex column. + * @member {string} column + * @memberof vschema.ColumnVindex * @instance */ - Shard.prototype.keyspace = ""; + ColumnVindex.prototype.column = ""; /** - * Shard name. + * ColumnVindex name. * @member {string} name - * @memberof vtctldata.Shard + * @memberof vschema.ColumnVindex * @instance */ - Shard.prototype.name = ""; + ColumnVindex.prototype.name = ""; /** - * Shard shard. - * @member {topodata.IShard|null|undefined} shard - * @memberof vtctldata.Shard + * ColumnVindex columns. + * @member {Array.} columns + * @memberof vschema.ColumnVindex * @instance */ - Shard.prototype.shard = null; + ColumnVindex.prototype.columns = $util.emptyArray; /** - * Creates a new Shard instance using the specified properties. + * Creates a new ColumnVindex instance using the specified properties. * @function create - * @memberof vtctldata.Shard + * @memberof vschema.ColumnVindex * @static - * @param {vtctldata.IShard=} [properties] Properties to set - * @returns {vtctldata.Shard} Shard instance + * @param {vschema.IColumnVindex=} [properties] Properties to set + * @returns {vschema.ColumnVindex} ColumnVindex instance */ - Shard.create = function create(properties) { - return new Shard(properties); + ColumnVindex.create = function create(properties) { + return new ColumnVindex(properties); }; /** - * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. * @function encode - * @memberof vtctldata.Shard + * @memberof vschema.ColumnVindex * @static - * @param {vtctldata.IShard} message Shard 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 */ - Shard.encode = function encode(message, writer) { + ColumnVindex.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.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.shard != null && Object.hasOwnProperty.call(message, "shard")) - $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.columns[i]); return writer; }; /** - * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Shard + * @memberof vschema.ColumnVindex * @static - * @param {vtctldata.IShard} message Shard 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 */ - Shard.encodeDelimited = function encodeDelimited(message, writer) { + ColumnVindex.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Shard message from the specified reader or buffer. + * Decodes a ColumnVindex message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Shard + * @memberof vschema.ColumnVindex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Shard} Shard + * @returns {vschema.ColumnVindex} ColumnVindex * @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) { + ColumnVindex.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Shard(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ColumnVindex(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.column = reader.string(); break; case 2: message.name = reader.string(); break; case 3: - message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -49987,134 +51065,138 @@ $root.vtctldata = (function() { }; /** - * Decodes a Shard message from the specified reader or buffer, length delimited. + * Decodes a ColumnVindex message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.Shard + * @memberof vschema.ColumnVindex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Shard} Shard + * @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 */ - Shard.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 Shard message. + * Verifies a ColumnVindex message. * @function verify - * @memberof vtctldata.Shard + * @memberof vschema.ColumnVindex * @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) { + ColumnVindex.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.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.shard != null && message.hasOwnProperty("shard")) { - var error = $root.topodata.Shard.verify(message.shard); - if (error) - return "shard." + error; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) + if (!$util.isString(message.columns[i])) + return "columns: string[] expected"; } return null; }; /** - * Creates a Shard 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 vtctldata.Shard + * @memberof vschema.ColumnVindex * @static * @param {Object.} object Plain object - * @returns {vtctldata.Shard} Shard + * @returns {vschema.ColumnVindex} ColumnVindex */ - Shard.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Shard) + ColumnVindex.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.ColumnVindex) return object; - var message = new $root.vtctldata.Shard(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); + var message = new $root.vschema.ColumnVindex(); + if (object.column != null) + message.column = String(object.column); if (object.name != null) message.name = String(object.name); - if (object.shard != null) { - if (typeof object.shard !== "object") - throw TypeError(".vtctldata.Shard.shard: object expected"); - message.shard = $root.topodata.Shard.fromObject(object.shard); + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".vschema.ColumnVindex.columns: array expected"); + message.columns = []; + for (var i = 0; i < object.columns.length; ++i) + message.columns[i] = String(object.columns[i]); } return message; }; /** - * Creates a plain object from a Shard 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 vtctldata.Shard + * @memberof vschema.ColumnVindex * @static - * @param {vtctldata.Shard} message Shard + * @param {vschema.ColumnVindex} message ColumnVindex * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Shard.toObject = function toObject(message, options) { + ColumnVindex.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.columns = []; if (options.defaults) { - object.keyspace = ""; + object.column = ""; object.name = ""; - object.shard = null; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; + if (message.column != null && message.hasOwnProperty("column")) + object.column = message.column; 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.columns && message.columns.length) { + object.columns = []; + for (var j = 0; j < message.columns.length; ++j) + object.columns[j] = message.columns[j]; + } return object; }; /** - * Converts this Shard to JSON. + * Converts this ColumnVindex to JSON. * @function toJSON - * @memberof vtctldata.Shard + * @memberof vschema.ColumnVindex * @instance * @returns {Object.} JSON object */ - Shard.prototype.toJSON = function toJSON() { + ColumnVindex.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Shard; + return ColumnVindex; })(); - vtctldata.Workflow = (function() { + vschema.AutoIncrement = (function() { /** - * Properties of a Workflow. - * @memberof vtctldata - * @interface IWorkflow - * @property {string|null} [name] Workflow name - * @property {vtctldata.Workflow.IReplicationLocation|null} [source] Workflow source - * @property {vtctldata.Workflow.IReplicationLocation|null} [target] Workflow target - * @property {number|Long|null} [max_v_replication_lag] Workflow max_v_replication_lag - * @property {Object.|null} [shard_streams] Workflow shard_streams + * Properties of an AutoIncrement. + * @memberof vschema + * @interface IAutoIncrement + * @property {string|null} [column] AutoIncrement column + * @property {string|null} [sequence] AutoIncrement sequence */ /** - * Constructs a new Workflow. - * @memberof vtctldata - * @classdesc Represents a Workflow. - * @implements IWorkflow + * Constructs a new AutoIncrement. + * @memberof vschema + * @classdesc Represents an AutoIncrement. + * @implements IAutoIncrement * @constructor - * @param {vtctldata.IWorkflow=} [properties] Properties to set + * @param {vschema.IAutoIncrement=} [properties] Properties to set */ - function Workflow(properties) { - this.shard_streams = {}; + function AutoIncrement(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50122,149 +51204,88 @@ $root.vtctldata = (function() { } /** - * Workflow name. - * @member {string} name - * @memberof vtctldata.Workflow - * @instance - */ - Workflow.prototype.name = ""; - - /** - * Workflow source. - * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} source - * @memberof vtctldata.Workflow - * @instance - */ - Workflow.prototype.source = null; - - /** - * Workflow target. - * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} target - * @memberof vtctldata.Workflow - * @instance - */ - Workflow.prototype.target = null; - - /** - * Workflow max_v_replication_lag. - * @member {number|Long} max_v_replication_lag - * @memberof vtctldata.Workflow + * AutoIncrement column. + * @member {string} column + * @memberof vschema.AutoIncrement * @instance */ - Workflow.prototype.max_v_replication_lag = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AutoIncrement.prototype.column = ""; /** - * Workflow shard_streams. - * @member {Object.} shard_streams - * @memberof vtctldata.Workflow + * AutoIncrement sequence. + * @member {string} sequence + * @memberof vschema.AutoIncrement * @instance */ - Workflow.prototype.shard_streams = $util.emptyObject; + AutoIncrement.prototype.sequence = ""; /** - * Creates a new Workflow instance using the specified properties. + * Creates a new AutoIncrement instance using the specified properties. * @function create - * @memberof vtctldata.Workflow + * @memberof vschema.AutoIncrement * @static - * @param {vtctldata.IWorkflow=} [properties] Properties to set - * @returns {vtctldata.Workflow} Workflow instance + * @param {vschema.IAutoIncrement=} [properties] Properties to set + * @returns {vschema.AutoIncrement} AutoIncrement instance */ - Workflow.create = function create(properties) { - return new Workflow(properties); + AutoIncrement.create = function create(properties) { + return new AutoIncrement(properties); }; /** - * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. * @function encode - * @memberof vtctldata.Workflow + * @memberof vschema.AutoIncrement * @static - * @param {vtctldata.IWorkflow} message Workflow 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 */ - Workflow.encode = function encode(message, writer) { + AutoIncrement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.source != null && Object.hasOwnProperty.call(message, "source")) - $root.vtctldata.Workflow.ReplicationLocation.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.vtctldata.Workflow.ReplicationLocation.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.max_v_replication_lag != null && Object.hasOwnProperty.call(message, "max_v_replication_lag")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.max_v_replication_lag); - if (message.shard_streams != null && Object.hasOwnProperty.call(message, "shard_streams")) - for (var keys = Object.keys(message.shard_streams), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtctldata.Workflow.ShardStream.encode(message.shard_streams[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.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 Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Workflow + * @memberof vschema.AutoIncrement * @static - * @param {vtctldata.IWorkflow} message Workflow 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 */ - Workflow.encodeDelimited = function encodeDelimited(message, writer) { + AutoIncrement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Workflow message from the specified reader or buffer. + * Decodes an AutoIncrement message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Workflow + * @memberof vschema.AutoIncrement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow} Workflow + * @returns {vschema.AutoIncrement} AutoIncrement * @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) { + AutoIncrement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.AutoIncrement(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.column = reader.string(); break; case 2: - message.source = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); - break; - case 4: - message.max_v_replication_lag = reader.int64(); - break; - case 5: - if (message.shard_streams === $util.emptyObject) - message.shard_streams = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtctldata.Workflow.ShardStream.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.shard_streams[key] = value; + message.sequence = reader.string(); break; default: reader.skipType(tag & 7); @@ -50275,1485 +51296,852 @@ $root.vtctldata = (function() { }; /** - * Decodes a Workflow message from the specified reader or buffer, length delimited. + * Decodes an AutoIncrement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.Workflow + * @memberof vschema.AutoIncrement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow} Workflow + * @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 */ - Workflow.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 Workflow message. + * Verifies an AutoIncrement message. * @function verify - * @memberof vtctldata.Workflow + * @memberof vschema.AutoIncrement * @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) { + AutoIncrement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.source != null && message.hasOwnProperty("source")) { - var error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.source); - if (error) - return "source." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.target); - if (error) - return "target." + error; - } - if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) - if (!$util.isInteger(message.max_v_replication_lag) && !(message.max_v_replication_lag && $util.isInteger(message.max_v_replication_lag.low) && $util.isInteger(message.max_v_replication_lag.high))) - return "max_v_replication_lag: integer|Long expected"; - if (message.shard_streams != null && message.hasOwnProperty("shard_streams")) { - if (!$util.isObject(message.shard_streams)) - return "shard_streams: object expected"; - var key = Object.keys(message.shard_streams); - for (var i = 0; i < key.length; ++i) { - var error = $root.vtctldata.Workflow.ShardStream.verify(message.shard_streams[key[i]]); - if (error) - return "shard_streams." + error; - } - } + 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 Workflow 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 vtctldata.Workflow + * @memberof vschema.AutoIncrement * @static * @param {Object.} object Plain object - * @returns {vtctldata.Workflow} Workflow + * @returns {vschema.AutoIncrement} AutoIncrement */ - Workflow.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow) + AutoIncrement.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.AutoIncrement) return object; - var message = new $root.vtctldata.Workflow(); - if (object.name != null) - message.name = String(object.name); - if (object.source != null) { - if (typeof object.source !== "object") - throw TypeError(".vtctldata.Workflow.source: object expected"); - message.source = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.source); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".vtctldata.Workflow.target: object expected"); - message.target = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.target); - } - if (object.max_v_replication_lag != null) - if ($util.Long) - (message.max_v_replication_lag = $util.Long.fromValue(object.max_v_replication_lag)).unsigned = false; - else if (typeof object.max_v_replication_lag === "string") - message.max_v_replication_lag = parseInt(object.max_v_replication_lag, 10); - else if (typeof object.max_v_replication_lag === "number") - message.max_v_replication_lag = object.max_v_replication_lag; - else if (typeof object.max_v_replication_lag === "object") - message.max_v_replication_lag = new $util.LongBits(object.max_v_replication_lag.low >>> 0, object.max_v_replication_lag.high >>> 0).toNumber(); - if (object.shard_streams) { - if (typeof object.shard_streams !== "object") - throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); - message.shard_streams = {}; - for (var keys = Object.keys(object.shard_streams), i = 0; i < keys.length; ++i) { - if (typeof object.shard_streams[keys[i]] !== "object") - throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); - message.shard_streams[keys[i]] = $root.vtctldata.Workflow.ShardStream.fromObject(object.shard_streams[keys[i]]); - } - } + var message = new $root.vschema.AutoIncrement(); + if (object.column != null) + message.column = String(object.column); + if (object.sequence != null) + message.sequence = String(object.sequence); return message; }; /** - * Creates a plain object from a Workflow 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 vtctldata.Workflow + * @memberof vschema.AutoIncrement * @static - * @param {vtctldata.Workflow} message Workflow + * @param {vschema.AutoIncrement} message AutoIncrement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Workflow.toObject = function toObject(message, options) { + AutoIncrement.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.shard_streams = {}; if (options.defaults) { - object.name = ""; - object.source = null; - object.target = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.max_v_replication_lag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_v_replication_lag = options.longs === String ? "0" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.source != null && message.hasOwnProperty("source")) - object.source = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.source, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.target, options); - if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) - if (typeof message.max_v_replication_lag === "number") - object.max_v_replication_lag = options.longs === String ? String(message.max_v_replication_lag) : message.max_v_replication_lag; - else - object.max_v_replication_lag = options.longs === String ? $util.Long.prototype.toString.call(message.max_v_replication_lag) : options.longs === Number ? new $util.LongBits(message.max_v_replication_lag.low >>> 0, message.max_v_replication_lag.high >>> 0).toNumber() : message.max_v_replication_lag; - var keys2; - if (message.shard_streams && (keys2 = Object.keys(message.shard_streams)).length) { - object.shard_streams = {}; - for (var j = 0; j < keys2.length; ++j) - object.shard_streams[keys2[j]] = $root.vtctldata.Workflow.ShardStream.toObject(message.shard_streams[keys2[j]], options); + object.column = ""; + object.sequence = ""; } + if (message.column != null && message.hasOwnProperty("column")) + object.column = message.column; + if (message.sequence != null && message.hasOwnProperty("sequence")) + object.sequence = message.sequence; return object; }; /** - * Converts this Workflow to JSON. + * Converts this AutoIncrement to JSON. * @function toJSON - * @memberof vtctldata.Workflow + * @memberof vschema.AutoIncrement * @instance * @returns {Object.} JSON object */ - Workflow.prototype.toJSON = function toJSON() { + AutoIncrement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Workflow.ReplicationLocation = (function() { + return AutoIncrement; + })(); - /** - * Properties of a ReplicationLocation. - * @memberof vtctldata.Workflow - * @interface IReplicationLocation - * @property {string|null} [keyspace] ReplicationLocation keyspace - * @property {Array.|null} [shards] ReplicationLocation shards - */ + vschema.Column = (function() { - /** - * Constructs a new ReplicationLocation. - * @memberof vtctldata.Workflow - * @classdesc Represents a ReplicationLocation. - * @implements IReplicationLocation - * @constructor - * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set - */ - function ReplicationLocation(properties) { - this.shards = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a Column. + * @memberof vschema + * @interface IColumn + * @property {string|null} [name] Column name + * @property {query.Type|null} [type] Column type + */ - /** - * ReplicationLocation keyspace. - * @member {string} keyspace - * @memberof vtctldata.Workflow.ReplicationLocation - * @instance - */ - ReplicationLocation.prototype.keyspace = ""; + /** + * Constructs a new Column. + * @memberof vschema + * @classdesc Represents a Column. + * @implements IColumn + * @constructor + * @param {vschema.IColumn=} [properties] Properties to set + */ + function Column(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ReplicationLocation shards. - * @member {Array.} shards - * @memberof vtctldata.Workflow.ReplicationLocation - * @instance - */ - ReplicationLocation.prototype.shards = $util.emptyArray; + /** + * Column name. + * @member {string} name + * @memberof vschema.Column + * @instance + */ + Column.prototype.name = ""; - /** - * 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); - }; + /** + * Column type. + * @member {query.Type} type + * @memberof vschema.Column + * @instance + */ + Column.prototype.type = 0; - /** - * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReplicationLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shards != null && message.shards.length) - for (var i = 0; i < message.shards.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shards[i]); - return writer; - }; + /** + * 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 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(); - }; + /** + * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. + * @function encode + * @memberof vschema.Column + * @static + * @param {vschema.IColumn} message Column message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Column.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + return writer; + }; - /** - * Decodes a ReplicationLocation message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReplicationLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ReplicationLocation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.keyspace = reader.string(); - break; - case 2: - if (!(message.shards && message.shards.length)) - message.shards = []; - message.shards.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.Column + * @static + * @param {vschema.IColumn} message Column message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Column.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReplicationLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReplicationLocation message. - * @function verify - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReplicationLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!Array.isArray(message.shards)) - return "shards: array expected"; - for (var i = 0; i < message.shards.length; ++i) - if (!$util.isString(message.shards[i])) - return "shards: string[] expected"; + /** + * Decodes a Column message from the specified reader or buffer. + * @function decode + * @memberof vschema.Column + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.Column} Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Column.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Column(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.type = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation - */ - ReplicationLocation.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.ReplicationLocation) - return object; - var message = new $root.vtctldata.Workflow.ReplicationLocation(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.Workflow.ReplicationLocation.shards: array expected"); - message.shards = []; - for (var i = 0; i < object.shards.length; ++i) - message.shards[i] = String(object.shards[i]); - } - return message; - }; + /** + * Decodes a Column message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.Column + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.Column} Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Column.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {vtctldata.Workflow.ReplicationLocation} message ReplicationLocation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReplicationLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.shards = []; - if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shards && message.shards.length) { - object.shards = []; - for (var j = 0; j < message.shards.length; ++j) - object.shards[j] = message.shards[j]; + /** + * Verifies a Column message. + * @function verify + * @memberof vschema.Column + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Column.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 257: + case 770: + case 259: + case 772: + case 261: + case 774: + case 263: + case 776: + case 265: + case 778: + case 1035: + case 1036: + case 2061: + case 2062: + case 2063: + case 2064: + case 785: + case 18: + case 6163: + case 10260: + case 6165: + case 10262: + case 6167: + case 10264: + case 2073: + case 2074: + case 2075: + case 28: + case 2077: + case 2078: + case 31: + break; } + return null; + }; + + /** + * Creates a Column message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.Column + * @static + * @param {Object.} object Plain object + * @returns {vschema.Column} Column + */ + Column.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Column) return object; - }; + var message = new $root.vschema.Column(); + if (object.name != null) + message.name = String(object.name); + switch (object.type) { + case "NULL_TYPE": + case 0: + message.type = 0; + break; + case "INT8": + case 257: + message.type = 257; + break; + case "UINT8": + case 770: + message.type = 770; + break; + case "INT16": + case 259: + message.type = 259; + break; + case "UINT16": + case 772: + message.type = 772; + break; + case "INT24": + case 261: + message.type = 261; + break; + case "UINT24": + case 774: + message.type = 774; + break; + case "INT32": + case 263: + message.type = 263; + break; + case "UINT32": + case 776: + message.type = 776; + break; + case "INT64": + case 265: + message.type = 265; + break; + case "UINT64": + case 778: + message.type = 778; + break; + case "FLOAT32": + case 1035: + message.type = 1035; + break; + case "FLOAT64": + case 1036: + message.type = 1036; + break; + case "TIMESTAMP": + case 2061: + message.type = 2061; + break; + case "DATE": + case 2062: + message.type = 2062; + break; + case "TIME": + case 2063: + message.type = 2063; + break; + case "DATETIME": + case 2064: + message.type = 2064; + break; + case "YEAR": + case 785: + message.type = 785; + break; + case "DECIMAL": + case 18: + message.type = 18; + break; + case "TEXT": + case 6163: + message.type = 6163; + break; + case "BLOB": + case 10260: + message.type = 10260; + break; + case "VARCHAR": + case 6165: + message.type = 6165; + break; + case "VARBINARY": + case 10262: + message.type = 10262; + break; + case "CHAR": + case 6167: + message.type = 6167; + break; + case "BINARY": + case 10264: + message.type = 10264; + break; + case "BIT": + case 2073: + message.type = 2073; + break; + case "ENUM": + case 2074: + message.type = 2074; + break; + case "SET": + case 2075: + message.type = 2075; + break; + case "TUPLE": + case 28: + message.type = 28; + break; + case "GEOMETRY": + case 2077: + message.type = 2077; + break; + case "JSON": + case 2078: + message.type = 2078; + break; + case "EXPRESSION": + case 31: + message.type = 31; + break; + } + 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 Column message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.Column + * @static + * @param {vschema.Column} message Column + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Column.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.type = options.enums === String ? "NULL_TYPE" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.query.Type[message.type] : message.type; + return object; + }; - return ReplicationLocation; - })(); + /** + * Converts this Column to JSON. + * @function toJSON + * @memberof vschema.Column + * @instance + * @returns {Object.} JSON object + */ + Column.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - Workflow.ShardStream = (function() { + return Column; + })(); - /** - * 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 - */ + vschema.SrvVSchema = (function() { - /** - * Constructs a new ShardStream. - * @memberof vtctldata.Workflow - * @classdesc Represents a ShardStream. - * @implements IShardStream - * @constructor - * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set - */ - function ShardStream(properties) { - this.streams = []; - this.tablet_controls = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a SrvVSchema. + * @memberof vschema + * @interface ISrvVSchema + * @property {Object.|null} [keyspaces] SrvVSchema keyspaces + * @property {vschema.IRoutingRules|null} [routing_rules] SrvVSchema routing_rules + */ - /** - * ShardStream streams. - * @member {Array.} streams - * @memberof vtctldata.Workflow.ShardStream - * @instance - */ - ShardStream.prototype.streams = $util.emptyArray; + /** + * Constructs a new SrvVSchema. + * @memberof vschema + * @classdesc Represents a SrvVSchema. + * @implements ISrvVSchema + * @constructor + * @param {vschema.ISrvVSchema=} [properties] Properties to set + */ + function SrvVSchema(properties) { + this.keyspaces = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ShardStream tablet_controls. - * @member {Array.} tablet_controls - * @memberof vtctldata.Workflow.ShardStream - * @instance - */ - ShardStream.prototype.tablet_controls = $util.emptyArray; + /** + * SrvVSchema keyspaces. + * @member {Object.} keyspaces + * @memberof vschema.SrvVSchema + * @instance + */ + SrvVSchema.prototype.keyspaces = $util.emptyObject; - /** - * ShardStream is_primary_serving. - * @member {boolean} is_primary_serving - * @memberof vtctldata.Workflow.ShardStream - * @instance - */ - ShardStream.prototype.is_primary_serving = false; + /** + * SrvVSchema routing_rules. + * @member {vschema.IRoutingRules|null|undefined} routing_rules + * @memberof vschema.SrvVSchema + * @instance + */ + SrvVSchema.prototype.routing_rules = null; - /** - * 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); - }; + /** + * Creates a new SrvVSchema instance using the specified properties. + * @function create + * @memberof vschema.SrvVSchema + * @static + * @param {vschema.ISrvVSchema=} [properties] Properties to set + * @returns {vschema.SrvVSchema} SrvVSchema instance + */ + SrvVSchema.create = function create(properties) { + return new SrvVSchema(properties); + }; - /** - * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShardStream.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.streams != null && message.streams.length) - for (var i = 0; i < message.streams.length; ++i) - $root.vtctldata.Workflow.Stream.encode(message.streams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tablet_controls != null && message.tablet_controls.length) - for (var i = 0; i < message.tablet_controls.length; ++i) - $root.topodata.Shard.TabletControl.encode(message.tablet_controls[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.is_primary_serving != null && Object.hasOwnProperty.call(message, "is_primary_serving")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.is_primary_serving); - return writer; - }; + /** + * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * @function encode + * @memberof vschema.SrvVSchema + * @static + * @param {vschema.ISrvVSchema} message SrvVSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SrvVSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspaces != null && Object.hasOwnProperty.call(message, "keyspaces")) + for (var keys = Object.keys(message.keyspaces), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vschema.Keyspace.encode(message.keyspaces[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) + $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + 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(); - }; + /** + * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.SrvVSchema + * @static + * @param {vschema.ISrvVSchema} message SrvVSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SrvVSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ShardStream message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.ShardStream} ShardStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShardStream.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ShardStream(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.streams && message.streams.length)) - message.streams = []; - message.streams.push($root.vtctldata.Workflow.Stream.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.tablet_controls && message.tablet_controls.length)) - message.tablet_controls = []; - message.tablet_controls.push($root.topodata.Shard.TabletControl.decode(reader, reader.uint32())); - break; - case 3: - message.is_primary_serving = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a SrvVSchema message from the specified reader or buffer. + * @function decode + * @memberof vschema.SrvVSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.SrvVSchema} SrvVSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SrvVSchema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.SrvVSchema(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (message.keyspaces === $util.emptyObject) + message.keyspaces = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vschema.Keyspace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.keyspaces[key] = value; + break; + case 2: + message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); + break; + 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()); - }; + } + return message; + }; - /** - * Verifies a ShardStream message. - * @function verify - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ShardStream.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.streams != null && message.hasOwnProperty("streams")) { - if (!Array.isArray(message.streams)) - return "streams: array expected"; - for (var i = 0; i < message.streams.length; ++i) { - var error = $root.vtctldata.Workflow.Stream.verify(message.streams[i]); - if (error) - return "streams." + error; - } - } - if (message.tablet_controls != null && message.hasOwnProperty("tablet_controls")) { - if (!Array.isArray(message.tablet_controls)) - return "tablet_controls: array expected"; - for (var i = 0; i < message.tablet_controls.length; ++i) { - var error = $root.topodata.Shard.TabletControl.verify(message.tablet_controls[i]); - if (error) - return "tablet_controls." + error; - } - } - if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) - if (typeof message.is_primary_serving !== "boolean") - return "is_primary_serving: boolean expected"; - return null; - }; + /** + * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.SrvVSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.SrvVSchema} SrvVSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SrvVSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.ShardStream} ShardStream - */ - ShardStream.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.ShardStream) - return object; - var message = new $root.vtctldata.Workflow.ShardStream(); - if (object.streams) { - if (!Array.isArray(object.streams)) - throw TypeError(".vtctldata.Workflow.ShardStream.streams: array expected"); - message.streams = []; - for (var i = 0; i < object.streams.length; ++i) { - if (typeof object.streams[i] !== "object") - throw TypeError(".vtctldata.Workflow.ShardStream.streams: object expected"); - message.streams[i] = $root.vtctldata.Workflow.Stream.fromObject(object.streams[i]); - } - } - if (object.tablet_controls) { - if (!Array.isArray(object.tablet_controls)) - throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: array expected"); - message.tablet_controls = []; - for (var i = 0; i < object.tablet_controls.length; ++i) { - if (typeof object.tablet_controls[i] !== "object") - throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: object expected"); - message.tablet_controls[i] = $root.topodata.Shard.TabletControl.fromObject(object.tablet_controls[i]); - } + /** + * Verifies a SrvVSchema message. + * @function verify + * @memberof vschema.SrvVSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SrvVSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { + if (!$util.isObject(message.keyspaces)) + return "keyspaces: object expected"; + var key = Object.keys(message.keyspaces); + for (var i = 0; i < key.length; ++i) { + var error = $root.vschema.Keyspace.verify(message.keyspaces[key[i]]); + if (error) + return "keyspaces." + error; } - if (object.is_primary_serving != null) - message.is_primary_serving = Boolean(object.is_primary_serving); - return message; - }; + } + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { + var error = $root.vschema.RoutingRules.verify(message.routing_rules); + if (error) + return "routing_rules." + error; + } + return null; + }; - /** - * Creates a plain object from a ShardStream message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {vtctldata.Workflow.ShardStream} message ShardStream - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ShardStream.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.streams = []; - object.tablet_controls = []; - } - if (options.defaults) - object.is_primary_serving = false; - if (message.streams && message.streams.length) { - object.streams = []; - for (var j = 0; j < message.streams.length; ++j) - object.streams[j] = $root.vtctldata.Workflow.Stream.toObject(message.streams[j], options); - } - if (message.tablet_controls && message.tablet_controls.length) { - object.tablet_controls = []; - for (var j = 0; j < message.tablet_controls.length; ++j) - object.tablet_controls[j] = $root.topodata.Shard.TabletControl.toObject(message.tablet_controls[j], options); - } - if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) - object.is_primary_serving = message.is_primary_serving; + /** + * Creates a SrvVSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.SrvVSchema + * @static + * @param {Object.} object Plain object + * @returns {vschema.SrvVSchema} SrvVSchema + */ + SrvVSchema.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.SrvVSchema) return object; - }; + var message = new $root.vschema.SrvVSchema(); + if (object.keyspaces) { + if (typeof object.keyspaces !== "object") + throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); + message.keyspaces = {}; + for (var keys = Object.keys(object.keyspaces), i = 0; i < keys.length; ++i) { + if (typeof object.keyspaces[keys[i]] !== "object") + throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); + message.keyspaces[keys[i]] = $root.vschema.Keyspace.fromObject(object.keyspaces[keys[i]]); + } + } + if (object.routing_rules != null) { + if (typeof object.routing_rules !== "object") + throw TypeError(".vschema.SrvVSchema.routing_rules: object expected"); + message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); + } + 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); - }; + /** + * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.SrvVSchema + * @static + * @param {vschema.SrvVSchema} message SrvVSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SrvVSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.keyspaces = {}; + if (options.defaults) + object.routing_rules = null; + var keys2; + if (message.keyspaces && (keys2 = Object.keys(message.keyspaces)).length) { + object.keyspaces = {}; + for (var j = 0; j < keys2.length; ++j) + object.keyspaces[keys2[j]] = $root.vschema.Keyspace.toObject(message.keyspaces[keys2[j]], options); + } + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) + object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); + return object; + }; - return ShardStream; - })(); + /** + * Converts this SrvVSchema to JSON. + * @function toJSON + * @memberof vschema.SrvVSchema + * @instance + * @returns {Object.} JSON object + */ + SrvVSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - Workflow.Stream = (function() { + return SrvVSchema; + })(); - /** - * 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 - */ + return vschema; +})(); - /** - * 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 = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } +$root.vtctldata = (function() { - /** - * Stream id. - * @member {number|Long} id - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Namespace vtctldata. + * @exports vtctldata + * @namespace + */ + var vtctldata = {}; - /** - * Stream shard. - * @member {string} shard - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.shard = ""; + vtctldata.ExecuteVtctlCommandRequest = (function() { - /** - * Stream tablet. - * @member {topodata.ITabletAlias|null|undefined} tablet - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.tablet = null; + /** + * Properties of an ExecuteVtctlCommandRequest. + * @memberof vtctldata + * @interface IExecuteVtctlCommandRequest + * @property {Array.|null} [args] ExecuteVtctlCommandRequest args + * @property {number|Long|null} [action_timeout] ExecuteVtctlCommandRequest action_timeout + */ - /** - * Stream binlog_source. - * @member {binlogdata.IBinlogSource|null|undefined} binlog_source - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.binlog_source = null; + /** + * Constructs a new ExecuteVtctlCommandRequest. + * @memberof vtctldata + * @classdesc Represents an ExecuteVtctlCommandRequest. + * @implements IExecuteVtctlCommandRequest + * @constructor + * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set + */ + function ExecuteVtctlCommandRequest(properties) { + this.args = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Stream position. - * @member {string} position - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.position = ""; + /** + * ExecuteVtctlCommandRequest args. + * @member {Array.} args + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @instance + */ + ExecuteVtctlCommandRequest.prototype.args = $util.emptyArray; - /** - * Stream stop_position. - * @member {string} stop_position - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.stop_position = ""; + /** + * ExecuteVtctlCommandRequest action_timeout. + * @member {number|Long} action_timeout + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @instance + */ + ExecuteVtctlCommandRequest.prototype.action_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Stream state. - * @member {string} state - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.state = ""; + /** + * 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); + }; - /** - * 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; - - /** - * Creates a new Stream instance using the specified properties. - * @function create - * @memberof vtctldata.Workflow.Stream - * @static - * @param {vtctldata.Workflow.IStream=} [properties] Properties to set - * @returns {vtctldata.Workflow.Stream} Stream instance - */ - Stream.create = function create(properties) { - return new Stream(properties); - }; - - /** - * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.Stream - * @static - * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Stream.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) - $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.binlog_source != null && Object.hasOwnProperty.call(message, "binlog_source")) - $root.binlogdata.BinlogSource.encode(message.binlog_source, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.position); - if (message.stop_position != null && Object.hasOwnProperty.call(message, "stop_position")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.stop_position); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.state); - if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.db_name); - if (message.transaction_timestamp != null && Object.hasOwnProperty.call(message, "transaction_timestamp")) - $root.vttime.Time.encode(message.transaction_timestamp, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.time_updated != null && Object.hasOwnProperty.call(message, "time_updated")) - $root.vttime.Time.encode(message.time_updated, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.message); - if (message.copy_states != null && message.copy_states.length) - for (var i = 0; i < message.copy_states.length; ++i) - $root.vtctldata.Workflow.Stream.CopyState.encode(message.copy_states[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.Workflow.Stream - * @static - * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Stream.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Stream message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.Stream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.Stream} Stream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Stream.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.int64(); - break; - case 2: - message.shard = reader.string(); - break; - case 3: - message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 4: - message.binlog_source = $root.binlogdata.BinlogSource.decode(reader, reader.uint32()); - break; - case 5: - message.position = reader.string(); - break; - case 6: - message.stop_position = reader.string(); - break; - case 7: - message.state = reader.string(); - break; - case 8: - message.db_name = reader.string(); - break; - case 9: - message.transaction_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); - break; - case 10: - message.time_updated = $root.vttime.Time.decode(reader, reader.uint32()); - break; - case 11: - message.message = reader.string(); - break; - case 12: - if (!(message.copy_states && message.copy_states.length)) - message.copy_states = []; - message.copy_states.push($root.vtctldata.Workflow.Stream.CopyState.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Stream message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.Stream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.Stream} Stream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Stream.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Stream message. - * @function verify - * @memberof vtctldata.Workflow.Stream - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Stream.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) - return "id: integer|Long expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - var error = $root.topodata.TabletAlias.verify(message.tablet); - if (error) - return "tablet." + error; - } - if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) { - var error = $root.binlogdata.BinlogSource.verify(message.binlog_source); - if (error) - return "binlog_source." + error; - } - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; - if (message.stop_position != null && message.hasOwnProperty("stop_position")) - if (!$util.isString(message.stop_position)) - return "stop_position: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - if (!$util.isString(message.state)) - return "state: string expected"; - if (message.db_name != null && message.hasOwnProperty("db_name")) - if (!$util.isString(message.db_name)) - return "db_name: string expected"; - if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) { - var error = $root.vttime.Time.verify(message.transaction_timestamp); - if (error) - return "transaction_timestamp." + error; - } - if (message.time_updated != null && message.hasOwnProperty("time_updated")) { - var error = $root.vttime.Time.verify(message.time_updated); - if (error) - return "time_updated." + error; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.copy_states != null && message.hasOwnProperty("copy_states")) { - if (!Array.isArray(message.copy_states)) - return "copy_states: array expected"; - for (var i = 0; i < message.copy_states.length; ++i) { - var error = $root.vtctldata.Workflow.Stream.CopyState.verify(message.copy_states[i]); - if (error) - return "copy_states." + error; - } - } - return null; - }; - - /** - * Creates a Stream message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.Stream - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.Stream} Stream - */ - Stream.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.Stream) - return object; - var message = new $root.vtctldata.Workflow.Stream(); - if (object.id != null) - if ($util.Long) - (message.id = $util.Long.fromValue(object.id)).unsigned = false; - else if (typeof object.id === "string") - message.id = parseInt(object.id, 10); - else if (typeof object.id === "number") - message.id = object.id; - else if (typeof object.id === "object") - message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); - if (object.shard != null) - message.shard = String(object.shard); - if (object.tablet != null) { - if (typeof object.tablet !== "object") - throw TypeError(".vtctldata.Workflow.Stream.tablet: object expected"); - message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); - } - if (object.binlog_source != null) { - if (typeof object.binlog_source !== "object") - throw TypeError(".vtctldata.Workflow.Stream.binlog_source: object expected"); - message.binlog_source = $root.binlogdata.BinlogSource.fromObject(object.binlog_source); - } - if (object.position != null) - message.position = String(object.position); - if (object.stop_position != null) - message.stop_position = String(object.stop_position); - if (object.state != null) - message.state = String(object.state); - if (object.db_name != null) - message.db_name = String(object.db_name); - if (object.transaction_timestamp != null) { - if (typeof object.transaction_timestamp !== "object") - throw TypeError(".vtctldata.Workflow.Stream.transaction_timestamp: object expected"); - message.transaction_timestamp = $root.vttime.Time.fromObject(object.transaction_timestamp); - } - if (object.time_updated != null) { - if (typeof object.time_updated !== "object") - throw TypeError(".vtctldata.Workflow.Stream.time_updated: object expected"); - message.time_updated = $root.vttime.Time.fromObject(object.time_updated); - } - if (object.message != null) - message.message = String(object.message); - if (object.copy_states) { - if (!Array.isArray(object.copy_states)) - throw TypeError(".vtctldata.Workflow.Stream.copy_states: array expected"); - message.copy_states = []; - for (var i = 0; i < object.copy_states.length; ++i) { - if (typeof object.copy_states[i] !== "object") - throw TypeError(".vtctldata.Workflow.Stream.copy_states: object expected"); - message.copy_states[i] = $root.vtctldata.Workflow.Stream.CopyState.fromObject(object.copy_states[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a Stream message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.Stream - * @static - * @param {vtctldata.Workflow.Stream} message Stream - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Stream.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.copy_states = []; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - object.shard = ""; - object.tablet = null; - object.binlog_source = null; - object.position = ""; - object.stop_position = ""; - object.state = ""; - object.db_name = ""; - object.transaction_timestamp = null; - object.time_updated = null; - object.message = ""; - } - if (message.id != null && message.hasOwnProperty("id")) - if (typeof message.id === "number") - object.id = options.longs === String ? String(message.id) : message.id; - else - object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); - if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) - object.binlog_source = $root.binlogdata.BinlogSource.toObject(message.binlog_source, options); - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - if (message.stop_position != null && message.hasOwnProperty("stop_position")) - object.stop_position = message.stop_position; - if (message.state != null && message.hasOwnProperty("state")) - object.state = message.state; - if (message.db_name != null && message.hasOwnProperty("db_name")) - object.db_name = message.db_name; - if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) - object.transaction_timestamp = $root.vttime.Time.toObject(message.transaction_timestamp, options); - if (message.time_updated != null && message.hasOwnProperty("time_updated")) - object.time_updated = $root.vttime.Time.toObject(message.time_updated, options); - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.copy_states && message.copy_states.length) { - object.copy_states = []; - for (var j = 0; j < message.copy_states.length; ++j) - object.copy_states[j] = $root.vtctldata.Workflow.Stream.CopyState.toObject(message.copy_states[j], options); - } - return object; - }; - - /** - * Converts this Stream to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.Stream - * @instance - * @returns {Object.} JSON object - */ - Stream.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - Stream.CopyState = (function() { - - /** - * Properties of a CopyState. - * @memberof vtctldata.Workflow.Stream - * @interface ICopyState - * @property {string|null} [table] CopyState table - * @property {string|null} [last_pk] CopyState last_pk - */ - - /** - * Constructs a new CopyState. - * @memberof vtctldata.Workflow.Stream - * @classdesc Represents a CopyState. - * @implements ICopyState - * @constructor - * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set - */ - function CopyState(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CopyState table. - * @member {string} table - * @memberof vtctldata.Workflow.Stream.CopyState - * @instance - */ - CopyState.prototype.table = ""; - - /** - * CopyState last_pk. - * @member {string} last_pk - * @memberof vtctldata.Workflow.Stream.CopyState - * @instance - */ - CopyState.prototype.last_pk = ""; - - /** - * Creates a new CopyState instance using the specified properties. - * @function create - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set - * @returns {vtctldata.Workflow.Stream.CopyState} CopyState instance - */ - CopyState.create = function create(properties) { - return new CopyState(properties); - }; - - /** - * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CopyState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.table != null && Object.hasOwnProperty.call(message, "table")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.table); - if (message.last_pk != null && Object.hasOwnProperty.call(message, "last_pk")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.last_pk); - return writer; - }; - - /** - * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CopyState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CopyState message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.Stream.CopyState} CopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CopyState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.CopyState(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.table = reader.string(); - break; - case 2: - message.last_pk = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CopyState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.Stream.CopyState} CopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CopyState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CopyState message. - * @function verify - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CopyState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.table != null && message.hasOwnProperty("table")) - if (!$util.isString(message.table)) - return "table: string expected"; - if (message.last_pk != null && message.hasOwnProperty("last_pk")) - if (!$util.isString(message.last_pk)) - return "last_pk: string expected"; - return null; - }; - - /** - * Creates a CopyState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.Stream.CopyState} CopyState - */ - CopyState.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.Stream.CopyState) - return object; - var message = new $root.vtctldata.Workflow.Stream.CopyState(); - if (object.table != null) - message.table = String(object.table); - if (object.last_pk != null) - message.last_pk = String(object.last_pk); - return message; - }; - - /** - * Creates a plain object from a CopyState message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {vtctldata.Workflow.Stream.CopyState} message CopyState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CopyState.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.table = ""; - object.last_pk = ""; - } - if (message.table != null && message.hasOwnProperty("table")) - object.table = message.table; - if (message.last_pk != null && message.hasOwnProperty("last_pk")) - object.last_pk = message.last_pk; - return object; - }; - - /** - * Converts this CopyState to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.Stream.CopyState - * @instance - * @returns {Object.} JSON object - */ - CopyState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CopyState; - })(); - - return Stream; - })(); - - return Workflow; - })(); - - 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 - */ + /** + * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteVtctlCommandRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.args != null && message.args.length) + for (var i = 0; i < message.args.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.args[i]); + if (message.action_timeout != null && Object.hasOwnProperty.call(message, "action_timeout")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.action_timeout); + return writer; + }; /** - * 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 (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * 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 - * @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. + * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.ExecuteVtctlCommandRequest * @static - * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode + * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteVtctlCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ChangeTabletTypeRequest + * @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.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @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 */ - ChangeTabletTypeRequest.decode = function decode(reader, length) { + ExecuteVtctlCommandRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); break; case 2: - message.db_type = reader.int32(); - break; - case 3: - message.dry_run = reader.bool(); + message.action_timeout = reader.int64(); break; default: reader.skipType(tag & 7); @@ -51764,184 +52152,142 @@ $root.vtctldata = (function() { }; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.ExecuteVtctlCommandRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @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 */ - ChangeTabletTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ExecuteVtctlCommandRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTabletTypeRequest message. + * Verifies an ExecuteVtctlCommandRequest message. * @function verify - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.ExecuteVtctlCommandRequest * @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) { + ExecuteVtctlCommandRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; + if (message.args != null && message.hasOwnProperty("args")) { + if (!Array.isArray(message.args)) + return "args: array expected"; + for (var i = 0; i < message.args.length; ++i) + if (!$util.isString(message.args[i])) + return "args: string[] expected"; } - if (message.db_type != null && message.hasOwnProperty("db_type")) - switch (message.db_type) { - default: - return "db_type: 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.dry_run != null && message.hasOwnProperty("dry_run")) - if (typeof message.dry_run !== "boolean") - return "dry_run: boolean expected"; + if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) + if (!$util.isInteger(message.action_timeout) && !(message.action_timeout && $util.isInteger(message.action_timeout.low) && $util.isInteger(message.action_timeout.high))) + return "action_timeout: integer|Long expected"; return null; }; /** - * Creates a ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.ExecuteVtctlCommandRequest * @static - * @param {Object.} object Plain object - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest - */ - ChangeTabletTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ChangeTabletTypeRequest) - return object; - var 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) { - case "UNKNOWN": - case 0: - message.db_type = 0; - 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; + * @param {Object.} object Plain object + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + */ + ExecuteVtctlCommandRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteVtctlCommandRequest) + return object; + var message = new $root.vtctldata.ExecuteVtctlCommandRequest(); + if (object.args) { + if (!Array.isArray(object.args)) + throw TypeError(".vtctldata.ExecuteVtctlCommandRequest.args: array expected"); + message.args = []; + for (var i = 0; i < object.args.length; ++i) + message.args[i] = String(object.args[i]); } - if (object.dry_run != null) - message.dry_run = Boolean(object.dry_run); + if (object.action_timeout != null) + if ($util.Long) + (message.action_timeout = $util.Long.fromValue(object.action_timeout)).unsigned = false; + else if (typeof object.action_timeout === "string") + message.action_timeout = parseInt(object.action_timeout, 10); + else if (typeof object.action_timeout === "number") + message.action_timeout = object.action_timeout; + else if (typeof object.action_timeout === "object") + message.action_timeout = new $util.LongBits(object.action_timeout.low >>> 0, object.action_timeout.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.ExecuteVtctlCommandRequest * @static - * @param {vtctldata.ChangeTabletTypeRequest} message ChangeTabletTypeRequest + * @param {vtctldata.ExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTabletTypeRequest.toObject = function toObject(message, options) { + ExecuteVtctlCommandRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.tablet_alias = null; - object.db_type = options.enums === String ? "UNKNOWN" : 0; - object.dry_run = false; + if (options.arrays || options.defaults) + object.args = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.action_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.action_timeout = options.longs === String ? "0" : 0; + if (message.args && message.args.length) { + object.args = []; + for (var j = 0; j < message.args.length; ++j) + object.args[j] = message.args[j]; } - if (message.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] : message.db_type; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - object.dry_run = message.dry_run; + 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 ChangeTabletTypeRequest to JSON. + * Converts this ExecuteVtctlCommandRequest to JSON. * @function toJSON - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.ExecuteVtctlCommandRequest * @instance * @returns {Object.} JSON object */ - ChangeTabletTypeRequest.prototype.toJSON = function toJSON() { + ExecuteVtctlCommandRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChangeTabletTypeRequest; + return ExecuteVtctlCommandRequest; })(); - vtctldata.ChangeTabletTypeResponse = (function() { + vtctldata.ExecuteVtctlCommandResponse = (function() { /** - * Properties of a ChangeTabletTypeResponse. + * Properties of an ExecuteVtctlCommandResponse. * @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 IExecuteVtctlCommandResponse + * @property {logutil.IEvent|null} [event] ExecuteVtctlCommandResponse event */ /** - * Constructs a new ChangeTabletTypeResponse. + * Constructs a new ExecuteVtctlCommandResponse. * @memberof vtctldata - * @classdesc Represents a ChangeTabletTypeResponse. - * @implements IChangeTabletTypeResponse + * @classdesc Represents an ExecuteVtctlCommandResponse. + * @implements IExecuteVtctlCommandResponse * @constructor - * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set + * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set */ - function ChangeTabletTypeResponse(properties) { + function ExecuteVtctlCommandResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51949,101 +52295,75 @@ $root.vtctldata = (function() { } /** - * 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 + * ExecuteVtctlCommandResponse event. + * @member {logutil.IEvent|null|undefined} event + * @memberof vtctldata.ExecuteVtctlCommandResponse * @instance */ - ChangeTabletTypeResponse.prototype.was_dry_run = false; + ExecuteVtctlCommandResponse.prototype.event = null; /** - * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. * @function create - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.ExecuteVtctlCommandResponse * @static - * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse instance + * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse instance */ - ChangeTabletTypeResponse.create = function create(properties) { - return new ChangeTabletTypeResponse(properties); + ExecuteVtctlCommandResponse.create = function create(properties) { + return new ExecuteVtctlCommandResponse(properties); }; /** - * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.ExecuteVtctlCommandResponse * @static - * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse 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 */ - ChangeTabletTypeResponse.encode = function encode(message, writer) { + ExecuteVtctlCommandResponse.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); + 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 ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.ExecuteVtctlCommandResponse * @static - * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse 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 */ - ChangeTabletTypeResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteVtctlCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ChangeTabletTypeResponse + * @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.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @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 */ - ChangeTabletTypeResponse.decode = function decode(reader, length) { + ExecuteVtctlCommandResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTypeResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.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(); + message.event = $root.logutil.Event.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -52054,143 +52374,114 @@ $root.vtctldata = (function() { }; /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.ExecuteVtctlCommandResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @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 */ - ChangeTabletTypeResponse.decodeDelimited = function decodeDelimited(reader) { + ExecuteVtctlCommandResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTabletTypeResponse message. + * Verifies an ExecuteVtctlCommandResponse message. * @function verify - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.ExecuteVtctlCommandResponse * @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) { + ExecuteVtctlCommandResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before_tablet != null && message.hasOwnProperty("before_tablet")) { - var error = $root.topodata.Tablet.verify(message.before_tablet); - if (error) - return "before_tablet." + error; - } - if (message.after_tablet != null && message.hasOwnProperty("after_tablet")) { - var error = $root.topodata.Tablet.verify(message.after_tablet); + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.logutil.Event.verify(message.event); if (error) - return "after_tablet." + error; + return "event." + 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 an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.ExecuteVtctlCommandResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse */ - ChangeTabletTypeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ChangeTabletTypeResponse) + ExecuteVtctlCommandResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteVtctlCommandResponse) return object; - var 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); + var message = new $root.vtctldata.ExecuteVtctlCommandResponse(); + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".vtctldata.ExecuteVtctlCommandResponse.event: object expected"); + message.event = $root.logutil.Event.fromObject(object.event); } - if (object.was_dry_run != null) - message.was_dry_run = Boolean(object.was_dry_run); return message; }; /** - * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.ExecuteVtctlCommandResponse * @static - * @param {vtctldata.ChangeTabletTypeResponse} message ChangeTabletTypeResponse + * @param {vtctldata.ExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTabletTypeResponse.toObject = function toObject(message, options) { + ExecuteVtctlCommandResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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; + 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 ChangeTabletTypeResponse to JSON. + * Converts this ExecuteVtctlCommandResponse to JSON. * @function toJSON - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.ExecuteVtctlCommandResponse * @instance * @returns {Object.} JSON object */ - ChangeTabletTypeResponse.prototype.toJSON = function toJSON() { + ExecuteVtctlCommandResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChangeTabletTypeResponse; + return ExecuteVtctlCommandResponse; })(); - vtctldata.CreateKeyspaceRequest = (function() { + vtctldata.TableMaterializeSettings = (function() { /** - * Properties of a CreateKeyspaceRequest. + * Properties of a TableMaterializeSettings. * @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 {string|null} [sharding_column_name] CreateKeyspaceRequest sharding_column_name - * @property {topodata.KeyspaceIdType|null} [sharding_column_type] CreateKeyspaceRequest sharding_column_type - * @property {Array.|null} [served_froms] CreateKeyspaceRequest served_froms - * @property {topodata.KeyspaceType|null} [type] CreateKeyspaceRequest type - * @property {string|null} [base_keyspace] CreateKeyspaceRequest base_keyspace - * @property {vttime.ITime|null} [snapshot_time] CreateKeyspaceRequest snapshot_time + * @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 CreateKeyspaceRequest. + * Constructs a new TableMaterializeSettings. * @memberof vtctldata - * @classdesc Represents a CreateKeyspaceRequest. - * @implements ICreateKeyspaceRequest + * @classdesc Represents a TableMaterializeSettings. + * @implements ITableMaterializeSettings * @constructor - * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set */ - function CreateKeyspaceRequest(properties) { - this.served_froms = []; + function TableMaterializeSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52198,182 +52489,101 @@ $root.vtctldata = (function() { } /** - * 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 sharding_column_name. - * @member {string} sharding_column_name - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.sharding_column_name = ""; - - /** - * CreateKeyspaceRequest sharding_column_type. - * @member {topodata.KeyspaceIdType} sharding_column_type - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.sharding_column_type = 0; - - /** - * CreateKeyspaceRequest served_froms. - * @member {Array.} served_froms - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.served_froms = $util.emptyArray; - - /** - * CreateKeyspaceRequest type. - * @member {topodata.KeyspaceType} type - * @memberof vtctldata.CreateKeyspaceRequest + * TableMaterializeSettings target_table. + * @member {string} target_table + * @memberof vtctldata.TableMaterializeSettings * @instance */ - CreateKeyspaceRequest.prototype.type = 0; + TableMaterializeSettings.prototype.target_table = ""; /** - * CreateKeyspaceRequest base_keyspace. - * @member {string} base_keyspace - * @memberof vtctldata.CreateKeyspaceRequest + * TableMaterializeSettings source_expression. + * @member {string} source_expression + * @memberof vtctldata.TableMaterializeSettings * @instance */ - CreateKeyspaceRequest.prototype.base_keyspace = ""; + TableMaterializeSettings.prototype.source_expression = ""; /** - * CreateKeyspaceRequest snapshot_time. - * @member {vttime.ITime|null|undefined} snapshot_time - * @memberof vtctldata.CreateKeyspaceRequest + * TableMaterializeSettings create_ddl. + * @member {string} create_ddl + * @memberof vtctldata.TableMaterializeSettings * @instance */ - CreateKeyspaceRequest.prototype.snapshot_time = null; + TableMaterializeSettings.prototype.create_ddl = ""; /** - * Creates a new CreateKeyspaceRequest instance using the specified properties. + * Creates a new TableMaterializeSettings instance using the specified properties. * @function create - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.TableMaterializeSettings * @static - * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest instance + * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings instance */ - CreateKeyspaceRequest.create = function create(properties) { - return new CreateKeyspaceRequest(properties); + TableMaterializeSettings.create = function create(properties) { + return new TableMaterializeSettings(properties); }; /** - * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.TableMaterializeSettings * @static - * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode + * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceRequest.encode = function encode(message, writer) { + TableMaterializeSettings.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.sharding_column_name != null && Object.hasOwnProperty.call(message, "sharding_column_name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.sharding_column_name); - if (message.sharding_column_type != null && Object.hasOwnProperty.call(message, "sharding_column_type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.sharding_column_type); - if (message.served_froms != null && message.served_froms.length) - for (var i = 0; i < message.served_froms.length; ++i) - $root.topodata.Keyspace.ServedFrom.encode(message.served_froms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - 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.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 CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.TableMaterializeSettings * @static - * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode + * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + TableMaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * Decodes a TableMaterializeSettings message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateKeyspaceRequest + * @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.CreateKeyspaceRequest} CreateKeyspaceRequest + * @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 */ - CreateKeyspaceRequest.decode = function decode(reader, length) { + TableMaterializeSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TableMaterializeSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.target_table = reader.string(); break; case 2: - message.force = reader.bool(); + message.source_expression = reader.string(); break; case 3: - message.allow_empty_v_schema = reader.bool(); - break; - case 4: - message.sharding_column_name = reader.string(); - break; - case 5: - message.sharding_column_type = reader.int32(); - break; - case 6: - if (!(message.served_froms && message.served_froms.length)) - message.served_froms = []; - message.served_froms.push($root.topodata.Keyspace.ServedFrom.decode(reader, reader.uint32())); - 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()); + message.create_ddl = reader.string(); break; default: reader.skipType(tag & 7); @@ -52384,226 +52594,132 @@ $root.vtctldata = (function() { }; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.TableMaterializeSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - CreateKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateKeyspaceRequest message. - * @function verify - * @memberof vtctldata.CreateKeyspaceRequest - * @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) { - 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.sharding_column_name != null && message.hasOwnProperty("sharding_column_name")) - if (!$util.isString(message.sharding_column_name)) - return "sharding_column_name: string expected"; - if (message.sharding_column_type != null && message.hasOwnProperty("sharding_column_type")) - switch (message.sharding_column_type) { - default: - return "sharding_column_type: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.served_froms != null && message.hasOwnProperty("served_froms")) { - if (!Array.isArray(message.served_froms)) - return "served_froms: array expected"; - for (var i = 0; i < message.served_froms.length; ++i) { - var error = $root.topodata.Keyspace.ServedFrom.verify(message.served_froms[i]); - if (error) - return "served_froms." + error; - } - } - 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")) { - var error = $root.vttime.Time.verify(message.snapshot_time); - if (error) - return "snapshot_time." + error; - } + * @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 CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.TableMaterializeSettings * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings */ - CreateKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateKeyspaceRequest) + TableMaterializeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TableMaterializeSettings) return object; - var 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); - if (object.sharding_column_name != null) - message.sharding_column_name = String(object.sharding_column_name); - switch (object.sharding_column_type) { - case "UNSET": - case 0: - message.sharding_column_type = 0; - break; - case "UINT64": - case 1: - message.sharding_column_type = 1; - break; - case "BYTES": - case 2: - message.sharding_column_type = 2; - break; - } - if (object.served_froms) { - if (!Array.isArray(object.served_froms)) - throw TypeError(".vtctldata.CreateKeyspaceRequest.served_froms: array expected"); - message.served_froms = []; - for (var i = 0; i < object.served_froms.length; ++i) { - if (typeof object.served_froms[i] !== "object") - throw TypeError(".vtctldata.CreateKeyspaceRequest.served_froms: object expected"); - message.served_froms[i] = $root.topodata.Keyspace.ServedFrom.fromObject(object.served_froms[i]); - } - } - switch (object.type) { - 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); - } + var message = new $root.vtctldata.TableMaterializeSettings(); + if (object.target_table != null) + message.target_table = String(object.target_table); + if (object.source_expression != null) + message.source_expression = String(object.source_expression); + if (object.create_ddl != null) + message.create_ddl = String(object.create_ddl); return message; }; /** - * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.TableMaterializeSettings * @static - * @param {vtctldata.CreateKeyspaceRequest} message CreateKeyspaceRequest + * @param {vtctldata.TableMaterializeSettings} message TableMaterializeSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateKeyspaceRequest.toObject = function toObject(message, options) { + TableMaterializeSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.served_froms = []; if (options.defaults) { - object.name = ""; - object.force = false; - object.allow_empty_v_schema = false; - object.sharding_column_name = ""; - object.sharding_column_type = options.enums === String ? "UNSET" : 0; - object.type = options.enums === String ? "NORMAL" : 0; - object.base_keyspace = ""; - object.snapshot_time = 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.sharding_column_name != null && message.hasOwnProperty("sharding_column_name")) - object.sharding_column_name = message.sharding_column_name; - if (message.sharding_column_type != null && message.hasOwnProperty("sharding_column_type")) - object.sharding_column_type = options.enums === String ? $root.topodata.KeyspaceIdType[message.sharding_column_type] : message.sharding_column_type; - if (message.served_froms && message.served_froms.length) { - object.served_froms = []; - for (var j = 0; j < message.served_froms.length; ++j) - object.served_froms[j] = $root.topodata.Keyspace.ServedFrom.toObject(message.served_froms[j], options); + object.target_table = ""; + object.source_expression = ""; + object.create_ddl = ""; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $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.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 CreateKeyspaceRequest to JSON. + * Converts this TableMaterializeSettings to JSON. * @function toJSON - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.TableMaterializeSettings * @instance * @returns {Object.} JSON object */ - CreateKeyspaceRequest.prototype.toJSON = function toJSON() { + TableMaterializeSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateKeyspaceRequest; + return TableMaterializeSettings; })(); - vtctldata.CreateKeyspaceResponse = (function() { + vtctldata.MaterializeSettings = (function() { /** - * Properties of a CreateKeyspaceResponse. + * Properties of a MaterializeSettings. * @memberof vtctldata - * @interface ICreateKeyspaceResponse - * @property {vtctldata.IKeyspace|null} [keyspace] CreateKeyspaceResponse keyspace + * @interface IMaterializeSettings + * @property {string|null} [workflow] MaterializeSettings workflow + * @property {string|null} [source_keyspace] MaterializeSettings source_keyspace + * @property {string|null} [target_keyspace] MaterializeSettings target_keyspace + * @property {boolean|null} [stop_after_copy] MaterializeSettings stop_after_copy + * @property {Array.|null} [table_settings] MaterializeSettings table_settings + * @property {string|null} [cell] MaterializeSettings cell + * @property {string|null} [tablet_types] MaterializeSettings tablet_types + * @property {string|null} [external_cluster] MaterializeSettings external_cluster */ /** - * Constructs a new CreateKeyspaceResponse. + * Constructs a new MaterializeSettings. * @memberof vtctldata - * @classdesc Represents a CreateKeyspaceResponse. - * @implements ICreateKeyspaceResponse + * @classdesc Represents a MaterializeSettings. + * @implements IMaterializeSettings * @constructor - * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set */ - function CreateKeyspaceResponse(properties) { + function MaterializeSettings(properties) { + this.table_settings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52611,75 +52727,169 @@ $root.vtctldata = (function() { } /** - * CreateKeyspaceResponse keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.CreateKeyspaceResponse + * MaterializeSettings workflow. + * @member {string} workflow + * @memberof vtctldata.MaterializeSettings * @instance */ - CreateKeyspaceResponse.prototype.keyspace = null; + MaterializeSettings.prototype.workflow = ""; /** - * Creates a new CreateKeyspaceResponse instance using the specified properties. + * 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 = ""; + + /** + * Creates a new MaterializeSettings instance using the specified properties. * @function create - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.MaterializeSettings * @static - * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse instance + * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set + * @returns {vtctldata.MaterializeSettings} MaterializeSettings instance */ - CreateKeyspaceResponse.create = function create(properties) { - return new CreateKeyspaceResponse(properties); + MaterializeSettings.create = function create(properties) { + return new MaterializeSettings(properties); }; /** - * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.MaterializeSettings * @static - * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode + * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceResponse.encode = function encode(message, writer) { + MaterializeSettings.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.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.source_keyspace != null && Object.hasOwnProperty.call(message, "source_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_keyspace); + if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); + if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.stop_after_copy); + if (message.table_settings != null && message.table_settings.length) + for (var i = 0; i < message.table_settings.length; ++i) + $root.vtctldata.TableMaterializeSettings.encode(message.table_settings[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.cell); + if (message.tablet_types != null && Object.hasOwnProperty.call(message, "tablet_types")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.tablet_types); + if (message.external_cluster != null && Object.hasOwnProperty.call(message, "external_cluster")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.external_cluster); return writer; }; /** - * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.MaterializeSettings * @static - * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode + * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + MaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * Decodes a MaterializeSettings message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateKeyspaceResponse + * @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.CreateKeyspaceResponse} CreateKeyspaceResponse + * @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 */ - CreateKeyspaceResponse.decode = function decode(reader, length) { + MaterializeSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); + 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; default: reader.skipType(tag & 7); @@ -52690,115 +52900,183 @@ $root.vtctldata = (function() { }; /** - * Decodes a CreateKeyspaceResponse 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.CreateKeyspaceResponse + * @memberof vtctldata.MaterializeSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse + * @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 */ - CreateKeyspaceResponse.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 CreateKeyspaceResponse message. + * Verifies a MaterializeSettings message. * @function verify - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.MaterializeSettings * @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) { + MaterializeSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.vtctldata.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + 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.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + if (typeof message.stop_after_copy !== "boolean") + return "stop_after_copy: boolean expected"; + if (message.table_settings != null && message.hasOwnProperty("table_settings")) { + if (!Array.isArray(message.table_settings)) + return "table_settings: array expected"; + for (var i = 0; i < message.table_settings.length; ++i) { + var error = $root.vtctldata.TableMaterializeSettings.verify(message.table_settings[i]); + if (error) + return "table_settings." + error; + } } + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) + if (!$util.isString(message.tablet_types)) + return "tablet_types: string expected"; + if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) + if (!$util.isString(message.external_cluster)) + return "external_cluster: string expected"; return null; }; /** - * Creates a CreateKeyspaceResponse 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.CreateKeyspaceResponse + * @memberof vtctldata.MaterializeSettings * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse + * @returns {vtctldata.MaterializeSettings} MaterializeSettings */ - CreateKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateKeyspaceResponse) + MaterializeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MaterializeSettings) return object; - var 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); + var message = new $root.vtctldata.MaterializeSettings(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.source_keyspace != null) + message.source_keyspace = String(object.source_keyspace); + if (object.target_keyspace != null) + message.target_keyspace = String(object.target_keyspace); + if (object.stop_after_copy != null) + message.stop_after_copy = Boolean(object.stop_after_copy); + if (object.table_settings) { + if (!Array.isArray(object.table_settings)) + throw TypeError(".vtctldata.MaterializeSettings.table_settings: array expected"); + message.table_settings = []; + for (var i = 0; i < object.table_settings.length; ++i) { + if (typeof object.table_settings[i] !== "object") + throw TypeError(".vtctldata.MaterializeSettings.table_settings: object expected"); + message.table_settings[i] = $root.vtctldata.TableMaterializeSettings.fromObject(object.table_settings[i]); + } } + if (object.cell != null) + message.cell = String(object.cell); + if (object.tablet_types != null) + message.tablet_types = String(object.tablet_types); + if (object.external_cluster != null) + message.external_cluster = String(object.external_cluster); return message; }; /** - * Creates a plain object from a CreateKeyspaceResponse 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.CreateKeyspaceResponse + * @memberof vtctldata.MaterializeSettings * @static - * @param {vtctldata.CreateKeyspaceResponse} message CreateKeyspaceResponse + * @param {vtctldata.MaterializeSettings} message MaterializeSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateKeyspaceResponse.toObject = function toObject(message, options) { + MaterializeSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.keyspace = null; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); + if (options.arrays || options.defaults) + object.table_settings = []; + if (options.defaults) { + object.workflow = ""; + object.source_keyspace = ""; + object.target_keyspace = ""; + object.stop_after_copy = false; + object.cell = ""; + object.tablet_types = ""; + object.external_cluster = ""; + } + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) + object.source_keyspace = message.source_keyspace; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + object.target_keyspace = message.target_keyspace; + if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + object.stop_after_copy = message.stop_after_copy; + if (message.table_settings && message.table_settings.length) { + object.table_settings = []; + for (var j = 0; j < message.table_settings.length; ++j) + object.table_settings[j] = $root.vtctldata.TableMaterializeSettings.toObject(message.table_settings[j], options); + } + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) + object.tablet_types = message.tablet_types; + if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) + object.external_cluster = message.external_cluster; return object; }; /** - * Converts this CreateKeyspaceResponse to JSON. + * Converts this MaterializeSettings to JSON. * @function toJSON - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.MaterializeSettings * @instance * @returns {Object.} JSON object */ - CreateKeyspaceResponse.prototype.toJSON = function toJSON() { + MaterializeSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateKeyspaceResponse; + return MaterializeSettings; })(); - vtctldata.CreateShardRequest = (function() { + vtctldata.Keyspace = (function() { /** - * Properties of a CreateShardRequest. + * Properties of a Keyspace. * @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 IKeyspace + * @property {string|null} [name] Keyspace name + * @property {topodata.IKeyspace|null} [keyspace] Keyspace keyspace */ /** - * Constructs a new CreateShardRequest. + * Constructs a new Keyspace. * @memberof vtctldata - * @classdesc Represents a CreateShardRequest. - * @implements ICreateShardRequest + * @classdesc Represents a Keyspace. + * @implements IKeyspace * @constructor - * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set + * @param {vtctldata.IKeyspace=} [properties] Properties to set */ - function CreateShardRequest(properties) { + function Keyspace(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52806,114 +53084,88 @@ $root.vtctldata = (function() { } /** - * CreateShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.CreateShardRequest - * @instance - */ - CreateShardRequest.prototype.keyspace = ""; - - /** - * CreateShardRequest shard_name. - * @member {string} shard_name - * @memberof vtctldata.CreateShardRequest - * @instance - */ - CreateShardRequest.prototype.shard_name = ""; - - /** - * CreateShardRequest force. - * @member {boolean} force - * @memberof vtctldata.CreateShardRequest + * Keyspace name. + * @member {string} name + * @memberof vtctldata.Keyspace * @instance */ - CreateShardRequest.prototype.force = false; + Keyspace.prototype.name = ""; /** - * CreateShardRequest include_parent. - * @member {boolean} include_parent - * @memberof vtctldata.CreateShardRequest + * Keyspace keyspace. + * @member {topodata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.Keyspace * @instance */ - CreateShardRequest.prototype.include_parent = false; + Keyspace.prototype.keyspace = null; /** - * Creates a new CreateShardRequest instance using the specified properties. + * Creates a new Keyspace instance using the specified properties. * @function create - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.Keyspace * @static - * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set - * @returns {vtctldata.CreateShardRequest} CreateShardRequest instance + * @param {vtctldata.IKeyspace=} [properties] Properties to set + * @returns {vtctldata.Keyspace} Keyspace instance */ - CreateShardRequest.create = function create(properties) { - return new CreateShardRequest(properties); + Keyspace.create = function create(properties) { + return new Keyspace(properties); }; /** - * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.Keyspace * @static - * @param {vtctldata.ICreateShardRequest} message CreateShardRequest 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 */ - CreateShardRequest.encode = function encode(message, writer) { + Keyspace.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.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); + $root.topodata.Keyspace.encode(message.keyspace, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.Keyspace * @static - * @param {vtctldata.ICreateShardRequest} message CreateShardRequest 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 */ - CreateShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + Keyspace.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateShardRequest message from the specified reader or buffer. + * Decodes a Keyspace message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateShardRequest + * @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.CreateShardRequest} CreateShardRequest + * @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 */ - CreateShardRequest.decode = function decode(reader, length) { + Keyspace.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Keyspace(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.name = reader.string(); break; case 2: - message.shard_name = reader.string(); - break; - case 3: - message.force = reader.bool(); - break; - case 4: - message.include_parent = reader.bool(); + message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -52924,134 +53176,123 @@ $root.vtctldata = (function() { }; /** - * Decodes a CreateShardRequest 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.CreateShardRequest + * @memberof vtctldata.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateShardRequest} CreateShardRequest + * @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 */ - CreateShardRequest.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 CreateShardRequest message. + * Verifies a Keyspace message. * @function verify - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.Keyspace * @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) { + 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.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.topodata.Keyspace.verify(message.keyspace); + if (error) + return "keyspace." + error; + } return null; }; /** - * Creates a CreateShardRequest 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.CreateShardRequest + * @memberof vtctldata.Keyspace * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateShardRequest} CreateShardRequest + * @returns {vtctldata.Keyspace} Keyspace */ - CreateShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateShardRequest) + Keyspace.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Keyspace) return object; - var 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); + var message = new $root.vtctldata.Keyspace(); + if (object.name != null) + message.name = String(object.name); + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtctldata.Keyspace.keyspace: object expected"); + message.keyspace = $root.topodata.Keyspace.fromObject(object.keyspace); + } return message; }; /** - * Creates a plain object from a CreateShardRequest 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.CreateShardRequest + * @memberof vtctldata.Keyspace * @static - * @param {vtctldata.CreateShardRequest} message CreateShardRequest + * @param {vtctldata.Keyspace} message Keyspace * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateShardRequest.toObject = function toObject(message, options) { + Keyspace.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.keyspace = ""; - object.shard_name = ""; - object.force = false; - object.include_parent = false; + object.name = ""; + object.keyspace = null; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = 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; + object.keyspace = $root.topodata.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this CreateShardRequest to JSON. + * Converts this Keyspace to JSON. * @function toJSON - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.Keyspace * @instance * @returns {Object.} JSON object */ - CreateShardRequest.prototype.toJSON = function toJSON() { + Keyspace.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateShardRequest; + return Keyspace; })(); - vtctldata.CreateShardResponse = (function() { + vtctldata.Shard = (function() { /** - * Properties of a CreateShardResponse. + * Properties of a Shard. * @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 IShard + * @property {string|null} [keyspace] Shard keyspace + * @property {string|null} [name] Shard name + * @property {topodata.IShard|null} [shard] Shard shard */ /** - * Constructs a new CreateShardResponse. + * Constructs a new Shard. * @memberof vtctldata - * @classdesc Represents a CreateShardResponse. - * @implements ICreateShardResponse + * @classdesc Represents a Shard. + * @implements IShard * @constructor - * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set + * @param {vtctldata.IShard=} [properties] Properties to set */ - function CreateShardResponse(properties) { + function Shard(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53059,101 +53300,101 @@ $root.vtctldata = (function() { } /** - * CreateShardResponse keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.CreateShardResponse + * Shard keyspace. + * @member {string} keyspace + * @memberof vtctldata.Shard * @instance */ - CreateShardResponse.prototype.keyspace = null; + Shard.prototype.keyspace = ""; /** - * CreateShardResponse shard. - * @member {vtctldata.IShard|null|undefined} shard - * @memberof vtctldata.CreateShardResponse + * Shard name. + * @member {string} name + * @memberof vtctldata.Shard * @instance */ - CreateShardResponse.prototype.shard = null; + Shard.prototype.name = ""; /** - * CreateShardResponse shard_already_exists. - * @member {boolean} shard_already_exists - * @memberof vtctldata.CreateShardResponse + * Shard shard. + * @member {topodata.IShard|null|undefined} shard + * @memberof vtctldata.Shard * @instance */ - CreateShardResponse.prototype.shard_already_exists = false; + Shard.prototype.shard = null; /** - * Creates a new CreateShardResponse instance using the specified properties. + * Creates a new Shard instance using the specified properties. * @function create - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.Shard * @static - * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set - * @returns {vtctldata.CreateShardResponse} CreateShardResponse instance + * @param {vtctldata.IShard=} [properties] Properties to set + * @returns {vtctldata.Shard} Shard instance */ - CreateShardResponse.create = function create(properties) { - return new CreateShardResponse(properties); + Shard.create = function create(properties) { + return new Shard(properties); }; /** - * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.Shard * @static - * @param {vtctldata.ICreateShardResponse} message CreateShardResponse message or plain object to encode + * @param {vtctldata.IShard} message Shard message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardResponse.encode = function encode(message, writer) { + Shard.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(); + 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.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); + $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.Shard * @static - * @param {vtctldata.ICreateShardResponse} message CreateShardResponse message or plain object to encode + * @param {vtctldata.IShard} message Shard message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + Shard.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateShardResponse message from the specified reader or buffer. + * Decodes a Shard message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateShardResponse + * @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.CreateShardResponse} CreateShardResponse + * @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 */ - CreateShardResponse.decode = function decode(reader, length) { + Shard.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Shard(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; case 2: - message.shard = $root.vtctldata.Shard.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 3: - message.shard_already_exists = reader.bool(); + message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -53164,135 +53405,134 @@ $root.vtctldata = (function() { }; /** - * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. + * Decodes a Shard message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.Shard * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateShardResponse} CreateShardResponse + * @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 */ - CreateShardResponse.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 CreateShardResponse message. + * Verifies a Shard message. * @function verify - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.Shard * @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) { + Shard.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.vtctldata.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + 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.shard != null && message.hasOwnProperty("shard")) { - var error = $root.vtctldata.Shard.verify(message.shard); + var error = $root.topodata.Shard.verify(message.shard); if (error) return "shard." + 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 a Shard message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.Shard * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateShardResponse} CreateShardResponse + * @returns {vtctldata.Shard} Shard */ - CreateShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateShardResponse) + Shard.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Shard) return object; - var 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); - } + var message = new $root.vtctldata.Shard(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.name != null) + message.name = String(object.name); if (object.shard != null) { if (typeof object.shard !== "object") - throw TypeError(".vtctldata.CreateShardResponse.shard: object expected"); - message.shard = $root.vtctldata.Shard.fromObject(object.shard); + throw TypeError(".vtctldata.Shard.shard: object expected"); + message.shard = $root.topodata.Shard.fromObject(object.shard); } - 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 a Shard message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.Shard * @static - * @param {vtctldata.CreateShardResponse} message CreateShardResponse + * @param {vtctldata.Shard} message Shard * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateShardResponse.toObject = function toObject(message, options) { + Shard.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.keyspace = null; + object.keyspace = ""; + object.name = ""; object.shard = null; - object.shard_already_exists = false; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); + 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.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; + object.shard = $root.topodata.Shard.toObject(message.shard, options); return object; }; /** - * Converts this CreateShardResponse to JSON. + * Converts this Shard to JSON. * @function toJSON - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.Shard * @instance * @returns {Object.} JSON object */ - CreateShardResponse.prototype.toJSON = function toJSON() { + Shard.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateShardResponse; + return Shard; })(); - vtctldata.DeleteKeyspaceRequest = (function() { + vtctldata.Workflow = (function() { /** - * Properties of a DeleteKeyspaceRequest. + * Properties of a Workflow. * @memberof vtctldata - * @interface IDeleteKeyspaceRequest - * @property {string|null} [keyspace] DeleteKeyspaceRequest keyspace - * @property {boolean|null} [recursive] DeleteKeyspaceRequest recursive + * @interface IWorkflow + * @property {string|null} [name] Workflow name + * @property {vtctldata.Workflow.IReplicationLocation|null} [source] Workflow source + * @property {vtctldata.Workflow.IReplicationLocation|null} [target] Workflow target + * @property {number|Long|null} [max_v_replication_lag] Workflow max_v_replication_lag + * @property {Object.|null} [shard_streams] Workflow shard_streams */ /** - * Constructs a new DeleteKeyspaceRequest. + * Constructs a new Workflow. * @memberof vtctldata - * @classdesc Represents a DeleteKeyspaceRequest. - * @implements IDeleteKeyspaceRequest + * @classdesc Represents a Workflow. + * @implements IWorkflow * @constructor - * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IWorkflow=} [properties] Properties to set */ - function DeleteKeyspaceRequest(properties) { + function Workflow(properties) { + this.shard_streams = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53300,88 +53540,149 @@ $root.vtctldata = (function() { } /** - * DeleteKeyspaceRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.DeleteKeyspaceRequest + * Workflow name. + * @member {string} name + * @memberof vtctldata.Workflow * @instance */ - DeleteKeyspaceRequest.prototype.keyspace = ""; + Workflow.prototype.name = ""; /** - * DeleteKeyspaceRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.DeleteKeyspaceRequest + * Workflow source. + * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} source + * @memberof vtctldata.Workflow * @instance */ - DeleteKeyspaceRequest.prototype.recursive = false; + Workflow.prototype.source = null; /** - * Creates a new DeleteKeyspaceRequest instance using the specified properties. + * Workflow target. + * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} target + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.target = null; + + /** + * Workflow max_v_replication_lag. + * @member {number|Long} max_v_replication_lag + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.max_v_replication_lag = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Workflow shard_streams. + * @member {Object.} shard_streams + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.shard_streams = $util.emptyObject; + + /** + * Creates a new Workflow instance using the specified properties. * @function create - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.Workflow * @static - * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest instance + * @param {vtctldata.IWorkflow=} [properties] Properties to set + * @returns {vtctldata.Workflow} Workflow instance */ - DeleteKeyspaceRequest.create = function create(properties) { - return new DeleteKeyspaceRequest(properties); + Workflow.create = function create(properties) { + return new Workflow(properties); }; /** - * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.Workflow * @static - * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode + * @param {vtctldata.IWorkflow} message Workflow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteKeyspaceRequest.encode = function encode(message, writer) { + Workflow.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.vtctldata.Workflow.ReplicationLocation.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.vtctldata.Workflow.ReplicationLocation.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.max_v_replication_lag != null && Object.hasOwnProperty.call(message, "max_v_replication_lag")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.max_v_replication_lag); + if (message.shard_streams != null && Object.hasOwnProperty.call(message, "shard_streams")) + for (var keys = Object.keys(message.shard_streams), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.Workflow.ShardStream.encode(message.shard_streams[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.Workflow * @static - * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode + * @param {vtctldata.IWorkflow} message Workflow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + Workflow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. + * Decodes a Workflow message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteKeyspaceRequest + * @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.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @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 */ - DeleteKeyspaceRequest.decode = function decode(reader, length) { + Workflow.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.name = reader.string(); break; case 2: - message.recursive = reader.bool(); + message.source = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); + break; + case 4: + message.max_v_replication_lag = reader.int64(); + break; + case 5: + if (message.shard_streams === $util.emptyObject) + message.shard_streams = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.Workflow.ShardStream.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.shard_streams[key] = value; break; default: reader.skipType(tag & 7); @@ -53392,692 +53693,1383 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a Workflow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.Workflow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @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 */ - DeleteKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + Workflow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteKeyspaceRequest message. + * Verifies a Workflow message. * @function verify - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.Workflow * @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) { + Workflow.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.source != null && message.hasOwnProperty("source")) { + var error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.source); + if (error) + return "source." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.target); + if (error) + return "target." + error; + } + if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) + if (!$util.isInteger(message.max_v_replication_lag) && !(message.max_v_replication_lag && $util.isInteger(message.max_v_replication_lag.low) && $util.isInteger(message.max_v_replication_lag.high))) + return "max_v_replication_lag: integer|Long expected"; + if (message.shard_streams != null && message.hasOwnProperty("shard_streams")) { + if (!$util.isObject(message.shard_streams)) + return "shard_streams: object expected"; + var key = Object.keys(message.shard_streams); + for (var i = 0; i < key.length; ++i) { + var error = $root.vtctldata.Workflow.ShardStream.verify(message.shard_streams[key[i]]); + if (error) + return "shard_streams." + error; + } + } return null; }; /** - * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Workflow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.Workflow * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @returns {vtctldata.Workflow} Workflow */ - DeleteKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteKeyspaceRequest) + Workflow.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow) return object; - var message = new $root.vtctldata.DeleteKeyspaceRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.recursive != null) - message.recursive = Boolean(object.recursive); + var message = new $root.vtctldata.Workflow(); + if (object.name != null) + message.name = String(object.name); + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".vtctldata.Workflow.source: object expected"); + message.source = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.source); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".vtctldata.Workflow.target: object expected"); + message.target = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.target); + } + if (object.max_v_replication_lag != null) + if ($util.Long) + (message.max_v_replication_lag = $util.Long.fromValue(object.max_v_replication_lag)).unsigned = false; + else if (typeof object.max_v_replication_lag === "string") + message.max_v_replication_lag = parseInt(object.max_v_replication_lag, 10); + else if (typeof object.max_v_replication_lag === "number") + message.max_v_replication_lag = object.max_v_replication_lag; + else if (typeof object.max_v_replication_lag === "object") + message.max_v_replication_lag = new $util.LongBits(object.max_v_replication_lag.low >>> 0, object.max_v_replication_lag.high >>> 0).toNumber(); + if (object.shard_streams) { + if (typeof object.shard_streams !== "object") + throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); + message.shard_streams = {}; + for (var keys = Object.keys(object.shard_streams), i = 0; i < keys.length; ++i) { + if (typeof object.shard_streams[keys[i]] !== "object") + throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); + message.shard_streams[keys[i]] = $root.vtctldata.Workflow.ShardStream.fromObject(object.shard_streams[keys[i]]); + } + } return message; }; /** - * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a Workflow message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.Workflow * @static - * @param {vtctldata.DeleteKeyspaceRequest} message DeleteKeyspaceRequest + * @param {vtctldata.Workflow} message Workflow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteKeyspaceRequest.toObject = function toObject(message, options) { + Workflow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.shard_streams = {}; if (options.defaults) { - object.keyspace = ""; - object.recursive = false; + object.name = ""; + object.source = null; + object.target = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.max_v_replication_lag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_v_replication_lag = options.longs === String ? "0" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.source != null && message.hasOwnProperty("source")) + object.source = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.source, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.target, options); + if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) + if (typeof message.max_v_replication_lag === "number") + object.max_v_replication_lag = options.longs === String ? String(message.max_v_replication_lag) : message.max_v_replication_lag; + else + object.max_v_replication_lag = options.longs === String ? $util.Long.prototype.toString.call(message.max_v_replication_lag) : options.longs === Number ? new $util.LongBits(message.max_v_replication_lag.low >>> 0, message.max_v_replication_lag.high >>> 0).toNumber() : message.max_v_replication_lag; + var keys2; + if (message.shard_streams && (keys2 = Object.keys(message.shard_streams)).length) { + object.shard_streams = {}; + for (var j = 0; j < keys2.length; ++j) + object.shard_streams[keys2[j]] = $root.vtctldata.Workflow.ShardStream.toObject(message.shard_streams[keys2[j]], options); } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.recursive != null && message.hasOwnProperty("recursive")) - object.recursive = message.recursive; return object; }; /** - * Converts this DeleteKeyspaceRequest to JSON. + * Converts this Workflow to JSON. * @function toJSON - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.Workflow * @instance * @returns {Object.} JSON object */ - DeleteKeyspaceRequest.prototype.toJSON = function toJSON() { + Workflow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteKeyspaceRequest; - })(); + Workflow.ReplicationLocation = (function() { + + /** + * Properties of a ReplicationLocation. + * @memberof vtctldata.Workflow + * @interface IReplicationLocation + * @property {string|null} [keyspace] ReplicationLocation keyspace + * @property {Array.|null} [shards] ReplicationLocation shards + */ + + /** + * Constructs a new ReplicationLocation. + * @memberof vtctldata.Workflow + * @classdesc Represents a ReplicationLocation. + * @implements IReplicationLocation + * @constructor + * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set + */ + function ReplicationLocation(properties) { + this.shards = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReplicationLocation keyspace. + * @member {string} keyspace + * @memberof vtctldata.Workflow.ReplicationLocation + * @instance + */ + ReplicationLocation.prototype.keyspace = ""; + + /** + * ReplicationLocation shards. + * @member {Array.} shards + * @memberof vtctldata.Workflow.ReplicationLocation + * @instance + */ + ReplicationLocation.prototype.shards = $util.emptyArray; + + /** + * Creates a new ReplicationLocation instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation instance + */ + ReplicationLocation.create = function create(properties) { + return new ReplicationLocation(properties); + }; + + /** + * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReplicationLocation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shards != null && message.shards.length) + for (var i = 0; i < message.shards.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shards[i]); + return writer; + }; + + /** + * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReplicationLocation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReplicationLocation message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReplicationLocation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ReplicationLocation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; + case 2: + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReplicationLocation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReplicationLocation message. + * @function verify + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReplicationLocation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (var i = 0; i < message.shards.length; ++i) + if (!$util.isString(message.shards[i])) + return "shards: string[] expected"; + } + return null; + }; + + /** + * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation + */ + ReplicationLocation.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.ReplicationLocation) + return object; + var message = new $root.vtctldata.Workflow.ReplicationLocation(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.Workflow.ReplicationLocation.shards: array expected"); + message.shards = []; + for (var i = 0; i < object.shards.length; ++i) + message.shards[i] = String(object.shards[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.ReplicationLocation} message ReplicationLocation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReplicationLocation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.shards = []; + if (options.defaults) + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shards && message.shards.length) { + object.shards = []; + for (var j = 0; j < message.shards.length; ++j) + object.shards[j] = message.shards[j]; + } + return object; + }; + + /** + * Converts this ReplicationLocation to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.ReplicationLocation + * @instance + * @returns {Object.} JSON object + */ + ReplicationLocation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ReplicationLocation; + })(); + + Workflow.ShardStream = (function() { + + /** + * Properties of a ShardStream. + * @memberof vtctldata.Workflow + * @interface IShardStream + * @property {Array.|null} [streams] ShardStream streams + * @property {Array.|null} [tablet_controls] ShardStream tablet_controls + * @property {boolean|null} [is_primary_serving] ShardStream is_primary_serving + */ + + /** + * Constructs a new ShardStream. + * @memberof vtctldata.Workflow + * @classdesc Represents a ShardStream. + * @implements IShardStream + * @constructor + * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set + */ + function ShardStream(properties) { + this.streams = []; + this.tablet_controls = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ShardStream streams. + * @member {Array.} streams + * @memberof vtctldata.Workflow.ShardStream + * @instance + */ + ShardStream.prototype.streams = $util.emptyArray; + + /** + * ShardStream tablet_controls. + * @member {Array.} tablet_controls + * @memberof vtctldata.Workflow.ShardStream + * @instance + */ + ShardStream.prototype.tablet_controls = $util.emptyArray; + + /** + * ShardStream is_primary_serving. + * @member {boolean} is_primary_serving + * @memberof vtctldata.Workflow.ShardStream + * @instance + */ + ShardStream.prototype.is_primary_serving = false; + + /** + * Creates a new ShardStream instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set + * @returns {vtctldata.Workflow.ShardStream} ShardStream instance + */ + ShardStream.create = function create(properties) { + return new ShardStream(properties); + }; + + /** + * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardStream.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.streams != null && message.streams.length) + for (var i = 0; i < message.streams.length; ++i) + $root.vtctldata.Workflow.Stream.encode(message.streams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tablet_controls != null && message.tablet_controls.length) + for (var i = 0; i < message.tablet_controls.length; ++i) + $root.topodata.Shard.TabletControl.encode(message.tablet_controls[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.is_primary_serving != null && Object.hasOwnProperty.call(message, "is_primary_serving")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.is_primary_serving); + return writer; + }; + + /** + * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ShardStream message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.ShardStream} ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardStream.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ShardStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.streams && message.streams.length)) + message.streams = []; + message.streams.push($root.vtctldata.Workflow.Stream.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.tablet_controls && message.tablet_controls.length)) + message.tablet_controls = []; + message.tablet_controls.push($root.topodata.Shard.TabletControl.decode(reader, reader.uint32())); + break; + case 3: + message.is_primary_serving = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ShardStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.ShardStream} ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ShardStream message. + * @function verify + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ShardStream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.streams != null && message.hasOwnProperty("streams")) { + if (!Array.isArray(message.streams)) + return "streams: array expected"; + for (var i = 0; i < message.streams.length; ++i) { + var error = $root.vtctldata.Workflow.Stream.verify(message.streams[i]); + if (error) + return "streams." + error; + } + } + if (message.tablet_controls != null && message.hasOwnProperty("tablet_controls")) { + if (!Array.isArray(message.tablet_controls)) + return "tablet_controls: array expected"; + for (var i = 0; i < message.tablet_controls.length; ++i) { + var error = $root.topodata.Shard.TabletControl.verify(message.tablet_controls[i]); + if (error) + return "tablet_controls." + error; + } + } + if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) + if (typeof message.is_primary_serving !== "boolean") + return "is_primary_serving: boolean expected"; + return null; + }; - vtctldata.DeleteKeyspaceResponse = (function() { + /** + * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.ShardStream} ShardStream + */ + ShardStream.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.ShardStream) + return object; + var message = new $root.vtctldata.Workflow.ShardStream(); + if (object.streams) { + if (!Array.isArray(object.streams)) + throw TypeError(".vtctldata.Workflow.ShardStream.streams: array expected"); + message.streams = []; + for (var i = 0; i < object.streams.length; ++i) { + if (typeof object.streams[i] !== "object") + throw TypeError(".vtctldata.Workflow.ShardStream.streams: object expected"); + message.streams[i] = $root.vtctldata.Workflow.Stream.fromObject(object.streams[i]); + } + } + if (object.tablet_controls) { + if (!Array.isArray(object.tablet_controls)) + throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: array expected"); + message.tablet_controls = []; + for (var i = 0; i < object.tablet_controls.length; ++i) { + if (typeof object.tablet_controls[i] !== "object") + throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: object expected"); + message.tablet_controls[i] = $root.topodata.Shard.TabletControl.fromObject(object.tablet_controls[i]); + } + } + if (object.is_primary_serving != null) + message.is_primary_serving = Boolean(object.is_primary_serving); + return message; + }; - /** - * Properties of a DeleteKeyspaceResponse. - * @memberof vtctldata - * @interface IDeleteKeyspaceResponse - */ + /** + * Creates a plain object from a ShardStream message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.ShardStream} message ShardStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ShardStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.streams = []; + object.tablet_controls = []; + } + if (options.defaults) + object.is_primary_serving = false; + if (message.streams && message.streams.length) { + object.streams = []; + for (var j = 0; j < message.streams.length; ++j) + object.streams[j] = $root.vtctldata.Workflow.Stream.toObject(message.streams[j], options); + } + if (message.tablet_controls && message.tablet_controls.length) { + object.tablet_controls = []; + for (var j = 0; j < message.tablet_controls.length; ++j) + object.tablet_controls[j] = $root.topodata.Shard.TabletControl.toObject(message.tablet_controls[j], options); + } + if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) + object.is_primary_serving = message.is_primary_serving; + return object; + }; - /** - * Constructs a new DeleteKeyspaceResponse. - * @memberof vtctldata - * @classdesc Represents a DeleteKeyspaceResponse. - * @implements IDeleteKeyspaceResponse - * @constructor - * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set - */ - function DeleteKeyspaceResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * 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); + }; - /** - * Creates a new DeleteKeyspaceResponse instance using the specified properties. - * @function create - * @memberof vtctldata.DeleteKeyspaceResponse - * @static - * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse instance - */ - DeleteKeyspaceResponse.create = function create(properties) { - return new DeleteKeyspaceResponse(properties); - }; + return ShardStream; + })(); - /** - * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. - * @function encode - * @memberof vtctldata.DeleteKeyspaceResponse - * @static - * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteKeyspaceResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + Workflow.Stream = (function() { - /** - * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.DeleteKeyspaceResponse - * @static - * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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 + */ - /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. - * @function decode - * @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.DeleteKeyspaceResponse} DeleteKeyspaceResponse - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } + /** + * 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 = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.DeleteKeyspaceResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - DeleteKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Stream id. + * @member {number|Long} id + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Verifies a DeleteKeyspaceResponse message. - * @function verify - * @memberof vtctldata.DeleteKeyspaceResponse - * @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) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Stream shard. + * @member {string} shard + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.shard = ""; - /** - * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.DeleteKeyspaceResponse - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse - */ - DeleteKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteKeyspaceResponse) - return object; - return new $root.vtctldata.DeleteKeyspaceResponse(); - }; + /** + * Stream tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.tablet = null; - /** - * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.DeleteKeyspaceResponse - * @static - * @param {vtctldata.DeleteKeyspaceResponse} message DeleteKeyspaceResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteKeyspaceResponse.toObject = function toObject() { - return {}; - }; + /** + * Stream binlog_source. + * @member {binlogdata.IBinlogSource|null|undefined} binlog_source + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.binlog_source = null; - /** - * Converts this DeleteKeyspaceResponse to JSON. - * @function toJSON - * @memberof vtctldata.DeleteKeyspaceResponse - * @instance - * @returns {Object.} JSON object - */ - DeleteKeyspaceResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Stream position. + * @member {string} position + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.position = ""; - return DeleteKeyspaceResponse; - })(); + /** + * Stream stop_position. + * @member {string} stop_position + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.stop_position = ""; - vtctldata.DeleteShardsRequest = (function() { + /** + * Stream state. + * @member {string} state + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.state = ""; - /** - * Properties of a DeleteShardsRequest. - * @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 - */ + /** + * Stream db_name. + * @member {string} db_name + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.db_name = ""; - /** - * Constructs a new DeleteShardsRequest. - * @memberof vtctldata - * @classdesc Represents a DeleteShardsRequest. - * @implements IDeleteShardsRequest - * @constructor - * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set - */ - function DeleteShardsRequest(properties) { - this.shards = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Stream transaction_timestamp. + * @member {vttime.ITime|null|undefined} transaction_timestamp + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.transaction_timestamp = null; - /** - * DeleteShardsRequest shards. - * @member {Array.} shards - * @memberof vtctldata.DeleteShardsRequest - * @instance - */ - DeleteShardsRequest.prototype.shards = $util.emptyArray; + /** + * Stream time_updated. + * @member {vttime.ITime|null|undefined} time_updated + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.time_updated = null; - /** - * DeleteShardsRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.DeleteShardsRequest - * @instance - */ - DeleteShardsRequest.prototype.recursive = false; + /** + * Stream message. + * @member {string} message + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.message = ""; - /** - * DeleteShardsRequest even_if_serving. - * @member {boolean} even_if_serving - * @memberof vtctldata.DeleteShardsRequest - * @instance - */ - DeleteShardsRequest.prototype.even_if_serving = false; + /** + * Stream copy_states. + * @member {Array.} copy_states + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.copy_states = $util.emptyArray; - /** - * Creates a new DeleteShardsRequest instance using the specified properties. - * @function create - * @memberof vtctldata.DeleteShardsRequest - * @static - * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest instance - */ - DeleteShardsRequest.create = function create(properties) { - return new DeleteShardsRequest(properties); - }; + /** + * 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 DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. - * @function encode - * @memberof vtctldata.DeleteShardsRequest - * @static - * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteShardsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.shards != null && message.shards.length) - for (var 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); - return writer; - }; + /** + * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Stream.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) + $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.binlog_source != null && Object.hasOwnProperty.call(message, "binlog_source")) + $root.binlogdata.BinlogSource.encode(message.binlog_source, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.position); + if (message.stop_position != null && Object.hasOwnProperty.call(message, "stop_position")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.stop_position); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.state); + if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.db_name); + if (message.transaction_timestamp != null && Object.hasOwnProperty.call(message, "transaction_timestamp")) + $root.vttime.Time.encode(message.transaction_timestamp, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.time_updated != null && Object.hasOwnProperty.call(message, "time_updated")) + $root.vttime.Time.encode(message.time_updated, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.message); + if (message.copy_states != null && message.copy_states.length) + for (var i = 0; i < message.copy_states.length; ++i) + $root.vtctldata.Workflow.Stream.CopyState.encode(message.copy_states[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.DeleteShardsRequest - * @static - * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteShardsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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 DeleteShardsRequest message from the specified reader or buffer. - * @function decode - * @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.DeleteShardsRequest} DeleteShardsRequest - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsRequest(); - while (reader.pos < end) { - var 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; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a Stream message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.Stream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.Stream} Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Stream.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.int64(); + break; + case 2: + message.shard = reader.string(); + break; + case 3: + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 4: + message.binlog_source = $root.binlogdata.BinlogSource.decode(reader, reader.uint32()); + break; + case 5: + message.position = reader.string(); + break; + case 6: + message.stop_position = reader.string(); + break; + case 7: + message.state = reader.string(); + break; + case 8: + message.db_name = reader.string(); + break; + case 9: + message.transaction_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); + break; + case 10: + message.time_updated = $root.vttime.Time.decode(reader, reader.uint32()); + break; + case 11: + message.message = reader.string(); + break; + case 12: + if (!(message.copy_states && message.copy_states.length)) + message.copy_states = []; + message.copy_states.push($root.vtctldata.Workflow.Stream.CopyState.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.DeleteShardsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - DeleteShardsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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 DeleteShardsRequest message. - * @function verify - * @memberof vtctldata.DeleteShardsRequest - * @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) { - 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 (var i = 0; i < message.shards.length; ++i) { - var error = $root.vtctldata.Shard.verify(message.shards[i]); + /** + * Verifies a Stream message. + * @function verify + * @memberof vtctldata.Workflow.Stream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Stream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.TabletAlias.verify(message.tablet); if (error) - return "shards." + error; + return "tablet." + 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"; - return null; - }; + if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) { + var error = $root.binlogdata.BinlogSource.verify(message.binlog_source); + if (error) + return "binlog_source." + error; + } + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.stop_position != null && message.hasOwnProperty("stop_position")) + if (!$util.isString(message.stop_position)) + return "stop_position: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + if (!$util.isString(message.state)) + return "state: string expected"; + if (message.db_name != null && message.hasOwnProperty("db_name")) + if (!$util.isString(message.db_name)) + return "db_name: string expected"; + if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) { + var error = $root.vttime.Time.verify(message.transaction_timestamp); + if (error) + return "transaction_timestamp." + error; + } + if (message.time_updated != null && message.hasOwnProperty("time_updated")) { + var error = $root.vttime.Time.verify(message.time_updated); + if (error) + return "time_updated." + error; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.copy_states != null && message.hasOwnProperty("copy_states")) { + if (!Array.isArray(message.copy_states)) + return "copy_states: array expected"; + for (var i = 0; i < message.copy_states.length; ++i) { + var error = $root.vtctldata.Workflow.Stream.CopyState.verify(message.copy_states[i]); + if (error) + return "copy_states." + error; + } + } + return null; + }; - /** - * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.DeleteShardsRequest - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest - */ - DeleteShardsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteShardsRequest) - return object; - var message = new $root.vtctldata.DeleteShardsRequest(); - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.DeleteShardsRequest.shards: array expected"); - message.shards = []; - for (var 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]); + /** + * Creates a Stream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.Stream + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.Stream} Stream + */ + Stream.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.Stream) + return object; + var message = new $root.vtctldata.Workflow.Stream(); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = false; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); + if (object.shard != null) + message.shard = String(object.shard); + if (object.tablet != null) { + if (typeof object.tablet !== "object") + throw TypeError(".vtctldata.Workflow.Stream.tablet: object expected"); + message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); } - } - if (object.recursive != null) - message.recursive = Boolean(object.recursive); - if (object.even_if_serving != null) - message.even_if_serving = Boolean(object.even_if_serving); - return message; - }; + if (object.binlog_source != null) { + if (typeof object.binlog_source !== "object") + throw TypeError(".vtctldata.Workflow.Stream.binlog_source: object expected"); + message.binlog_source = $root.binlogdata.BinlogSource.fromObject(object.binlog_source); + } + if (object.position != null) + message.position = String(object.position); + if (object.stop_position != null) + message.stop_position = String(object.stop_position); + if (object.state != null) + message.state = String(object.state); + if (object.db_name != null) + message.db_name = String(object.db_name); + if (object.transaction_timestamp != null) { + if (typeof object.transaction_timestamp !== "object") + throw TypeError(".vtctldata.Workflow.Stream.transaction_timestamp: object expected"); + message.transaction_timestamp = $root.vttime.Time.fromObject(object.transaction_timestamp); + } + if (object.time_updated != null) { + if (typeof object.time_updated !== "object") + throw TypeError(".vtctldata.Workflow.Stream.time_updated: object expected"); + message.time_updated = $root.vttime.Time.fromObject(object.time_updated); + } + if (object.message != null) + message.message = String(object.message); + if (object.copy_states) { + if (!Array.isArray(object.copy_states)) + throw TypeError(".vtctldata.Workflow.Stream.copy_states: array expected"); + message.copy_states = []; + for (var i = 0; i < object.copy_states.length; ++i) { + if (typeof object.copy_states[i] !== "object") + throw TypeError(".vtctldata.Workflow.Stream.copy_states: object expected"); + message.copy_states[i] = $root.vtctldata.Workflow.Stream.CopyState.fromObject(object.copy_states[i]); + } + } + return message; + }; - /** - * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.DeleteShardsRequest - * @static - * @param {vtctldata.DeleteShardsRequest} message DeleteShardsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteShardsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.shards = []; - if (options.defaults) { - object.recursive = false; - object.even_if_serving = false; - } - if (message.shards && message.shards.length) { - object.shards = []; - for (var 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; - return object; - }; + /** + * Creates a plain object from a Stream message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.Stream} message Stream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Stream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.copy_states = []; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.id = options.longs === String ? "0" : 0; + object.shard = ""; + object.tablet = null; + object.binlog_source = null; + object.position = ""; + object.stop_position = ""; + object.state = ""; + object.db_name = ""; + object.transaction_timestamp = null; + object.time_updated = null; + object.message = ""; + } + if (message.id != null && message.hasOwnProperty("id")) + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); + if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) + object.binlog_source = $root.binlogdata.BinlogSource.toObject(message.binlog_source, options); + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.stop_position != null && message.hasOwnProperty("stop_position")) + object.stop_position = message.stop_position; + if (message.state != null && message.hasOwnProperty("state")) + object.state = message.state; + if (message.db_name != null && message.hasOwnProperty("db_name")) + object.db_name = message.db_name; + if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) + object.transaction_timestamp = $root.vttime.Time.toObject(message.transaction_timestamp, options); + if (message.time_updated != null && message.hasOwnProperty("time_updated")) + object.time_updated = $root.vttime.Time.toObject(message.time_updated, options); + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.copy_states && message.copy_states.length) { + object.copy_states = []; + for (var j = 0; j < message.copy_states.length; ++j) + object.copy_states[j] = $root.vtctldata.Workflow.Stream.CopyState.toObject(message.copy_states[j], options); + } + return object; + }; - /** - * Converts this DeleteShardsRequest to JSON. - * @function toJSON - * @memberof vtctldata.DeleteShardsRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteShardsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Stream to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.Stream + * @instance + * @returns {Object.} JSON object + */ + Stream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return DeleteShardsRequest; - })(); + Stream.CopyState = (function() { - vtctldata.DeleteShardsResponse = (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 + */ - /** - * Properties of a DeleteShardsResponse. - * @memberof vtctldata - * @interface IDeleteShardsResponse - */ + /** + * Constructs a new CopyState. + * @memberof vtctldata.Workflow.Stream + * @classdesc Represents a CopyState. + * @implements ICopyState + * @constructor + * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set + */ + function CopyState(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new DeleteShardsResponse. - * @memberof vtctldata - * @classdesc Represents a DeleteShardsResponse. - * @implements IDeleteShardsResponse - * @constructor - * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set - */ - function DeleteShardsResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * CopyState table. + * @member {string} table + * @memberof vtctldata.Workflow.Stream.CopyState + * @instance + */ + CopyState.prototype.table = ""; + + /** + * CopyState last_pk. + * @member {string} last_pk + * @memberof vtctldata.Workflow.Stream.CopyState + * @instance + */ + CopyState.prototype.last_pk = ""; + + /** + * Creates a new CopyState instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState instance + */ + CopyState.create = function create(properties) { + return new CopyState(properties); + }; + + /** + * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.table != null && Object.hasOwnProperty.call(message, "table")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.table); + if (message.last_pk != null && Object.hasOwnProperty.call(message, "last_pk")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.last_pk); + return writer; + }; - /** - * Creates a new DeleteShardsResponse instance using the specified properties. - * @function create - * @memberof vtctldata.DeleteShardsResponse - * @static - * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse instance - */ - DeleteShardsResponse.create = function create(properties) { - return new DeleteShardsResponse(properties); - }; + /** + * 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 DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. - * @function encode - * @memberof vtctldata.DeleteShardsResponse - * @static - * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteShardsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Decodes a CopyState message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.CopyState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.table = reader.string(); + break; + case 2: + message.last_pk = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.DeleteShardsResponse - * @static - * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteShardsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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()); + }; - /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer. - * @function decode - * @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.DeleteShardsResponse} DeleteShardsResponse - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies a CopyState message. + * @function verify + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.table != null && message.hasOwnProperty("table")) + if (!$util.isString(message.table)) + return "table: string expected"; + if (message.last_pk != null && message.hasOwnProperty("last_pk")) + if (!$util.isString(message.last_pk)) + return "last_pk: string expected"; + return null; + }; - /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.DeleteShardsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - DeleteShardsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a CopyState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState + */ + CopyState.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.Stream.CopyState) + return object; + var message = new $root.vtctldata.Workflow.Stream.CopyState(); + if (object.table != null) + message.table = String(object.table); + if (object.last_pk != null) + message.last_pk = String(object.last_pk); + return message; + }; - /** - * Verifies a DeleteShardsResponse message. - * @function verify - * @memberof vtctldata.DeleteShardsResponse - * @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) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Creates a plain object from a CopyState message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.CopyState} message CopyState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.table = ""; + object.last_pk = ""; + } + if (message.table != null && message.hasOwnProperty("table")) + object.table = message.table; + if (message.last_pk != null && message.hasOwnProperty("last_pk")) + object.last_pk = message.last_pk; + return object; + }; - /** - * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.DeleteShardsResponse - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse - */ - DeleteShardsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteShardsResponse) - return object; - return new $root.vtctldata.DeleteShardsResponse(); - }; + /** + * 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); + }; - /** - * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.DeleteShardsResponse - * @static - * @param {vtctldata.DeleteShardsResponse} message DeleteShardsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteShardsResponse.toObject = function toObject() { - return {}; - }; + return CopyState; + })(); - /** - * Converts this DeleteShardsResponse to JSON. - * @function toJSON - * @memberof vtctldata.DeleteShardsResponse - * @instance - * @returns {Object.} JSON object - */ - DeleteShardsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Stream; + })(); - return DeleteShardsResponse; + return Workflow; })(); - vtctldata.DeleteTabletsRequest = (function() { + vtctldata.ChangeTabletTypeRequest = (function() { /** - * Properties of a DeleteTabletsRequest. + * Properties of a ChangeTabletTypeRequest. * @memberof vtctldata - * @interface IDeleteTabletsRequest - * @property {Array.|null} [tablet_aliases] DeleteTabletsRequest tablet_aliases - * @property {boolean|null} [allow_primary] DeleteTabletsRequest allow_primary + * @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 DeleteTabletsRequest. + * Constructs a new ChangeTabletTypeRequest. * @memberof vtctldata - * @classdesc Represents a DeleteTabletsRequest. - * @implements IDeleteTabletsRequest + * @classdesc Represents a ChangeTabletTypeRequest. + * @implements IChangeTabletTypeRequest * @constructor - * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set + * @param {vtctldata.IChangeTabletTypeRequest=} [properties] Properties to set */ - function DeleteTabletsRequest(properties) { - this.tablet_aliases = []; + function ChangeTabletTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54085,91 +55077,101 @@ $root.vtctldata = (function() { } /** - * DeleteTabletsRequest tablet_aliases. - * @member {Array.} tablet_aliases - * @memberof vtctldata.DeleteTabletsRequest + * ChangeTabletTypeRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.ChangeTabletTypeRequest * @instance */ - DeleteTabletsRequest.prototype.tablet_aliases = $util.emptyArray; + ChangeTabletTypeRequest.prototype.tablet_alias = null; /** - * DeleteTabletsRequest allow_primary. - * @member {boolean} allow_primary - * @memberof vtctldata.DeleteTabletsRequest + * ChangeTabletTypeRequest db_type. + * @member {topodata.TabletType} db_type + * @memberof vtctldata.ChangeTabletTypeRequest * @instance */ - DeleteTabletsRequest.prototype.allow_primary = false; + ChangeTabletTypeRequest.prototype.db_type = 0; /** - * Creates a new DeleteTabletsRequest instance using the specified properties. + * 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.DeleteTabletsRequest + * @memberof vtctldata.ChangeTabletTypeRequest * @static - * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest instance + * @param {vtctldata.IChangeTabletTypeRequest=} [properties] Properties to set + * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest instance */ - DeleteTabletsRequest.create = function create(properties) { - return new DeleteTabletsRequest(properties); + ChangeTabletTypeRequest.create = function create(properties) { + return new ChangeTabletTypeRequest(properties); }; /** - * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.ChangeTabletTypeRequest * @static - * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest message or plain object to encode + * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletsRequest.encode = function encode(message, writer) { + ChangeTabletTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_aliases != null && message.tablet_aliases.length) - for (var 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); + 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 DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * Encodes the specified ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.ChangeTabletTypeRequest * @static - * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest message or plain object to encode + * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTabletTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer. + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteTabletsRequest + * @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.DeleteTabletsRequest} DeleteTabletsRequest + * @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 */ - DeleteTabletsRequest.decode = function decode(reader, length) { + ChangeTabletTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTypeRequest(); while (reader.pos < end) { var 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())); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; case 2: - message.allow_primary = reader.bool(); + message.db_type = reader.int32(); + break; + case 3: + message.dry_run = reader.bool(); break; default: reader.skipType(tag & 7); @@ -54180,132 +55182,184 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.ChangeTabletTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest + * @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 */ - DeleteTabletsRequest.decodeDelimited = function decodeDelimited(reader) { + ChangeTabletTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTabletsRequest message. + * Verifies a ChangeTabletTypeRequest message. * @function verify - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.ChangeTabletTypeRequest * @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) { + ChangeTabletTypeRequest.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 (var i = 0; i < message.tablet_aliases.length; ++i) { - var error = $root.topodata.TabletAlias.verify(message.tablet_aliases[i]); - if (error) - return "tablet_aliases." + error; - } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; } - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - if (typeof message.allow_primary !== "boolean") - return "allow_primary: boolean expected"; + 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 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; }; /** - * Creates a DeleteTabletsRequest 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. * @function fromObject - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.ChangeTabletTypeRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest + * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest */ - DeleteTabletsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteTabletsRequest) + ChangeTabletTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ChangeTabletTypeRequest) return object; - var 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 (var 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]); - } + var 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); } - if (object.allow_primary != null) - message.allow_primary = Boolean(object.allow_primary); + switch (object.db_type) { + case "UNKNOWN": + case 0: + message.db_type = 0; + 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; }; /** - * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.ChangeTabletTypeRequest * @static - * @param {vtctldata.DeleteTabletsRequest} message DeleteTabletsRequest + * @param {vtctldata.ChangeTabletTypeRequest} message ChangeTabletTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTabletsRequest.toObject = function toObject(message, options) { + ChangeTabletTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var 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 (var j = 0; j < message.tablet_aliases.length; ++j) - object.tablet_aliases[j] = $root.topodata.TabletAlias.toObject(message.tablet_aliases[j], options); + if (options.defaults) { + object.tablet_alias = null; + object.db_type = options.enums === String ? "UNKNOWN" : 0; + object.dry_run = false; } - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - object.allow_primary = message.allow_primary; + 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] : message.db_type; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + object.dry_run = message.dry_run; return object; }; /** - * Converts this DeleteTabletsRequest to JSON. + * Converts this ChangeTabletTypeRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.ChangeTabletTypeRequest * @instance * @returns {Object.} JSON object */ - DeleteTabletsRequest.prototype.toJSON = function toJSON() { + ChangeTabletTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTabletsRequest; + return ChangeTabletTypeRequest; })(); - vtctldata.DeleteTabletsResponse = (function() { + vtctldata.ChangeTabletTypeResponse = (function() { /** - * Properties of a DeleteTabletsResponse. + * Properties of a ChangeTabletTypeResponse. * @memberof vtctldata - * @interface IDeleteTabletsResponse + * @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 */ /** - * Constructs a new DeleteTabletsResponse. + * Constructs a new ChangeTabletTypeResponse. * @memberof vtctldata - * @classdesc Represents a DeleteTabletsResponse. - * @implements IDeleteTabletsResponse + * @classdesc Represents a ChangeTabletTypeResponse. + * @implements IChangeTabletTypeResponse * @constructor - * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set + * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set */ - function DeleteTabletsResponse(properties) { + function ChangeTabletTypeResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54313,63 +55367,102 @@ $root.vtctldata = (function() { } /** - * Creates a new DeleteTabletsResponse instance using the specified properties. + * 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. * @function create - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.ChangeTabletTypeResponse * @static - * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse instance + * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set + * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse instance */ - DeleteTabletsResponse.create = function create(properties) { - return new DeleteTabletsResponse(properties); + ChangeTabletTypeResponse.create = function create(properties) { + return new ChangeTabletTypeResponse(properties); }; /** - * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.ChangeTabletTypeResponse * @static - * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse message or plain object to encode + * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletsResponse.encode = function encode(message, 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; }; /** - * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.ChangeTabletTypeResponse * @static - * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse message or plain object to encode + * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTabletTypeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer. + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteTabletsResponse + * @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.DeleteTabletsResponse} DeleteTabletsResponse + * @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 */ - DeleteTabletsResponse.decode = function decode(reader, length) { + ChangeTabletTypeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTypeResponse(); while (reader.pos < end) { var 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; @@ -54379,99 +55472,143 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.ChangeTabletTypeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse + * @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 */ - DeleteTabletsResponse.decodeDelimited = function decodeDelimited(reader) { + ChangeTabletTypeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTabletsResponse message. + * Verifies a ChangeTabletTypeResponse message. * @function verify - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.ChangeTabletTypeResponse * @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) { + ChangeTabletTypeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.before_tablet != null && message.hasOwnProperty("before_tablet")) { + var error = $root.topodata.Tablet.verify(message.before_tablet); + if (error) + return "before_tablet." + error; + } + if (message.after_tablet != null && message.hasOwnProperty("after_tablet")) { + var 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 DeleteTabletsResponse 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. * @function fromObject - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.ChangeTabletTypeResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse + * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse */ - DeleteTabletsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteTabletsResponse) + ChangeTabletTypeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ChangeTabletTypeResponse) return object; - return new $root.vtctldata.DeleteTabletsResponse(); + var 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; }; /** - * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.ChangeTabletTypeResponse * @static - * @param {vtctldata.DeleteTabletsResponse} message DeleteTabletsResponse + * @param {vtctldata.ChangeTabletTypeResponse} message ChangeTabletTypeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTabletsResponse.toObject = function toObject() { - return {}; + ChangeTabletTypeResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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; }; /** - * Converts this DeleteTabletsResponse to JSON. + * Converts this ChangeTabletTypeResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.ChangeTabletTypeResponse * @instance * @returns {Object.} JSON object */ - DeleteTabletsResponse.prototype.toJSON = function toJSON() { + ChangeTabletTypeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTabletsResponse; + return ChangeTabletTypeResponse; })(); - vtctldata.EmergencyReparentShardRequest = (function() { + vtctldata.CreateKeyspaceRequest = (function() { /** - * Properties of an EmergencyReparentShardRequest. + * Properties of a CreateKeyspaceRequest. * @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 + * @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 {string|null} [sharding_column_name] CreateKeyspaceRequest sharding_column_name + * @property {topodata.KeyspaceIdType|null} [sharding_column_type] CreateKeyspaceRequest sharding_column_type + * @property {Array.|null} [served_froms] CreateKeyspaceRequest served_froms + * @property {topodata.KeyspaceType|null} [type] CreateKeyspaceRequest type + * @property {string|null} [base_keyspace] CreateKeyspaceRequest base_keyspace + * @property {vttime.ITime|null} [snapshot_time] CreateKeyspaceRequest snapshot_time */ /** - * Constructs a new EmergencyReparentShardRequest. + * Constructs a new CreateKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents an EmergencyReparentShardRequest. - * @implements IEmergencyReparentShardRequest + * @classdesc Represents a CreateKeyspaceRequest. + * @implements ICreateKeyspaceRequest * @constructor - * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set + * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set */ - function EmergencyReparentShardRequest(properties) { - this.ignore_replicas = []; + function CreateKeyspaceRequest(properties) { + this.served_froms = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54479,130 +55616,182 @@ $root.vtctldata = (function() { } /** - * EmergencyReparentShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.EmergencyReparentShardRequest + * CreateKeyspaceRequest name. + * @member {string} name + * @memberof vtctldata.CreateKeyspaceRequest * @instance */ - EmergencyReparentShardRequest.prototype.keyspace = ""; + CreateKeyspaceRequest.prototype.name = ""; /** - * EmergencyReparentShardRequest shard. - * @member {string} shard - * @memberof vtctldata.EmergencyReparentShardRequest + * CreateKeyspaceRequest force. + * @member {boolean} force + * @memberof vtctldata.CreateKeyspaceRequest * @instance */ - EmergencyReparentShardRequest.prototype.shard = ""; + CreateKeyspaceRequest.prototype.force = false; /** - * EmergencyReparentShardRequest new_primary. - * @member {topodata.ITabletAlias|null|undefined} new_primary - * @memberof vtctldata.EmergencyReparentShardRequest + * CreateKeyspaceRequest allow_empty_v_schema. + * @member {boolean} allow_empty_v_schema + * @memberof vtctldata.CreateKeyspaceRequest * @instance */ - EmergencyReparentShardRequest.prototype.new_primary = null; + CreateKeyspaceRequest.prototype.allow_empty_v_schema = false; /** - * EmergencyReparentShardRequest ignore_replicas. - * @member {Array.} ignore_replicas - * @memberof vtctldata.EmergencyReparentShardRequest + * CreateKeyspaceRequest sharding_column_name. + * @member {string} sharding_column_name + * @memberof vtctldata.CreateKeyspaceRequest * @instance */ - EmergencyReparentShardRequest.prototype.ignore_replicas = $util.emptyArray; + CreateKeyspaceRequest.prototype.sharding_column_name = ""; /** - * EmergencyReparentShardRequest wait_replicas_timeout. - * @member {vttime.IDuration|null|undefined} wait_replicas_timeout - * @memberof vtctldata.EmergencyReparentShardRequest + * CreateKeyspaceRequest sharding_column_type. + * @member {topodata.KeyspaceIdType} sharding_column_type + * @memberof vtctldata.CreateKeyspaceRequest * @instance */ - EmergencyReparentShardRequest.prototype.wait_replicas_timeout = null; + CreateKeyspaceRequest.prototype.sharding_column_type = 0; /** - * Creates a new EmergencyReparentShardRequest instance using the specified properties. + * CreateKeyspaceRequest served_froms. + * @member {Array.} served_froms + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.served_froms = $util.emptyArray; + + /** + * 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; + + /** + * Creates a new CreateKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.CreateKeyspaceRequest * @static - * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set - * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest instance + * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest instance */ - EmergencyReparentShardRequest.create = function create(properties) { - return new EmergencyReparentShardRequest(properties); + CreateKeyspaceRequest.create = function create(properties) { + return new CreateKeyspaceRequest(properties); }; /** - * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.CreateKeyspaceRequest * @static - * @param {vtctldata.IEmergencyReparentShardRequest} message EmergencyReparentShardRequest 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 */ - EmergencyReparentShardRequest.encode = function encode(message, writer) { + CreateKeyspaceRequest.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 (var 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.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.sharding_column_name != null && Object.hasOwnProperty.call(message, "sharding_column_name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.sharding_column_name); + if (message.sharding_column_type != null && Object.hasOwnProperty.call(message, "sharding_column_type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.sharding_column_type); + if (message.served_froms != null && message.served_froms.length) + for (var i = 0; i < message.served_froms.length; ++i) + $root.topodata.Keyspace.ServedFrom.encode(message.served_froms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + 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(); return writer; }; /** - * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.CreateKeyspaceRequest * @static - * @param {vtctldata.IEmergencyReparentShardRequest} message EmergencyReparentShardRequest 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 */ - EmergencyReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.EmergencyReparentShardRequest + * @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.EmergencyReparentShardRequest} EmergencyReparentShardRequest + * @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 */ - EmergencyReparentShardRequest.decode = function decode(reader, length) { + CreateKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.name = reader.string(); break; case 2: - message.shard = reader.string(); + message.force = reader.bool(); break; case 3: - message.new_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.allow_empty_v_schema = reader.bool(); 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())); + message.sharding_column_name = reader.string(); break; case 5: - message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + message.sharding_column_type = reader.int32(); + break; + case 6: + if (!(message.served_froms && message.served_froms.length)) + message.served_froms = []; + message.served_froms.push($root.topodata.Keyspace.ServedFrom.decode(reader, reader.uint32())); + 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; default: reader.skipType(tag & 7); @@ -54613,172 +55802,226 @@ $root.vtctldata = (function() { }; /** - * Decodes an EmergencyReparentShardRequest 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.EmergencyReparentShardRequest + * @memberof vtctldata.CreateKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest + * @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 */ - EmergencyReparentShardRequest.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 EmergencyReparentShardRequest message. + * Verifies a CreateKeyspaceRequest message. * @function verify - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.CreateKeyspaceRequest * @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) { + CreateKeyspaceRequest.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")) { - var 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 (var i = 0; i < message.ignore_replicas.length; ++i) { - var error = $root.topodata.TabletAlias.verify(message.ignore_replicas[i]); + 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.sharding_column_name != null && message.hasOwnProperty("sharding_column_name")) + if (!$util.isString(message.sharding_column_name)) + return "sharding_column_name: string expected"; + if (message.sharding_column_type != null && message.hasOwnProperty("sharding_column_type")) + switch (message.sharding_column_type) { + default: + return "sharding_column_type: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.served_froms != null && message.hasOwnProperty("served_froms")) { + if (!Array.isArray(message.served_froms)) + return "served_froms: array expected"; + for (var i = 0; i < message.served_froms.length; ++i) { + var error = $root.topodata.Keyspace.ServedFrom.verify(message.served_froms[i]); if (error) - return "ignore_replicas." + error; + return "served_froms." + error; } } - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { - var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + 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")) { + var error = $root.vttime.Time.verify(message.snapshot_time); if (error) - return "wait_replicas_timeout." + error; + return "snapshot_time." + error; } return null; }; /** - * Creates an EmergencyReparentShardRequest 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.EmergencyReparentShardRequest + * @memberof vtctldata.CreateKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest + * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest */ - EmergencyReparentShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.EmergencyReparentShardRequest) + CreateKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateKeyspaceRequest) return object; - var 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); + var 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); + if (object.sharding_column_name != null) + message.sharding_column_name = String(object.sharding_column_name); + switch (object.sharding_column_type) { + case "UNSET": + case 0: + message.sharding_column_type = 0; + break; + case "UINT64": + case 1: + message.sharding_column_type = 1; + break; + case "BYTES": + case 2: + message.sharding_column_type = 2; + break; } - if (object.ignore_replicas) { - if (!Array.isArray(object.ignore_replicas)) - throw TypeError(".vtctldata.EmergencyReparentShardRequest.ignore_replicas: array expected"); - message.ignore_replicas = []; - for (var 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.served_froms) { + if (!Array.isArray(object.served_froms)) + throw TypeError(".vtctldata.CreateKeyspaceRequest.served_froms: array expected"); + message.served_froms = []; + for (var i = 0; i < object.served_froms.length; ++i) { + if (typeof object.served_froms[i] !== "object") + throw TypeError(".vtctldata.CreateKeyspaceRequest.served_froms: object expected"); + message.served_froms[i] = $root.topodata.Keyspace.ServedFrom.fromObject(object.served_froms[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); + switch (object.type) { + 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); } return message; }; /** - * Creates a plain object from an EmergencyReparentShardRequest 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.EmergencyReparentShardRequest + * @memberof vtctldata.CreateKeyspaceRequest * @static - * @param {vtctldata.EmergencyReparentShardRequest} message EmergencyReparentShardRequest + * @param {vtctldata.CreateKeyspaceRequest} message CreateKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmergencyReparentShardRequest.toObject = function toObject(message, options) { + CreateKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.ignore_replicas = []; + object.served_froms = []; if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.new_primary = null; - object.wait_replicas_timeout = null; + object.name = ""; + object.force = false; + object.allow_empty_v_schema = false; + object.sharding_column_name = ""; + object.sharding_column_type = options.enums === String ? "UNSET" : 0; + object.type = options.enums === String ? "NORMAL" : 0; + object.base_keyspace = ""; + object.snapshot_time = 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 (var j = 0; j < message.ignore_replicas.length; ++j) - object.ignore_replicas[j] = $root.topodata.TabletAlias.toObject(message.ignore_replicas[j], options); + 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.sharding_column_name != null && message.hasOwnProperty("sharding_column_name")) + object.sharding_column_name = message.sharding_column_name; + if (message.sharding_column_type != null && message.hasOwnProperty("sharding_column_type")) + object.sharding_column_type = options.enums === String ? $root.topodata.KeyspaceIdType[message.sharding_column_type] : message.sharding_column_type; + if (message.served_froms && message.served_froms.length) { + object.served_froms = []; + for (var j = 0; j < message.served_froms.length; ++j) + object.served_froms[j] = $root.topodata.Keyspace.ServedFrom.toObject(message.served_froms[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.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $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); return object; }; /** - * Converts this EmergencyReparentShardRequest to JSON. + * Converts this CreateKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.EmergencyReparentShardRequest + * @memberof vtctldata.CreateKeyspaceRequest * @instance * @returns {Object.} JSON object */ - EmergencyReparentShardRequest.prototype.toJSON = function toJSON() { + CreateKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EmergencyReparentShardRequest; + return CreateKeyspaceRequest; })(); - vtctldata.EmergencyReparentShardResponse = (function() { + vtctldata.CreateKeyspaceResponse = (function() { /** - * Properties of an EmergencyReparentShardResponse. + * Properties of a CreateKeyspaceResponse. * @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 ICreateKeyspaceResponse + * @property {vtctldata.IKeyspace|null} [keyspace] CreateKeyspaceResponse keyspace */ /** - * Constructs a new EmergencyReparentShardResponse. + * Constructs a new CreateKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents an EmergencyReparentShardResponse. - * @implements IEmergencyReparentShardResponse + * @classdesc Represents a CreateKeyspaceResponse. + * @implements ICreateKeyspaceResponse * @constructor - * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set + * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set */ - function EmergencyReparentShardResponse(properties) { - this.events = []; + function CreateKeyspaceResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54786,117 +56029,75 @@ $root.vtctldata = (function() { } /** - * 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 + * CreateKeyspaceResponse keyspace. + * @member {vtctldata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.CreateKeyspaceResponse * @instance */ - EmergencyReparentShardResponse.prototype.events = $util.emptyArray; + CreateKeyspaceResponse.prototype.keyspace = null; /** - * Creates a new EmergencyReparentShardResponse instance using the specified properties. + * Creates a new CreateKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.CreateKeyspaceResponse * @static - * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set - * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse instance + * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse instance */ - EmergencyReparentShardResponse.create = function create(properties) { - return new EmergencyReparentShardResponse(properties); + CreateKeyspaceResponse.create = function create(properties) { + return new CreateKeyspaceResponse(properties); }; /** - * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.CreateKeyspaceResponse * @static - * @param {vtctldata.IEmergencyReparentShardResponse} message EmergencyReparentShardResponse 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 */ - EmergencyReparentShardResponse.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.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 (var i = 0; i < message.events.length; ++i) - $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.vtctldata.Keyspace.encode(message.keyspace, 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 CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.CreateKeyspaceResponse * @static - * @param {vtctldata.IEmergencyReparentShardResponse} message EmergencyReparentShardResponse 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 */ - EmergencyReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.EmergencyReparentShardResponse + * @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.EmergencyReparentShardResponse} EmergencyReparentShardResponse + * @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 */ - EmergencyReparentShardResponse.decode = function decode(reader, length) { + CreateKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceResponse(); while (reader.pos < end) { var 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.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -54907,155 +56108,115 @@ $root.vtctldata = (function() { }; /** - * Decodes an EmergencyReparentShardResponse 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.EmergencyReparentShardResponse + * @memberof vtctldata.CreateKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse + * @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 */ - EmergencyReparentShardResponse.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 EmergencyReparentShardResponse message. + * Verifies a CreateKeyspaceResponse message. * @function verify - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.CreateKeyspaceResponse * @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) { + 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.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.promoted_primary != null && message.hasOwnProperty("promoted_primary")) { - var error = $root.topodata.TabletAlias.verify(message.promoted_primary); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.vtctldata.Keyspace.verify(message.keyspace); if (error) - return "promoted_primary." + error; - } - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.logutil.Event.verify(message.events[i]); - if (error) - return "events." + error; - } + return "keyspace." + error; } return null; }; /** - * Creates an EmergencyReparentShardResponse 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.EmergencyReparentShardResponse + * @memberof vtctldata.CreateKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse + * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse */ - EmergencyReparentShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.EmergencyReparentShardResponse) + CreateKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateKeyspaceResponse) return object; - var 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 (var 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]); - } + var 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); } return message; }; /** - * Creates a plain object from an EmergencyReparentShardResponse 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.EmergencyReparentShardResponse + * @memberof vtctldata.CreateKeyspaceResponse * @static - * @param {vtctldata.EmergencyReparentShardResponse} message EmergencyReparentShardResponse + * @param {vtctldata.CreateKeyspaceResponse} message CreateKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmergencyReparentShardResponse.toObject = function toObject(message, options) { + CreateKeyspaceResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.promoted_primary = null; - } + if (options.defaults) + object.keyspace = 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 (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.logutil.Event.toObject(message.events[j], options); - } + object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this EmergencyReparentShardResponse to JSON. + * Converts this CreateKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.EmergencyReparentShardResponse + * @memberof vtctldata.CreateKeyspaceResponse * @instance * @returns {Object.} JSON object */ - EmergencyReparentShardResponse.prototype.toJSON = function toJSON() { + CreateKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EmergencyReparentShardResponse; + return CreateKeyspaceResponse; })(); - vtctldata.FindAllShardsInKeyspaceRequest = (function() { + vtctldata.CreateShardRequest = (function() { /** - * Properties of a FindAllShardsInKeyspaceRequest. + * Properties of a CreateShardRequest. * @memberof vtctldata - * @interface IFindAllShardsInKeyspaceRequest - * @property {string|null} [keyspace] FindAllShardsInKeyspaceRequest keyspace + * @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 FindAllShardsInKeyspaceRequest. + * Constructs a new CreateShardRequest. * @memberof vtctldata - * @classdesc Represents a FindAllShardsInKeyspaceRequest. - * @implements IFindAllShardsInKeyspaceRequest + * @classdesc Represents a CreateShardRequest. + * @implements ICreateShardRequest * @constructor - * @param {vtctldata.IFindAllShardsInKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set */ - function FindAllShardsInKeyspaceRequest(properties) { + function CreateShardRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55063,76 +56224,115 @@ $root.vtctldata = (function() { } /** - * FindAllShardsInKeyspaceRequest keyspace. + * CreateShardRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.CreateShardRequest * @instance */ - FindAllShardsInKeyspaceRequest.prototype.keyspace = ""; + CreateShardRequest.prototype.keyspace = ""; /** - * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. + * CreateShardRequest shard_name. + * @member {string} shard_name + * @memberof vtctldata.CreateShardRequest + * @instance + */ + CreateShardRequest.prototype.shard_name = ""; + + /** + * 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.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.CreateShardRequest * @static - * @param {vtctldata.IFindAllShardsInKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest instance + * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set + * @returns {vtctldata.CreateShardRequest} CreateShardRequest instance */ - FindAllShardsInKeyspaceRequest.create = function create(properties) { - return new FindAllShardsInKeyspaceRequest(properties); + CreateShardRequest.create = function create(properties) { + return new CreateShardRequest(properties); }; /** - * Encodes the specified FindAllShardsInKeyspaceRequest message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.CreateShardRequest * @static - * @param {vtctldata.IFindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest 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 */ - FindAllShardsInKeyspaceRequest.encode = function encode(message, writer) { + CreateShardRequest.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); return writer; }; /** - * Encodes the specified FindAllShardsInKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.CreateShardRequest * @static - * @param {vtctldata.IFindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest 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 */ - FindAllShardsInKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. + * Decodes a CreateShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @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.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest + * @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 */ - FindAllShardsInKeyspaceRequest.decode = function decode(reader, length) { + CreateShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.FindAllShardsInKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.keyspace = reader.string(); break; + case 2: + message.shard_name = reader.string(); + break; + case 3: + message.force = reader.bool(); + break; + case 4: + message.include_parent = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -55142,108 +56342,134 @@ $root.vtctldata = (function() { }; /** - * Decodes a FindAllShardsInKeyspaceRequest 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.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.CreateShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest + * @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 */ - FindAllShardsInKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + CreateShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FindAllShardsInKeyspaceRequest message. + * Verifies a CreateShardRequest message. * @function verify - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.CreateShardRequest * @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) { + CreateShardRequest.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"; return null; }; /** - * Creates a FindAllShardsInKeyspaceRequest 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.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.CreateShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest + * @returns {vtctldata.CreateShardRequest} CreateShardRequest */ - FindAllShardsInKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.FindAllShardsInKeyspaceRequest) + CreateShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateShardRequest) return object; - var message = new $root.vtctldata.FindAllShardsInKeyspaceRequest(); + var 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 a FindAllShardsInKeyspaceRequest 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.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.CreateShardRequest * @static - * @param {vtctldata.FindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest + * @param {vtctldata.CreateShardRequest} message CreateShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FindAllShardsInKeyspaceRequest.toObject = function toObject(message, options) { + CreateShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + 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 FindAllShardsInKeyspaceRequest to JSON. + * Converts this CreateShardRequest to JSON. * @function toJSON - * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @memberof vtctldata.CreateShardRequest * @instance * @returns {Object.} JSON object */ - FindAllShardsInKeyspaceRequest.prototype.toJSON = function toJSON() { + CreateShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FindAllShardsInKeyspaceRequest; + return CreateShardRequest; })(); - vtctldata.FindAllShardsInKeyspaceResponse = (function() { + vtctldata.CreateShardResponse = (function() { /** - * Properties of a FindAllShardsInKeyspaceResponse. + * Properties of a CreateShardResponse. * @memberof vtctldata - * @interface IFindAllShardsInKeyspaceResponse - * @property {Object.|null} [shards] FindAllShardsInKeyspaceResponse shards + * @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 FindAllShardsInKeyspaceResponse. + * Constructs a new CreateShardResponse. * @memberof vtctldata - * @classdesc Represents a FindAllShardsInKeyspaceResponse. - * @implements IFindAllShardsInKeyspaceResponse + * @classdesc Represents a CreateShardResponse. + * @implements ICreateShardResponse * @constructor - * @param {vtctldata.IFindAllShardsInKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set */ - function FindAllShardsInKeyspaceResponse(properties) { - this.shards = {}; + function CreateShardResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55251,97 +56477,101 @@ $root.vtctldata = (function() { } /** - * FindAllShardsInKeyspaceResponse shards. - * @member {Object.} shards - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * 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 * @instance */ - FindAllShardsInKeyspaceResponse.prototype.shards = $util.emptyObject; + CreateShardResponse.prototype.shard_already_exists = false; /** - * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. + * Creates a new CreateShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.CreateShardResponse * @static - * @param {vtctldata.IFindAllShardsInKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse instance + * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set + * @returns {vtctldata.CreateShardResponse} CreateShardResponse instance */ - FindAllShardsInKeyspaceResponse.create = function create(properties) { - return new FindAllShardsInKeyspaceResponse(properties); + CreateShardResponse.create = function create(properties) { + return new CreateShardResponse(properties); }; /** - * Encodes the specified FindAllShardsInKeyspaceResponse message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.CreateShardResponse * @static - * @param {vtctldata.IFindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse 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 */ - FindAllShardsInKeyspaceResponse.encode = function encode(message, writer) { + CreateShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shards != null && Object.hasOwnProperty.call(message, "shards")) - for (var 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.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); return writer; }; /** - * Encodes the specified FindAllShardsInKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.CreateShardResponse * @static - * @param {vtctldata.IFindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse 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 */ - FindAllShardsInKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. + * Decodes a CreateShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @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.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse + * @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 */ - FindAllShardsInKeyspaceResponse.decode = function decode(reader, length) { + CreateShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.FindAllShardsInKeyspaceResponse(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (message.shards === $util.emptyObject) - message.shards = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtctldata.Shard.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.shards[key] = value; + 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(); break; default: reader.skipType(tag & 7); @@ -55352,127 +56582,135 @@ $root.vtctldata = (function() { }; /** - * Decodes a FindAllShardsInKeyspaceResponse 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.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.CreateShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse + * @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 */ - FindAllShardsInKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + CreateShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FindAllShardsInKeyspaceResponse message. + * Verifies a CreateShardResponse message. * @function verify - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.CreateShardResponse * @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) { + CreateShardResponse.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"; - var key = Object.keys(message.shards); - for (var i = 0; i < key.length; ++i) { - var error = $root.vtctldata.Shard.verify(message.shards[key[i]]); - if (error) - return "shards." + error; - } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.vtctldata.Keyspace.verify(message.keyspace); + if (error) + return "keyspace." + error; + } + if (message.shard != null && message.hasOwnProperty("shard")) { + var error = $root.vtctldata.Shard.verify(message.shard); + if (error) + return "shard." + 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 FindAllShardsInKeyspaceResponse 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.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.CreateShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse + * @returns {vtctldata.CreateShardResponse} CreateShardResponse */ - FindAllShardsInKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.FindAllShardsInKeyspaceResponse) + CreateShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateShardResponse) return object; - var message = new $root.vtctldata.FindAllShardsInKeyspaceResponse(); - if (object.shards) { - if (typeof object.shards !== "object") - throw TypeError(".vtctldata.FindAllShardsInKeyspaceResponse.shards: object expected"); - message.shards = {}; - for (var 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]]); - } + var 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); } + if (object.shard_already_exists != null) + message.shard_already_exists = Boolean(object.shard_already_exists); return message; }; /** - * Creates a plain object from a FindAllShardsInKeyspaceResponse 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.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.CreateShardResponse * @static - * @param {vtctldata.FindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse + * @param {vtctldata.CreateShardResponse} message CreateShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FindAllShardsInKeyspaceResponse.toObject = function toObject(message, options) { + CreateShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.shards = {}; - var keys2; - if (message.shards && (keys2 = Object.keys(message.shards)).length) { - object.shards = {}; - for (var j = 0; j < keys2.length; ++j) - object.shards[keys2[j]] = $root.vtctldata.Shard.toObject(message.shards[keys2[j]], options); + if (options.defaults) { + object.keyspace = null; + object.shard = null; + object.shard_already_exists = false; } + 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 FindAllShardsInKeyspaceResponse to JSON. + * Converts this CreateShardResponse to JSON. * @function toJSON - * @memberof vtctldata.FindAllShardsInKeyspaceResponse + * @memberof vtctldata.CreateShardResponse * @instance * @returns {Object.} JSON object */ - FindAllShardsInKeyspaceResponse.prototype.toJSON = function toJSON() { + CreateShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FindAllShardsInKeyspaceResponse; + return CreateShardResponse; })(); - vtctldata.GetBackupsRequest = (function() { + vtctldata.DeleteKeyspaceRequest = (function() { /** - * Properties of a GetBackupsRequest. + * Properties of a DeleteKeyspaceRequest. * @memberof vtctldata - * @interface IGetBackupsRequest - * @property {string|null} [keyspace] GetBackupsRequest keyspace - * @property {string|null} [shard] GetBackupsRequest shard + * @interface IDeleteKeyspaceRequest + * @property {string|null} [keyspace] DeleteKeyspaceRequest keyspace + * @property {boolean|null} [recursive] DeleteKeyspaceRequest recursive */ /** - * Constructs a new GetBackupsRequest. + * Constructs a new DeleteKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents a GetBackupsRequest. - * @implements IGetBackupsRequest + * @classdesc Represents a DeleteKeyspaceRequest. + * @implements IDeleteKeyspaceRequest * @constructor - * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set + * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set */ - function GetBackupsRequest(properties) { + function DeleteKeyspaceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55480,80 +56718,80 @@ $root.vtctldata = (function() { } /** - * GetBackupsRequest keyspace. + * DeleteKeyspaceRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @instance */ - GetBackupsRequest.prototype.keyspace = ""; + DeleteKeyspaceRequest.prototype.keyspace = ""; /** - * GetBackupsRequest shard. - * @member {string} shard - * @memberof vtctldata.GetBackupsRequest + * DeleteKeyspaceRequest recursive. + * @member {boolean} recursive + * @memberof vtctldata.DeleteKeyspaceRequest * @instance */ - GetBackupsRequest.prototype.shard = ""; + DeleteKeyspaceRequest.prototype.recursive = false; /** - * Creates a new GetBackupsRequest instance using the specified properties. + * Creates a new DeleteKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static - * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest instance + * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest instance */ - GetBackupsRequest.create = function create(properties) { - return new GetBackupsRequest(properties); + DeleteKeyspaceRequest.create = function create(properties) { + return new DeleteKeyspaceRequest(properties); }; /** - * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static - * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest 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 */ - GetBackupsRequest.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.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recursive); return writer; }; /** - * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static - * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest 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 */ - GetBackupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBackupsRequest message from the specified reader or buffer. + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetBackupsRequest + * @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.GetBackupsRequest} GetBackupsRequest + * @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 */ - GetBackupsRequest.decode = function decode(reader, length) { + DeleteKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55561,7 +56799,7 @@ $root.vtctldata = (function() { message.keyspace = reader.string(); break; case 2: - message.shard = reader.string(); + message.recursive = reader.bool(); break; default: reader.skipType(tag & 7); @@ -55572,117 +56810,115 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetBackupsRequest 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.GetBackupsRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest + * @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 */ - GetBackupsRequest.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 GetBackupsRequest message. + * Verifies a DeleteKeyspaceRequest message. * @function verify - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @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) { + 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.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; + if (message.recursive != null && message.hasOwnProperty("recursive")) + if (typeof message.recursive !== "boolean") + return "recursive: boolean expected"; return null; }; /** - * Creates a GetBackupsRequest 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.GetBackupsRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest + * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest */ - GetBackupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetBackupsRequest) + DeleteKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteKeyspaceRequest) return object; - var message = new $root.vtctldata.GetBackupsRequest(); + var message = new $root.vtctldata.DeleteKeyspaceRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); + if (object.recursive != null) + message.recursive = Boolean(object.recursive); return message; }; /** - * Creates a plain object from a GetBackupsRequest 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.GetBackupsRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static - * @param {vtctldata.GetBackupsRequest} message GetBackupsRequest + * @param {vtctldata.DeleteKeyspaceRequest} message DeleteKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBackupsRequest.toObject = function toObject(message, options) { + DeleteKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.keyspace = ""; - object.shard = ""; + object.recursive = 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.recursive != null && message.hasOwnProperty("recursive")) + object.recursive = message.recursive; return object; }; /** - * Converts this GetBackupsRequest to JSON. + * Converts this DeleteKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @instance * @returns {Object.} JSON object */ - GetBackupsRequest.prototype.toJSON = function toJSON() { + DeleteKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetBackupsRequest; + return DeleteKeyspaceRequest; })(); - vtctldata.GetBackupsResponse = (function() { + vtctldata.DeleteKeyspaceResponse = (function() { /** - * Properties of a GetBackupsResponse. + * Properties of a DeleteKeyspaceResponse. * @memberof vtctldata - * @interface IGetBackupsResponse - * @property {Array.|null} [backups] GetBackupsResponse backups + * @interface IDeleteKeyspaceResponse */ /** - * Constructs a new GetBackupsResponse. + * Constructs a new DeleteKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents a GetBackupsResponse. - * @implements IGetBackupsResponse + * @classdesc Represents a DeleteKeyspaceResponse. + * @implements IDeleteKeyspaceResponse * @constructor - * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set + * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set */ - function GetBackupsResponse(properties) { - this.backups = []; + function DeleteKeyspaceResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55690,79 +56926,63 @@ $root.vtctldata = (function() { } /** - * GetBackupsResponse backups. - * @member {Array.} backups - * @memberof vtctldata.GetBackupsResponse - * @instance - */ - GetBackupsResponse.prototype.backups = $util.emptyArray; - - /** - * Creates a new GetBackupsResponse instance using the specified properties. + * Creates a new DeleteKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static - * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse instance + * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse instance */ - GetBackupsResponse.create = function create(properties) { - return new GetBackupsResponse(properties); + DeleteKeyspaceResponse.create = function create(properties) { + return new DeleteKeyspaceResponse(properties); }; /** - * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static - * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse 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 */ - GetBackupsResponse.encode = function encode(message, writer) { + DeleteKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.backups != null && message.backups.length) - for (var 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 GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static - * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse 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 */ - GetBackupsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBackupsResponse message from the specified reader or buffer. + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetBackupsResponse + * @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.GetBackupsResponse} GetBackupsResponse + * @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 */ - GetBackupsResponse.decode = function decode(reader, length) { + DeleteKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceResponse(); while (reader.pos < end) { var 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; @@ -55772,187 +56992,203 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetBackupsResponse 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.GetBackupsResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse + * @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 */ - GetBackupsResponse.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 GetBackupsResponse message. + * Verifies a DeleteKeyspaceResponse message. * @function verify - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @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) { + DeleteKeyspaceResponse.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 (var i = 0; i < message.backups.length; ++i) { - var error = $root.mysqlctl.BackupInfo.verify(message.backups[i]); - if (error) - return "backups." + error; - } - } return null; }; /** - * Creates a GetBackupsResponse 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.GetBackupsResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse + * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse */ - GetBackupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetBackupsResponse) + DeleteKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteKeyspaceResponse) return object; - var message = new $root.vtctldata.GetBackupsResponse(); - if (object.backups) { - if (!Array.isArray(object.backups)) - throw TypeError(".vtctldata.GetBackupsResponse.backups: array expected"); - message.backups = []; - for (var 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; + return new $root.vtctldata.DeleteKeyspaceResponse(); }; /** - * Creates a plain object from a GetBackupsResponse 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.GetBackupsResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static - * @param {vtctldata.GetBackupsResponse} message GetBackupsResponse + * @param {vtctldata.DeleteKeyspaceResponse} message DeleteKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBackupsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.backups = []; - if (message.backups && message.backups.length) { - object.backups = []; - for (var j = 0; j < message.backups.length; ++j) - object.backups[j] = $root.mysqlctl.BackupInfo.toObject(message.backups[j], options); - } - return object; + DeleteKeyspaceResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetBackupsResponse to JSON. + * Converts this DeleteKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @instance * @returns {Object.} JSON object */ - GetBackupsResponse.prototype.toJSON = function toJSON() { + DeleteKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetBackupsResponse; + return DeleteKeyspaceResponse; })(); - vtctldata.GetCellInfoNamesRequest = (function() { + vtctldata.DeleteShardsRequest = (function() { /** - * Properties of a GetCellInfoNamesRequest. + * Properties of a DeleteShardsRequest. * @memberof vtctldata - * @interface IGetCellInfoNamesRequest + * @interface IDeleteShardsRequest + * @property {Array.|null} [shards] DeleteShardsRequest shards + * @property {boolean|null} [recursive] DeleteShardsRequest recursive + * @property {boolean|null} [even_if_serving] DeleteShardsRequest even_if_serving */ /** - * Constructs a new GetCellInfoNamesRequest. + * Constructs a new DeleteShardsRequest. * @memberof vtctldata - * @classdesc Represents a GetCellInfoNamesRequest. - * @implements IGetCellInfoNamesRequest + * @classdesc Represents a DeleteShardsRequest. + * @implements IDeleteShardsRequest * @constructor - * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set + * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set + */ + function DeleteShardsRequest(properties) { + this.shards = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * 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 */ - function GetCellInfoNamesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + DeleteShardsRequest.prototype.even_if_serving = false; /** - * Creates a new GetCellInfoNamesRequest instance using the specified properties. + * Creates a new DeleteShardsRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.DeleteShardsRequest * @static - * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest instance + * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest instance */ - GetCellInfoNamesRequest.create = function create(properties) { - return new GetCellInfoNamesRequest(properties); + DeleteShardsRequest.create = function create(properties) { + return new DeleteShardsRequest(properties); }; /** - * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.DeleteShardsRequest * @static - * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest 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 */ - GetCellInfoNamesRequest.encode = function encode(message, writer) { + DeleteShardsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.shards != null && message.shards.length) + for (var 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); return writer; }; /** - * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.DeleteShardsRequest * @static - * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest 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 */ - GetCellInfoNamesRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteShardsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. + * Decodes a DeleteShardsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoNamesRequest + * @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.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @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 */ - GetCellInfoNamesRequest.decode = function decode(reader, length) { + DeleteShardsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsRequest(); while (reader.pos < end) { var 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; default: reader.skipType(tag & 7); break; @@ -55962,95 +57198,141 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellInfoNamesRequest 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.GetCellInfoNamesRequest + * @memberof vtctldata.DeleteShardsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @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 */ - GetCellInfoNamesRequest.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 GetCellInfoNamesRequest message. + * Verifies a DeleteShardsRequest message. * @function verify - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.DeleteShardsRequest * @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) { + DeleteShardsRequest.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 (var i = 0; i < message.shards.length; ++i) { + var 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"; return null; }; /** - * Creates a GetCellInfoNamesRequest 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.GetCellInfoNamesRequest + * @memberof vtctldata.DeleteShardsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest */ - GetCellInfoNamesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoNamesRequest) + DeleteShardsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteShardsRequest) return object; - return new $root.vtctldata.GetCellInfoNamesRequest(); + var message = new $root.vtctldata.DeleteShardsRequest(); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.DeleteShardsRequest.shards: array expected"); + message.shards = []; + for (var 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); + return message; }; /** - * Creates a plain object from a GetCellInfoNamesRequest 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.GetCellInfoNamesRequest + * @memberof vtctldata.DeleteShardsRequest * @static - * @param {vtctldata.GetCellInfoNamesRequest} message GetCellInfoNamesRequest + * @param {vtctldata.DeleteShardsRequest} message DeleteShardsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoNamesRequest.toObject = function toObject() { - return {}; + DeleteShardsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.shards = []; + if (options.defaults) { + object.recursive = false; + object.even_if_serving = false; + } + if (message.shards && message.shards.length) { + object.shards = []; + for (var 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; + return object; }; /** - * Converts this GetCellInfoNamesRequest to JSON. + * Converts this DeleteShardsRequest to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.DeleteShardsRequest * @instance * @returns {Object.} JSON object */ - GetCellInfoNamesRequest.prototype.toJSON = function toJSON() { + DeleteShardsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellInfoNamesRequest; + return DeleteShardsRequest; })(); - vtctldata.GetCellInfoNamesResponse = (function() { + vtctldata.DeleteShardsResponse = (function() { /** - * Properties of a GetCellInfoNamesResponse. + * Properties of a DeleteShardsResponse. * @memberof vtctldata - * @interface IGetCellInfoNamesResponse - * @property {Array.|null} [names] GetCellInfoNamesResponse names + * @interface IDeleteShardsResponse */ /** - * Constructs a new GetCellInfoNamesResponse. + * Constructs a new DeleteShardsResponse. * @memberof vtctldata - * @classdesc Represents a GetCellInfoNamesResponse. - * @implements IGetCellInfoNamesResponse + * @classdesc Represents a DeleteShardsResponse. + * @implements IDeleteShardsResponse * @constructor - * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set + * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set */ - function GetCellInfoNamesResponse(properties) { - this.names = []; + function DeleteShardsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56058,79 +57340,63 @@ $root.vtctldata = (function() { } /** - * GetCellInfoNamesResponse names. - * @member {Array.} names - * @memberof vtctldata.GetCellInfoNamesResponse - * @instance - */ - GetCellInfoNamesResponse.prototype.names = $util.emptyArray; - - /** - * Creates a new GetCellInfoNamesResponse instance using the specified properties. + * Creates a new DeleteShardsResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.DeleteShardsResponse * @static - * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse instance + * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse instance */ - GetCellInfoNamesResponse.create = function create(properties) { - return new GetCellInfoNamesResponse(properties); + DeleteShardsResponse.create = function create(properties) { + return new DeleteShardsResponse(properties); }; /** - * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.DeleteShardsResponse * @static - * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse 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 */ - GetCellInfoNamesResponse.encode = function encode(message, writer) { + DeleteShardsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); return writer; }; /** - * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.DeleteShardsResponse * @static - * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse 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 */ - GetCellInfoNamesResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteShardsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. + * Decodes a DeleteShardsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoNamesResponse + * @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.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @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 */ - GetCellInfoNamesResponse.decode = function decode(reader, length) { + DeleteShardsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsResponse(); while (reader.pos < end) { var 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; @@ -56140,119 +57406,96 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellInfoNamesResponse 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.GetCellInfoNamesResponse + * @memberof vtctldata.DeleteShardsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @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 */ - GetCellInfoNamesResponse.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 GetCellInfoNamesResponse message. + * Verifies a DeleteShardsResponse message. * @function verify - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.DeleteShardsResponse * @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) { + DeleteShardsResponse.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 (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; - } return null; }; /** - * Creates a GetCellInfoNamesResponse 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.GetCellInfoNamesResponse + * @memberof vtctldata.DeleteShardsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse */ - GetCellInfoNamesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoNamesResponse) + DeleteShardsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteShardsResponse) return object; - var message = new $root.vtctldata.GetCellInfoNamesResponse(); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".vtctldata.GetCellInfoNamesResponse.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); - } - return message; + return new $root.vtctldata.DeleteShardsResponse(); }; /** - * Creates a plain object from a GetCellInfoNamesResponse 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.GetCellInfoNamesResponse + * @memberof vtctldata.DeleteShardsResponse * @static - * @param {vtctldata.GetCellInfoNamesResponse} message GetCellInfoNamesResponse + * @param {vtctldata.DeleteShardsResponse} message DeleteShardsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoNamesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.names = []; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; - } - return object; + DeleteShardsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetCellInfoNamesResponse to JSON. + * Converts this DeleteShardsResponse to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.DeleteShardsResponse * @instance * @returns {Object.} JSON object */ - GetCellInfoNamesResponse.prototype.toJSON = function toJSON() { + DeleteShardsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellInfoNamesResponse; + return DeleteShardsResponse; })(); - vtctldata.GetCellInfoRequest = (function() { + vtctldata.DeleteTabletsRequest = (function() { /** - * Properties of a GetCellInfoRequest. + * Properties of a DeleteTabletsRequest. * @memberof vtctldata - * @interface IGetCellInfoRequest - * @property {string|null} [cell] GetCellInfoRequest cell + * @interface IDeleteTabletsRequest + * @property {Array.|null} [tablet_aliases] DeleteTabletsRequest tablet_aliases + * @property {boolean|null} [allow_primary] DeleteTabletsRequest allow_primary */ /** - * Constructs a new GetCellInfoRequest. + * Constructs a new DeleteTabletsRequest. * @memberof vtctldata - * @classdesc Represents a GetCellInfoRequest. - * @implements IGetCellInfoRequest + * @classdesc Represents a DeleteTabletsRequest. + * @implements IDeleteTabletsRequest * @constructor - * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set + * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set */ - function GetCellInfoRequest(properties) { + function DeleteTabletsRequest(properties) { + this.tablet_aliases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56260,75 +57503,91 @@ $root.vtctldata = (function() { } /** - * GetCellInfoRequest cell. - * @member {string} cell - * @memberof vtctldata.GetCellInfoRequest + * DeleteTabletsRequest tablet_aliases. + * @member {Array.} tablet_aliases + * @memberof vtctldata.DeleteTabletsRequest * @instance */ - GetCellInfoRequest.prototype.cell = ""; + DeleteTabletsRequest.prototype.tablet_aliases = $util.emptyArray; /** - * Creates a new GetCellInfoRequest instance using the specified properties. + * 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. * @function create - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.DeleteTabletsRequest * @static - * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest instance + * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest instance */ - GetCellInfoRequest.create = function create(properties) { - return new GetCellInfoRequest(properties); + DeleteTabletsRequest.create = function create(properties) { + return new DeleteTabletsRequest(properties); }; /** - * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.DeleteTabletsRequest * @static - * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest 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 */ - GetCellInfoRequest.encode = function encode(message, writer) { + DeleteTabletsRequest.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.tablet_aliases != null && message.tablet_aliases.length) + for (var 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 GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.DeleteTabletsRequest * @static - * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest 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 */ - GetCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer. + * Decodes a DeleteTabletsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoRequest + * @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.GetCellInfoRequest} GetCellInfoRequest + * @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 */ - GetCellInfoRequest.decode = function decode(reader, length) { + DeleteTabletsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cell = reader.string(); + 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); @@ -56339,107 +57598,132 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellInfoRequest 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.GetCellInfoRequest + * @memberof vtctldata.DeleteTabletsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest + * @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 */ - GetCellInfoRequest.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 GetCellInfoRequest message. + * Verifies a DeleteTabletsRequest message. * @function verify - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.DeleteTabletsRequest * @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) { + DeleteTabletsRequest.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.tablet_aliases != null && message.hasOwnProperty("tablet_aliases")) { + if (!Array.isArray(message.tablet_aliases)) + return "tablet_aliases: array expected"; + for (var i = 0; i < message.tablet_aliases.length; ++i) { + var 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 GetCellInfoRequest 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.GetCellInfoRequest + * @memberof vtctldata.DeleteTabletsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest + * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest */ - GetCellInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoRequest) + DeleteTabletsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteTabletsRequest) return object; - var message = new $root.vtctldata.GetCellInfoRequest(); - if (object.cell != null) - message.cell = String(object.cell); + var 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 (var 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; }; /** - * Creates a plain object from a GetCellInfoRequest 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.GetCellInfoRequest + * @memberof vtctldata.DeleteTabletsRequest * @static - * @param {vtctldata.GetCellInfoRequest} message GetCellInfoRequest + * @param {vtctldata.DeleteTabletsRequest} message DeleteTabletsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoRequest.toObject = function toObject(message, options) { + DeleteTabletsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.tablet_aliases = []; if (options.defaults) - object.cell = ""; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; + object.allow_primary = false; + if (message.tablet_aliases && message.tablet_aliases.length) { + object.tablet_aliases = []; + for (var 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; }; /** - * Converts this GetCellInfoRequest to JSON. + * Converts this DeleteTabletsRequest to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.DeleteTabletsRequest * @instance * @returns {Object.} JSON object */ - GetCellInfoRequest.prototype.toJSON = function toJSON() { + DeleteTabletsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellInfoRequest; + return DeleteTabletsRequest; })(); - vtctldata.GetCellInfoResponse = (function() { + vtctldata.DeleteTabletsResponse = (function() { /** - * Properties of a GetCellInfoResponse. + * Properties of a DeleteTabletsResponse. * @memberof vtctldata - * @interface IGetCellInfoResponse - * @property {topodata.ICellInfo|null} [cell_info] GetCellInfoResponse cell_info + * @interface IDeleteTabletsResponse */ /** - * Constructs a new GetCellInfoResponse. + * Constructs a new DeleteTabletsResponse. * @memberof vtctldata - * @classdesc Represents a GetCellInfoResponse. - * @implements IGetCellInfoResponse + * @classdesc Represents a DeleteTabletsResponse. + * @implements IDeleteTabletsResponse * @constructor - * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set + * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set */ - function GetCellInfoResponse(properties) { + function DeleteTabletsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56447,76 +57731,63 @@ $root.vtctldata = (function() { } /** - * 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. + * Creates a new DeleteTabletsResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.DeleteTabletsResponse * @static - * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse instance + * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse instance */ - GetCellInfoResponse.create = function create(properties) { - return new GetCellInfoResponse(properties); + DeleteTabletsResponse.create = function create(properties) { + return new DeleteTabletsResponse(properties); }; /** - * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.DeleteTabletsResponse * @static - * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse 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 */ - GetCellInfoResponse.encode = function encode(message, writer) { + DeleteTabletsResponse.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 GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.DeleteTabletsResponse * @static - * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse 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 */ - GetCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer. + * Decodes a DeleteTabletsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoResponse + * @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.GetCellInfoResponse} GetCellInfoResponse + * @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 */ - GetCellInfoResponse.decode = function decode(reader, length) { + DeleteTabletsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsResponse(); while (reader.pos < end) { var 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; @@ -56526,111 +57797,99 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellInfoResponse 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.GetCellInfoResponse + * @memberof vtctldata.DeleteTabletsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse + * @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 */ - GetCellInfoResponse.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 GetCellInfoResponse message. + * Verifies a DeleteTabletsResponse message. * @function verify - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.DeleteTabletsResponse * @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) { + DeleteTabletsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) { - var error = $root.topodata.CellInfo.verify(message.cell_info); - if (error) - return "cell_info." + error; - } return null; }; /** - * Creates a GetCellInfoResponse 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.GetCellInfoResponse + * @memberof vtctldata.DeleteTabletsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse + * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse */ - GetCellInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoResponse) + DeleteTabletsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteTabletsResponse) return object; - var 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; + return new $root.vtctldata.DeleteTabletsResponse(); }; /** - * Creates a plain object from a GetCellInfoResponse 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.GetCellInfoResponse + * @memberof vtctldata.DeleteTabletsResponse * @static - * @param {vtctldata.GetCellInfoResponse} message GetCellInfoResponse + * @param {vtctldata.DeleteTabletsResponse} message DeleteTabletsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var 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; + DeleteTabletsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetCellInfoResponse to JSON. + * Converts this DeleteTabletsResponse to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.DeleteTabletsResponse * @instance * @returns {Object.} JSON object */ - GetCellInfoResponse.prototype.toJSON = function toJSON() { + DeleteTabletsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellInfoResponse; + return DeleteTabletsResponse; })(); - vtctldata.GetCellsAliasesRequest = (function() { + vtctldata.EmergencyReparentShardRequest = (function() { /** - * Properties of a GetCellsAliasesRequest. + * Properties of an EmergencyReparentShardRequest. * @memberof vtctldata - * @interface IGetCellsAliasesRequest + * @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 */ /** - * Constructs a new GetCellsAliasesRequest. + * Constructs a new EmergencyReparentShardRequest. * @memberof vtctldata - * @classdesc Represents a GetCellsAliasesRequest. - * @implements IGetCellsAliasesRequest + * @classdesc Represents an EmergencyReparentShardRequest. + * @implements IEmergencyReparentShardRequest * @constructor - * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set + * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set */ - function GetCellsAliasesRequest(properties) { + function EmergencyReparentShardRequest(properties) { + this.ignore_replicas = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56638,63 +57897,131 @@ $root.vtctldata = (function() { } /** - * Creates a new GetCellsAliasesRequest instance using the specified properties. + * 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; + + /** + * Creates a new EmergencyReparentShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static - * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest instance + * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set + * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest instance */ - GetCellsAliasesRequest.create = function create(properties) { - return new GetCellsAliasesRequest(properties); + EmergencyReparentShardRequest.create = function create(properties) { + return new EmergencyReparentShardRequest(properties); }; /** - * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static - * @param {vtctldata.IGetCellsAliasesRequest} message GetCellsAliasesRequest 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 */ - GetCellsAliasesRequest.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.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 (var 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(); return writer; }; /** - * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static - * @param {vtctldata.IGetCellsAliasesRequest} message GetCellsAliasesRequest 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 */ - GetCellsAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + EmergencyReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellsAliasesRequest + * @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.GetCellsAliasesRequest} GetCellsAliasesRequest + * @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 */ - GetCellsAliasesRequest.decode = function decode(reader, length) { + EmergencyReparentShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardRequest(); while (reader.pos < end) { var 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; default: reader.skipType(tag & 7); break; @@ -56704,95 +58031,172 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellsAliasesRequest 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.GetCellsAliasesRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest + * @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 */ - GetCellsAliasesRequest.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 GetCellsAliasesRequest message. + * Verifies an EmergencyReparentShardRequest message. * @function verify - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @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) { + 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.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.new_primary != null && message.hasOwnProperty("new_primary")) { + var 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 (var i = 0; i < message.ignore_replicas.length; ++i) { + var 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")) { + var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; + } return null; }; /** - * Creates a GetCellsAliasesRequest 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.GetCellsAliasesRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest + * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest */ - GetCellsAliasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellsAliasesRequest) + EmergencyReparentShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.EmergencyReparentShardRequest) return object; - return new $root.vtctldata.GetCellsAliasesRequest(); + var 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 (var 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); + } + return message; }; /** - * Creates a plain object from a GetCellsAliasesRequest 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.GetCellsAliasesRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static - * @param {vtctldata.GetCellsAliasesRequest} message GetCellsAliasesRequest + * @param {vtctldata.EmergencyReparentShardRequest} message EmergencyReparentShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellsAliasesRequest.toObject = function toObject() { - return {}; + EmergencyReparentShardRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var 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; + } + 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 (var 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); + return object; }; /** - * Converts this GetCellsAliasesRequest to JSON. + * Converts this EmergencyReparentShardRequest to JSON. * @function toJSON - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @instance * @returns {Object.} JSON object */ - GetCellsAliasesRequest.prototype.toJSON = function toJSON() { + EmergencyReparentShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellsAliasesRequest; + return EmergencyReparentShardRequest; })(); - vtctldata.GetCellsAliasesResponse = (function() { + vtctldata.EmergencyReparentShardResponse = (function() { /** - * Properties of a GetCellsAliasesResponse. + * Properties of an EmergencyReparentShardResponse. * @memberof vtctldata - * @interface IGetCellsAliasesResponse - * @property {Object.|null} [aliases] GetCellsAliasesResponse aliases + * @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 GetCellsAliasesResponse. + * Constructs a new EmergencyReparentShardResponse. * @memberof vtctldata - * @classdesc Represents a GetCellsAliasesResponse. - * @implements IGetCellsAliasesResponse + * @classdesc Represents an EmergencyReparentShardResponse. + * @implements IEmergencyReparentShardResponse * @constructor - * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set + * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set */ - function GetCellsAliasesResponse(properties) { - this.aliases = {}; + function EmergencyReparentShardResponse(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56800,97 +58204,117 @@ $root.vtctldata = (function() { } /** - * GetCellsAliasesResponse aliases. - * @member {Object.} aliases - * @memberof vtctldata.GetCellsAliasesResponse + * EmergencyReparentShardResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.EmergencyReparentShardResponse * @instance */ - GetCellsAliasesResponse.prototype.aliases = $util.emptyObject; + EmergencyReparentShardResponse.prototype.keyspace = ""; /** - * Creates a new GetCellsAliasesResponse 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.GetCellsAliasesResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static - * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse instance + * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set + * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse instance */ - GetCellsAliasesResponse.create = function create(properties) { - return new GetCellsAliasesResponse(properties); + EmergencyReparentShardResponse.create = function create(properties) { + return new EmergencyReparentShardResponse(properties); }; /** - * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static - * @param {vtctldata.IGetCellsAliasesResponse} message GetCellsAliasesResponse 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 */ - GetCellsAliasesResponse.encode = function encode(message, writer) { + EmergencyReparentShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.aliases != null && Object.hasOwnProperty.call(message, "aliases")) - for (var 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.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 (var 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 GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * Encodes the specified EmergencyReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static - * @param {vtctldata.IGetCellsAliasesResponse} message GetCellsAliasesResponse 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 */ - GetCellsAliasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + EmergencyReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellsAliasesResponse + * @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.GetCellsAliasesResponse} GetCellsAliasesResponse + * @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 */ - GetCellsAliasesResponse.decode = function decode(reader, length) { + EmergencyReparentShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesResponse(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (message.aliases === $util.emptyObject) - message.aliases = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.topodata.CellsAlias.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.aliases[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: reader.skipType(tag & 7); @@ -56901,125 +58325,155 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellsAliasesResponse 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.GetCellsAliasesResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse + * @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 */ - GetCellsAliasesResponse.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 GetCellsAliasesResponse message. + * Verifies an EmergencyReparentShardResponse message. * @function verify - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @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) { + EmergencyReparentShardResponse.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"; - var key = Object.keys(message.aliases); - for (var i = 0; i < key.length; ++i) { - var error = $root.topodata.CellsAlias.verify(message.aliases[key[i]]); + 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")) { + var 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 (var i = 0; i < message.events.length; ++i) { + var error = $root.logutil.Event.verify(message.events[i]); if (error) - return "aliases." + error; + return "events." + error; } } return null; }; /** - * Creates a GetCellsAliasesResponse 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.GetCellsAliasesResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse + * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse */ - GetCellsAliasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellsAliasesResponse) + EmergencyReparentShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.EmergencyReparentShardResponse) return object; - var message = new $root.vtctldata.GetCellsAliasesResponse(); - if (object.aliases) { - if (typeof object.aliases !== "object") - throw TypeError(".vtctldata.GetCellsAliasesResponse.aliases: object expected"); - message.aliases = {}; - for (var 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]]); + var 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 (var 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 GetCellsAliasesResponse 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.GetCellsAliasesResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static - * @param {vtctldata.GetCellsAliasesResponse} message GetCellsAliasesResponse + * @param {vtctldata.EmergencyReparentShardResponse} message EmergencyReparentShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellsAliasesResponse.toObject = function toObject(message, options) { + EmergencyReparentShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.aliases = {}; - var keys2; - if (message.aliases && (keys2 = Object.keys(message.aliases)).length) { - object.aliases = {}; - for (var j = 0; j < keys2.length; ++j) - object.aliases[keys2[j]] = $root.topodata.CellsAlias.toObject(message.aliases[keys2[j]], options); + 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 (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); } return object; }; /** - * Converts this GetCellsAliasesResponse to JSON. + * Converts this EmergencyReparentShardResponse to JSON. * @function toJSON - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @instance * @returns {Object.} JSON object */ - GetCellsAliasesResponse.prototype.toJSON = function toJSON() { + EmergencyReparentShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellsAliasesResponse; + return EmergencyReparentShardResponse; })(); - vtctldata.GetKeyspacesRequest = (function() { + vtctldata.FindAllShardsInKeyspaceRequest = (function() { /** - * Properties of a GetKeyspacesRequest. + * Properties of a FindAllShardsInKeyspaceRequest. * @memberof vtctldata - * @interface IGetKeyspacesRequest + * @interface IFindAllShardsInKeyspaceRequest + * @property {string|null} [keyspace] FindAllShardsInKeyspaceRequest keyspace */ /** - * Constructs a new GetKeyspacesRequest. + * Constructs a new FindAllShardsInKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents a GetKeyspacesRequest. - * @implements IGetKeyspacesRequest + * @classdesc Represents a FindAllShardsInKeyspaceRequest. + * @implements IFindAllShardsInKeyspaceRequest * @constructor - * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set + * @param {vtctldata.IFindAllShardsInKeyspaceRequest=} [properties] Properties to set */ - function GetKeyspacesRequest(properties) { + function FindAllShardsInKeyspaceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57027,63 +58481,76 @@ $root.vtctldata = (function() { } /** - * Creates a new GetKeyspacesRequest instance using the specified properties. + * FindAllShardsInKeyspaceRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.FindAllShardsInKeyspaceRequest + * @instance + */ + FindAllShardsInKeyspaceRequest.prototype.keyspace = ""; + + /** + * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static - * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest instance + * @param {vtctldata.IFindAllShardsInKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest instance */ - GetKeyspacesRequest.create = function create(properties) { - return new GetKeyspacesRequest(properties); + FindAllShardsInKeyspaceRequest.create = function create(properties) { + return new FindAllShardsInKeyspaceRequest(properties); }; /** - * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * Encodes the specified FindAllShardsInKeyspaceRequest message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static - * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest 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 */ - GetKeyspacesRequest.encode = function encode(message, writer) { + FindAllShardsInKeyspaceRequest.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 GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * Encodes the specified FindAllShardsInKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static - * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest 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 */ - GetKeyspacesRequest.encodeDelimited = function encodeDelimited(message, writer) { + FindAllShardsInKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer. + * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspacesRequest + * @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.GetKeyspacesRequest} GetKeyspacesRequest + * @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 */ - GetKeyspacesRequest.decode = function decode(reader, length) { + FindAllShardsInKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.FindAllShardsInKeyspaceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -57093,95 +58560,108 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetKeyspacesRequest 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.GetKeyspacesRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest + * @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 */ - GetKeyspacesRequest.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 GetKeyspacesRequest message. + * Verifies a FindAllShardsInKeyspaceRequest message. * @function verify - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @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) { + FindAllShardsInKeyspaceRequest.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 GetKeyspacesRequest 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.GetKeyspacesRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest + * @returns {vtctldata.FindAllShardsInKeyspaceRequest} FindAllShardsInKeyspaceRequest */ - GetKeyspacesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspacesRequest) + FindAllShardsInKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.FindAllShardsInKeyspaceRequest) return object; - return new $root.vtctldata.GetKeyspacesRequest(); + var message = new $root.vtctldata.FindAllShardsInKeyspaceRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + return message; }; /** - * Creates a plain object from a GetKeyspacesRequest 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.GetKeyspacesRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @static - * @param {vtctldata.GetKeyspacesRequest} message GetKeyspacesRequest + * @param {vtctldata.FindAllShardsInKeyspaceRequest} message FindAllShardsInKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspacesRequest.toObject = function toObject() { - return {}; + FindAllShardsInKeyspaceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + return object; }; /** - * Converts this GetKeyspacesRequest to JSON. + * Converts this FindAllShardsInKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.FindAllShardsInKeyspaceRequest * @instance * @returns {Object.} JSON object */ - GetKeyspacesRequest.prototype.toJSON = function toJSON() { + FindAllShardsInKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetKeyspacesRequest; + return FindAllShardsInKeyspaceRequest; })(); - vtctldata.GetKeyspacesResponse = (function() { + vtctldata.FindAllShardsInKeyspaceResponse = (function() { /** - * Properties of a GetKeyspacesResponse. + * Properties of a FindAllShardsInKeyspaceResponse. * @memberof vtctldata - * @interface IGetKeyspacesResponse - * @property {Array.|null} [keyspaces] GetKeyspacesResponse keyspaces + * @interface IFindAllShardsInKeyspaceResponse + * @property {Object.|null} [shards] FindAllShardsInKeyspaceResponse shards */ /** - * Constructs a new GetKeyspacesResponse. + * Constructs a new FindAllShardsInKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents a GetKeyspacesResponse. - * @implements IGetKeyspacesResponse + * @classdesc Represents a FindAllShardsInKeyspaceResponse. + * @implements IFindAllShardsInKeyspaceResponse * @constructor - * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set + * @param {vtctldata.IFindAllShardsInKeyspaceResponse=} [properties] Properties to set */ - function GetKeyspacesResponse(properties) { - this.keyspaces = []; + function FindAllShardsInKeyspaceResponse(properties) { + this.shards = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57189,78 +58669,97 @@ $root.vtctldata = (function() { } /** - * GetKeyspacesResponse keyspaces. - * @member {Array.} keyspaces - * @memberof vtctldata.GetKeyspacesResponse + * FindAllShardsInKeyspaceResponse shards. + * @member {Object.} shards + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @instance */ - GetKeyspacesResponse.prototype.keyspaces = $util.emptyArray; + FindAllShardsInKeyspaceResponse.prototype.shards = $util.emptyObject; /** - * Creates a new GetKeyspacesResponse instance using the specified properties. + * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static - * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse instance + * @param {vtctldata.IFindAllShardsInKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse instance */ - GetKeyspacesResponse.create = function create(properties) { - return new GetKeyspacesResponse(properties); + FindAllShardsInKeyspaceResponse.create = function create(properties) { + return new FindAllShardsInKeyspaceResponse(properties); }; /** - * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * Encodes the specified FindAllShardsInKeyspaceResponse message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static - * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse 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 */ - GetKeyspacesResponse.encode = function encode(message, writer) { + FindAllShardsInKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspaces != null && message.keyspaces.length) - for (var 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.shards != null && Object.hasOwnProperty.call(message, "shards")) + for (var 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 GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * Encodes the specified FindAllShardsInKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static - * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse 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 */ - GetKeyspacesResponse.encodeDelimited = function encodeDelimited(message, writer) { + FindAllShardsInKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer. + * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspacesResponse + * @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.GetKeyspacesResponse} GetKeyspacesResponse + * @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 */ - GetKeyspacesResponse.decode = function decode(reader, length) { + FindAllShardsInKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.FindAllShardsInKeyspaceResponse(), key, value; while (reader.pos < end) { var 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.shards === $util.emptyObject) + message.shards = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.Shard.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.shards[key] = value; break; default: reader.skipType(tag & 7); @@ -57271,124 +58770,127 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetKeyspacesResponse 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.GetKeyspacesResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse + * @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 */ - GetKeyspacesResponse.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 GetKeyspacesResponse message. + * Verifies a FindAllShardsInKeyspaceResponse message. * @function verify - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @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) { + FindAllShardsInKeyspaceResponse.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 (var i = 0; i < message.keyspaces.length; ++i) { - var error = $root.vtctldata.Keyspace.verify(message.keyspaces[i]); + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!$util.isObject(message.shards)) + return "shards: object expected"; + var key = Object.keys(message.shards); + for (var i = 0; i < key.length; ++i) { + var error = $root.vtctldata.Shard.verify(message.shards[key[i]]); if (error) - return "keyspaces." + error; + return "shards." + error; } } return null; }; /** - * Creates a GetKeyspacesResponse 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.GetKeyspacesResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse + * @returns {vtctldata.FindAllShardsInKeyspaceResponse} FindAllShardsInKeyspaceResponse */ - GetKeyspacesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspacesResponse) + FindAllShardsInKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.FindAllShardsInKeyspaceResponse) return object; - var message = new $root.vtctldata.GetKeyspacesResponse(); - if (object.keyspaces) { - if (!Array.isArray(object.keyspaces)) - throw TypeError(".vtctldata.GetKeyspacesResponse.keyspaces: array expected"); - message.keyspaces = []; - for (var 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]); + var message = new $root.vtctldata.FindAllShardsInKeyspaceResponse(); + if (object.shards) { + if (typeof object.shards !== "object") + throw TypeError(".vtctldata.FindAllShardsInKeyspaceResponse.shards: object expected"); + message.shards = {}; + for (var 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 GetKeyspacesResponse 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.GetKeyspacesResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @static - * @param {vtctldata.GetKeyspacesResponse} message GetKeyspacesResponse + * @param {vtctldata.FindAllShardsInKeyspaceResponse} message FindAllShardsInKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspacesResponse.toObject = function toObject(message, options) { + FindAllShardsInKeyspaceResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.keyspaces = []; - if (message.keyspaces && message.keyspaces.length) { - object.keyspaces = []; - for (var j = 0; j < message.keyspaces.length; ++j) - object.keyspaces[j] = $root.vtctldata.Keyspace.toObject(message.keyspaces[j], options); + if (options.objects || options.defaults) + object.shards = {}; + var keys2; + if (message.shards && (keys2 = Object.keys(message.shards)).length) { + object.shards = {}; + for (var j = 0; j < keys2.length; ++j) + object.shards[keys2[j]] = $root.vtctldata.Shard.toObject(message.shards[keys2[j]], options); } return object; }; /** - * Converts this GetKeyspacesResponse to JSON. + * Converts this FindAllShardsInKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.FindAllShardsInKeyspaceResponse * @instance * @returns {Object.} JSON object */ - GetKeyspacesResponse.prototype.toJSON = function toJSON() { + FindAllShardsInKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetKeyspacesResponse; + return FindAllShardsInKeyspaceResponse; })(); - vtctldata.GetKeyspaceRequest = (function() { + vtctldata.GetBackupsRequest = (function() { /** - * Properties of a GetKeyspaceRequest. + * Properties of a GetBackupsRequest. * @memberof vtctldata - * @interface IGetKeyspaceRequest - * @property {string|null} [keyspace] GetKeyspaceRequest keyspace + * @interface IGetBackupsRequest + * @property {string|null} [keyspace] GetBackupsRequest keyspace + * @property {string|null} [shard] GetBackupsRequest shard */ /** - * Constructs a new GetKeyspaceRequest. + * Constructs a new GetBackupsRequest. * @memberof vtctldata - * @classdesc Represents a GetKeyspaceRequest. - * @implements IGetKeyspaceRequest + * @classdesc Represents a GetBackupsRequest. + * @implements IGetBackupsRequest * @constructor - * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set */ - function GetKeyspaceRequest(properties) { + function GetBackupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57396,76 +58898,89 @@ $root.vtctldata = (function() { } /** - * GetKeyspaceRequest keyspace. + * GetBackupsRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @instance */ - GetKeyspaceRequest.prototype.keyspace = ""; + GetBackupsRequest.prototype.keyspace = ""; /** - * Creates a new GetKeyspaceRequest instance using the specified properties. + * GetBackupsRequest shard. + * @member {string} shard + * @memberof vtctldata.GetBackupsRequest + * @instance + */ + GetBackupsRequest.prototype.shard = ""; + + /** + * Creates a new GetBackupsRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static - * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest instance + * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set + * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest instance */ - GetKeyspaceRequest.create = function create(properties) { - return new GetKeyspaceRequest(properties); + GetBackupsRequest.create = function create(properties) { + return new GetBackupsRequest(properties); }; /** - * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static - * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest 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 */ - GetKeyspaceRequest.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.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); return writer; }; /** - * Encodes the specified GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static - * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest 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 */ - GetKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBackupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer. + * Decodes a GetBackupsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspaceRequest + * @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.GetKeyspaceRequest} GetKeyspaceRequest + * @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 */ - GetKeyspaceRequest.decode = function decode(reader, length) { + GetBackupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsRequest(); while (reader.pos < end) { var 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; @@ -57475,107 +58990,117 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetKeyspaceRequest 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.GetKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest + * @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 */ - GetKeyspaceRequest.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 GetKeyspaceRequest message. + * Verifies a GetBackupsRequest message. * @function verify - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @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) { + 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.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; return null; }; /** - * Creates a GetKeyspaceRequest 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.GetKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest + * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest */ - GetKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspaceRequest) + GetBackupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetBackupsRequest) return object; - var message = new $root.vtctldata.GetKeyspaceRequest(); + var message = new $root.vtctldata.GetBackupsRequest(); 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 GetKeyspaceRequest 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.GetKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static - * @param {vtctldata.GetKeyspaceRequest} message GetKeyspaceRequest + * @param {vtctldata.GetBackupsRequest} message GetBackupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspaceRequest.toObject = function toObject(message, options) { + GetBackupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + 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 GetKeyspaceRequest to JSON. + * Converts this GetBackupsRequest to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @instance * @returns {Object.} JSON object */ - GetKeyspaceRequest.prototype.toJSON = function toJSON() { + GetBackupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetKeyspaceRequest; + return GetBackupsRequest; })(); - vtctldata.GetKeyspaceResponse = (function() { + vtctldata.GetBackupsResponse = (function() { /** - * Properties of a GetKeyspaceResponse. + * Properties of a GetBackupsResponse. * @memberof vtctldata - * @interface IGetKeyspaceResponse - * @property {vtctldata.IKeyspace|null} [keyspace] GetKeyspaceResponse keyspace + * @interface IGetBackupsResponse + * @property {Array.|null} [backups] GetBackupsResponse backups */ /** - * Constructs a new GetKeyspaceResponse. + * Constructs a new GetBackupsResponse. * @memberof vtctldata - * @classdesc Represents a GetKeyspaceResponse. - * @implements IGetKeyspaceResponse + * @classdesc Represents a GetBackupsResponse. + * @implements IGetBackupsResponse * @constructor - * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set */ - function GetKeyspaceResponse(properties) { + function GetBackupsResponse(properties) { + this.backups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57583,75 +59108,78 @@ $root.vtctldata = (function() { } /** - * GetKeyspaceResponse keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.GetKeyspaceResponse + * GetBackupsResponse backups. + * @member {Array.} backups + * @memberof vtctldata.GetBackupsResponse * @instance */ - GetKeyspaceResponse.prototype.keyspace = null; + GetBackupsResponse.prototype.backups = $util.emptyArray; /** - * Creates a new GetKeyspaceResponse instance using the specified properties. + * Creates a new GetBackupsResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static - * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse instance + * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set + * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse instance */ - GetKeyspaceResponse.create = function create(properties) { - return new GetKeyspaceResponse(properties); + GetBackupsResponse.create = function create(properties) { + return new GetBackupsResponse(properties); }; /** - * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static - * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse 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 */ - GetKeyspaceResponse.encode = function encode(message, writer) { + GetBackupsResponse.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.backups != null && message.backups.length) + for (var 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 GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static - * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse 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 */ - GetKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetBackupsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer. + * Decodes a GetBackupsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspaceResponse + * @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.GetKeyspaceResponse} GetKeyspaceResponse + * @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 */ - GetKeyspaceResponse.decode = function decode(reader, length) { + GetBackupsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); + if (!(message.backups && message.backups.length)) + message.backups = []; + message.backups.push($root.mysqlctl.BackupInfo.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -57662,119 +59190,123 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetKeyspaceResponse 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.GetKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse + * @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 */ - GetKeyspaceResponse.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 GetKeyspaceResponse message. + * Verifies a GetBackupsResponse message. * @function verify - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @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) { + GetBackupsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.vtctldata.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + error; + if (message.backups != null && message.hasOwnProperty("backups")) { + if (!Array.isArray(message.backups)) + return "backups: array expected"; + for (var i = 0; i < message.backups.length; ++i) { + var error = $root.mysqlctl.BackupInfo.verify(message.backups[i]); + if (error) + return "backups." + error; + } } return null; }; /** - * Creates a GetKeyspaceResponse 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.GetKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse + * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse */ - GetKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspaceResponse) + GetBackupsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetBackupsResponse) return object; - var 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); + var message = new $root.vtctldata.GetBackupsResponse(); + if (object.backups) { + if (!Array.isArray(object.backups)) + throw TypeError(".vtctldata.GetBackupsResponse.backups: array expected"); + message.backups = []; + for (var 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 GetKeyspaceResponse 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.GetKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static - * @param {vtctldata.GetKeyspaceResponse} message GetKeyspaceResponse + * @param {vtctldata.GetBackupsResponse} message GetBackupsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspaceResponse.toObject = function toObject(message, options) { + GetBackupsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.keyspace = null; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); + if (options.arrays || options.defaults) + object.backups = []; + if (message.backups && message.backups.length) { + object.backups = []; + for (var j = 0; j < message.backups.length; ++j) + object.backups[j] = $root.mysqlctl.BackupInfo.toObject(message.backups[j], options); + } return object; }; /** - * Converts this GetKeyspaceResponse to JSON. + * Converts this GetBackupsResponse to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @instance * @returns {Object.} JSON object */ - GetKeyspaceResponse.prototype.toJSON = function toJSON() { + GetBackupsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetKeyspaceResponse; + return GetBackupsResponse; })(); - vtctldata.GetSchemaRequest = (function() { + vtctldata.GetCellInfoNamesRequest = (function() { /** - * Properties of a GetSchemaRequest. + * Properties of a GetCellInfoNamesRequest. * @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 + * @interface IGetCellInfoNamesRequest */ /** - * Constructs a new GetSchemaRequest. + * Constructs a new GetCellInfoNamesRequest. * @memberof vtctldata - * @classdesc Represents a GetSchemaRequest. - * @implements IGetSchemaRequest + * @classdesc Represents a GetCellInfoNamesRequest. + * @implements IGetCellInfoNamesRequest * @constructor - * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set */ - function GetSchemaRequest(properties) { - this.tables = []; - this.exclude_tables = []; + function GetCellInfoNamesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57782,147 +59314,63 @@ $root.vtctldata = (function() { } /** - * 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 - * @instance - */ - GetSchemaRequest.prototype.tables = $util.emptyArray; - - /** - * GetSchemaRequest exclude_tables. - * @member {Array.} exclude_tables - * @memberof vtctldata.GetSchemaRequest - * @instance - */ - GetSchemaRequest.prototype.exclude_tables = $util.emptyArray; - - /** - * 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; - - /** - * Creates a new GetSchemaRequest instance using the specified properties. + * Creates a new GetCellInfoNamesRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static - * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest instance + * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest instance */ - GetSchemaRequest.create = function create(properties) { - return new GetSchemaRequest(properties); + GetCellInfoNamesRequest.create = function create(properties) { + return new GetCellInfoNamesRequest(properties); }; /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static - * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest 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 */ - GetSchemaRequest.encode = function encode(message, writer) { + GetCellInfoNamesRequest.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 (var 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 (var 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); return writer; }; /** - * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static - * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest 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 */ - GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfoNamesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSchemaRequest + * @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.GetSchemaRequest} GetSchemaRequest + * @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 */ - GetSchemaRequest.decode = function decode(reader, length) { + GetCellInfoNamesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.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; - case 5: - message.table_names_only = reader.bool(); - break; - case 6: - message.table_sizes_only = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -57932,179 +59380,95 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetSchemaRequest 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.GetSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest + * @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 */ - GetSchemaRequest.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 GetSchemaRequest message. + * Verifies a GetCellInfoNamesRequest message. * @function verify - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @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) { + GetCellInfoNamesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (var 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 (var 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"; return null; }; /** - * Creates a GetSchemaRequest 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.GetSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest + * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest */ - GetSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSchemaRequest) + GetCellInfoNamesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoNamesRequest) return object; - var 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 (var 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 (var 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); - return message; + return new $root.vtctldata.GetCellInfoNamesRequest(); }; /** - * Creates a plain object from a GetSchemaRequest 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.GetSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static - * @param {vtctldata.GetSchemaRequest} message GetSchemaRequest + * @param {vtctldata.GetCellInfoNamesRequest} message GetCellInfoNamesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.tables = []; - object.exclude_tables = []; - } - if (options.defaults) { - object.tablet_alias = null; - object.include_views = false; - object.table_names_only = false; - object.table_sizes_only = false; - } - 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 (var 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 (var 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; - return object; + GetCellInfoNamesRequest.toObject = function toObject() { + return {}; }; /** - * Converts this GetSchemaRequest to JSON. + * Converts this GetCellInfoNamesRequest to JSON. * @function toJSON - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @instance * @returns {Object.} JSON object */ - GetSchemaRequest.prototype.toJSON = function toJSON() { + GetCellInfoNamesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSchemaRequest; + return GetCellInfoNamesRequest; })(); - vtctldata.GetSchemaResponse = (function() { + vtctldata.GetCellInfoNamesResponse = (function() { /** - * Properties of a GetSchemaResponse. + * Properties of a GetCellInfoNamesResponse. * @memberof vtctldata - * @interface IGetSchemaResponse - * @property {tabletmanagerdata.ISchemaDefinition|null} [schema] GetSchemaResponse schema + * @interface IGetCellInfoNamesResponse + * @property {Array.|null} [names] GetCellInfoNamesResponse names */ /** - * Constructs a new GetSchemaResponse. + * Constructs a new GetCellInfoNamesResponse. * @memberof vtctldata - * @classdesc Represents a GetSchemaResponse. - * @implements IGetSchemaResponse + * @classdesc Represents a GetCellInfoNamesResponse. + * @implements IGetCellInfoNamesResponse * @constructor - * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set */ - function GetSchemaResponse(properties) { + function GetCellInfoNamesResponse(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58112,75 +59476,78 @@ $root.vtctldata = (function() { } /** - * GetSchemaResponse schema. - * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} schema - * @memberof vtctldata.GetSchemaResponse + * GetCellInfoNamesResponse names. + * @member {Array.} names + * @memberof vtctldata.GetCellInfoNamesResponse * @instance */ - GetSchemaResponse.prototype.schema = null; + GetCellInfoNamesResponse.prototype.names = $util.emptyArray; /** - * Creates a new GetSchemaResponse instance using the specified properties. + * Creates a new GetCellInfoNamesResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static - * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse instance + * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse instance */ - GetSchemaResponse.create = function create(properties) { - return new GetSchemaResponse(properties); + GetCellInfoNamesResponse.create = function create(properties) { + return new GetCellInfoNamesResponse(properties); }; /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static - * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse 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 */ - GetSchemaResponse.encode = function encode(message, writer) { + GetCellInfoNamesResponse.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.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); return writer; }; /** - * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static - * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse 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 */ - GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfoNamesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSchemaResponse + * @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.GetSchemaResponse} GetSchemaResponse + * @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 */ - GetSchemaResponse.decode = function decode(reader, length) { + GetCellInfoNamesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -58191,113 +59558,119 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetSchemaResponse 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.GetSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse + * @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 */ - GetSchemaResponse.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 GetSchemaResponse message. + * Verifies a GetCellInfoNamesResponse message. * @function verify - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @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) { + GetCellInfoNamesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.schema != null && message.hasOwnProperty("schema")) { - var error = $root.tabletmanagerdata.SchemaDefinition.verify(message.schema); - if (error) - return "schema." + error; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; } return null; }; /** - * Creates a GetSchemaResponse 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.GetSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse + * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse */ - GetSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSchemaResponse) + GetCellInfoNamesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoNamesResponse) return object; - var 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); + var message = new $root.vtctldata.GetCellInfoNamesResponse(); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".vtctldata.GetCellInfoNamesResponse.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[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 GetCellInfoNamesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static - * @param {vtctldata.GetSchemaResponse} message GetSchemaResponse + * @param {vtctldata.GetCellInfoNamesResponse} message GetCellInfoNamesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaResponse.toObject = function toObject(message, options) { + GetCellInfoNamesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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.names = []; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } return object; }; /** - * Converts this GetSchemaResponse to JSON. + * Converts this GetCellInfoNamesResponse to JSON. * @function toJSON - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @instance * @returns {Object.} JSON object */ - GetSchemaResponse.prototype.toJSON = function toJSON() { + GetCellInfoNamesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSchemaResponse; + return GetCellInfoNamesResponse; })(); - vtctldata.GetShardRequest = (function() { + vtctldata.GetCellInfoRequest = (function() { /** - * Properties of a GetShardRequest. + * Properties of a GetCellInfoRequest. * @memberof vtctldata - * @interface IGetShardRequest - * @property {string|null} [keyspace] GetShardRequest keyspace - * @property {string|null} [shard_name] GetShardRequest shard_name + * @interface IGetCellInfoRequest + * @property {string|null} [cell] GetCellInfoRequest cell */ /** - * Constructs a new GetShardRequest. + * Constructs a new GetCellInfoRequest. * @memberof vtctldata - * @classdesc Represents a GetShardRequest. - * @implements IGetShardRequest + * @classdesc Represents a GetCellInfoRequest. + * @implements IGetCellInfoRequest * @constructor - * @param {vtctldata.IGetShardRequest=} [properties] Properties to set + * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set */ - function GetShardRequest(properties) { + function GetCellInfoRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58305,88 +59678,75 @@ $root.vtctldata = (function() { } /** - * GetShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetShardRequest - * @instance - */ - GetShardRequest.prototype.keyspace = ""; - - /** - * GetShardRequest shard_name. - * @member {string} shard_name - * @memberof vtctldata.GetShardRequest + * GetCellInfoRequest cell. + * @member {string} cell + * @memberof vtctldata.GetCellInfoRequest * @instance */ - GetShardRequest.prototype.shard_name = ""; + GetCellInfoRequest.prototype.cell = ""; /** - * Creates a new GetShardRequest instance using the specified properties. + * Creates a new GetCellInfoRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetCellInfoRequest * @static - * @param {vtctldata.IGetShardRequest=} [properties] Properties to set - * @returns {vtctldata.GetShardRequest} GetShardRequest instance + * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest instance */ - GetShardRequest.create = function create(properties) { - return new GetShardRequest(properties); + GetCellInfoRequest.create = function create(properties) { + return new GetCellInfoRequest(properties); }; /** - * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetCellInfoRequest * @static - * @param {vtctldata.IGetShardRequest} message GetShardRequest 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 */ - GetShardRequest.encode = function encode(message, writer) { + GetCellInfoRequest.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.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); return writer; }; /** - * Encodes the specified GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetCellInfoRequest * @static - * @param {vtctldata.IGetShardRequest} message GetShardRequest 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 */ - GetShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShardRequest message from the specified reader or buffer. + * Decodes a GetCellInfoRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetShardRequest + * @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.GetShardRequest} GetShardRequest + * @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 */ - GetShardRequest.decode = function decode(reader, length) { + GetCellInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); - break; - case 2: - message.shard_name = reader.string(); + message.cell = reader.string(); break; default: reader.skipType(tag & 7); @@ -58397,116 +59757,107 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetShardRequest 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.GetShardRequest + * @memberof vtctldata.GetCellInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetShardRequest} GetShardRequest + * @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 */ - GetShardRequest.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 GetShardRequest message. + * Verifies a GetCellInfoRequest message. * @function verify - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetCellInfoRequest * @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) { + GetCellInfoRequest.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"; return null; }; /** - * Creates a GetShardRequest 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.GetShardRequest + * @memberof vtctldata.GetCellInfoRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetShardRequest} GetShardRequest + * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest */ - GetShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetShardRequest) + GetCellInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoRequest) return object; - var 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); + var message = new $root.vtctldata.GetCellInfoRequest(); + if (object.cell != null) + message.cell = String(object.cell); return message; }; /** - * Creates a plain object from a GetShardRequest 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.GetShardRequest + * @memberof vtctldata.GetCellInfoRequest * @static - * @param {vtctldata.GetShardRequest} message GetShardRequest + * @param {vtctldata.GetCellInfoRequest} message GetCellInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShardRequest.toObject = function toObject(message, options) { + GetCellInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; var 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; + if (options.defaults) + object.cell = ""; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; return object; }; /** - * Converts this GetShardRequest to JSON. + * Converts this GetCellInfoRequest to JSON. * @function toJSON - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetCellInfoRequest * @instance * @returns {Object.} JSON object */ - GetShardRequest.prototype.toJSON = function toJSON() { + GetCellInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetShardRequest; + return GetCellInfoRequest; })(); - vtctldata.GetShardResponse = (function() { + vtctldata.GetCellInfoResponse = (function() { /** - * Properties of a GetShardResponse. + * Properties of a GetCellInfoResponse. * @memberof vtctldata - * @interface IGetShardResponse - * @property {vtctldata.IShard|null} [shard] GetShardResponse shard + * @interface IGetCellInfoResponse + * @property {topodata.ICellInfo|null} [cell_info] GetCellInfoResponse cell_info */ /** - * Constructs a new GetShardResponse. + * Constructs a new GetCellInfoResponse. * @memberof vtctldata - * @classdesc Represents a GetShardResponse. - * @implements IGetShardResponse + * @classdesc Represents a GetCellInfoResponse. + * @implements IGetCellInfoResponse * @constructor - * @param {vtctldata.IGetShardResponse=} [properties] Properties to set + * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set */ - function GetShardResponse(properties) { + function GetCellInfoResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58514,75 +59865,75 @@ $root.vtctldata = (function() { } /** - * GetShardResponse shard. - * @member {vtctldata.IShard|null|undefined} shard - * @memberof vtctldata.GetShardResponse + * GetCellInfoResponse cell_info. + * @member {topodata.ICellInfo|null|undefined} cell_info + * @memberof vtctldata.GetCellInfoResponse * @instance */ - GetShardResponse.prototype.shard = null; + GetCellInfoResponse.prototype.cell_info = null; /** - * Creates a new GetShardResponse instance using the specified properties. + * Creates a new GetCellInfoResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetCellInfoResponse * @static - * @param {vtctldata.IGetShardResponse=} [properties] Properties to set - * @returns {vtctldata.GetShardResponse} GetShardResponse instance + * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse instance */ - GetShardResponse.create = function create(properties) { - return new GetShardResponse(properties); + GetCellInfoResponse.create = function create(properties) { + return new GetCellInfoResponse(properties); }; /** - * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetCellInfoResponse * @static - * @param {vtctldata.IGetShardResponse} message GetShardResponse 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 */ - GetShardResponse.encode = function encode(message, writer) { + GetCellInfoResponse.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.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 GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * Encodes the specified GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetCellInfoResponse * @static - * @param {vtctldata.IGetShardResponse} message GetShardResponse 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 */ - GetShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShardResponse message from the specified reader or buffer. + * Decodes a GetCellInfoResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetShardResponse + * @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.GetShardResponse} GetShardResponse + * @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 */ - GetShardResponse.decode = function decode(reader, length) { + GetCellInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.shard = $root.vtctldata.Shard.decode(reader, reader.uint32()); + message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -58593,112 +59944,111 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetShardResponse 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.GetShardResponse + * @memberof vtctldata.GetCellInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetShardResponse} GetShardResponse + * @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 */ - GetShardResponse.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 GetShardResponse message. + * Verifies a GetCellInfoResponse message. * @function verify - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetCellInfoResponse * @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) { + GetCellInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard != null && message.hasOwnProperty("shard")) { - var error = $root.vtctldata.Shard.verify(message.shard); + if (message.cell_info != null && message.hasOwnProperty("cell_info")) { + var error = $root.topodata.CellInfo.verify(message.cell_info); if (error) - return "shard." + error; + return "cell_info." + error; } return null; }; /** - * Creates a GetShardResponse 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.GetShardResponse + * @memberof vtctldata.GetCellInfoResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetShardResponse} GetShardResponse + * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse */ - GetShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetShardResponse) + GetCellInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoResponse) return object; - var 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); + var 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 GetShardResponse 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.GetShardResponse + * @memberof vtctldata.GetCellInfoResponse * @static - * @param {vtctldata.GetShardResponse} message GetShardResponse + * @param {vtctldata.GetCellInfoResponse} message GetCellInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShardResponse.toObject = function toObject(message, options) { + GetCellInfoResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.shard = null; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = $root.vtctldata.Shard.toObject(message.shard, options); + 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 GetShardResponse to JSON. + * Converts this GetCellInfoResponse to JSON. * @function toJSON - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetCellInfoResponse * @instance * @returns {Object.} JSON object */ - GetShardResponse.prototype.toJSON = function toJSON() { + GetCellInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetShardResponse; + return GetCellInfoResponse; })(); - vtctldata.GetSrvVSchemaRequest = (function() { + vtctldata.GetCellsAliasesRequest = (function() { /** - * Properties of a GetSrvVSchemaRequest. + * Properties of a GetCellsAliasesRequest. * @memberof vtctldata - * @interface IGetSrvVSchemaRequest - * @property {string|null} [cell] GetSrvVSchemaRequest cell + * @interface IGetCellsAliasesRequest */ /** - * Constructs a new GetSrvVSchemaRequest. + * Constructs a new GetCellsAliasesRequest. * @memberof vtctldata - * @classdesc Represents a GetSrvVSchemaRequest. - * @implements IGetSrvVSchemaRequest + * @classdesc Represents a GetCellsAliasesRequest. + * @implements IGetCellsAliasesRequest * @constructor - * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set */ - function GetSrvVSchemaRequest(properties) { + function GetCellsAliasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58706,76 +60056,63 @@ $root.vtctldata = (function() { } /** - * GetSrvVSchemaRequest cell. - * @member {string} cell - * @memberof vtctldata.GetSrvVSchemaRequest - * @instance - */ - GetSrvVSchemaRequest.prototype.cell = ""; - - /** - * Creates a new GetSrvVSchemaRequest instance using the specified properties. + * Creates a new GetCellsAliasesRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static - * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest instance + * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set + * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest instance */ - GetSrvVSchemaRequest.create = function create(properties) { - return new GetSrvVSchemaRequest(properties); + GetCellsAliasesRequest.create = function create(properties) { + return new GetCellsAliasesRequest(properties); }; /** - * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. + * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static - * @param {vtctldata.IGetSrvVSchemaRequest} message GetSrvVSchemaRequest 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 */ - GetSrvVSchemaRequest.encode = function encode(message, writer) { + GetCellsAliasesRequest.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 GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. + * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static - * @param {vtctldata.IGetSrvVSchemaRequest} message GetSrvVSchemaRequest 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 */ - GetSrvVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCellsAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvVSchemaRequest + * @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.GetSrvVSchemaRequest} GetSrvVSchemaRequest + * @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 */ - GetSrvVSchemaRequest.decode = function decode(reader, length) { + GetCellsAliasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.cell = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -58785,107 +60122,95 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetSrvVSchemaRequest 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.GetSrvVSchemaRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest + * @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 */ - GetSrvVSchemaRequest.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 GetSrvVSchemaRequest message. + * Verifies a GetCellsAliasesRequest message. * @function verify - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetCellsAliasesRequest * @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) { + GetCellsAliasesRequest.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 GetSrvVSchemaRequest 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.GetSrvVSchemaRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest + * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest */ - GetSrvVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvVSchemaRequest) + GetCellsAliasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellsAliasesRequest) return object; - var message = new $root.vtctldata.GetSrvVSchemaRequest(); - if (object.cell != null) - message.cell = String(object.cell); - return message; + return new $root.vtctldata.GetCellsAliasesRequest(); }; /** - * Creates a plain object from a GetSrvVSchemaRequest 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.GetSrvVSchemaRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static - * @param {vtctldata.GetSrvVSchemaRequest} message GetSrvVSchemaRequest + * @param {vtctldata.GetCellsAliasesRequest} message GetCellsAliasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvVSchemaRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.cell = ""; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; - return object; + GetCellsAliasesRequest.toObject = function toObject() { + return {}; }; /** - * Converts this GetSrvVSchemaRequest to JSON. + * Converts this GetCellsAliasesRequest to JSON. * @function toJSON - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetCellsAliasesRequest * @instance * @returns {Object.} JSON object */ - GetSrvVSchemaRequest.prototype.toJSON = function toJSON() { + GetCellsAliasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSrvVSchemaRequest; + return GetCellsAliasesRequest; })(); - vtctldata.GetSrvVSchemaResponse = (function() { + vtctldata.GetCellsAliasesResponse = (function() { /** - * Properties of a GetSrvVSchemaResponse. + * Properties of a GetCellsAliasesResponse. * @memberof vtctldata - * @interface IGetSrvVSchemaResponse - * @property {vschema.ISrvVSchema|null} [srv_v_schema] GetSrvVSchemaResponse srv_v_schema + * @interface IGetCellsAliasesResponse + * @property {Object.|null} [aliases] GetCellsAliasesResponse aliases */ /** - * Constructs a new GetSrvVSchemaResponse. + * Constructs a new GetCellsAliasesResponse. * @memberof vtctldata - * @classdesc Represents a GetSrvVSchemaResponse. - * @implements IGetSrvVSchemaResponse + * @classdesc Represents a GetCellsAliasesResponse. + * @implements IGetCellsAliasesResponse * @constructor - * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set */ - function GetSrvVSchemaResponse(properties) { + function GetCellsAliasesResponse(properties) { + this.aliases = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58893,75 +60218,97 @@ $root.vtctldata = (function() { } /** - * GetSrvVSchemaResponse srv_v_schema. - * @member {vschema.ISrvVSchema|null|undefined} srv_v_schema - * @memberof vtctldata.GetSrvVSchemaResponse + * GetCellsAliasesResponse aliases. + * @member {Object.} aliases + * @memberof vtctldata.GetCellsAliasesResponse * @instance */ - GetSrvVSchemaResponse.prototype.srv_v_schema = null; + GetCellsAliasesResponse.prototype.aliases = $util.emptyObject; /** - * Creates a new GetSrvVSchemaResponse instance using the specified properties. + * Creates a new GetCellsAliasesResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static - * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse instance + * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set + * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse instance */ - GetSrvVSchemaResponse.create = function create(properties) { - return new GetSrvVSchemaResponse(properties); + GetCellsAliasesResponse.create = function create(properties) { + return new GetCellsAliasesResponse(properties); }; /** - * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static - * @param {vtctldata.IGetSrvVSchemaResponse} message GetSrvVSchemaResponse 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 */ - GetSrvVSchemaResponse.encode = function encode(message, writer) { + GetCellsAliasesResponse.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.aliases != null && Object.hasOwnProperty.call(message, "aliases")) + for (var 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 GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static - * @param {vtctldata.IGetSrvVSchemaResponse} message GetSrvVSchemaResponse 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 */ - GetSrvVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetCellsAliasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvVSchemaResponse + * @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.GetSrvVSchemaResponse} GetSrvVSchemaResponse + * @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 */ - GetSrvVSchemaResponse.decode = function decode(reader, length) { + GetCellsAliasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesResponse(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.srv_v_schema = $root.vschema.SrvVSchema.decode(reader, reader.uint32()); + if (message.aliases === $util.emptyObject) + message.aliases = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.topodata.CellsAlias.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.aliases[key] = value; break; default: reader.skipType(tag & 7); @@ -58972,112 +60319,125 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetSrvVSchemaResponse 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.GetSrvVSchemaResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse + * @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 */ - GetSrvVSchemaResponse.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 GetSrvVSchemaResponse message. + * Verifies a GetCellsAliasesResponse message. * @function verify - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetCellsAliasesResponse * @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) { + GetCellsAliasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) { - var error = $root.vschema.SrvVSchema.verify(message.srv_v_schema); - if (error) - return "srv_v_schema." + error; + if (message.aliases != null && message.hasOwnProperty("aliases")) { + if (!$util.isObject(message.aliases)) + return "aliases: object expected"; + var key = Object.keys(message.aliases); + for (var i = 0; i < key.length; ++i) { + var error = $root.topodata.CellsAlias.verify(message.aliases[key[i]]); + if (error) + return "aliases." + error; + } } return null; }; /** - * Creates a GetSrvVSchemaResponse 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.GetSrvVSchemaResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse + * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse */ - GetSrvVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvVSchemaResponse) + GetCellsAliasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellsAliasesResponse) return object; - var 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); + var message = new $root.vtctldata.GetCellsAliasesResponse(); + if (object.aliases) { + if (typeof object.aliases !== "object") + throw TypeError(".vtctldata.GetCellsAliasesResponse.aliases: object expected"); + message.aliases = {}; + for (var 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 GetSrvVSchemaResponse 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.GetSrvVSchemaResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static - * @param {vtctldata.GetSrvVSchemaResponse} message GetSrvVSchemaResponse + * @param {vtctldata.GetCellsAliasesResponse} message GetCellsAliasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvVSchemaResponse.toObject = function toObject(message, options) { + GetCellsAliasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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.objects || options.defaults) + object.aliases = {}; + var keys2; + if (message.aliases && (keys2 = Object.keys(message.aliases)).length) { + object.aliases = {}; + for (var j = 0; j < keys2.length; ++j) + object.aliases[keys2[j]] = $root.topodata.CellsAlias.toObject(message.aliases[keys2[j]], options); + } return object; }; /** - * Converts this GetSrvVSchemaResponse to JSON. + * Converts this GetCellsAliasesResponse to JSON. * @function toJSON - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetCellsAliasesResponse * @instance * @returns {Object.} JSON object */ - GetSrvVSchemaResponse.prototype.toJSON = function toJSON() { + GetCellsAliasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSrvVSchemaResponse; + return GetCellsAliasesResponse; })(); - vtctldata.GetTabletRequest = (function() { + vtctldata.GetKeyspacesRequest = (function() { /** - * Properties of a GetTabletRequest. + * Properties of a GetKeyspacesRequest. * @memberof vtctldata - * @interface IGetTabletRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] GetTabletRequest tablet_alias + * @interface IGetKeyspacesRequest */ /** - * Constructs a new GetTabletRequest. + * Constructs a new GetKeyspacesRequest. * @memberof vtctldata - * @classdesc Represents a GetTabletRequest. - * @implements IGetTabletRequest + * @classdesc Represents a GetKeyspacesRequest. + * @implements IGetKeyspacesRequest * @constructor - * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set + * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set */ - function GetTabletRequest(properties) { + function GetKeyspacesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59085,76 +60445,63 @@ $root.vtctldata = (function() { } /** - * 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. + * Creates a new GetKeyspacesRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.GetKeyspacesRequest * @static - * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set - * @returns {vtctldata.GetTabletRequest} GetTabletRequest instance + * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set + * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest instance */ - GetTabletRequest.create = function create(properties) { - return new GetTabletRequest(properties); + GetKeyspacesRequest.create = function create(properties) { + return new GetKeyspacesRequest(properties); }; /** - * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.GetKeyspacesRequest * @static - * @param {vtctldata.IGetTabletRequest} message GetTabletRequest 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 */ - GetTabletRequest.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(); return writer; }; /** - * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.GetKeyspacesRequest * @static - * @param {vtctldata.IGetTabletRequest} message GetTabletRequest 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 */ - GetTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspacesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletRequest message from the specified reader or buffer. + * Decodes a GetKeyspacesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletRequest + * @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.GetTabletRequest} GetTabletRequest + * @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 */ - GetTabletRequest.decode = function decode(reader, length) { + GetKeyspacesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesRequest(); while (reader.pos < end) { var 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; @@ -59164,112 +60511,95 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetTabletRequest 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.GetTabletRequest + * @memberof vtctldata.GetKeyspacesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletRequest} GetTabletRequest + * @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 */ - GetTabletRequest.decodeDelimited = function decodeDelimited(reader) { + GetKeyspacesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTabletRequest message. + * Verifies a GetKeyspacesRequest message. * @function verify - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.GetKeyspacesRequest * @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) { + GetKeyspacesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } return null; }; /** - * Creates a GetTabletRequest 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.GetTabletRequest + * @memberof vtctldata.GetKeyspacesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletRequest} GetTabletRequest + * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest */ - GetTabletRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletRequest) + GetKeyspacesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspacesRequest) return object; - var 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; + return new $root.vtctldata.GetKeyspacesRequest(); }; /** - * Creates a plain object from a GetTabletRequest 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.GetTabletRequest + * @memberof vtctldata.GetKeyspacesRequest * @static - * @param {vtctldata.GetTabletRequest} message GetTabletRequest + * @param {vtctldata.GetKeyspacesRequest} message GetKeyspacesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var 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; + GetKeyspacesRequest.toObject = function toObject() { + return {}; }; /** - * Converts this GetTabletRequest to JSON. + * Converts this GetKeyspacesRequest to JSON. * @function toJSON - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.GetKeyspacesRequest * @instance * @returns {Object.} JSON object */ - GetTabletRequest.prototype.toJSON = function toJSON() { + GetKeyspacesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTabletRequest; + return GetKeyspacesRequest; })(); - vtctldata.GetTabletResponse = (function() { + vtctldata.GetKeyspacesResponse = (function() { /** - * Properties of a GetTabletResponse. + * Properties of a GetKeyspacesResponse. * @memberof vtctldata - * @interface IGetTabletResponse - * @property {topodata.ITablet|null} [tablet] GetTabletResponse tablet + * @interface IGetKeyspacesResponse + * @property {Array.|null} [keyspaces] GetKeyspacesResponse keyspaces */ /** - * Constructs a new GetTabletResponse. + * Constructs a new GetKeyspacesResponse. * @memberof vtctldata - * @classdesc Represents a GetTabletResponse. - * @implements IGetTabletResponse + * @classdesc Represents a GetKeyspacesResponse. + * @implements IGetKeyspacesResponse * @constructor - * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set + * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set */ - function GetTabletResponse(properties) { + function GetKeyspacesResponse(properties) { + this.keyspaces = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59277,75 +60607,78 @@ $root.vtctldata = (function() { } /** - * GetTabletResponse tablet. - * @member {topodata.ITablet|null|undefined} tablet - * @memberof vtctldata.GetTabletResponse + * GetKeyspacesResponse keyspaces. + * @member {Array.} keyspaces + * @memberof vtctldata.GetKeyspacesResponse * @instance */ - GetTabletResponse.prototype.tablet = null; + GetKeyspacesResponse.prototype.keyspaces = $util.emptyArray; /** - * Creates a new GetTabletResponse instance using the specified properties. + * Creates a new GetKeyspacesResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.GetKeyspacesResponse * @static - * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set - * @returns {vtctldata.GetTabletResponse} GetTabletResponse instance + * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set + * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse instance */ - GetTabletResponse.create = function create(properties) { - return new GetTabletResponse(properties); + GetKeyspacesResponse.create = function create(properties) { + return new GetKeyspacesResponse(properties); }; /** - * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.GetKeyspacesResponse * @static - * @param {vtctldata.IGetTabletResponse} message GetTabletResponse 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 */ - GetTabletResponse.encode = function encode(message, writer) { + GetKeyspacesResponse.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.keyspaces != null && message.keyspaces.length) + for (var 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 GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * Encodes the specified GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.GetKeyspacesResponse * @static - * @param {vtctldata.IGetTabletResponse} message GetTabletResponse 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 */ - GetTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspacesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletResponse message from the specified reader or buffer. + * Decodes a GetKeyspacesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletResponse + * @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.GetTabletResponse} GetTabletResponse + * @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 */ - GetTabletResponse.decode = function decode(reader, length) { + GetKeyspacesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + if (!(message.keyspaces && message.keyspaces.length)) + message.keyspaces = []; + message.keyspaces.push($root.vtctldata.Keyspace.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -59356,115 +60689,124 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetTabletResponse 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.GetTabletResponse + * @memberof vtctldata.GetKeyspacesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletResponse} GetTabletResponse + * @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 */ - GetTabletResponse.decodeDelimited = function decodeDelimited(reader) { + GetKeyspacesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTabletResponse message. + * Verifies a GetKeyspacesResponse message. * @function verify - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.GetKeyspacesResponse * @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) { + GetKeyspacesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - var error = $root.topodata.Tablet.verify(message.tablet); - if (error) - return "tablet." + error; + if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { + if (!Array.isArray(message.keyspaces)) + return "keyspaces: array expected"; + for (var i = 0; i < message.keyspaces.length; ++i) { + var error = $root.vtctldata.Keyspace.verify(message.keyspaces[i]); + if (error) + return "keyspaces." + error; + } } return null; }; /** - * Creates a GetTabletResponse 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.GetTabletResponse + * @memberof vtctldata.GetKeyspacesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletResponse} GetTabletResponse + * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse */ - GetTabletResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletResponse) + GetKeyspacesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspacesResponse) return object; - var 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); + var message = new $root.vtctldata.GetKeyspacesResponse(); + if (object.keyspaces) { + if (!Array.isArray(object.keyspaces)) + throw TypeError(".vtctldata.GetKeyspacesResponse.keyspaces: array expected"); + message.keyspaces = []; + for (var 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 a GetTabletResponse 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.GetTabletResponse + * @memberof vtctldata.GetKeyspacesResponse * @static - * @param {vtctldata.GetTabletResponse} message GetTabletResponse + * @param {vtctldata.GetKeyspacesResponse} message GetKeyspacesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletResponse.toObject = function toObject(message, options) { + GetKeyspacesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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.arrays || options.defaults) + object.keyspaces = []; + if (message.keyspaces && message.keyspaces.length) { + object.keyspaces = []; + for (var j = 0; j < message.keyspaces.length; ++j) + object.keyspaces[j] = $root.vtctldata.Keyspace.toObject(message.keyspaces[j], options); + } return object; }; /** - * Converts this GetTabletResponse to JSON. + * Converts this GetKeyspacesResponse to JSON. * @function toJSON - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.GetKeyspacesResponse * @instance * @returns {Object.} JSON object */ - GetTabletResponse.prototype.toJSON = function toJSON() { + GetKeyspacesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTabletResponse; + return GetKeyspacesResponse; })(); - vtctldata.GetTabletsRequest = (function() { + vtctldata.GetKeyspaceRequest = (function() { /** - * Properties of a GetTabletsRequest. + * Properties of a GetKeyspaceRequest. * @memberof vtctldata - * @interface IGetTabletsRequest - * @property {string|null} [keyspace] GetTabletsRequest keyspace - * @property {string|null} [shard] GetTabletsRequest shard - * @property {Array.|null} [cells] GetTabletsRequest cells + * @interface IGetKeyspaceRequest + * @property {string|null} [keyspace] GetKeyspaceRequest keyspace */ /** - * Constructs a new GetTabletsRequest. + * Constructs a new GetKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents a GetTabletsRequest. - * @implements IGetTabletsRequest + * @classdesc Represents a GetKeyspaceRequest. + * @implements IGetKeyspaceRequest * @constructor - * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set + * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set */ - function GetTabletsRequest(properties) { - this.cells = []; + function GetKeyspaceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59472,104 +60814,75 @@ $root.vtctldata = (function() { } /** - * GetTabletsRequest keyspace. + * GetKeyspaceRequest 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 + * @memberof vtctldata.GetKeyspaceRequest * @instance */ - GetTabletsRequest.prototype.cells = $util.emptyArray; + GetKeyspaceRequest.prototype.keyspace = ""; /** - * Creates a new GetTabletsRequest instance using the specified properties. + * Creates a new GetKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.GetKeyspaceRequest * @static - * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest instance + * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest instance */ - GetTabletsRequest.create = function create(properties) { - return new GetTabletsRequest(properties); + GetKeyspaceRequest.create = function create(properties) { + return new GetKeyspaceRequest(properties); }; /** - * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.GetKeyspaceRequest * @static - * @param {vtctldata.IGetTabletsRequest} message GetTabletsRequest 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 */ - GetTabletsRequest.encode = function encode(message, writer) { + GetKeyspaceRequest.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 (var i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); return writer; }; /** - * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * Encodes the specified GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.GetKeyspaceRequest * @static - * @param {vtctldata.IGetTabletsRequest} message GetTabletsRequest 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 */ - GetTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletsRequest message from the specified reader or buffer. + * Decodes a GetKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletsRequest + * @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.GetTabletsRequest} GetTabletsRequest + * @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 */ - GetTabletsRequest.decode = function decode(reader, length) { + GetKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceRequest(); while (reader.pos < end) { var 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()); + case 1: + message.keyspace = reader.string(); break; default: reader.skipType(tag & 7); @@ -59580,138 +60893,107 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetTabletsRequest 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.GetTabletsRequest + * @memberof vtctldata.GetKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest + * @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 */ - GetTabletsRequest.decodeDelimited = function decodeDelimited(reader) { + GetKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTabletsRequest message. + * Verifies a GetKeyspaceRequest message. * @function verify - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.GetKeyspaceRequest * @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) { + GetKeyspaceRequest.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 (var i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } return null; }; /** - * Creates a GetTabletsRequest 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.GetTabletsRequest + * @memberof vtctldata.GetKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest + * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest */ - GetTabletsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletsRequest) + GetKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspaceRequest) return object; - var message = new $root.vtctldata.GetTabletsRequest(); + var message = new $root.vtctldata.GetKeyspaceRequest(); 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 (var i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } return message; }; /** - * Creates a plain object from a GetTabletsRequest 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.GetTabletsRequest + * @memberof vtctldata.GetKeyspaceRequest * @static - * @param {vtctldata.GetTabletsRequest} message GetTabletsRequest + * @param {vtctldata.GetKeyspaceRequest} message GetKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletsRequest.toObject = function toObject(message, options) { + GetKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.cells = []; - if (options.defaults) { + 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 (var j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } return object; }; /** - * Converts this GetTabletsRequest to JSON. + * Converts this GetKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.GetKeyspaceRequest * @instance * @returns {Object.} JSON object */ - GetTabletsRequest.prototype.toJSON = function toJSON() { + GetKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTabletsRequest; + return GetKeyspaceRequest; })(); - vtctldata.GetTabletsResponse = (function() { + vtctldata.GetKeyspaceResponse = (function() { /** - * Properties of a GetTabletsResponse. + * Properties of a GetKeyspaceResponse. * @memberof vtctldata - * @interface IGetTabletsResponse - * @property {Array.|null} [tablets] GetTabletsResponse tablets + * @interface IGetKeyspaceResponse + * @property {vtctldata.IKeyspace|null} [keyspace] GetKeyspaceResponse keyspace */ /** - * Constructs a new GetTabletsResponse. + * Constructs a new GetKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents a GetTabletsResponse. - * @implements IGetTabletsResponse + * @classdesc Represents a GetKeyspaceResponse. + * @implements IGetKeyspaceResponse * @constructor - * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set + * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set */ - function GetTabletsResponse(properties) { - this.tablets = []; + function GetKeyspaceResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59719,78 +61001,75 @@ $root.vtctldata = (function() { } /** - * GetTabletsResponse tablets. - * @member {Array.} tablets - * @memberof vtctldata.GetTabletsResponse + * GetKeyspaceResponse keyspace. + * @member {vtctldata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.GetKeyspaceResponse * @instance */ - GetTabletsResponse.prototype.tablets = $util.emptyArray; + GetKeyspaceResponse.prototype.keyspace = null; /** - * Creates a new GetTabletsResponse instance using the specified properties. + * Creates a new GetKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.GetKeyspaceResponse * @static - * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse instance + * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse instance */ - GetTabletsResponse.create = function create(properties) { - return new GetTabletsResponse(properties); + GetKeyspaceResponse.create = function create(properties) { + return new GetKeyspaceResponse(properties); }; /** - * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.GetKeyspaceResponse * @static - * @param {vtctldata.IGetTabletsResponse} message GetTabletsResponse 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 */ - GetTabletsResponse.encode = function encode(message, writer) { + GetKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablets != null && message.tablets.length) - for (var 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")) + $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * Encodes the specified GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.GetKeyspaceResponse * @static - * @param {vtctldata.IGetTabletsResponse} message GetTabletsResponse 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 */ - GetTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer. + * Decodes a GetKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletsResponse + * @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.GetTabletsResponse} GetTabletsResponse + * @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 */ - GetTabletsResponse.decode = function decode(reader, length) { + GetKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceResponse(); while (reader.pos < end) { var 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 = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -59801,124 +61080,119 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetTabletsResponse 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.GetTabletsResponse + * @memberof vtctldata.GetKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse + * @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 */ - GetTabletsResponse.decodeDelimited = function decodeDelimited(reader) { + GetKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTabletsResponse message. + * Verifies a GetKeyspaceResponse message. * @function verify - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.GetKeyspaceResponse * @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) { + GetKeyspaceResponse.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 (var i = 0; i < message.tablets.length; ++i) { - var error = $root.topodata.Tablet.verify(message.tablets[i]); - if (error) - return "tablets." + error; - } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.vtctldata.Keyspace.verify(message.keyspace); + if (error) + return "keyspace." + error; } return null; }; /** - * Creates a GetTabletsResponse 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.GetTabletsResponse + * @memberof vtctldata.GetKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse + * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse */ - GetTabletsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletsResponse) + GetKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspaceResponse) return object; - var message = new $root.vtctldata.GetTabletsResponse(); - if (object.tablets) { - if (!Array.isArray(object.tablets)) - throw TypeError(".vtctldata.GetTabletsResponse.tablets: array expected"); - message.tablets = []; - for (var 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]); - } + var 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 a GetTabletsResponse 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.GetTabletsResponse + * @memberof vtctldata.GetKeyspaceResponse * @static - * @param {vtctldata.GetTabletsResponse} message GetTabletsResponse + * @param {vtctldata.GetKeyspaceResponse} message GetKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletsResponse.toObject = function toObject(message, options) { + GetKeyspaceResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.tablets = []; - if (message.tablets && message.tablets.length) { - object.tablets = []; - for (var j = 0; j < message.tablets.length; ++j) - object.tablets[j] = $root.topodata.Tablet.toObject(message.tablets[j], options); - } + if (options.defaults) + object.keyspace = null; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this GetTabletsResponse to JSON. + * Converts this GetKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.GetKeyspaceResponse * @instance * @returns {Object.} JSON object */ - GetTabletsResponse.prototype.toJSON = function toJSON() { + GetKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTabletsResponse; + return GetKeyspaceResponse; })(); - vtctldata.GetVSchemaRequest = (function() { + vtctldata.GetSchemaRequest = (function() { /** - * Properties of a GetVSchemaRequest. + * Properties of a GetSchemaRequest. * @memberof vtctldata - * @interface IGetVSchemaRequest - * @property {string|null} [keyspace] GetVSchemaRequest keyspace + * @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 */ /** - * Constructs a new GetVSchemaRequest. + * Constructs a new GetSchemaRequest. * @memberof vtctldata - * @classdesc Represents a GetVSchemaRequest. - * @implements IGetVSchemaRequest + * @classdesc Represents a GetSchemaRequest. + * @implements IGetSchemaRequest * @constructor - * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set */ - function GetVSchemaRequest(properties) { + function GetSchemaRequest(properties) { + this.tables = []; + this.exclude_tables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59926,75 +61200,146 @@ $root.vtctldata = (function() { } /** - * GetVSchemaRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetVSchemaRequest + * GetSchemaRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.GetSchemaRequest * @instance */ - GetVSchemaRequest.prototype.keyspace = ""; + GetSchemaRequest.prototype.tablet_alias = null; /** - * Creates a new GetVSchemaRequest instance using the specified properties. + * GetSchemaRequest tables. + * @member {Array.} tables + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.tables = $util.emptyArray; + + /** + * GetSchemaRequest exclude_tables. + * @member {Array.} exclude_tables + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.exclude_tables = $util.emptyArray; + + /** + * 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; + + /** + * Creates a new GetSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.GetSchemaRequest * @static - * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest instance + * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest instance */ - GetVSchemaRequest.create = function create(properties) { - return new GetVSchemaRequest(properties); + GetSchemaRequest.create = function create(properties) { + return new GetSchemaRequest(properties); }; /** - * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.GetSchemaRequest * @static - * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest 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 */ - GetVSchemaRequest.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.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 (var 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 (var 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); return writer; }; /** - * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.GetSchemaRequest * @static - * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest 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 */ - GetVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer. + * Decodes a GetSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetVSchemaRequest + * @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.GetVSchemaRequest} GetVSchemaRequest + * @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 */ - GetVSchemaRequest.decode = function decode(reader, length) { + GetSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.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; + case 5: + message.table_names_only = reader.bool(); + break; + case 6: + message.table_sizes_only = reader.bool(); break; default: reader.skipType(tag & 7); @@ -60005,107 +61350,179 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetVSchemaRequest 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.GetVSchemaRequest + * @memberof vtctldata.GetSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest + * @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 */ - GetVSchemaRequest.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 GetVSchemaRequest message. + * Verifies a GetSchemaRequest message. * @function verify - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.GetSchemaRequest * @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) { + 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.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var 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 (var 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 (var 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"; return null; }; /** - * Creates a GetVSchemaRequest 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.GetVSchemaRequest + * @memberof vtctldata.GetSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest + * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest */ - GetVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetVSchemaRequest) + GetSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSchemaRequest) return object; - var message = new $root.vtctldata.GetVSchemaRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); + var 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 (var 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 (var 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); return message; }; /** - * Creates a plain object from a GetVSchemaRequest 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.GetVSchemaRequest + * @memberof vtctldata.GetSchemaRequest * @static - * @param {vtctldata.GetVSchemaRequest} message GetVSchemaRequest + * @param {vtctldata.GetSchemaRequest} message GetSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVSchemaRequest.toObject = function toObject(message, options) { + GetSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; + if (options.arrays || options.defaults) { + object.tables = []; + object.exclude_tables = []; + } + if (options.defaults) { + object.tablet_alias = null; + object.include_views = false; + object.table_names_only = false; + object.table_sizes_only = false; + } + 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 (var 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 (var 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; return object; }; /** - * Converts this GetVSchemaRequest to JSON. + * Converts this GetSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.GetSchemaRequest * @instance * @returns {Object.} JSON object */ - GetVSchemaRequest.prototype.toJSON = function toJSON() { + GetSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetVSchemaRequest; + return GetSchemaRequest; })(); - vtctldata.GetVSchemaResponse = (function() { + vtctldata.GetSchemaResponse = (function() { /** - * Properties of a GetVSchemaResponse. + * Properties of a GetSchemaResponse. * @memberof vtctldata - * @interface IGetVSchemaResponse - * @property {vschema.IKeyspace|null} [v_schema] GetVSchemaResponse v_schema + * @interface IGetSchemaResponse + * @property {tabletmanagerdata.ISchemaDefinition|null} [schema] GetSchemaResponse schema */ /** - * Constructs a new GetVSchemaResponse. + * Constructs a new GetSchemaResponse. * @memberof vtctldata - * @classdesc Represents a GetVSchemaResponse. - * @implements IGetVSchemaResponse + * @classdesc Represents a GetSchemaResponse. + * @implements IGetSchemaResponse * @constructor - * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set */ - function GetVSchemaResponse(properties) { + function GetSchemaResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60113,75 +61530,75 @@ $root.vtctldata = (function() { } /** - * GetVSchemaResponse v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtctldata.GetVSchemaResponse + * GetSchemaResponse schema. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} schema + * @memberof vtctldata.GetSchemaResponse * @instance */ - GetVSchemaResponse.prototype.v_schema = null; + GetSchemaResponse.prototype.schema = null; /** - * Creates a new GetVSchemaResponse instance using the specified properties. + * Creates a new GetSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.GetSchemaResponse * @static - * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse instance + * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse instance */ - GetVSchemaResponse.create = function create(properties) { - return new GetVSchemaResponse(properties); + GetSchemaResponse.create = function create(properties) { + return new GetSchemaResponse(properties); }; /** - * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.GetSchemaResponse * @static - * @param {vtctldata.IGetVSchemaResponse} message GetVSchemaResponse 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 */ - GetVSchemaResponse.encode = function encode(message, writer) { + GetSchemaResponse.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.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 GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.GetSchemaResponse * @static - * @param {vtctldata.IGetVSchemaResponse} message GetVSchemaResponse 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 */ - GetVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer. + * Decodes a GetSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetVSchemaResponse + * @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.GetVSchemaResponse} GetVSchemaResponse + * @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 */ - GetVSchemaResponse.decode = function decode(reader, length) { + GetSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + message.schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -60192,113 +61609,113 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetVSchemaResponse 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.GetVSchemaResponse + * @memberof vtctldata.GetSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse + * @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 */ - GetVSchemaResponse.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 GetVSchemaResponse message. + * Verifies a GetSchemaResponse message. * @function verify - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.GetSchemaResponse * @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) { + GetSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) { - var error = $root.vschema.Keyspace.verify(message.v_schema); + if (message.schema != null && message.hasOwnProperty("schema")) { + var error = $root.tabletmanagerdata.SchemaDefinition.verify(message.schema); if (error) - return "v_schema." + error; + return "schema." + error; } return null; }; /** - * Creates a GetVSchemaResponse 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.GetVSchemaResponse + * @memberof vtctldata.GetSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse + * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse */ - GetVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetVSchemaResponse) + GetSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSchemaResponse) return object; - var 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); + var 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 GetVSchemaResponse 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.GetVSchemaResponse + * @memberof vtctldata.GetSchemaResponse * @static - * @param {vtctldata.GetVSchemaResponse} message GetVSchemaResponse + * @param {vtctldata.GetSchemaResponse} message GetSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVSchemaResponse.toObject = function toObject(message, options) { + GetSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.v_schema = null; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + object.schema = null; + if (message.schema != null && message.hasOwnProperty("schema")) + object.schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.schema, options); return object; }; /** - * Converts this GetVSchemaResponse to JSON. + * Converts this GetSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.GetSchemaResponse * @instance * @returns {Object.} JSON object */ - GetVSchemaResponse.prototype.toJSON = function toJSON() { + GetSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetVSchemaResponse; + return GetSchemaResponse; })(); - vtctldata.GetWorkflowsRequest = (function() { + vtctldata.GetShardRequest = (function() { /** - * Properties of a GetWorkflowsRequest. + * Properties of a GetShardRequest. * @memberof vtctldata - * @interface IGetWorkflowsRequest - * @property {string|null} [keyspace] GetWorkflowsRequest keyspace - * @property {boolean|null} [active_only] GetWorkflowsRequest active_only + * @interface IGetShardRequest + * @property {string|null} [keyspace] GetShardRequest keyspace + * @property {string|null} [shard_name] GetShardRequest shard_name */ /** - * Constructs a new GetWorkflowsRequest. + * Constructs a new GetShardRequest. * @memberof vtctldata - * @classdesc Represents a GetWorkflowsRequest. - * @implements IGetWorkflowsRequest + * @classdesc Represents a GetShardRequest. + * @implements IGetShardRequest * @constructor - * @param {vtctldata.IGetWorkflowsRequest=} [properties] Properties to set + * @param {vtctldata.IGetShardRequest=} [properties] Properties to set */ - function GetWorkflowsRequest(properties) { + function GetShardRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60306,80 +61723,80 @@ $root.vtctldata = (function() { } /** - * GetWorkflowsRequest keyspace. + * GetShardRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.GetShardRequest * @instance */ - GetWorkflowsRequest.prototype.keyspace = ""; + GetShardRequest.prototype.keyspace = ""; /** - * GetWorkflowsRequest active_only. - * @member {boolean} active_only - * @memberof vtctldata.GetWorkflowsRequest + * GetShardRequest shard_name. + * @member {string} shard_name + * @memberof vtctldata.GetShardRequest * @instance */ - GetWorkflowsRequest.prototype.active_only = false; + GetShardRequest.prototype.shard_name = ""; /** - * Creates a new GetWorkflowsRequest instance using the specified properties. + * Creates a new GetShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.GetShardRequest * @static - * @param {vtctldata.IGetWorkflowsRequest=} [properties] Properties to set - * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest instance + * @param {vtctldata.IGetShardRequest=} [properties] Properties to set + * @returns {vtctldata.GetShardRequest} GetShardRequest instance */ - GetWorkflowsRequest.create = function create(properties) { - return new GetWorkflowsRequest(properties); + GetShardRequest.create = function create(properties) { + return new GetShardRequest(properties); }; /** - * Encodes the specified GetWorkflowsRequest message. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. + * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.GetShardRequest * @static - * @param {vtctldata.IGetWorkflowsRequest} message GetWorkflowsRequest 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 */ - GetWorkflowsRequest.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.active_only != null && Object.hasOwnProperty.call(message, "active_only")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.active_only); + 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 GetWorkflowsRequest message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. + * Encodes the specified GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.GetShardRequest * @static - * @param {vtctldata.IGetWorkflowsRequest} message GetWorkflowsRequest 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 */ - GetWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetWorkflowsRequest message from the specified reader or buffer. + * Decodes a GetShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetWorkflowsRequest + * @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.GetWorkflowsRequest} GetWorkflowsRequest + * @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 */ - GetWorkflowsRequest.decode = function decode(reader, length) { + GetShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetWorkflowsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -60387,7 +61804,7 @@ $root.vtctldata = (function() { message.keyspace = reader.string(); break; case 2: - message.active_only = reader.bool(); + message.shard_name = reader.string(); break; default: reader.skipType(tag & 7); @@ -60398,117 +61815,116 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetWorkflowsRequest 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.GetWorkflowsRequest + * @memberof vtctldata.GetShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest + * @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 */ - GetWorkflowsRequest.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 GetWorkflowsRequest message. + * Verifies a GetShardRequest message. * @function verify - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.GetShardRequest * @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) { + 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.active_only != null && message.hasOwnProperty("active_only")) - if (typeof message.active_only !== "boolean") - return "active_only: boolean 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 GetWorkflowsRequest 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.GetWorkflowsRequest + * @memberof vtctldata.GetShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest + * @returns {vtctldata.GetShardRequest} GetShardRequest */ - GetWorkflowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetWorkflowsRequest) + GetShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetShardRequest) return object; - var message = new $root.vtctldata.GetWorkflowsRequest(); + var message = new $root.vtctldata.GetShardRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.active_only != null) - message.active_only = Boolean(object.active_only); + if (object.shard_name != null) + message.shard_name = String(object.shard_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 GetShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.GetShardRequest * @static - * @param {vtctldata.GetWorkflowsRequest} message GetWorkflowsRequest + * @param {vtctldata.GetShardRequest} message GetShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetWorkflowsRequest.toObject = function toObject(message, options) { + GetShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.keyspace = ""; - object.active_only = false; + object.shard_name = ""; } 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.shard_name != null && message.hasOwnProperty("shard_name")) + object.shard_name = message.shard_name; return object; }; /** - * Converts this GetWorkflowsRequest to JSON. + * Converts this GetShardRequest to JSON. * @function toJSON - * @memberof vtctldata.GetWorkflowsRequest + * @memberof vtctldata.GetShardRequest * @instance * @returns {Object.} JSON object */ - GetWorkflowsRequest.prototype.toJSON = function toJSON() { + GetShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetWorkflowsRequest; + return GetShardRequest; })(); - vtctldata.GetWorkflowsResponse = (function() { + vtctldata.GetShardResponse = (function() { /** - * Properties of a GetWorkflowsResponse. + * Properties of a GetShardResponse. * @memberof vtctldata - * @interface IGetWorkflowsResponse - * @property {Array.|null} [workflows] GetWorkflowsResponse workflows + * @interface IGetShardResponse + * @property {vtctldata.IShard|null} [shard] GetShardResponse shard */ /** - * Constructs a new GetWorkflowsResponse. + * Constructs a new GetShardResponse. * @memberof vtctldata - * @classdesc Represents a GetWorkflowsResponse. - * @implements IGetWorkflowsResponse + * @classdesc Represents a GetShardResponse. + * @implements IGetShardResponse * @constructor - * @param {vtctldata.IGetWorkflowsResponse=} [properties] Properties to set + * @param {vtctldata.IGetShardResponse=} [properties] Properties to set */ - function GetWorkflowsResponse(properties) { - this.workflows = []; + function GetShardResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60516,78 +61932,75 @@ $root.vtctldata = (function() { } /** - * GetWorkflowsResponse workflows. - * @member {Array.} workflows - * @memberof vtctldata.GetWorkflowsResponse + * GetShardResponse shard. + * @member {vtctldata.IShard|null|undefined} shard + * @memberof vtctldata.GetShardResponse * @instance */ - GetWorkflowsResponse.prototype.workflows = $util.emptyArray; + GetShardResponse.prototype.shard = null; /** - * Creates a new GetWorkflowsResponse instance using the specified properties. + * Creates a new GetShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.IGetWorkflowsResponse=} [properties] Properties to set - * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse instance + * @param {vtctldata.IGetShardResponse=} [properties] Properties to set + * @returns {vtctldata.GetShardResponse} GetShardResponse instance */ - GetWorkflowsResponse.create = function create(properties) { - return new GetWorkflowsResponse(properties); + GetShardResponse.create = function create(properties) { + return new GetShardResponse(properties); }; /** - * Encodes the specified GetWorkflowsResponse message. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. + * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.IGetWorkflowsResponse} message GetWorkflowsResponse 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 */ - GetWorkflowsResponse.encode = function encode(message, writer) { + GetShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workflows != null && message.workflows.length) - for (var i = 0; i < message.workflows.length; ++i) - $root.vtctldata.Workflow.encode(message.workflows[i], 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 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 GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.IGetWorkflowsResponse} message GetWorkflowsResponse 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 */ - GetWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetWorkflowsResponse message from the specified reader or buffer. + * Decodes a GetShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetWorkflowsResponse + * @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.GetWorkflowsResponse} GetWorkflowsResponse + * @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 */ - GetWorkflowsResponse.decode = function decode(reader, length) { + GetShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetWorkflowsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardResponse(); while (reader.pos < end) { var 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())); + message.shard = $root.vtctldata.Shard.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -60598,128 +62011,112 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetWorkflowsResponse 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.GetWorkflowsResponse + * @memberof vtctldata.GetShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse + * @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 */ - GetWorkflowsResponse.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 GetWorkflowsResponse message. + * Verifies a GetShardResponse message. * @function verify - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.GetShardResponse * @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) { + GetShardResponse.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 (var i = 0; i < message.workflows.length; ++i) { - var error = $root.vtctldata.Workflow.verify(message.workflows[i]); - if (error) - return "workflows." + error; - } + if (message.shard != null && message.hasOwnProperty("shard")) { + var error = $root.vtctldata.Shard.verify(message.shard); + if (error) + return "shard." + error; } return null; }; /** - * Creates a GetWorkflowsResponse 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.GetWorkflowsResponse + * @memberof vtctldata.GetShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse + * @returns {vtctldata.GetShardResponse} GetShardResponse */ - GetWorkflowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetWorkflowsResponse) + GetShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetShardResponse) return object; - var message = new $root.vtctldata.GetWorkflowsResponse(); - if (object.workflows) { - if (!Array.isArray(object.workflows)) - throw TypeError(".vtctldata.GetWorkflowsResponse.workflows: array expected"); - message.workflows = []; - for (var 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]); - } + var 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 GetWorkflowsResponse 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.GetWorkflowsResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.GetWorkflowsResponse} message GetWorkflowsResponse + * @param {vtctldata.GetShardResponse} message GetShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetWorkflowsResponse.toObject = function toObject(message, options) { + GetShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.workflows = []; - if (message.workflows && message.workflows.length) { - object.workflows = []; - for (var j = 0; j < message.workflows.length; ++j) - object.workflows[j] = $root.vtctldata.Workflow.toObject(message.workflows[j], options); - } + 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 GetWorkflowsResponse to JSON. + * Converts this GetShardResponse to JSON. * @function toJSON - * @memberof vtctldata.GetWorkflowsResponse + * @memberof vtctldata.GetShardResponse * @instance * @returns {Object.} JSON object */ - GetWorkflowsResponse.prototype.toJSON = function toJSON() { + GetShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetWorkflowsResponse; + return GetShardResponse; })(); - vtctldata.InitShardPrimaryRequest = (function() { + vtctldata.GetSrvVSchemaRequest = (function() { /** - * Properties of an InitShardPrimaryRequest. + * Properties of a GetSrvVSchemaRequest. * @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 IGetSrvVSchemaRequest + * @property {string|null} [cell] GetSrvVSchemaRequest cell */ /** - * Constructs a new InitShardPrimaryRequest. + * Constructs a new GetSrvVSchemaRequest. * @memberof vtctldata - * @classdesc Represents an InitShardPrimaryRequest. - * @implements IInitShardPrimaryRequest + * @classdesc Represents a GetSrvVSchemaRequest. + * @implements IGetSrvVSchemaRequest * @constructor - * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set + * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set */ - function InitShardPrimaryRequest(properties) { + function GetSrvVSchemaRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60727,127 +62124,75 @@ $root.vtctldata = (function() { } /** - * 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 + * GetSrvVSchemaRequest cell. + * @member {string} cell + * @memberof vtctldata.GetSrvVSchemaRequest * @instance */ - InitShardPrimaryRequest.prototype.wait_replicas_timeout = null; + GetSrvVSchemaRequest.prototype.cell = ""; /** - * Creates a new InitShardPrimaryRequest instance using the specified properties. + * Creates a new GetSrvVSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest instance + * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest instance */ - InitShardPrimaryRequest.create = function create(properties) { - return new InitShardPrimaryRequest(properties); + GetSrvVSchemaRequest.create = function create(properties) { + return new GetSrvVSchemaRequest(properties); }; /** - * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.IInitShardPrimaryRequest} message InitShardPrimaryRequest 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 */ - InitShardPrimaryRequest.encode = function encode(message, writer) { + GetSrvVSchemaRequest.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.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); return writer; }; /** - * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * Encodes the specified GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.IInitShardPrimaryRequest} message InitShardPrimaryRequest 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 */ - InitShardPrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.InitShardPrimaryRequest + * @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.InitShardPrimaryRequest} InitShardPrimaryRequest + * @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 */ - InitShardPrimaryRequest.decode = function decode(reader, length) { + GetSrvVSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaRequest(); while (reader.pos < end) { var 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.cell = reader.string(); break; default: reader.skipType(tag & 7); @@ -60858,151 +62203,107 @@ $root.vtctldata = (function() { }; /** - * Decodes an InitShardPrimaryRequest 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.InitShardPrimaryRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest + * @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 */ - InitShardPrimaryRequest.decodeDelimited = function decodeDelimited(reader) { + GetSrvVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InitShardPrimaryRequest message. + * Verifies a GetSrvVSchemaRequest message. * @function verify - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @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) { + GetSrvVSchemaRequest.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")) { - var 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")) { - var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); - if (error) - return "wait_replicas_timeout." + error; - } + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; return null; }; /** - * Creates an InitShardPrimaryRequest 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.InitShardPrimaryRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest + * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest */ - InitShardPrimaryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.InitShardPrimaryRequest) + GetSrvVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvVSchemaRequest) return object; - var 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); - } + var message = new $root.vtctldata.GetSrvVSchemaRequest(); + if (object.cell != null) + message.cell = String(object.cell); return message; }; /** - * Creates a plain object from an InitShardPrimaryRequest 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.InitShardPrimaryRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.InitShardPrimaryRequest} message InitShardPrimaryRequest + * @param {vtctldata.GetSrvVSchemaRequest} message GetSrvVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitShardPrimaryRequest.toObject = function toObject(message, options) { + GetSrvVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var 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.cell = ""; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; return object; }; /** - * Converts this InitShardPrimaryRequest to JSON. + * Converts this GetSrvVSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @instance * @returns {Object.} JSON object */ - InitShardPrimaryRequest.prototype.toJSON = function toJSON() { + GetSrvVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InitShardPrimaryRequest; + return GetSrvVSchemaRequest; })(); - vtctldata.InitShardPrimaryResponse = (function() { + vtctldata.GetSrvVSchemaResponse = (function() { /** - * Properties of an InitShardPrimaryResponse. + * Properties of a GetSrvVSchemaResponse. * @memberof vtctldata - * @interface IInitShardPrimaryResponse - * @property {Array.|null} [events] InitShardPrimaryResponse events + * @interface IGetSrvVSchemaResponse + * @property {vschema.ISrvVSchema|null} [srv_v_schema] GetSrvVSchemaResponse srv_v_schema */ /** - * Constructs a new InitShardPrimaryResponse. + * Constructs a new GetSrvVSchemaResponse. * @memberof vtctldata - * @classdesc Represents an InitShardPrimaryResponse. - * @implements IInitShardPrimaryResponse + * @classdesc Represents a GetSrvVSchemaResponse. + * @implements IGetSrvVSchemaResponse * @constructor - * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set + * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set */ - function InitShardPrimaryResponse(properties) { - this.events = []; + function GetSrvVSchemaResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61010,78 +62311,75 @@ $root.vtctldata = (function() { } /** - * InitShardPrimaryResponse events. - * @member {Array.} events - * @memberof vtctldata.InitShardPrimaryResponse + * GetSrvVSchemaResponse srv_v_schema. + * @member {vschema.ISrvVSchema|null|undefined} srv_v_schema + * @memberof vtctldata.GetSrvVSchemaResponse * @instance */ - InitShardPrimaryResponse.prototype.events = $util.emptyArray; + GetSrvVSchemaResponse.prototype.srv_v_schema = null; /** - * Creates a new InitShardPrimaryResponse instance using the specified properties. + * Creates a new GetSrvVSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse instance + * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse instance */ - InitShardPrimaryResponse.create = function create(properties) { - return new InitShardPrimaryResponse(properties); + GetSrvVSchemaResponse.create = function create(properties) { + return new GetSrvVSchemaResponse(properties); }; /** - * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.IInitShardPrimaryResponse} message InitShardPrimaryResponse 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 */ - InitShardPrimaryResponse.encode = function encode(message, writer) { + GetSrvVSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.events != null && message.events.length) - for (var 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.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 InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * Encodes the specified GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.IInitShardPrimaryResponse} message InitShardPrimaryResponse 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 */ - InitShardPrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.InitShardPrimaryResponse + * @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.InitShardPrimaryResponse} InitShardPrimaryResponse + * @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 */ - InitShardPrimaryResponse.decode = function decode(reader, length) { + GetSrvVSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaResponse(); while (reader.pos < end) { var 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.srv_v_schema = $root.vschema.SrvVSchema.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -61092,128 +62390,112 @@ $root.vtctldata = (function() { }; /** - * Decodes an InitShardPrimaryResponse 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.InitShardPrimaryResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse + * @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 */ - InitShardPrimaryResponse.decodeDelimited = function decodeDelimited(reader) { + GetSrvVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InitShardPrimaryResponse message. + * Verifies a GetSrvVSchemaResponse message. * @function verify - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @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) { + GetSrvVSchemaResponse.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 (var i = 0; i < message.events.length; ++i) { - var error = $root.logutil.Event.verify(message.events[i]); - if (error) - return "events." + error; - } + if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) { + var error = $root.vschema.SrvVSchema.verify(message.srv_v_schema); + if (error) + return "srv_v_schema." + error; } return null; }; /** - * Creates an InitShardPrimaryResponse 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.InitShardPrimaryResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse + * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse */ - InitShardPrimaryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.InitShardPrimaryResponse) + GetSrvVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvVSchemaResponse) return object; - var message = new $root.vtctldata.InitShardPrimaryResponse(); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".vtctldata.InitShardPrimaryResponse.events: array expected"); - message.events = []; - for (var 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]); - } + var 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 an InitShardPrimaryResponse 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.InitShardPrimaryResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.InitShardPrimaryResponse} message InitShardPrimaryResponse + * @param {vtctldata.GetSrvVSchemaResponse} message GetSrvVSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitShardPrimaryResponse.toObject = function toObject(message, options) { + GetSrvVSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.logutil.Event.toObject(message.events[j], options); - } + 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); return object; }; /** - * Converts this InitShardPrimaryResponse to JSON. + * Converts this GetSrvVSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @instance * @returns {Object.} JSON object */ - InitShardPrimaryResponse.prototype.toJSON = function toJSON() { + GetSrvVSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InitShardPrimaryResponse; + return GetSrvVSchemaResponse; })(); - vtctldata.PlannedReparentShardRequest = (function() { + vtctldata.GetTabletRequest = (function() { /** - * Properties of a PlannedReparentShardRequest. + * Properties of a GetTabletRequest. * @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 + * @interface IGetTabletRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] GetTabletRequest tablet_alias */ /** - * Constructs a new PlannedReparentShardRequest. + * Constructs a new GetTabletRequest. * @memberof vtctldata - * @classdesc Represents a PlannedReparentShardRequest. - * @implements IPlannedReparentShardRequest + * @classdesc Represents a GetTabletRequest. + * @implements IGetTabletRequest * @constructor - * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set + * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set */ - function PlannedReparentShardRequest(properties) { + function GetTabletRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61221,127 +62503,75 @@ $root.vtctldata = (function() { } /** - * PlannedReparentShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.PlannedReparentShardRequest - * @instance - */ - PlannedReparentShardRequest.prototype.keyspace = ""; - - /** - * PlannedReparentShardRequest 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 + * GetTabletRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.GetTabletRequest * @instance */ - PlannedReparentShardRequest.prototype.wait_replicas_timeout = null; + GetTabletRequest.prototype.tablet_alias = null; /** - * Creates a new PlannedReparentShardRequest instance using the specified properties. + * Creates a new GetTabletRequest instance using the specified properties. * @function create - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set - * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest instance + * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set + * @returns {vtctldata.GetTabletRequest} GetTabletRequest instance */ - PlannedReparentShardRequest.create = function create(properties) { - return new PlannedReparentShardRequest(properties); + GetTabletRequest.create = function create(properties) { + return new GetTabletRequest(properties); }; /** - * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. + * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.IPlannedReparentShardRequest} message PlannedReparentShardRequest 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 */ - PlannedReparentShardRequest.encode = function encode(message, writer) { + GetTabletRequest.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.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 PlannedReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. + * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.IPlannedReparentShardRequest} message PlannedReparentShardRequest 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 */ - PlannedReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. + * Decodes a GetTabletRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.PlannedReparentShardRequest + * @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.PlannedReparentShardRequest} PlannedReparentShardRequest + * @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 */ - PlannedReparentShardRequest.decode = function decode(reader, length) { + GetTabletRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletRequest(); while (reader.pos < end) { var 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: - message.avoid_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 5: - message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -61352,159 +62582,112 @@ $root.vtctldata = (function() { }; /** - * Decodes a PlannedReparentShardRequest 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.PlannedReparentShardRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest + * @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 */ - PlannedReparentShardRequest.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 PlannedReparentShardRequest message. + * Verifies a GetTabletRequest message. * @function verify - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.GetTabletRequest * @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) { + GetTabletRequest.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")) { - var error = $root.topodata.TabletAlias.verify(message.new_primary); - if (error) - return "new_primary." + error; - } - if (message.avoid_primary != null && message.hasOwnProperty("avoid_primary")) { - var 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")) { - var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) - return "wait_replicas_timeout." + error; + return "tablet_alias." + error; } return null; }; /** - * Creates a PlannedReparentShardRequest 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.PlannedReparentShardRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest + * @returns {vtctldata.GetTabletRequest} GetTabletRequest */ - PlannedReparentShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.PlannedReparentShardRequest) + GetTabletRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletRequest) return object; - var message = new $root.vtctldata.PlannedReparentShardRequest(); - 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); + var 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 PlannedReparentShardRequest 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.PlannedReparentShardRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.PlannedReparentShardRequest} message PlannedReparentShardRequest + * @param {vtctldata.GetTabletRequest} message GetTabletRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PlannedReparentShardRequest.toObject = function toObject(message, options) { + GetTabletRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.new_primary = null; - object.avoid_primary = null; - 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.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 (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 PlannedReparentShardRequest to JSON. + * Converts this GetTabletRequest to JSON. * @function toJSON - * @memberof vtctldata.PlannedReparentShardRequest + * @memberof vtctldata.GetTabletRequest * @instance * @returns {Object.} JSON object */ - PlannedReparentShardRequest.prototype.toJSON = function toJSON() { + GetTabletRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PlannedReparentShardRequest; + return GetTabletRequest; })(); - vtctldata.PlannedReparentShardResponse = (function() { + vtctldata.GetTabletResponse = (function() { /** - * Properties of a PlannedReparentShardResponse. + * Properties of a GetTabletResponse. * @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 IGetTabletResponse + * @property {topodata.ITablet|null} [tablet] GetTabletResponse tablet */ /** - * Constructs a new PlannedReparentShardResponse. + * Constructs a new GetTabletResponse. * @memberof vtctldata - * @classdesc Represents a PlannedReparentShardResponse. - * @implements IPlannedReparentShardResponse + * @classdesc Represents a GetTabletResponse. + * @implements IGetTabletResponse * @constructor - * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set + * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set */ - function PlannedReparentShardResponse(properties) { - this.events = []; + function GetTabletResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61512,117 +62695,75 @@ $root.vtctldata = (function() { } /** - * 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 + * GetTabletResponse tablet. + * @member {topodata.ITablet|null|undefined} tablet + * @memberof vtctldata.GetTabletResponse * @instance */ - PlannedReparentShardResponse.prototype.events = $util.emptyArray; + GetTabletResponse.prototype.tablet = null; /** - * Creates a new PlannedReparentShardResponse instance using the specified properties. + * Creates a new GetTabletResponse instance using the specified properties. * @function create - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set - * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse instance + * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set + * @returns {vtctldata.GetTabletResponse} GetTabletResponse instance */ - PlannedReparentShardResponse.create = function create(properties) { - return new PlannedReparentShardResponse(properties); + GetTabletResponse.create = function create(properties) { + return new GetTabletResponse(properties); }; /** - * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. + * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.IPlannedReparentShardResponse} message PlannedReparentShardResponse 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 */ - PlannedReparentShardResponse.encode = function encode(message, writer) { + GetTabletResponse.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 (var 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.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 PlannedReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. + * Encodes the specified GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.IPlannedReparentShardResponse} message PlannedReparentShardResponse 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 */ - PlannedReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. + * Decodes a GetTabletResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.PlannedReparentShardResponse + * @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.PlannedReparentShardResponse} PlannedReparentShardResponse + * @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 */ - PlannedReparentShardResponse.decode = function decode(reader, length) { + GetTabletResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletResponse(); while (reader.pos < end) { var 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.tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -61633,158 +62774,115 @@ $root.vtctldata = (function() { }; /** - * Decodes a PlannedReparentShardResponse 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.PlannedReparentShardResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse + * @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 */ - PlannedReparentShardResponse.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 PlannedReparentShardResponse message. + * Verifies a GetTabletResponse message. * @function verify - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.GetTabletResponse * @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) { + GetTabletResponse.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")) { - var error = $root.topodata.TabletAlias.verify(message.promoted_primary); + if (message.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.Tablet.verify(message.tablet); if (error) - return "promoted_primary." + error; - } - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.logutil.Event.verify(message.events[i]); - if (error) - return "events." + error; - } + return "tablet." + error; } return null; }; /** - * Creates a PlannedReparentShardResponse 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.PlannedReparentShardResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse + * @returns {vtctldata.GetTabletResponse} GetTabletResponse */ - PlannedReparentShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.PlannedReparentShardResponse) + GetTabletResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletResponse) return object; - var 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 (var 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]); - } + var 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 PlannedReparentShardResponse 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.PlannedReparentShardResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.PlannedReparentShardResponse} message PlannedReparentShardResponse + * @param {vtctldata.GetTabletResponse} message GetTabletResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PlannedReparentShardResponse.toObject = function toObject(message, options) { + GetTabletResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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 (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.logutil.Event.toObject(message.events[j], options); - } + if (options.defaults) + object.tablet = null; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.Tablet.toObject(message.tablet, options); return object; }; /** - * Converts this PlannedReparentShardResponse to JSON. + * Converts this GetTabletResponse to JSON. * @function toJSON - * @memberof vtctldata.PlannedReparentShardResponse + * @memberof vtctldata.GetTabletResponse * @instance * @returns {Object.} JSON object */ - PlannedReparentShardResponse.prototype.toJSON = function toJSON() { + GetTabletResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PlannedReparentShardResponse; + return GetTabletResponse; })(); - vtctldata.RemoveKeyspaceCellRequest = (function() { + vtctldata.GetTabletsRequest = (function() { /** - * Properties of a RemoveKeyspaceCellRequest. + * Properties of a GetTabletsRequest. * @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 IGetTabletsRequest + * @property {string|null} [keyspace] GetTabletsRequest keyspace + * @property {string|null} [shard] GetTabletsRequest shard + * @property {Array.|null} [cells] GetTabletsRequest cells */ /** - * Constructs a new RemoveKeyspaceCellRequest. + * Constructs a new GetTabletsRequest. * @memberof vtctldata - * @classdesc Represents a RemoveKeyspaceCellRequest. - * @implements IRemoveKeyspaceCellRequest + * @classdesc Represents a GetTabletsRequest. + * @implements IGetTabletsRequest * @constructor - * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set + * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set */ - function RemoveKeyspaceCellRequest(properties) { + function GetTabletsRequest(properties) { + this.cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61792,100 +62890,91 @@ $root.vtctldata = (function() { } /** - * RemoveKeyspaceCellRequest keyspace. + * GetTabletsRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.RemoveKeyspaceCellRequest - * @instance - */ - RemoveKeyspaceCellRequest.prototype.keyspace = ""; - - /** - * RemoveKeyspaceCellRequest cell. - * @member {string} cell - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.GetTabletsRequest * @instance */ - RemoveKeyspaceCellRequest.prototype.cell = ""; + GetTabletsRequest.prototype.keyspace = ""; /** - * RemoveKeyspaceCellRequest force. - * @member {boolean} force - * @memberof vtctldata.RemoveKeyspaceCellRequest + * GetTabletsRequest shard. + * @member {string} shard + * @memberof vtctldata.GetTabletsRequest * @instance */ - RemoveKeyspaceCellRequest.prototype.force = false; + GetTabletsRequest.prototype.shard = ""; /** - * RemoveKeyspaceCellRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.RemoveKeyspaceCellRequest + * GetTabletsRequest cells. + * @member {Array.} cells + * @memberof vtctldata.GetTabletsRequest * @instance */ - RemoveKeyspaceCellRequest.prototype.recursive = false; + GetTabletsRequest.prototype.cells = $util.emptyArray; /** - * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. + * Creates a new GetTabletsRequest instance using the specified properties. * @function create - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest instance + * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set + * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest instance */ - RemoveKeyspaceCellRequest.create = function create(properties) { - return new RemoveKeyspaceCellRequest(properties); + GetTabletsRequest.create = function create(properties) { + return new GetTabletsRequest(properties); }; /** - * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest 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 */ - RemoveKeyspaceCellRequest.encode = function encode(message, writer) { + GetTabletsRequest.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.cells != null && message.cells.length) + for (var i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); return writer; }; /** - * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest 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 */ - RemoveKeyspaceCellRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. + * Decodes a GetTabletsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @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.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @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 */ - RemoveKeyspaceCellRequest.decode = function decode(reader, length) { + GetTabletsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -61893,13 +62982,12 @@ $root.vtctldata = (function() { message.keyspace = reader.string(); 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(); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -61910,131 +62998,138 @@ $root.vtctldata = (function() { }; /** - * Decodes a RemoveKeyspaceCellRequest 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.RemoveKeyspaceCellRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @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 */ - RemoveKeyspaceCellRequest.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 RemoveKeyspaceCellRequest message. + * Verifies a GetTabletsRequest message. * @function verify - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.GetTabletsRequest * @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) { + GetTabletsRequest.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.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (var i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } return null; }; /** - * Creates a RemoveKeyspaceCellRequest 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.RemoveKeyspaceCellRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest */ - RemoveKeyspaceCellRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveKeyspaceCellRequest) + GetTabletsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletsRequest) return object; - var message = new $root.vtctldata.RemoveKeyspaceCellRequest(); + var message = new $root.vtctldata.GetTabletsRequest(); 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.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.GetTabletsRequest.cells: array expected"); + message.cells = []; + for (var i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } return message; }; /** - * Creates a plain object from a RemoveKeyspaceCellRequest 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.RemoveKeyspaceCellRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.RemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest + * @param {vtctldata.GetTabletsRequest} message GetTabletsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveKeyspaceCellRequest.toObject = function toObject(message, options) { + GetTabletsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.cells = []; if (options.defaults) { object.keyspace = ""; - object.cell = ""; - object.force = false; - object.recursive = false; + object.shard = ""; } 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.cells && message.cells.length) { + object.cells = []; + for (var j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } return object; }; /** - * Converts this RemoveKeyspaceCellRequest to JSON. + * Converts this GetTabletsRequest to JSON. * @function toJSON - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.GetTabletsRequest * @instance * @returns {Object.} JSON object */ - RemoveKeyspaceCellRequest.prototype.toJSON = function toJSON() { + GetTabletsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RemoveKeyspaceCellRequest; + return GetTabletsRequest; })(); - vtctldata.RemoveKeyspaceCellResponse = (function() { + vtctldata.GetTabletsResponse = (function() { /** - * Properties of a RemoveKeyspaceCellResponse. + * Properties of a GetTabletsResponse. * @memberof vtctldata - * @interface IRemoveKeyspaceCellResponse + * @interface IGetTabletsResponse + * @property {Array.|null} [tablets] GetTabletsResponse tablets */ /** - * Constructs a new RemoveKeyspaceCellResponse. + * Constructs a new GetTabletsResponse. * @memberof vtctldata - * @classdesc Represents a RemoveKeyspaceCellResponse. - * @implements IRemoveKeyspaceCellResponse + * @classdesc Represents a GetTabletsResponse. + * @implements IGetTabletsResponse * @constructor - * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set + * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set */ - function RemoveKeyspaceCellResponse(properties) { + function GetTabletsResponse(properties) { + this.tablets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62042,63 +63137,79 @@ $root.vtctldata = (function() { } /** - * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. + * GetTabletsResponse tablets. + * @member {Array.} tablets + * @memberof vtctldata.GetTabletsResponse + * @instance + */ + GetTabletsResponse.prototype.tablets = $util.emptyArray; + + /** + * Creates a new GetTabletsResponse instance using the specified properties. * @function create - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse instance + * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set + * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse instance */ - RemoveKeyspaceCellResponse.create = function create(properties) { - return new RemoveKeyspaceCellResponse(properties); + GetTabletsResponse.create = function create(properties) { + return new GetTabletsResponse(properties); }; /** - * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse 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 */ - RemoveKeyspaceCellResponse.encode = function encode(message, writer) { + GetTabletsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.tablets != null && message.tablets.length) + for (var 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 RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse 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 */ - RemoveKeyspaceCellResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. + * Decodes a GetTabletsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @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.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + * @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 */ - RemoveKeyspaceCellResponse.decode = function decode(reader, length) { + GetTabletsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsResponse(); while (reader.pos < end) { var 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())); + break; default: reader.skipType(tag & 7); break; @@ -62108,98 +63219,124 @@ $root.vtctldata = (function() { }; /** - * Decodes a RemoveKeyspaceCellResponse 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.RemoveKeyspaceCellResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + * @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 */ - RemoveKeyspaceCellResponse.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 RemoveKeyspaceCellResponse message. + * Verifies a GetTabletsResponse message. * @function verify - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.GetTabletsResponse * @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) { + GetTabletsResponse.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 (var i = 0; i < message.tablets.length; ++i) { + var error = $root.topodata.Tablet.verify(message.tablets[i]); + if (error) + return "tablets." + error; + } + } return null; }; /** - * Creates a RemoveKeyspaceCellResponse 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.RemoveKeyspaceCellResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse */ - RemoveKeyspaceCellResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveKeyspaceCellResponse) + GetTabletsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletsResponse) return object; - return new $root.vtctldata.RemoveKeyspaceCellResponse(); + var message = new $root.vtctldata.GetTabletsResponse(); + if (object.tablets) { + if (!Array.isArray(object.tablets)) + throw TypeError(".vtctldata.GetTabletsResponse.tablets: array expected"); + message.tablets = []; + for (var 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 RemoveKeyspaceCellResponse 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.RemoveKeyspaceCellResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.RemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse + * @param {vtctldata.GetTabletsResponse} message GetTabletsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveKeyspaceCellResponse.toObject = function toObject() { - return {}; + GetTabletsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.tablets = []; + if (message.tablets && message.tablets.length) { + object.tablets = []; + for (var j = 0; j < message.tablets.length; ++j) + object.tablets[j] = $root.topodata.Tablet.toObject(message.tablets[j], options); + } + return object; }; /** - * Converts this RemoveKeyspaceCellResponse to JSON. + * Converts this GetTabletsResponse to JSON. * @function toJSON - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.GetTabletsResponse * @instance * @returns {Object.} JSON object */ - RemoveKeyspaceCellResponse.prototype.toJSON = function toJSON() { + GetTabletsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RemoveKeyspaceCellResponse; + return GetTabletsResponse; })(); - vtctldata.RemoveShardCellRequest = (function() { + vtctldata.GetVSchemaRequest = (function() { /** - * Properties of a RemoveShardCellRequest. + * Properties of a GetVSchemaRequest. * @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 IGetVSchemaRequest + * @property {string|null} [keyspace] GetVSchemaRequest keyspace */ /** - * Constructs a new RemoveShardCellRequest. + * Constructs a new GetVSchemaRequest. * @memberof vtctldata - * @classdesc Represents a RemoveShardCellRequest. - * @implements IRemoveShardCellRequest + * @classdesc Represents a GetVSchemaRequest. + * @implements IGetVSchemaRequest * @constructor - * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set + * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set */ - function RemoveShardCellRequest(properties) { + function GetVSchemaRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62207,128 +63344,76 @@ $root.vtctldata = (function() { } /** - * RemoveShardCellRequest keyspace. + * GetVSchemaRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.RemoveShardCellRequest - * @instance - */ - RemoveShardCellRequest.prototype.keyspace = ""; - - /** - * RemoveShardCellRequest shard_name. - * @member {string} shard_name - * @memberof vtctldata.RemoveShardCellRequest - * @instance - */ - RemoveShardCellRequest.prototype.shard_name = ""; - - /** - * 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 + * @memberof vtctldata.GetVSchemaRequest * @instance */ - RemoveShardCellRequest.prototype.recursive = false; + GetVSchemaRequest.prototype.keyspace = ""; /** - * Creates a new RemoveShardCellRequest instance using the specified properties. + * Creates a new GetVSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.GetVSchemaRequest * @static - * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest instance + * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest instance */ - RemoveShardCellRequest.create = function create(properties) { - return new RemoveShardCellRequest(properties); + GetVSchemaRequest.create = function create(properties) { + return new GetVSchemaRequest(properties); }; /** - * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.GetVSchemaRequest * @static - * @param {vtctldata.IRemoveShardCellRequest} message RemoveShardCellRequest message or plain object to encode + * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveShardCellRequest.encode = function encode(message, writer) { + 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); - 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 RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.GetVSchemaRequest * @static - * @param {vtctldata.IRemoveShardCellRequest} message RemoveShardCellRequest message or plain object to encode + * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveShardCellRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer. + * Decodes a GetVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveShardCellRequest + * @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.RemoveShardCellRequest} RemoveShardCellRequest + * @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 */ - RemoveShardCellRequest.decode = function decode(reader, length) { + GetVSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaRequest(); while (reader.pos < end) { var 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; @@ -62338,139 +63423,107 @@ $root.vtctldata = (function() { }; /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.GetVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest + * @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 */ - RemoveShardCellRequest.decodeDelimited = function decodeDelimited(reader) { + GetVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveShardCellRequest message. + * Verifies a GetVSchemaRequest message. * @function verify - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.GetVSchemaRequest * @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) { + 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"; - 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. + * Creates a GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.GetVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest + * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest */ - RemoveShardCellRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveShardCellRequest) + GetVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetVSchemaRequest) return object; - var message = new $root.vtctldata.RemoveShardCellRequest(); + var message = new $root.vtctldata.GetVSchemaRequest(); 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. + * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.GetVSchemaRequest * @static - * @param {vtctldata.RemoveShardCellRequest} message RemoveShardCellRequest + * @param {vtctldata.GetVSchemaRequest} message GetVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveShardCellRequest.toObject = function toObject(message, options) { + GetVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + 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. + * Converts this GetVSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.GetVSchemaRequest * @instance * @returns {Object.} JSON object */ - RemoveShardCellRequest.prototype.toJSON = function toJSON() { + GetVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RemoveShardCellRequest; + return GetVSchemaRequest; })(); - vtctldata.RemoveShardCellResponse = (function() { + vtctldata.GetVSchemaResponse = (function() { /** - * Properties of a RemoveShardCellResponse. + * Properties of a GetVSchemaResponse. * @memberof vtctldata - * @interface IRemoveShardCellResponse + * @interface IGetVSchemaResponse + * @property {vschema.IKeyspace|null} [v_schema] GetVSchemaResponse v_schema */ /** - * Constructs a new RemoveShardCellResponse. + * Constructs a new GetVSchemaResponse. * @memberof vtctldata - * @classdesc Represents a RemoveShardCellResponse. - * @implements IRemoveShardCellResponse + * @classdesc Represents a GetVSchemaResponse. + * @implements IGetVSchemaResponse * @constructor - * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set + * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set */ - function RemoveShardCellResponse(properties) { + function GetVSchemaResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62478,63 +63531,76 @@ $root.vtctldata = (function() { } /** - * Creates a new RemoveShardCellResponse instance using the specified properties. + * 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. * @function create - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse instance + * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse instance */ - RemoveShardCellResponse.create = function create(properties) { - return new RemoveShardCellResponse(properties); + GetVSchemaResponse.create = function create(properties) { + return new GetVSchemaResponse(properties); }; /** - * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.IRemoveShardCellResponse} message RemoveShardCellResponse 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 */ - RemoveShardCellResponse.encode = function encode(message, writer) { + GetVSchemaResponse.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 RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.IRemoveShardCellResponse} message RemoveShardCellResponse 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 */ - RemoveShardCellResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer. + * Decodes a GetVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveShardCellResponse + * @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.RemoveShardCellResponse} RemoveShardCellResponse + * @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 */ - RemoveShardCellResponse.decode = function decode(reader, length) { + GetVSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -62544,94 +63610,113 @@ $root.vtctldata = (function() { }; /** - * Decodes a RemoveShardCellResponse 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.RemoveShardCellResponse + * @memberof vtctldata.GetVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse + * @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 */ - RemoveShardCellResponse.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 RemoveShardCellResponse message. + * Verifies a GetVSchemaResponse message. * @function verify - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.GetVSchemaResponse * @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) { + GetVSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + var error = $root.vschema.Keyspace.verify(message.v_schema); + if (error) + return "v_schema." + error; + } return null; }; /** - * Creates a RemoveShardCellResponse 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.RemoveShardCellResponse + * @memberof vtctldata.GetVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse + * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse */ - RemoveShardCellResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveShardCellResponse) + GetVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetVSchemaResponse) return object; - return new $root.vtctldata.RemoveShardCellResponse(); + var 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 RemoveShardCellResponse 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.RemoveShardCellResponse + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.RemoveShardCellResponse} message RemoveShardCellResponse + * @param {vtctldata.GetVSchemaResponse} message GetVSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveShardCellResponse.toObject = function toObject() { - return {}; + GetVSchemaResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.v_schema = null; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + return object; }; /** - * Converts this RemoveShardCellResponse to JSON. + * Converts this GetVSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.GetVSchemaResponse * @instance * @returns {Object.} JSON object */ - RemoveShardCellResponse.prototype.toJSON = function toJSON() { + GetVSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RemoveShardCellResponse; + return GetVSchemaResponse; })(); - vtctldata.ReparentTabletRequest = (function() { + vtctldata.GetWorkflowsRequest = (function() { /** - * Properties of a ReparentTabletRequest. + * Properties of a GetWorkflowsRequest. * @memberof vtctldata - * @interface IReparentTabletRequest - * @property {topodata.ITabletAlias|null} [tablet] ReparentTabletRequest tablet + * @interface IGetWorkflowsRequest + * @property {string|null} [keyspace] GetWorkflowsRequest keyspace + * @property {boolean|null} [active_only] GetWorkflowsRequest active_only */ /** - * Constructs a new ReparentTabletRequest. + * Constructs a new GetWorkflowsRequest. * @memberof vtctldata - * @classdesc Represents a ReparentTabletRequest. - * @implements IReparentTabletRequest + * @classdesc Represents a GetWorkflowsRequest. + * @implements IGetWorkflowsRequest * @constructor - * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set + * @param {vtctldata.IGetWorkflowsRequest=} [properties] Properties to set */ - function ReparentTabletRequest(properties) { + function GetWorkflowsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62639,75 +63724,88 @@ $root.vtctldata = (function() { } /** - * ReparentTabletRequest tablet. - * @member {topodata.ITabletAlias|null|undefined} tablet - * @memberof vtctldata.ReparentTabletRequest + * GetWorkflowsRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetWorkflowsRequest * @instance */ - ReparentTabletRequest.prototype.tablet = null; + GetWorkflowsRequest.prototype.keyspace = ""; /** - * Creates a new ReparentTabletRequest instance using the specified properties. + * GetWorkflowsRequest active_only. + * @member {boolean} active_only + * @memberof vtctldata.GetWorkflowsRequest + * @instance + */ + GetWorkflowsRequest.prototype.active_only = false; + + /** + * Creates a new GetWorkflowsRequest instance using the specified properties. * @function create - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.GetWorkflowsRequest * @static - * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set - * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest instance + * @param {vtctldata.IGetWorkflowsRequest=} [properties] Properties to set + * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest instance */ - ReparentTabletRequest.create = function create(properties) { - return new ReparentTabletRequest(properties); + GetWorkflowsRequest.create = function create(properties) { + return new GetWorkflowsRequest(properties); }; /** - * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. + * Encodes the specified GetWorkflowsRequest message. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.GetWorkflowsRequest * @static - * @param {vtctldata.IReparentTabletRequest} message ReparentTabletRequest 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 */ - ReparentTabletRequest.encode = function encode(message, writer) { + GetWorkflowsRequest.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.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); return writer; }; /** - * Encodes the specified ReparentTabletRequest message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. + * Encodes the specified GetWorkflowsRequest message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.GetWorkflowsRequest * @static - * @param {vtctldata.IReparentTabletRequest} message ReparentTabletRequest 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 */ - ReparentTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer. + * Decodes a GetWorkflowsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReparentTabletRequest + * @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.ReparentTabletRequest} ReparentTabletRequest + * @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 */ - ReparentTabletRequest.decode = function decode(reader, length) { + GetWorkflowsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetWorkflowsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + case 2: + message.active_only = reader.bool(); break; default: reader.skipType(tag & 7); @@ -62718,114 +63816,117 @@ $root.vtctldata = (function() { }; /** - * Decodes a ReparentTabletRequest 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.ReparentTabletRequest + * @memberof vtctldata.GetWorkflowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest + * @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 */ - ReparentTabletRequest.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 ReparentTabletRequest message. + * Verifies a GetWorkflowsRequest message. * @function verify - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.GetWorkflowsRequest * @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) { + GetWorkflowsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - var error = $root.topodata.TabletAlias.verify(message.tablet); - if (error) - return "tablet." + 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"; return null; }; /** - * Creates a ReparentTabletRequest 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.ReparentTabletRequest + * @memberof vtctldata.GetWorkflowsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest + * @returns {vtctldata.GetWorkflowsRequest} GetWorkflowsRequest */ - ReparentTabletRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReparentTabletRequest) + GetWorkflowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetWorkflowsRequest) return object; - var 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); - } + var 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); return message; }; /** - * Creates a plain object from a ReparentTabletRequest 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.ReparentTabletRequest + * @memberof vtctldata.GetWorkflowsRequest * @static - * @param {vtctldata.ReparentTabletRequest} message ReparentTabletRequest + * @param {vtctldata.GetWorkflowsRequest} message GetWorkflowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReparentTabletRequest.toObject = function toObject(message, options) { + GetWorkflowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.tablet = null; - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); + if (options.defaults) { + object.keyspace = ""; + object.active_only = 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; return object; }; /** - * Converts this ReparentTabletRequest to JSON. + * Converts this GetWorkflowsRequest to JSON. * @function toJSON - * @memberof vtctldata.ReparentTabletRequest + * @memberof vtctldata.GetWorkflowsRequest * @instance * @returns {Object.} JSON object */ - ReparentTabletRequest.prototype.toJSON = function toJSON() { + GetWorkflowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReparentTabletRequest; + return GetWorkflowsRequest; })(); - vtctldata.ReparentTabletResponse = (function() { + vtctldata.GetWorkflowsResponse = (function() { /** - * Properties of a ReparentTabletResponse. + * Properties of a GetWorkflowsResponse. * @memberof vtctldata - * @interface IReparentTabletResponse - * @property {string|null} [keyspace] ReparentTabletResponse keyspace - * @property {string|null} [shard] ReparentTabletResponse shard - * @property {topodata.ITabletAlias|null} [primary] ReparentTabletResponse primary + * @interface IGetWorkflowsResponse + * @property {Array.|null} [workflows] GetWorkflowsResponse workflows */ /** - * Constructs a new ReparentTabletResponse. + * Constructs a new GetWorkflowsResponse. * @memberof vtctldata - * @classdesc Represents a ReparentTabletResponse. - * @implements IReparentTabletResponse + * @classdesc Represents a GetWorkflowsResponse. + * @implements IGetWorkflowsResponse * @constructor - * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set + * @param {vtctldata.IGetWorkflowsResponse=} [properties] Properties to set */ - function ReparentTabletResponse(properties) { + function GetWorkflowsResponse(properties) { + this.workflows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62833,101 +63934,78 @@ $root.vtctldata = (function() { } /** - * ReparentTabletResponse keyspace. - * @member {string} keyspace - * @memberof vtctldata.ReparentTabletResponse - * @instance - */ - ReparentTabletResponse.prototype.keyspace = ""; - - /** - * ReparentTabletResponse shard. - * @member {string} shard - * @memberof vtctldata.ReparentTabletResponse - * @instance - */ - ReparentTabletResponse.prototype.shard = ""; - - /** - * ReparentTabletResponse primary. - * @member {topodata.ITabletAlias|null|undefined} primary - * @memberof vtctldata.ReparentTabletResponse + * GetWorkflowsResponse workflows. + * @member {Array.} workflows + * @memberof vtctldata.GetWorkflowsResponse * @instance */ - ReparentTabletResponse.prototype.primary = null; + GetWorkflowsResponse.prototype.workflows = $util.emptyArray; /** - * Creates a new ReparentTabletResponse instance using the specified properties. + * Creates a new GetWorkflowsResponse instance using the specified properties. * @function create - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.GetWorkflowsResponse * @static - * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set - * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse instance + * @param {vtctldata.IGetWorkflowsResponse=} [properties] Properties to set + * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse instance */ - ReparentTabletResponse.create = function create(properties) { - return new ReparentTabletResponse(properties); + GetWorkflowsResponse.create = function create(properties) { + return new GetWorkflowsResponse(properties); }; /** - * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. + * Encodes the specified GetWorkflowsResponse message. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.GetWorkflowsResponse * @static - * @param {vtctldata.IReparentTabletResponse} message ReparentTabletResponse 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 */ - ReparentTabletResponse.encode = function encode(message, writer) { + GetWorkflowsResponse.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(); + if (message.workflows != null && message.workflows.length) + for (var 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 ReparentTabletResponse message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. + * Encodes the specified GetWorkflowsResponse message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.GetWorkflowsResponse * @static - * @param {vtctldata.IReparentTabletResponse} message ReparentTabletResponse 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 */ - ReparentTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer. + * Decodes a GetWorkflowsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ReparentTabletResponse + * @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.ReparentTabletResponse} ReparentTabletResponse + * @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 */ - ReparentTabletResponse.decode = function decode(reader, length) { + GetWorkflowsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetWorkflowsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); - break; - case 2: - message.shard = reader.string(); - break; - case 3: - message.primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + if (!(message.workflows && message.workflows.length)) + message.workflows = []; + message.workflows.push($root.vtctldata.Workflow.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -62938,129 +64016,128 @@ $root.vtctldata = (function() { }; /** - * Decodes a ReparentTabletResponse 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.ReparentTabletResponse + * @memberof vtctldata.GetWorkflowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse + * @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 */ - ReparentTabletResponse.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 ReparentTabletResponse message. + * Verifies a GetWorkflowsResponse message. * @function verify - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.GetWorkflowsResponse * @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) { + GetWorkflowsResponse.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 != null && message.hasOwnProperty("primary")) { - var error = $root.topodata.TabletAlias.verify(message.primary); - if (error) - return "primary." + error; + if (message.workflows != null && message.hasOwnProperty("workflows")) { + if (!Array.isArray(message.workflows)) + return "workflows: array expected"; + for (var i = 0; i < message.workflows.length; ++i) { + var error = $root.vtctldata.Workflow.verify(message.workflows[i]); + if (error) + return "workflows." + error; + } } return null; }; /** - * Creates a ReparentTabletResponse 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.ReparentTabletResponse + * @memberof vtctldata.GetWorkflowsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse + * @returns {vtctldata.GetWorkflowsResponse} GetWorkflowsResponse */ - ReparentTabletResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ReparentTabletResponse) + GetWorkflowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetWorkflowsResponse) return object; - var 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.primary != null) { - if (typeof object.primary !== "object") - throw TypeError(".vtctldata.ReparentTabletResponse.primary: object expected"); - message.primary = $root.topodata.TabletAlias.fromObject(object.primary); + var message = new $root.vtctldata.GetWorkflowsResponse(); + if (object.workflows) { + if (!Array.isArray(object.workflows)) + throw TypeError(".vtctldata.GetWorkflowsResponse.workflows: array expected"); + message.workflows = []; + for (var 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 ReparentTabletResponse 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.ReparentTabletResponse + * @memberof vtctldata.GetWorkflowsResponse * @static - * @param {vtctldata.ReparentTabletResponse} message ReparentTabletResponse + * @param {vtctldata.GetWorkflowsResponse} message GetWorkflowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReparentTabletResponse.toObject = function toObject(message, options) { + GetWorkflowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.primary = null; + if (options.arrays || options.defaults) + object.workflows = []; + if (message.workflows && message.workflows.length) { + object.workflows = []; + for (var j = 0; j < message.workflows.length; ++j) + object.workflows[j] = $root.vtctldata.Workflow.toObject(message.workflows[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.primary != null && message.hasOwnProperty("primary")) - object.primary = $root.topodata.TabletAlias.toObject(message.primary, options); return object; }; /** - * Converts this ReparentTabletResponse to JSON. + * Converts this GetWorkflowsResponse to JSON. * @function toJSON - * @memberof vtctldata.ReparentTabletResponse + * @memberof vtctldata.GetWorkflowsResponse * @instance * @returns {Object.} JSON object */ - ReparentTabletResponse.prototype.toJSON = function toJSON() { + GetWorkflowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReparentTabletResponse; + return GetWorkflowsResponse; })(); - vtctldata.TabletExternallyReparentedRequest = (function() { + vtctldata.InitShardPrimaryRequest = (function() { /** - * Properties of a TabletExternallyReparentedRequest. + * Properties of an InitShardPrimaryRequest. * @memberof vtctldata - * @interface ITabletExternallyReparentedRequest - * @property {topodata.ITabletAlias|null} [tablet] TabletExternallyReparentedRequest tablet + * @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 TabletExternallyReparentedRequest. + * Constructs a new InitShardPrimaryRequest. * @memberof vtctldata - * @classdesc Represents a TabletExternallyReparentedRequest. - * @implements ITabletExternallyReparentedRequest + * @classdesc Represents an InitShardPrimaryRequest. + * @implements IInitShardPrimaryRequest * @constructor - * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set + * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set */ - function TabletExternallyReparentedRequest(properties) { + function InitShardPrimaryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63068,75 +64145,127 @@ $root.vtctldata = (function() { } /** - * TabletExternallyReparentedRequest tablet. - * @member {topodata.ITabletAlias|null|undefined} tablet - * @memberof vtctldata.TabletExternallyReparentedRequest + * InitShardPrimaryRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.InitShardPrimaryRequest * @instance */ - TabletExternallyReparentedRequest.prototype.tablet = null; + InitShardPrimaryRequest.prototype.keyspace = ""; /** - * Creates a new TabletExternallyReparentedRequest 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.TabletExternallyReparentedRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set - * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest instance + * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set + * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest instance */ - TabletExternallyReparentedRequest.create = function create(properties) { - return new TabletExternallyReparentedRequest(properties); + InitShardPrimaryRequest.create = function create(properties) { + return new InitShardPrimaryRequest(properties); }; /** - * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. + * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.ITabletExternallyReparentedRequest} message TabletExternallyReparentedRequest 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 */ - TabletExternallyReparentedRequest.encode = function encode(message, writer) { + InitShardPrimaryRequest.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.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 TabletExternallyReparentedRequest message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. + * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.ITabletExternallyReparentedRequest} message TabletExternallyReparentedRequest 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 */ - TabletExternallyReparentedRequest.encodeDelimited = function encodeDelimited(message, writer) { + InitShardPrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.TabletExternallyReparentedRequest + * @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.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest + * @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 */ - TabletExternallyReparentedRequest.decode = function decode(reader, length) { + InitShardPrimaryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + 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: reader.skipType(tag & 7); @@ -63147,230 +64276,230 @@ $root.vtctldata = (function() { }; /** - * Decodes a TabletExternallyReparentedRequest 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.TabletExternallyReparentedRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest + * @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 */ - TabletExternallyReparentedRequest.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 TabletExternallyReparentedRequest message. + * Verifies an InitShardPrimaryRequest message. * @function verify - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.InitShardPrimaryRequest * @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) { + InitShardPrimaryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - var error = $root.topodata.TabletAlias.verify(message.tablet); + 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")) { + var error = $root.topodata.TabletAlias.verify(message.primary_elect_tablet_alias); if (error) - return "tablet." + 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")) { + var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; } return null; }; /** - * Creates a TabletExternallyReparentedRequest 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.TabletExternallyReparentedRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest + * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest */ - TabletExternallyReparentedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.TabletExternallyReparentedRequest) + InitShardPrimaryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.InitShardPrimaryRequest) return object; - var 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); + var 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 TabletExternallyReparentedRequest 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.TabletExternallyReparentedRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.TabletExternallyReparentedRequest} message TabletExternallyReparentedRequest + * @param {vtctldata.InitShardPrimaryRequest} message InitShardPrimaryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TabletExternallyReparentedRequest.toObject = function toObject(message, options) { + InitShardPrimaryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.tablet = null; - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, 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 TabletExternallyReparentedRequest to JSON. + * Converts this InitShardPrimaryRequest to JSON. * @function toJSON - * @memberof vtctldata.TabletExternallyReparentedRequest + * @memberof vtctldata.InitShardPrimaryRequest * @instance * @returns {Object.} JSON object */ - TabletExternallyReparentedRequest.prototype.toJSON = function toJSON() { + InitShardPrimaryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TabletExternallyReparentedRequest; + return InitShardPrimaryRequest; })(); - vtctldata.TabletExternallyReparentedResponse = (function() { + vtctldata.InitShardPrimaryResponse = (function() { /** - * Properties of a TabletExternallyReparentedResponse. + * Properties of an InitShardPrimaryResponse. * @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 IInitShardPrimaryResponse + * @property {Array.|null} [events] InitShardPrimaryResponse events */ /** - * Constructs a new TabletExternallyReparentedResponse. + * Constructs a new InitShardPrimaryResponse. * @memberof vtctldata - * @classdesc Represents a TabletExternallyReparentedResponse. - * @implements ITabletExternallyReparentedResponse + * @classdesc Represents an InitShardPrimaryResponse. + * @implements IInitShardPrimaryResponse * @constructor - * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set + * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set */ - function TabletExternallyReparentedResponse(properties) { + function InitShardPrimaryResponse(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TabletExternallyReparentedResponse keyspace. - * @member {string} keyspace - * @memberof vtctldata.TabletExternallyReparentedResponse - * @instance - */ - TabletExternallyReparentedResponse.prototype.keyspace = ""; - - /** - * 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; + this[keys[i]] = properties[keys[i]]; + } /** - * TabletExternallyReparentedResponse old_primary. - * @member {topodata.ITabletAlias|null|undefined} old_primary - * @memberof vtctldata.TabletExternallyReparentedResponse + * InitShardPrimaryResponse events. + * @member {Array.} events + * @memberof vtctldata.InitShardPrimaryResponse * @instance */ - TabletExternallyReparentedResponse.prototype.old_primary = null; + InitShardPrimaryResponse.prototype.events = $util.emptyArray; /** - * Creates a new TabletExternallyReparentedResponse instance using the specified properties. + * Creates a new InitShardPrimaryResponse instance using the specified properties. * @function create - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set - * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse instance + * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set + * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse instance */ - TabletExternallyReparentedResponse.create = function create(properties) { - return new TabletExternallyReparentedResponse(properties); + InitShardPrimaryResponse.create = function create(properties) { + return new InitShardPrimaryResponse(properties); }; /** - * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. + * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.ITabletExternallyReparentedResponse} message TabletExternallyReparentedResponse 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 */ - TabletExternallyReparentedResponse.encode = function encode(message, writer) { + InitShardPrimaryResponse.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.events != null && message.events.length) + for (var 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 TabletExternallyReparentedResponse message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. + * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.ITabletExternallyReparentedResponse} message TabletExternallyReparentedResponse 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 */ - TabletExternallyReparentedResponse.encodeDelimited = function encodeDelimited(message, writer) { + InitShardPrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.TabletExternallyReparentedResponse + * @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.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse + * @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 */ - TabletExternallyReparentedResponse.decode = function decode(reader, length) { + InitShardPrimaryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryResponse(); while (reader.pos < end) { var 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: - message.old_primary = $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: reader.skipType(tag & 7); @@ -63381,156 +64510,128 @@ $root.vtctldata = (function() { }; /** - * Decodes a TabletExternallyReparentedResponse 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.TabletExternallyReparentedResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse + * @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 */ - TabletExternallyReparentedResponse.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 TabletExternallyReparentedResponse message. + * Verifies an InitShardPrimaryResponse message. * @function verify - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.InitShardPrimaryResponse * @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) { + InitShardPrimaryResponse.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")) { - var error = $root.topodata.TabletAlias.verify(message.new_primary); - if (error) - return "new_primary." + error; - } - if (message.old_primary != null && message.hasOwnProperty("old_primary")) { - var error = $root.topodata.TabletAlias.verify(message.old_primary); - if (error) - return "old_primary." + error; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.logutil.Event.verify(message.events[i]); + if (error) + return "events." + error; + } } return null; }; /** - * Creates a TabletExternallyReparentedResponse 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.TabletExternallyReparentedResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse + * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse */ - TabletExternallyReparentedResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.TabletExternallyReparentedResponse) + InitShardPrimaryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.InitShardPrimaryResponse) return object; - var 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); + var message = new $root.vtctldata.InitShardPrimaryResponse(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".vtctldata.InitShardPrimaryResponse.events: array expected"); + message.events = []; + for (var 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 TabletExternallyReparentedResponse 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.TabletExternallyReparentedResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.TabletExternallyReparentedResponse} message TabletExternallyReparentedResponse + * @param {vtctldata.InitShardPrimaryResponse} message InitShardPrimaryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TabletExternallyReparentedResponse.toObject = function toObject(message, options) { + InitShardPrimaryResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.new_primary = null; - object.old_primary = null; + if (options.arrays || options.defaults) + object.events = []; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[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.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 TabletExternallyReparentedResponse to JSON. + * Converts this InitShardPrimaryResponse to JSON. * @function toJSON - * @memberof vtctldata.TabletExternallyReparentedResponse + * @memberof vtctldata.InitShardPrimaryResponse * @instance * @returns {Object.} JSON object */ - TabletExternallyReparentedResponse.prototype.toJSON = function toJSON() { + InitShardPrimaryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TabletExternallyReparentedResponse; + return InitShardPrimaryResponse; })(); - return vtctldata; -})(); - -$root.binlogdata = (function() { - - /** - * Namespace binlogdata. - * @exports binlogdata - * @namespace - */ - var binlogdata = {}; - - binlogdata.Charset = (function() { + vtctldata.PlannedReparentShardRequest = (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 PlannedReparentShardRequest. + * @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 */ /** - * Constructs a new Charset. - * @memberof binlogdata - * @classdesc Represents a Charset. - * @implements ICharset + * Constructs a new PlannedReparentShardRequest. + * @memberof vtctldata + * @classdesc Represents a PlannedReparentShardRequest. + * @implements IPlannedReparentShardRequest * @constructor - * @param {binlogdata.ICharset=} [properties] Properties to set + * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set */ - function Charset(properties) { + function PlannedReparentShardRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63538,101 +64639,127 @@ $root.binlogdata = (function() { } /** - * Charset client. - * @member {number} client - * @memberof binlogdata.Charset + * PlannedReparentShardRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.PlannedReparentShardRequest * @instance */ - Charset.prototype.client = 0; + PlannedReparentShardRequest.prototype.keyspace = ""; /** - * Charset conn. - * @member {number} conn - * @memberof binlogdata.Charset + * PlannedReparentShardRequest shard. + * @member {string} shard + * @memberof vtctldata.PlannedReparentShardRequest * @instance */ - Charset.prototype.conn = 0; + PlannedReparentShardRequest.prototype.shard = ""; /** - * Charset server. - * @member {number} server - * @memberof binlogdata.Charset + * PlannedReparentShardRequest new_primary. + * @member {topodata.ITabletAlias|null|undefined} new_primary + * @memberof vtctldata.PlannedReparentShardRequest * @instance */ - Charset.prototype.server = 0; + PlannedReparentShardRequest.prototype.new_primary = null; /** - * Creates a new Charset 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; + + /** + * Creates a new PlannedReparentShardRequest instance using the specified properties. * @function create - * @memberof binlogdata.Charset + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {binlogdata.ICharset=} [properties] Properties to set - * @returns {binlogdata.Charset} Charset instance + * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set + * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest instance */ - Charset.create = function create(properties) { - return new Charset(properties); + PlannedReparentShardRequest.create = function create(properties) { + return new PlannedReparentShardRequest(properties); }; /** - * Encodes the specified Charset message. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. + * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.Charset + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {binlogdata.ICharset} message Charset 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 */ - Charset.encode = function encode(message, writer) { + PlannedReparentShardRequest.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.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(); return writer; }; /** - * Encodes the specified Charset message, length delimited. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. + * Encodes the specified PlannedReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.Charset + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {binlogdata.ICharset} message Charset 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 */ - Charset.encodeDelimited = function encodeDelimited(message, writer) { + PlannedReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Charset message from the specified reader or buffer. + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.Charset + * @memberof vtctldata.PlannedReparentShardRequest * @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 {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest * @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) { + PlannedReparentShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Charset(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client = reader.int32(); + message.keyspace = reader.string(); break; case 2: - message.conn = reader.int32(); + message.shard = reader.string(); break; case 3: - message.server = reader.int32(); + 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; default: reader.skipType(tag & 7); @@ -63643,126 +64770,159 @@ $root.binlogdata = (function() { }; /** - * Decodes a Charset message from the specified reader or buffer, length delimited. + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.Charset + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.Charset} Charset + * @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 */ - Charset.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 Charset message. + * Verifies a PlannedReparentShardRequest message. * @function verify - * @memberof binlogdata.Charset + * @memberof vtctldata.PlannedReparentShardRequest * @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) { + PlannedReparentShardRequest.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"; + 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")) { + var error = $root.topodata.TabletAlias.verify(message.new_primary); + if (error) + return "new_primary." + error; + } + if (message.avoid_primary != null && message.hasOwnProperty("avoid_primary")) { + var 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")) { + var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; + } return null; }; /** - * Creates a Charset 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 binlogdata.Charset + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.Charset} Charset + * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest */ - Charset.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.Charset) + PlannedReparentShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.PlannedReparentShardRequest) return object; - var 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; + var message = new $root.vtctldata.PlannedReparentShardRequest(); + 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); + } return message; }; /** - * Creates a plain object from a Charset 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 binlogdata.Charset + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {binlogdata.Charset} message Charset + * @param {vtctldata.PlannedReparentShardRequest} message PlannedReparentShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Charset.toObject = function toObject(message, options) { + PlannedReparentShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.client = 0; - object.conn = 0; - object.server = 0; + object.keyspace = ""; + object.shard = ""; + object.new_primary = null; + object.avoid_primary = null; + object.wait_replicas_timeout = null; } - 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; + 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); return object; }; /** - * Converts this Charset to JSON. + * Converts this PlannedReparentShardRequest to JSON. * @function toJSON - * @memberof binlogdata.Charset + * @memberof vtctldata.PlannedReparentShardRequest * @instance * @returns {Object.} JSON object */ - Charset.prototype.toJSON = function toJSON() { + PlannedReparentShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Charset; + return PlannedReparentShardRequest; })(); - binlogdata.BinlogTransaction = (function() { + vtctldata.PlannedReparentShardResponse = (function() { /** - * Properties of a BinlogTransaction. - * @memberof binlogdata - * @interface IBinlogTransaction - * @property {Array.|null} [statements] BinlogTransaction statements - * @property {query.IEventToken|null} [event_token] BinlogTransaction event_token + * Properties of a PlannedReparentShardResponse. + * @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 */ /** - * Constructs a new BinlogTransaction. - * @memberof binlogdata - * @classdesc Represents a BinlogTransaction. - * @implements IBinlogTransaction + * Constructs a new PlannedReparentShardResponse. + * @memberof vtctldata + * @classdesc Represents a PlannedReparentShardResponse. + * @implements IPlannedReparentShardResponse * @constructor - * @param {binlogdata.IBinlogTransaction=} [properties] Properties to set + * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set */ - function BinlogTransaction(properties) { - this.statements = []; + function PlannedReparentShardResponse(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63770,91 +64930,117 @@ $root.binlogdata = (function() { } /** - * BinlogTransaction statements. - * @member {Array.} statements - * @memberof binlogdata.BinlogTransaction + * PlannedReparentShardResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.PlannedReparentShardResponse * @instance */ - BinlogTransaction.prototype.statements = $util.emptyArray; + PlannedReparentShardResponse.prototype.keyspace = ""; /** - * BinlogTransaction event_token. - * @member {query.IEventToken|null|undefined} event_token - * @memberof binlogdata.BinlogTransaction + * PlannedReparentShardResponse shard. + * @member {string} shard + * @memberof vtctldata.PlannedReparentShardResponse * @instance */ - BinlogTransaction.prototype.event_token = null; + PlannedReparentShardResponse.prototype.shard = ""; /** - * Creates a new BinlogTransaction instance using the specified properties. + * 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 binlogdata.BinlogTransaction + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {binlogdata.IBinlogTransaction=} [properties] Properties to set - * @returns {binlogdata.BinlogTransaction} BinlogTransaction instance + * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set + * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse instance */ - BinlogTransaction.create = function create(properties) { - return new BinlogTransaction(properties); + PlannedReparentShardResponse.create = function create(properties) { + return new PlannedReparentShardResponse(properties); }; /** - * Encodes the specified BinlogTransaction message. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. + * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. * @function encode - * @memberof binlogdata.BinlogTransaction + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {binlogdata.IBinlogTransaction} message BinlogTransaction 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 */ - BinlogTransaction.encode = function encode(message, writer) { + PlannedReparentShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.statements != null && message.statements.length) - for (var i = 0; i < message.statements.length; ++i) - $root.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(); + 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 (var 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 BinlogTransaction message, length delimited. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. + * Encodes the specified PlannedReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.BinlogTransaction + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {binlogdata.IBinlogTransaction} message BinlogTransaction 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 */ - BinlogTransaction.encodeDelimited = function encodeDelimited(message, writer) { + PlannedReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BinlogTransaction message from the specified reader or buffer. + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. * @function decode - * @memberof binlogdata.BinlogTransaction + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.BinlogTransaction} BinlogTransaction + * @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 */ - BinlogTransaction.decode = function decode(reader, length) { + PlannedReparentShardResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogTransaction(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.statements && message.statements.length)) - message.statements = []; - message.statements.push($root.binlogdata.BinlogTransaction.Statement.decode(reader, reader.uint32())); + 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: - message.event_token = $root.query.EventToken.decode(reader, reader.uint32()); + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.logutil.Event.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -63865,469 +65051,158 @@ $root.binlogdata = (function() { }; /** - * Decodes a BinlogTransaction message from the specified reader or buffer, length delimited. + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.BinlogTransaction + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.BinlogTransaction} BinlogTransaction + * @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 */ - BinlogTransaction.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 BinlogTransaction message. + * Verifies a PlannedReparentShardResponse message. * @function verify - * @memberof binlogdata.BinlogTransaction + * @memberof vtctldata.PlannedReparentShardResponse * @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) { + PlannedReparentShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.statements != null && message.hasOwnProperty("statements")) { - if (!Array.isArray(message.statements)) - return "statements: array expected"; - for (var i = 0; i < message.statements.length; ++i) { - var error = $root.binlogdata.BinlogTransaction.Statement.verify(message.statements[i]); + 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")) { + var 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 (var i = 0; i < message.events.length; ++i) { + var error = $root.logutil.Event.verify(message.events[i]); if (error) - return "statements." + error; + return "events." + error; } } - if (message.event_token != null && message.hasOwnProperty("event_token")) { - var error = $root.query.EventToken.verify(message.event_token); - if (error) - return "event_token." + error; - } return null; }; /** - * Creates a BinlogTransaction 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 binlogdata.BinlogTransaction + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {Object.} object Plain object - * @returns {binlogdata.BinlogTransaction} BinlogTransaction + * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse */ - BinlogTransaction.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.BinlogTransaction) + PlannedReparentShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.PlannedReparentShardResponse) return object; - var message = new $root.binlogdata.BinlogTransaction(); - if (object.statements) { - if (!Array.isArray(object.statements)) - throw TypeError(".binlogdata.BinlogTransaction.statements: array expected"); - message.statements = []; - for (var 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]); - } + var 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.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.events) { + if (!Array.isArray(object.events)) + throw TypeError(".vtctldata.PlannedReparentShardResponse.events: array expected"); + message.events = []; + for (var 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 BinlogTransaction 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 binlogdata.BinlogTransaction + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {binlogdata.BinlogTransaction} message BinlogTransaction + * @param {vtctldata.PlannedReparentShardResponse} message PlannedReparentShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BinlogTransaction.toObject = function toObject(message, options) { + PlannedReparentShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.statements = []; - if (options.defaults) - object.event_token = null; - if (message.statements && message.statements.length) { - object.statements = []; - for (var j = 0; j < message.statements.length; ++j) - object.statements[j] = $root.binlogdata.BinlogTransaction.Statement.toObject(message.statements[j], options); - } - if (message.event_token != null && message.hasOwnProperty("event_token")) - object.event_token = $root.query.EventToken.toObject(message.event_token, options); - return object; - }; - - /** - * Converts this BinlogTransaction to JSON. - * @function toJSON - * @memberof binlogdata.BinlogTransaction - * @instance - * @returns {Object.} JSON object - */ - BinlogTransaction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - BinlogTransaction.Statement = (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 - */ - - /** - * 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 (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + 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 (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); + } + return object; + }; - /** - * Statement category. - * @member {binlogdata.BinlogTransaction.Statement.Category} category - * @memberof binlogdata.BinlogTransaction.Statement - * @instance - */ - Statement.prototype.category = 0; - - /** - * Statement charset. - * @member {binlogdata.ICharset|null|undefined} charset - * @memberof binlogdata.BinlogTransaction.Statement - * @instance - */ - Statement.prototype.charset = null; - - /** - * Statement sql. - * @member {Uint8Array} sql - * @memberof binlogdata.BinlogTransaction.Statement - * @instance - */ - Statement.prototype.sql = $util.newBuffer([]); - - /** - * 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); - }; - - /** - * 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; - }; - - /** - * 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(); - }; - - /** - * 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); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogTransaction.Statement(); - while (reader.pos < end) { - var 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; - }; - - /** - * 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()); - }; - - /** - * 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")) { - var 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. - * @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; - var message = new $root.binlogdata.BinlogTransaction.Statement(); - switch (object.category) { - 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) - 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 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 = {}; - var 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] : 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; - }; - - /** - * 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); - }; - - /** - * 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() { - var 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; - })(); + /** + * Converts this PlannedReparentShardResponse to JSON. + * @function toJSON + * @memberof vtctldata.PlannedReparentShardResponse + * @instance + * @returns {Object.} JSON object + */ + PlannedReparentShardResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return BinlogTransaction; + return PlannedReparentShardResponse; })(); - binlogdata.StreamKeyRangeRequest = (function() { + vtctldata.RemoveKeyspaceCellRequest = (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 RemoveKeyspaceCellRequest. + * @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 */ /** - * Constructs a new StreamKeyRangeRequest. - * @memberof binlogdata - * @classdesc Represents a StreamKeyRangeRequest. - * @implements IStreamKeyRangeRequest + * Constructs a new RemoveKeyspaceCellRequest. + * @memberof vtctldata + * @classdesc Represents a RemoveKeyspaceCellRequest. + * @implements IRemoveKeyspaceCellRequest * @constructor - * @param {binlogdata.IStreamKeyRangeRequest=} [properties] Properties to set + * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set */ - function StreamKeyRangeRequest(properties) { + function RemoveKeyspaceCellRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64335,101 +65210,114 @@ $root.binlogdata = (function() { } /** - * StreamKeyRangeRequest position. - * @member {string} position - * @memberof binlogdata.StreamKeyRangeRequest + * RemoveKeyspaceCellRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.RemoveKeyspaceCellRequest * @instance */ - StreamKeyRangeRequest.prototype.position = ""; + RemoveKeyspaceCellRequest.prototype.keyspace = ""; /** - * StreamKeyRangeRequest key_range. - * @member {topodata.IKeyRange|null|undefined} key_range - * @memberof binlogdata.StreamKeyRangeRequest + * RemoveKeyspaceCellRequest cell. + * @member {string} cell + * @memberof vtctldata.RemoveKeyspaceCellRequest * @instance */ - StreamKeyRangeRequest.prototype.key_range = null; + RemoveKeyspaceCellRequest.prototype.cell = ""; /** - * StreamKeyRangeRequest charset. - * @member {binlogdata.ICharset|null|undefined} charset - * @memberof binlogdata.StreamKeyRangeRequest + * RemoveKeyspaceCellRequest force. + * @member {boolean} force + * @memberof vtctldata.RemoveKeyspaceCellRequest * @instance */ - StreamKeyRangeRequest.prototype.charset = null; + RemoveKeyspaceCellRequest.prototype.force = false; /** - * Creates a new StreamKeyRangeRequest instance using the specified properties. + * RemoveKeyspaceCellRequest recursive. + * @member {boolean} recursive + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @instance + */ + RemoveKeyspaceCellRequest.prototype.recursive = false; + + /** + * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. * @function create - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static - * @param {binlogdata.IStreamKeyRangeRequest=} [properties] Properties to set - * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest instance + * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set + * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest instance */ - StreamKeyRangeRequest.create = function create(properties) { - return new StreamKeyRangeRequest(properties); + RemoveKeyspaceCellRequest.create = function create(properties) { + return new RemoveKeyspaceCellRequest(properties); }; /** - * Encodes the specified StreamKeyRangeRequest message. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. + * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static - * @param {binlogdata.IStreamKeyRangeRequest} message StreamKeyRangeRequest message or plain object to encode + * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamKeyRangeRequest.encode = function encode(message, writer) { + RemoveKeyspaceCellRequest.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(); + 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; }; /** - * Encodes the specified StreamKeyRangeRequest message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. + * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static - * @param {binlogdata.IStreamKeyRangeRequest} message StreamKeyRangeRequest message or plain object to encode + * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamKeyRangeRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveKeyspaceCellRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamKeyRangeRequest message from the specified reader or buffer. + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @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 {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest * @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) { + RemoveKeyspaceCellRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamKeyRangeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.position = reader.string(); + message.keyspace = reader.string(); break; case 2: - message.key_range = $root.topodata.KeyRange.decode(reader, reader.uint32()); + message.cell = reader.string(); break; case 3: - message.charset = $root.binlogdata.Charset.decode(reader, reader.uint32()); + message.force = reader.bool(); + break; + case 4: + message.recursive = reader.bool(); break; default: reader.skipType(tag & 7); @@ -64440,134 +65328,131 @@ $root.binlogdata = (function() { }; /** - * Decodes a StreamKeyRangeRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest + * @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 */ - StreamKeyRangeRequest.decodeDelimited = function decodeDelimited(reader) { + RemoveKeyspaceCellRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamKeyRangeRequest message. + * Verifies a RemoveKeyspaceCellRequest message. * @function verify - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @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) { + RemoveKeyspaceCellRequest.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")) { - var error = $root.topodata.KeyRange.verify(message.key_range); - if (error) - return "key_range." + error; - } - if (message.charset != null && message.hasOwnProperty("charset")) { - var 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.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 StreamKeyRangeRequest 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. * @function fromObject - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest + * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest */ - StreamKeyRangeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.StreamKeyRangeRequest) + RemoveKeyspaceCellRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveKeyspaceCellRequest) return object; - var 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); - } + var 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 StreamKeyRangeRequest message. Also converts values to other types if specified. + * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. * @function toObject - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static - * @param {binlogdata.StreamKeyRangeRequest} message StreamKeyRangeRequest + * @param {vtctldata.RemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamKeyRangeRequest.toObject = function toObject(message, options) { + RemoveKeyspaceCellRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.position = ""; - object.key_range = null; - object.charset = null; + object.keyspace = ""; + object.cell = ""; + object.force = false; + object.recursive = false; } - 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); + 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 StreamKeyRangeRequest to JSON. + * Converts this RemoveKeyspaceCellRequest to JSON. * @function toJSON - * @memberof binlogdata.StreamKeyRangeRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @instance * @returns {Object.} JSON object */ - StreamKeyRangeRequest.prototype.toJSON = function toJSON() { + RemoveKeyspaceCellRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamKeyRangeRequest; + return RemoveKeyspaceCellRequest; })(); - binlogdata.StreamKeyRangeResponse = (function() { + vtctldata.RemoveKeyspaceCellResponse = (function() { /** - * Properties of a StreamKeyRangeResponse. - * @memberof binlogdata - * @interface IStreamKeyRangeResponse - * @property {binlogdata.IBinlogTransaction|null} [binlog_transaction] StreamKeyRangeResponse binlog_transaction + * Properties of a RemoveKeyspaceCellResponse. + * @memberof vtctldata + * @interface IRemoveKeyspaceCellResponse */ /** - * Constructs a new StreamKeyRangeResponse. - * @memberof binlogdata - * @classdesc Represents a StreamKeyRangeResponse. - * @implements IStreamKeyRangeResponse + * Constructs a new RemoveKeyspaceCellResponse. + * @memberof vtctldata + * @classdesc Represents a RemoveKeyspaceCellResponse. + * @implements IRemoveKeyspaceCellResponse * @constructor - * @param {binlogdata.IStreamKeyRangeResponse=} [properties] Properties to set + * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set */ - function StreamKeyRangeResponse(properties) { + function RemoveKeyspaceCellResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64575,75 +65460,292 @@ $root.binlogdata = (function() { } /** - * StreamKeyRangeResponse binlog_transaction. - * @member {binlogdata.IBinlogTransaction|null|undefined} binlog_transaction - * @memberof binlogdata.StreamKeyRangeResponse + * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. + * @function create + * @memberof vtctldata.RemoveKeyspaceCellResponse + * @static + * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set + * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse instance + */ + RemoveKeyspaceCellResponse.create = function create(properties) { + return new RemoveKeyspaceCellResponse(properties); + }; + + /** + * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.RemoveKeyspaceCellResponse + * @static + * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveKeyspaceCellResponse.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. + * @function encodeDelimited + * @memberof vtctldata.RemoveKeyspaceCellResponse + * @static + * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RemoveKeyspaceCellResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. + * @function decode + * @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.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.RemoveKeyspaceCellResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + RemoveKeyspaceCellResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RemoveKeyspaceCellResponse message. + * @function verify + * @memberof vtctldata.RemoveKeyspaceCellResponse + * @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) { + 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. + * @function fromObject + * @memberof vtctldata.RemoveKeyspaceCellResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + */ + RemoveKeyspaceCellResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveKeyspaceCellResponse) + return object; + return new $root.vtctldata.RemoveKeyspaceCellResponse(); + }; + + /** + * Creates a plain object from a RemoveKeyspaceCellResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.RemoveKeyspaceCellResponse + * @static + * @param {vtctldata.RemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RemoveKeyspaceCellResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this RemoveKeyspaceCellResponse to JSON. + * @function toJSON + * @memberof vtctldata.RemoveKeyspaceCellResponse * @instance + * @returns {Object.} JSON object */ - StreamKeyRangeResponse.prototype.binlog_transaction = null; + RemoveKeyspaceCellResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return RemoveKeyspaceCellResponse; + })(); + + vtctldata.RemoveShardCellRequest = (function() { /** - * Creates a new StreamKeyRangeResponse instance using the specified properties. + * Properties of a RemoveShardCellRequest. + * @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 + */ + + /** + * Constructs a new RemoveShardCellRequest. + * @memberof vtctldata + * @classdesc Represents a RemoveShardCellRequest. + * @implements IRemoveShardCellRequest + * @constructor + * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set + */ + function RemoveShardCellRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RemoveShardCellRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.RemoveShardCellRequest + * @instance + */ + RemoveShardCellRequest.prototype.keyspace = ""; + + /** + * RemoveShardCellRequest shard_name. + * @member {string} shard_name + * @memberof vtctldata.RemoveShardCellRequest + * @instance + */ + RemoveShardCellRequest.prototype.shard_name = ""; + + /** + * 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 binlogdata.StreamKeyRangeResponse + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {binlogdata.IStreamKeyRangeResponse=} [properties] Properties to set - * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse instance + * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set + * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest instance */ - StreamKeyRangeResponse.create = function create(properties) { - return new StreamKeyRangeResponse(properties); + RemoveShardCellRequest.create = function create(properties) { + return new RemoveShardCellRequest(properties); }; /** - * Encodes the specified StreamKeyRangeResponse message. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. + * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.StreamKeyRangeResponse + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {binlogdata.IStreamKeyRangeResponse} message StreamKeyRangeResponse 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 */ - StreamKeyRangeResponse.encode = function encode(message, writer) { + RemoveShardCellRequest.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.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 StreamKeyRangeResponse message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. + * Encodes the specified RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.StreamKeyRangeResponse + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {binlogdata.IStreamKeyRangeResponse} message StreamKeyRangeResponse 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 */ - StreamKeyRangeResponse.encodeDelimited = function encodeDelimited(message, writer) { + RemoveShardCellRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamKeyRangeResponse message from the specified reader or buffer. + * Decodes a RemoveShardCellRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.StreamKeyRangeResponse + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse + * @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 */ - StreamKeyRangeResponse.decode = function decode(reader, length) { + RemoveShardCellRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamKeyRangeResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.binlog_transaction = $root.binlogdata.BinlogTransaction.decode(reader, reader.uint32()); + 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); @@ -64654,115 +65756,139 @@ $root.binlogdata = (function() { }; /** - * Decodes a StreamKeyRangeResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.StreamKeyRangeResponse + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse + * @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 */ - StreamKeyRangeResponse.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 StreamKeyRangeResponse message. + * Verifies a RemoveShardCellRequest message. * @function verify - * @memberof binlogdata.StreamKeyRangeResponse + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamKeyRangeResponse.verify = function verify(message) { + RemoveShardCellRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) { - var 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_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 StreamKeyRangeResponse 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 binlogdata.StreamKeyRangeResponse + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse + * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest */ - StreamKeyRangeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.StreamKeyRangeResponse) + RemoveShardCellRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveShardCellRequest) return object; - var 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); - } + var 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 StreamKeyRangeResponse 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 binlogdata.StreamKeyRangeResponse + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {binlogdata.StreamKeyRangeResponse} message StreamKeyRangeResponse + * @param {vtctldata.RemoveShardCellRequest} message RemoveShardCellRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamKeyRangeResponse.toObject = function toObject(message, options) { + RemoveShardCellRequest.toObject = function toObject(message, options) { if (!options) options = {}; var 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); + 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 StreamKeyRangeResponse to JSON. + * Converts this RemoveShardCellRequest to JSON. * @function toJSON - * @memberof binlogdata.StreamKeyRangeResponse + * @memberof vtctldata.RemoveShardCellRequest * @instance * @returns {Object.} JSON object */ - StreamKeyRangeResponse.prototype.toJSON = function toJSON() { + RemoveShardCellRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamKeyRangeResponse; + return RemoveShardCellRequest; })(); - binlogdata.StreamTablesRequest = (function() { + vtctldata.RemoveShardCellResponse = (function() { /** - * 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 + * Properties of a RemoveShardCellResponse. + * @memberof vtctldata + * @interface IRemoveShardCellResponse */ /** - * Constructs a new StreamTablesRequest. - * @memberof binlogdata - * @classdesc Represents a StreamTablesRequest. - * @implements IStreamTablesRequest + * Constructs a new RemoveShardCellResponse. + * @memberof vtctldata + * @classdesc Represents a RemoveShardCellResponse. + * @implements IRemoveShardCellResponse * @constructor - * @param {binlogdata.IStreamTablesRequest=} [properties] Properties to set + * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set */ - function StreamTablesRequest(properties) { - this.tables = []; + function RemoveShardCellResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64770,105 +65896,63 @@ $root.binlogdata = (function() { } /** - * StreamTablesRequest position. - * @member {string} position - * @memberof binlogdata.StreamTablesRequest - * @instance - */ - StreamTablesRequest.prototype.position = ""; - - /** - * StreamTablesRequest tables. - * @member {Array.} tables - * @memberof binlogdata.StreamTablesRequest - * @instance - */ - StreamTablesRequest.prototype.tables = $util.emptyArray; - - /** - * StreamTablesRequest charset. - * @member {binlogdata.ICharset|null|undefined} charset - * @memberof binlogdata.StreamTablesRequest - * @instance - */ - StreamTablesRequest.prototype.charset = null; - - /** - * Creates a new StreamTablesRequest instance using the specified properties. + * Creates a new RemoveShardCellResponse instance using the specified properties. * @function create - * @memberof binlogdata.StreamTablesRequest + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {binlogdata.IStreamTablesRequest=} [properties] Properties to set - * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest instance + * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set + * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse instance */ - StreamTablesRequest.create = function create(properties) { - return new StreamTablesRequest(properties); + RemoveShardCellResponse.create = function create(properties) { + return new RemoveShardCellResponse(properties); }; /** - * Encodes the specified StreamTablesRequest message. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. + * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. * @function encode - * @memberof binlogdata.StreamTablesRequest + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {binlogdata.IStreamTablesRequest} message StreamTablesRequest 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 */ - StreamTablesRequest.encode = function encode(message, writer) { + RemoveShardCellResponse.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 (var 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 StreamTablesRequest message, length delimited. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. + * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.StreamTablesRequest + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {binlogdata.IStreamTablesRequest} message StreamTablesRequest 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 */ - StreamTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveShardCellResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamTablesRequest message from the specified reader or buffer. + * Decodes a RemoveShardCellResponse message from the specified reader or buffer. * @function decode - * @memberof binlogdata.StreamTablesRequest + * @memberof vtctldata.RemoveShardCellResponse * @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 {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse * @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) { + RemoveShardCellResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamTablesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.position = reader.string(); - break; - case 2: - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); - break; - case 3: - message.charset = $root.binlogdata.Charset.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -64878,142 +65962,94 @@ $root.binlogdata = (function() { }; /** - * Decodes a StreamTablesRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.StreamTablesRequest + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest + * @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 */ - StreamTablesRequest.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 StreamTablesRequest message. + * Verifies a RemoveShardCellResponse message. * @function verify - * @memberof binlogdata.StreamTablesRequest + * @memberof vtctldata.RemoveShardCellResponse * @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) { + RemoveShardCellResponse.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 (var i = 0; i < message.tables.length; ++i) - if (!$util.isString(message.tables[i])) - return "tables: string[] expected"; - } - if (message.charset != null && message.hasOwnProperty("charset")) { - var error = $root.binlogdata.Charset.verify(message.charset); - if (error) - return "charset." + error; - } return null; }; /** - * Creates a StreamTablesRequest 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 binlogdata.StreamTablesRequest + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {Object.} object Plain object - * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest + * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse */ - StreamTablesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.StreamTablesRequest) + RemoveShardCellResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveShardCellResponse) return object; - var 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 (var 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); - } - return message; + return new $root.vtctldata.RemoveShardCellResponse(); }; /** - * Creates a plain object from a StreamTablesRequest 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 binlogdata.StreamTablesRequest + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {binlogdata.StreamTablesRequest} message StreamTablesRequest + * @param {vtctldata.RemoveShardCellResponse} message RemoveShardCellResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamTablesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.tables = []; - if (options.defaults) { - object.position = ""; - object.charset = null; - } - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - if (message.tables && message.tables.length) { - object.tables = []; - for (var j = 0; j < message.tables.length; ++j) - object.tables[j] = message.tables[j]; - } - if (message.charset != null && message.hasOwnProperty("charset")) - object.charset = $root.binlogdata.Charset.toObject(message.charset, options); - return object; + RemoveShardCellResponse.toObject = function toObject() { + return {}; }; /** - * Converts this StreamTablesRequest to JSON. + * Converts this RemoveShardCellResponse to JSON. * @function toJSON - * @memberof binlogdata.StreamTablesRequest + * @memberof vtctldata.RemoveShardCellResponse * @instance * @returns {Object.} JSON object */ - StreamTablesRequest.prototype.toJSON = function toJSON() { + RemoveShardCellResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamTablesRequest; + return RemoveShardCellResponse; })(); - binlogdata.StreamTablesResponse = (function() { + vtctldata.ReparentTabletRequest = (function() { /** - * Properties of a StreamTablesResponse. - * @memberof binlogdata - * @interface IStreamTablesResponse - * @property {binlogdata.IBinlogTransaction|null} [binlog_transaction] StreamTablesResponse binlog_transaction + * Properties of a ReparentTabletRequest. + * @memberof vtctldata + * @interface IReparentTabletRequest + * @property {topodata.ITabletAlias|null} [tablet] ReparentTabletRequest tablet */ /** - * Constructs a new StreamTablesResponse. - * @memberof binlogdata - * @classdesc Represents a StreamTablesResponse. - * @implements IStreamTablesResponse + * Constructs a new ReparentTabletRequest. + * @memberof vtctldata + * @classdesc Represents a ReparentTabletRequest. + * @implements IReparentTabletRequest * @constructor - * @param {binlogdata.IStreamTablesResponse=} [properties] Properties to set + * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set */ - function StreamTablesResponse(properties) { + function ReparentTabletRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65021,75 +66057,75 @@ $root.binlogdata = (function() { } /** - * StreamTablesResponse binlog_transaction. - * @member {binlogdata.IBinlogTransaction|null|undefined} binlog_transaction - * @memberof binlogdata.StreamTablesResponse + * ReparentTabletRequest tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.ReparentTabletRequest * @instance */ - StreamTablesResponse.prototype.binlog_transaction = null; + ReparentTabletRequest.prototype.tablet = null; /** - * Creates a new StreamTablesResponse instance using the specified properties. + * Creates a new ReparentTabletRequest instance using the specified properties. * @function create - * @memberof binlogdata.StreamTablesResponse + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {binlogdata.IStreamTablesResponse=} [properties] Properties to set - * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse instance + * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set + * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest instance */ - StreamTablesResponse.create = function create(properties) { - return new StreamTablesResponse(properties); + ReparentTabletRequest.create = function create(properties) { + return new ReparentTabletRequest(properties); }; /** - * Encodes the specified StreamTablesResponse message. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. + * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.StreamTablesResponse + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {binlogdata.IStreamTablesResponse} message StreamTablesResponse 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 */ - StreamTablesResponse.encode = function encode(message, writer) { + ReparentTabletRequest.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.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 StreamTablesResponse message, length delimited. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. + * Encodes the specified ReparentTabletRequest message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.StreamTablesResponse + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {binlogdata.IStreamTablesResponse} message StreamTablesResponse 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 */ - StreamTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReparentTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamTablesResponse message from the specified reader or buffer. + * Decodes a ReparentTabletRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.StreamTablesResponse + * @memberof vtctldata.ReparentTabletRequest * @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 {vtctldata.ReparentTabletRequest} ReparentTabletRequest * @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) { + ReparentTabletRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamTablesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.binlog_transaction = $root.binlogdata.BinlogTransaction.decode(reader, reader.uint32()); + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -65100,113 +66136,114 @@ $root.binlogdata = (function() { }; /** - * Decodes a StreamTablesResponse message from the specified reader or buffer, length delimited. + * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.StreamTablesResponse + * @memberof vtctldata.ReparentTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse + * @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 */ - StreamTablesResponse.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 StreamTablesResponse message. + * Verifies a ReparentTabletRequest message. * @function verify - * @memberof binlogdata.StreamTablesResponse + * @memberof vtctldata.ReparentTabletRequest * @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) { + ReparentTabletRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) { - var error = $root.binlogdata.BinlogTransaction.verify(message.binlog_transaction); + if (message.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.TabletAlias.verify(message.tablet); if (error) - return "binlog_transaction." + error; + return "tablet." + error; } return null; }; /** - * Creates a StreamTablesResponse 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 binlogdata.StreamTablesResponse + * @memberof vtctldata.ReparentTabletRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse + * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest */ - StreamTablesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.StreamTablesResponse) + ReparentTabletRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReparentTabletRequest) return object; - var 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); + var 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 StreamTablesResponse 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 binlogdata.StreamTablesResponse + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {binlogdata.StreamTablesResponse} message StreamTablesResponse + * @param {vtctldata.ReparentTabletRequest} message ReparentTabletRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamTablesResponse.toObject = function toObject(message, options) { + ReparentTabletRequest.toObject = function toObject(message, options) { if (!options) options = {}; var 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); + object.tablet = null; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); return object; }; /** - * Converts this StreamTablesResponse to JSON. + * Converts this ReparentTabletRequest to JSON. * @function toJSON - * @memberof binlogdata.StreamTablesResponse + * @memberof vtctldata.ReparentTabletRequest * @instance * @returns {Object.} JSON object */ - StreamTablesResponse.prototype.toJSON = function toJSON() { + ReparentTabletRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamTablesResponse; + return ReparentTabletRequest; })(); - binlogdata.Rule = (function() { + vtctldata.ReparentTabletResponse = (function() { /** - * Properties of a Rule. - * @memberof binlogdata - * @interface IRule - * @property {string|null} [match] Rule match - * @property {string|null} [filter] Rule filter + * Properties of a ReparentTabletResponse. + * @memberof vtctldata + * @interface IReparentTabletResponse + * @property {string|null} [keyspace] ReparentTabletResponse keyspace + * @property {string|null} [shard] ReparentTabletResponse shard + * @property {topodata.ITabletAlias|null} [primary] ReparentTabletResponse primary */ /** - * Constructs a new Rule. - * @memberof binlogdata - * @classdesc Represents a Rule. - * @implements IRule + * Constructs a new ReparentTabletResponse. + * @memberof vtctldata + * @classdesc Represents a ReparentTabletResponse. + * @implements IReparentTabletResponse * @constructor - * @param {binlogdata.IRule=} [properties] Properties to set + * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set */ - function Rule(properties) { + function ReparentTabletResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65214,88 +66251,101 @@ $root.binlogdata = (function() { } /** - * Rule match. - * @member {string} match - * @memberof binlogdata.Rule + * ReparentTabletResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.ReparentTabletResponse * @instance */ - Rule.prototype.match = ""; + ReparentTabletResponse.prototype.keyspace = ""; /** - * Rule filter. - * @member {string} filter - * @memberof binlogdata.Rule + * ReparentTabletResponse shard. + * @member {string} shard + * @memberof vtctldata.ReparentTabletResponse * @instance */ - Rule.prototype.filter = ""; + ReparentTabletResponse.prototype.shard = ""; /** - * Creates a new Rule instance using the specified properties. + * ReparentTabletResponse primary. + * @member {topodata.ITabletAlias|null|undefined} primary + * @memberof vtctldata.ReparentTabletResponse + * @instance + */ + ReparentTabletResponse.prototype.primary = null; + + /** + * Creates a new ReparentTabletResponse instance using the specified properties. * @function create - * @memberof binlogdata.Rule + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {binlogdata.IRule=} [properties] Properties to set - * @returns {binlogdata.Rule} Rule instance + * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set + * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse instance */ - Rule.create = function create(properties) { - return new Rule(properties); + ReparentTabletResponse.create = function create(properties) { + return new ReparentTabletResponse(properties); }; /** - * Encodes the specified Rule message. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. + * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. * @function encode - * @memberof binlogdata.Rule + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {binlogdata.IRule} message Rule 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 */ - Rule.encode = function encode(message, writer) { + ReparentTabletResponse.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.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 Rule message, length delimited. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. + * Encodes the specified ReparentTabletResponse message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.Rule + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {binlogdata.IRule} message Rule 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 */ - Rule.encodeDelimited = function encodeDelimited(message, writer) { + ReparentTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Rule message from the specified reader or buffer. + * Decodes a ReparentTabletResponse message from the specified reader or buffer. * @function decode - * @memberof binlogdata.Rule + * @memberof vtctldata.ReparentTabletResponse * @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 {vtctldata.ReparentTabletResponse} ReparentTabletResponse * @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) { + ReparentTabletResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Rule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.match = reader.string(); + message.keyspace = reader.string(); break; case 2: - message.filter = reader.string(); + message.shard = reader.string(); + break; + case 3: + message.primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -65306,118 +66356,129 @@ $root.binlogdata = (function() { }; /** - * Decodes a Rule message from the specified reader or buffer, length delimited. + * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.Rule + * @memberof vtctldata.ReparentTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.Rule} Rule + * @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 */ - Rule.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 Rule message. + * Verifies a ReparentTabletResponse message. * @function verify - * @memberof binlogdata.Rule + * @memberof vtctldata.ReparentTabletResponse * @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) { + ReparentTabletResponse.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.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 != null && message.hasOwnProperty("primary")) { + var error = $root.topodata.TabletAlias.verify(message.primary); + if (error) + return "primary." + error; + } return null; }; /** - * Creates a Rule 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 binlogdata.Rule + * @memberof vtctldata.ReparentTabletResponse * @static * @param {Object.} object Plain object - * @returns {binlogdata.Rule} Rule + * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse */ - Rule.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.Rule) + ReparentTabletResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReparentTabletResponse) return object; - var message = new $root.binlogdata.Rule(); - if (object.match != null) - message.match = String(object.match); - if (object.filter != null) - message.filter = String(object.filter); + var 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.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 Rule 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 binlogdata.Rule + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {binlogdata.Rule} message Rule + * @param {vtctldata.ReparentTabletResponse} message ReparentTabletResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Rule.toObject = function toObject(message, options) { + ReparentTabletResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.match = ""; - object.filter = ""; + object.keyspace = ""; + object.shard = ""; + object.primary = null; } - if (message.match != null && message.hasOwnProperty("match")) - object.match = message.match; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + 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 Rule to JSON. + * Converts this ReparentTabletResponse to JSON. * @function toJSON - * @memberof binlogdata.Rule + * @memberof vtctldata.ReparentTabletResponse * @instance * @returns {Object.} JSON object */ - Rule.prototype.toJSON = function toJSON() { + ReparentTabletResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Rule; + return ReparentTabletResponse; })(); - binlogdata.Filter = (function() { + vtctldata.TabletExternallyReparentedRequest = (function() { /** - * Properties of a Filter. - * @memberof binlogdata - * @interface IFilter - * @property {Array.|null} [rules] Filter rules - * @property {binlogdata.Filter.FieldEventMode|null} [fieldEventMode] Filter fieldEventMode + * Properties of a TabletExternallyReparentedRequest. + * @memberof vtctldata + * @interface ITabletExternallyReparentedRequest + * @property {topodata.ITabletAlias|null} [tablet] TabletExternallyReparentedRequest tablet */ /** - * Constructs a new Filter. - * @memberof binlogdata - * @classdesc Represents a Filter. - * @implements IFilter + * Constructs a new TabletExternallyReparentedRequest. + * @memberof vtctldata + * @classdesc Represents a TabletExternallyReparentedRequest. + * @implements ITabletExternallyReparentedRequest * @constructor - * @param {binlogdata.IFilter=} [properties] Properties to set + * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set */ - function Filter(properties) { - this.rules = []; + function TabletExternallyReparentedRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65425,91 +66486,75 @@ $root.binlogdata = (function() { } /** - * Filter rules. - * @member {Array.} rules - * @memberof binlogdata.Filter - * @instance - */ - Filter.prototype.rules = $util.emptyArray; - - /** - * Filter fieldEventMode. - * @member {binlogdata.Filter.FieldEventMode} fieldEventMode - * @memberof binlogdata.Filter + * TabletExternallyReparentedRequest tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.TabletExternallyReparentedRequest * @instance */ - Filter.prototype.fieldEventMode = 0; + TabletExternallyReparentedRequest.prototype.tablet = null; /** - * Creates a new Filter instance using the specified properties. + * Creates a new TabletExternallyReparentedRequest instance using the specified properties. * @function create - * @memberof binlogdata.Filter + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {binlogdata.IFilter=} [properties] Properties to set - * @returns {binlogdata.Filter} Filter instance + * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set + * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest instance */ - Filter.create = function create(properties) { - return new Filter(properties); + TabletExternallyReparentedRequest.create = function create(properties) { + return new TabletExternallyReparentedRequest(properties); }; /** - * Encodes the specified Filter message. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.Filter + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {binlogdata.IFilter} message Filter 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 */ - Filter.encode = function encode(message, writer) { + TabletExternallyReparentedRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.binlogdata.Rule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fieldEventMode != null && Object.hasOwnProperty.call(message, "fieldEventMode")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.fieldEventMode); + 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 Filter message, length delimited. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedRequest message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.Filter + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {binlogdata.IFilter} message Filter 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 */ - Filter.encodeDelimited = function encodeDelimited(message, writer) { + TabletExternallyReparentedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Filter message from the specified reader or buffer. + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.Filter + * @memberof vtctldata.TabletExternallyReparentedRequest * @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 {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest * @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) { + TabletExternallyReparentedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Filter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.binlogdata.Rule.decode(reader, reader.uint32())); - break; - case 2: - message.fieldEventMode = reader.int32(); + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -65520,188 +66565,115 @@ $root.binlogdata = (function() { }; /** - * Decodes a Filter message from the specified reader or buffer, length delimited. + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.Filter + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.Filter} Filter + * @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 */ - Filter.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 Filter message. + * Verifies a TabletExternallyReparentedRequest message. * @function verify - * @memberof binlogdata.Filter + * @memberof vtctldata.TabletExternallyReparentedRequest * @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) { + TabletExternallyReparentedRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.binlogdata.Rule.verify(message.rules[i]); - if (error) - return "rules." + error; - } + if (message.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.TabletAlias.verify(message.tablet); + if (error) + return "tablet." + error; } - if (message.fieldEventMode != null && message.hasOwnProperty("fieldEventMode")) - switch (message.fieldEventMode) { - default: - return "fieldEventMode: enum value expected"; - case 0: - case 1: - break; - } return null; }; /** - * Creates a Filter 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 binlogdata.Filter + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.Filter} Filter + * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest */ - Filter.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.Filter) + TabletExternallyReparentedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TabletExternallyReparentedRequest) return object; - var message = new $root.binlogdata.Filter(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".binlogdata.Filter.rules: array expected"); - message.rules = []; - for (var 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.fieldEventMode) { - case "ERR_ON_MISMATCH": - case 0: - message.fieldEventMode = 0; - break; - case "BEST_EFFORT": - case 1: - message.fieldEventMode = 1; - break; + var 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 Filter 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 binlogdata.Filter + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {binlogdata.Filter} message Filter + * @param {vtctldata.TabletExternallyReparentedRequest} message TabletExternallyReparentedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Filter.toObject = function toObject(message, options) { + TabletExternallyReparentedRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.rules = []; if (options.defaults) - object.fieldEventMode = options.enums === String ? "ERR_ON_MISMATCH" : 0; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.binlogdata.Rule.toObject(message.rules[j], options); - } - if (message.fieldEventMode != null && message.hasOwnProperty("fieldEventMode")) - object.fieldEventMode = options.enums === String ? $root.binlogdata.Filter.FieldEventMode[message.fieldEventMode] : message.fieldEventMode; + object.tablet = null; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); return object; }; /** - * Converts this Filter to JSON. + * Converts this TabletExternallyReparentedRequest to JSON. * @function toJSON - * @memberof binlogdata.Filter + * @memberof vtctldata.TabletExternallyReparentedRequest * @instance * @returns {Object.} JSON object */ - Filter.prototype.toJSON = function toJSON() { + TabletExternallyReparentedRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * 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() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ERR_ON_MISMATCH"] = 0; - values[valuesById[1] = "BEST_EFFORT"] = 1; - return values; - })(); - - return Filter; - })(); - - /** - * 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() { - var 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; + return TabletExternallyReparentedRequest; })(); - binlogdata.BinlogSource = (function() { + vtctldata.TabletExternallyReparentedResponse = (function() { /** - * 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 + * Properties of a TabletExternallyReparentedResponse. + * @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 */ /** - * Constructs a new BinlogSource. - * @memberof binlogdata - * @classdesc Represents a BinlogSource. - * @implements IBinlogSource + * Constructs a new TabletExternallyReparentedResponse. + * @memberof vtctldata + * @classdesc Represents a TabletExternallyReparentedResponse. + * @implements ITabletExternallyReparentedResponse * @constructor - * @param {binlogdata.IBinlogSource=} [properties] Properties to set + * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set */ - function BinlogSource(properties) { - this.tables = []; + function TabletExternallyReparentedResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65709,161 +66681,100 @@ $root.binlogdata = (function() { } /** - * BinlogSource keyspace. + * TabletExternallyReparentedResponse keyspace. * @member {string} keyspace - * @memberof binlogdata.BinlogSource + * @memberof vtctldata.TabletExternallyReparentedResponse * @instance */ - BinlogSource.prototype.keyspace = ""; + TabletExternallyReparentedResponse.prototype.keyspace = ""; /** - * BinlogSource shard. + * TabletExternallyReparentedResponse shard. * @member {string} shard - * @memberof binlogdata.BinlogSource - * @instance - */ - BinlogSource.prototype.shard = ""; - - /** - * 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.BinlogSource - * @instance - */ - BinlogSource.prototype.tables = $util.emptyArray; - - /** - * BinlogSource filter. - * @member {binlogdata.IFilter|null|undefined} filter - * @memberof binlogdata.BinlogSource - * @instance - */ - BinlogSource.prototype.filter = null; - - /** - * BinlogSource on_ddl. - * @member {binlogdata.OnDDLAction} on_ddl - * @memberof binlogdata.BinlogSource - * @instance - */ - BinlogSource.prototype.on_ddl = 0; - - /** - * BinlogSource external_mysql. - * @member {string} external_mysql - * @memberof binlogdata.BinlogSource + * @memberof vtctldata.TabletExternallyReparentedResponse * @instance */ - BinlogSource.prototype.external_mysql = ""; + TabletExternallyReparentedResponse.prototype.shard = ""; /** - * BinlogSource stop_after_copy. - * @member {boolean} stop_after_copy - * @memberof binlogdata.BinlogSource + * TabletExternallyReparentedResponse new_primary. + * @member {topodata.ITabletAlias|null|undefined} new_primary + * @memberof vtctldata.TabletExternallyReparentedResponse * @instance */ - BinlogSource.prototype.stop_after_copy = false; + TabletExternallyReparentedResponse.prototype.new_primary = null; /** - * BinlogSource external_cluster. - * @member {string} external_cluster - * @memberof binlogdata.BinlogSource + * TabletExternallyReparentedResponse old_primary. + * @member {topodata.ITabletAlias|null|undefined} old_primary + * @memberof vtctldata.TabletExternallyReparentedResponse * @instance */ - BinlogSource.prototype.external_cluster = ""; + TabletExternallyReparentedResponse.prototype.old_primary = null; /** - * Creates a new BinlogSource instance using the specified properties. + * Creates a new TabletExternallyReparentedResponse instance using the specified properties. * @function create - * @memberof binlogdata.BinlogSource + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {binlogdata.IBinlogSource=} [properties] Properties to set - * @returns {binlogdata.BinlogSource} BinlogSource instance + * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set + * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse instance */ - BinlogSource.create = function create(properties) { - return new BinlogSource(properties); + TabletExternallyReparentedResponse.create = function create(properties) { + return new TabletExternallyReparentedResponse(properties); }; /** - * Encodes the specified BinlogSource message. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. * @function encode - * @memberof binlogdata.BinlogSource + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {binlogdata.IBinlogSource} message BinlogSource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BinlogSource.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.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 (var 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); + * @param {vtctldata.ITabletExternallyReparentedResponse} message TabletExternallyReparentedResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} 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")) + 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 BinlogSource message, length delimited. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedResponse message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.BinlogSource + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {binlogdata.IBinlogSource} message BinlogSource 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 */ - BinlogSource.encodeDelimited = function encodeDelimited(message, writer) { + TabletExternallyReparentedResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BinlogSource message from the specified reader or buffer. + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. * @function decode - * @memberof binlogdata.BinlogSource + * @memberof vtctldata.TabletExternallyReparentedResponse * @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 {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse * @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) { + TabletExternallyReparentedResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogSource(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -65874,30 +66785,10 @@ $root.binlogdata = (function() { message.shard = reader.string(); break; case 3: - message.tablet_type = reader.int32(); + message.new_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); 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(); + message.old_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -65908,30 +66799,30 @@ $root.binlogdata = (function() { }; /** - * Decodes a BinlogSource message from the specified reader or buffer, length delimited. + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof binlogdata.BinlogSource + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.BinlogSource} BinlogSource + * @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 */ - BinlogSource.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 BinlogSource message. + * Verifies a TabletExternallyReparentedResponse message. * @function verify - * @memberof binlogdata.BinlogSource + * @memberof vtctldata.TabletExternallyReparentedResponse * @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) { + TabletExternallyReparentedResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) @@ -65940,298 +66831,124 @@ $root.binlogdata = (function() { 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 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")) { - var error = $root.topodata.KeyRange.verify(message.key_range); + if (message.new_primary != null && message.hasOwnProperty("new_primary")) { + var error = $root.topodata.TabletAlias.verify(message.new_primary); if (error) - return "key_range." + error; - } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (var i = 0; i < message.tables.length; ++i) - if (!$util.isString(message.tables[i])) - return "tables: string[] expected"; + return "new_primary." + error; } - if (message.filter != null && message.hasOwnProperty("filter")) { - var error = $root.binlogdata.Filter.verify(message.filter); + if (message.old_primary != null && message.hasOwnProperty("old_primary")) { + var error = $root.topodata.TabletAlias.verify(message.old_primary); if (error) - return "filter." + error; + return "old_primary." + 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"; return null; }; /** - * Creates a BinlogSource 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 binlogdata.BinlogSource + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {Object.} object Plain object - * @returns {binlogdata.BinlogSource} BinlogSource + * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse */ - BinlogSource.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.BinlogSource) + TabletExternallyReparentedResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TabletExternallyReparentedResponse) return object; - var message = new $root.binlogdata.BinlogSource(); + var message = new $root.vtctldata.TabletExternallyReparentedResponse(); if (object.keyspace != null) message.keyspace = String(object.keyspace); if (object.shard != null) message.shard = String(object.shard); - switch (object.tablet_type) { - case "UNKNOWN": - case 0: - message.tablet_type = 0; - break; - case "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.BinlogSource.tables: array expected"); - message.tables = []; - for (var 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); + 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); } - switch (object.on_ddl) { - 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.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); } - 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); return message; }; /** - * Creates a plain object from a BinlogSource 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 binlogdata.BinlogSource + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {binlogdata.BinlogSource} message BinlogSource + * @param {vtctldata.TabletExternallyReparentedResponse} message TabletExternallyReparentedResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BinlogSource.toObject = function toObject(message, options) { + TabletExternallyReparentedResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.tables = []; if (options.defaults) { 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.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 = message.shard; - if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) - object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] : message.tablet_type; - if (message.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 (var 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] : 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.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 BinlogSource to JSON. + * Converts this TabletExternallyReparentedResponse to JSON. * @function toJSON - * @memberof binlogdata.BinlogSource + * @memberof vtctldata.TabletExternallyReparentedResponse * @instance * @returns {Object.} JSON object */ - BinlogSource.prototype.toJSON = function toJSON() { + TabletExternallyReparentedResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BinlogSource; + return TabletExternallyReparentedResponse; })(); + return vtctldata; +})(); + +$root.binlogdata = (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 + * Namespace binlogdata. + * @exports binlogdata + * @namespace */ - binlogdata.VEventType = (function() { - var 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; - return values; - })(); + var binlogdata = {}; - binlogdata.RowChange = (function() { + binlogdata.Charset = (function() { /** - * Properties of a RowChange. + * Properties of a Charset. * @memberof binlogdata - * @interface IRowChange - * @property {query.IRow|null} [before] RowChange before - * @property {query.IRow|null} [after] RowChange after + * @interface ICharset + * @property {number|null} [client] Charset client + * @property {number|null} [conn] Charset conn + * @property {number|null} [server] Charset server */ /** - * Constructs a new RowChange. + * Constructs a new Charset. * @memberof binlogdata - * @classdesc Represents a RowChange. - * @implements IRowChange + * @classdesc Represents a Charset. + * @implements ICharset * @constructor - * @param {binlogdata.IRowChange=} [properties] Properties to set + * @param {binlogdata.ICharset=} [properties] Properties to set */ - function RowChange(properties) { + function Charset(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66239,88 +66956,101 @@ $root.binlogdata = (function() { } /** - * RowChange before. - * @member {query.IRow|null|undefined} before - * @memberof binlogdata.RowChange + * Charset client. + * @member {number} client + * @memberof binlogdata.Charset * @instance */ - RowChange.prototype.before = null; + Charset.prototype.client = 0; /** - * RowChange after. - * @member {query.IRow|null|undefined} after - * @memberof binlogdata.RowChange + * Charset conn. + * @member {number} conn + * @memberof binlogdata.Charset * @instance */ - RowChange.prototype.after = null; + Charset.prototype.conn = 0; /** - * Creates a new RowChange instance using the specified properties. + * Charset server. + * @member {number} server + * @memberof binlogdata.Charset + * @instance + */ + Charset.prototype.server = 0; + + /** + * Creates a new Charset instance using the specified properties. * @function create - * @memberof binlogdata.RowChange + * @memberof binlogdata.Charset * @static - * @param {binlogdata.IRowChange=} [properties] Properties to set - * @returns {binlogdata.RowChange} RowChange instance + * @param {binlogdata.ICharset=} [properties] Properties to set + * @returns {binlogdata.Charset} Charset instance */ - RowChange.create = function create(properties) { - return new RowChange(properties); + Charset.create = function create(properties) { + return new Charset(properties); }; /** - * Encodes the specified RowChange message. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. + * Encodes the specified Charset message. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. * @function encode - * @memberof binlogdata.RowChange + * @memberof binlogdata.Charset * @static - * @param {binlogdata.IRowChange} message RowChange 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 */ - RowChange.encode = function encode(message, writer) { + Charset.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.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 RowChange message, length delimited. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. + * Encodes the specified Charset message, length delimited. Does not implicitly {@link binlogdata.Charset.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.RowChange + * @memberof binlogdata.Charset * @static - * @param {binlogdata.IRowChange} message RowChange 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 */ - RowChange.encodeDelimited = function encodeDelimited(message, writer) { + Charset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RowChange message from the specified reader or buffer. + * Decodes a Charset message from the specified reader or buffer. * @function decode - * @memberof binlogdata.RowChange + * @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.RowChange} RowChange + * @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 */ - RowChange.decode = function decode(reader, length) { + Charset.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.RowChange(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Charset(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.before = $root.query.Row.decode(reader, reader.uint32()); + message.client = reader.int32(); break; case 2: - message.after = $root.query.Row.decode(reader, reader.uint32()); + message.conn = reader.int32(); + break; + case 3: + message.server = reader.int32(); break; default: reader.skipType(tag & 7); @@ -66331,128 +67061,126 @@ $root.binlogdata = (function() { }; /** - * Decodes a RowChange 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.RowChange + * @memberof binlogdata.Charset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.RowChange} RowChange + * @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 */ - RowChange.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 RowChange message. + * Verifies a Charset message. * @function verify - * @memberof binlogdata.RowChange + * @memberof binlogdata.Charset * @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) { + Charset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before != null && message.hasOwnProperty("before")) { - var error = $root.query.Row.verify(message.before); - if (error) - return "before." + error; - } - if (message.after != null && message.hasOwnProperty("after")) { - var error = $root.query.Row.verify(message.after); - if (error) - return "after." + error; - } + 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 RowChange 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.RowChange + * @memberof binlogdata.Charset * @static * @param {Object.} object Plain object - * @returns {binlogdata.RowChange} RowChange + * @returns {binlogdata.Charset} Charset */ - RowChange.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.RowChange) + Charset.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.Charset) return object; - var 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); - } + var 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 RowChange 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.RowChange + * @memberof binlogdata.Charset * @static - * @param {binlogdata.RowChange} message RowChange + * @param {binlogdata.Charset} message Charset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RowChange.toObject = function toObject(message, options) { + Charset.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.before = null; - object.after = null; + object.client = 0; + object.conn = 0; + object.server = 0; } - 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.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 RowChange to JSON. + * Converts this Charset to JSON. * @function toJSON - * @memberof binlogdata.RowChange + * @memberof binlogdata.Charset * @instance * @returns {Object.} JSON object */ - RowChange.prototype.toJSON = function toJSON() { + Charset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RowChange; + return Charset; })(); - binlogdata.RowEvent = (function() { + binlogdata.BinlogTransaction = (function() { /** - * Properties of a RowEvent. + * Properties of a BinlogTransaction. * @memberof binlogdata - * @interface IRowEvent - * @property {string|null} [table_name] RowEvent table_name - * @property {Array.|null} [row_changes] RowEvent row_changes + * @interface IBinlogTransaction + * @property {Array.|null} [statements] BinlogTransaction statements + * @property {query.IEventToken|null} [event_token] BinlogTransaction event_token */ /** - * Constructs a new RowEvent. + * Constructs a new BinlogTransaction. * @memberof binlogdata - * @classdesc Represents a RowEvent. - * @implements IRowEvent + * @classdesc Represents a BinlogTransaction. + * @implements IBinlogTransaction * @constructor - * @param {binlogdata.IRowEvent=} [properties] Properties to set + * @param {binlogdata.IBinlogTransaction=} [properties] Properties to set */ - function RowEvent(properties) { - this.row_changes = []; + function BinlogTransaction(properties) { + this.statements = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66460,91 +67188,91 @@ $root.binlogdata = (function() { } /** - * RowEvent table_name. - * @member {string} table_name - * @memberof binlogdata.RowEvent + * BinlogTransaction statements. + * @member {Array.} statements + * @memberof binlogdata.BinlogTransaction * @instance */ - RowEvent.prototype.table_name = ""; + BinlogTransaction.prototype.statements = $util.emptyArray; /** - * RowEvent row_changes. - * @member {Array.} row_changes - * @memberof binlogdata.RowEvent + * BinlogTransaction event_token. + * @member {query.IEventToken|null|undefined} event_token + * @memberof binlogdata.BinlogTransaction * @instance */ - RowEvent.prototype.row_changes = $util.emptyArray; + BinlogTransaction.prototype.event_token = null; /** - * Creates a new RowEvent instance using the specified properties. + * Creates a new BinlogTransaction instance using the specified properties. * @function create - * @memberof binlogdata.RowEvent + * @memberof binlogdata.BinlogTransaction * @static - * @param {binlogdata.IRowEvent=} [properties] Properties to set - * @returns {binlogdata.RowEvent} RowEvent instance + * @param {binlogdata.IBinlogTransaction=} [properties] Properties to set + * @returns {binlogdata.BinlogTransaction} BinlogTransaction instance */ - RowEvent.create = function create(properties) { - return new RowEvent(properties); + BinlogTransaction.create = function create(properties) { + return new BinlogTransaction(properties); }; /** - * Encodes the specified RowEvent message. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. + * Encodes the specified BinlogTransaction message. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. * @function encode - * @memberof binlogdata.RowEvent + * @memberof binlogdata.BinlogTransaction * @static - * @param {binlogdata.IRowEvent} message RowEvent 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 */ - RowEvent.encode = function encode(message, writer) { + BinlogTransaction.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 (var 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.statements != null && message.statements.length) + for (var 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 RowEvent message, length delimited. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. + * Encodes the specified BinlogTransaction message, length delimited. Does not implicitly {@link binlogdata.BinlogTransaction.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.RowEvent + * @memberof binlogdata.BinlogTransaction * @static - * @param {binlogdata.IRowEvent} message RowEvent 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 */ - RowEvent.encodeDelimited = function encodeDelimited(message, writer) { + BinlogTransaction.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RowEvent message from the specified reader or buffer. + * Decodes a BinlogTransaction message from the specified reader or buffer. * @function decode - * @memberof binlogdata.RowEvent + * @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.RowEvent} RowEvent + * @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 */ - RowEvent.decode = function decode(reader, length) { + BinlogTransaction.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.RowEvent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogTransaction(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.table_name = reader.string(); + if (!(message.statements && message.statements.length)) + message.statements = []; + message.statements.push($root.binlogdata.BinlogTransaction.Statement.decode(reader, reader.uint32())); 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())); + case 4: + message.event_token = $root.query.EventToken.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -66555,135 +67283,469 @@ $root.binlogdata = (function() { }; /** - * Decodes a RowEvent 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.RowEvent + * @memberof binlogdata.BinlogTransaction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.RowEvent} RowEvent + * @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 */ - RowEvent.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 RowEvent message. + * Verifies a BinlogTransaction message. * @function verify - * @memberof binlogdata.RowEvent + * @memberof binlogdata.BinlogTransaction * @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) { + BinlogTransaction.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 (var i = 0; i < message.row_changes.length; ++i) { - var error = $root.binlogdata.RowChange.verify(message.row_changes[i]); + if (message.statements != null && message.hasOwnProperty("statements")) { + if (!Array.isArray(message.statements)) + return "statements: array expected"; + for (var i = 0; i < message.statements.length; ++i) { + var error = $root.binlogdata.BinlogTransaction.Statement.verify(message.statements[i]); if (error) - return "row_changes." + error; + return "statements." + error; } } + if (message.event_token != null && message.hasOwnProperty("event_token")) { + var error = $root.query.EventToken.verify(message.event_token); + if (error) + return "event_token." + error; + } return null; }; /** - * Creates a RowEvent 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.RowEvent + * @memberof binlogdata.BinlogTransaction * @static * @param {Object.} object Plain object - * @returns {binlogdata.RowEvent} RowEvent + * @returns {binlogdata.BinlogTransaction} BinlogTransaction */ - RowEvent.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.RowEvent) + BinlogTransaction.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.BinlogTransaction) return object; - var 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 (var 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]); + var message = new $root.binlogdata.BinlogTransaction(); + if (object.statements) { + if (!Array.isArray(object.statements)) + throw TypeError(".binlogdata.BinlogTransaction.statements: array expected"); + message.statements = []; + for (var 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]); } } + 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); + } return message; }; /** - * Creates a plain object from a RowEvent 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.RowEvent + * @memberof binlogdata.BinlogTransaction * @static - * @param {binlogdata.RowEvent} message RowEvent + * @param {binlogdata.BinlogTransaction} message BinlogTransaction * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RowEvent.toObject = function toObject(message, options) { + BinlogTransaction.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.row_changes = []; + object.statements = []; if (options.defaults) - object.table_name = ""; - 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 (var j = 0; j < message.row_changes.length; ++j) - object.row_changes[j] = $root.binlogdata.RowChange.toObject(message.row_changes[j], options); + object.event_token = null; + if (message.statements && message.statements.length) { + object.statements = []; + for (var j = 0; j < message.statements.length; ++j) + object.statements[j] = $root.binlogdata.BinlogTransaction.Statement.toObject(message.statements[j], options); } + if (message.event_token != null && message.hasOwnProperty("event_token")) + object.event_token = $root.query.EventToken.toObject(message.event_token, options); return object; }; - /** - * Converts this RowEvent to JSON. - * @function toJSON - * @memberof binlogdata.RowEvent - * @instance - * @returns {Object.} JSON object - */ - RowEvent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this BinlogTransaction to JSON. + * @function toJSON + * @memberof binlogdata.BinlogTransaction + * @instance + * @returns {Object.} JSON object + */ + BinlogTransaction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BinlogTransaction.Statement = (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 + */ + + /** + * 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 (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Statement category. + * @member {binlogdata.BinlogTransaction.Statement.Category} category + * @memberof binlogdata.BinlogTransaction.Statement + * @instance + */ + Statement.prototype.category = 0; + + /** + * Statement charset. + * @member {binlogdata.ICharset|null|undefined} charset + * @memberof binlogdata.BinlogTransaction.Statement + * @instance + */ + Statement.prototype.charset = null; + + /** + * Statement sql. + * @member {Uint8Array} sql + * @memberof binlogdata.BinlogTransaction.Statement + * @instance + */ + Statement.prototype.sql = $util.newBuffer([]); + + /** + * 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); + }; + + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogTransaction.Statement(); + while (reader.pos < end) { + var 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; + }; + + /** + * 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()); + }; + + /** + * 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")) { + var 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. + * @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; + var message = new $root.binlogdata.BinlogTransaction.Statement(); + switch (object.category) { + 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) + 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 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 = {}; + var 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] : 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; + }; + + /** + * 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); + }; + + /** + * 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() { + var 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 RowEvent; + return BinlogTransaction; })(); - binlogdata.FieldEvent = (function() { + binlogdata.StreamKeyRangeRequest = (function() { /** - * Properties of a FieldEvent. + * Properties of a StreamKeyRangeRequest. * @memberof binlogdata - * @interface IFieldEvent - * @property {string|null} [table_name] FieldEvent table_name - * @property {Array.|null} [fields] FieldEvent fields + * @interface IStreamKeyRangeRequest + * @property {string|null} [position] StreamKeyRangeRequest position + * @property {topodata.IKeyRange|null} [key_range] StreamKeyRangeRequest key_range + * @property {binlogdata.ICharset|null} [charset] StreamKeyRangeRequest charset */ /** - * Constructs a new FieldEvent. + * Constructs a new StreamKeyRangeRequest. * @memberof binlogdata - * @classdesc Represents a FieldEvent. - * @implements IFieldEvent + * @classdesc Represents a StreamKeyRangeRequest. + * @implements IStreamKeyRangeRequest * @constructor - * @param {binlogdata.IFieldEvent=} [properties] Properties to set + * @param {binlogdata.IStreamKeyRangeRequest=} [properties] Properties to set */ - function FieldEvent(properties) { - this.fields = []; + function StreamKeyRangeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66691,91 +67753,101 @@ $root.binlogdata = (function() { } /** - * FieldEvent table_name. - * @member {string} table_name - * @memberof binlogdata.FieldEvent + * StreamKeyRangeRequest position. + * @member {string} position + * @memberof binlogdata.StreamKeyRangeRequest * @instance */ - FieldEvent.prototype.table_name = ""; + StreamKeyRangeRequest.prototype.position = ""; /** - * FieldEvent fields. - * @member {Array.} fields - * @memberof binlogdata.FieldEvent + * StreamKeyRangeRequest key_range. + * @member {topodata.IKeyRange|null|undefined} key_range + * @memberof binlogdata.StreamKeyRangeRequest * @instance */ - FieldEvent.prototype.fields = $util.emptyArray; + StreamKeyRangeRequest.prototype.key_range = null; /** - * Creates a new FieldEvent instance using the specified properties. + * 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. * @function create - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamKeyRangeRequest * @static - * @param {binlogdata.IFieldEvent=} [properties] Properties to set - * @returns {binlogdata.FieldEvent} FieldEvent instance + * @param {binlogdata.IStreamKeyRangeRequest=} [properties] Properties to set + * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest instance */ - FieldEvent.create = function create(properties) { - return new FieldEvent(properties); + StreamKeyRangeRequest.create = function create(properties) { + return new StreamKeyRangeRequest(properties); }; /** - * Encodes the specified FieldEvent message. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. + * Encodes the specified StreamKeyRangeRequest message. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamKeyRangeRequest * @static - * @param {binlogdata.IFieldEvent} message FieldEvent 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 */ - FieldEvent.encode = function encode(message, writer) { + StreamKeyRangeRequest.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 (var 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.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 FieldEvent message, length delimited. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. + * Encodes the specified StreamKeyRangeRequest message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamKeyRangeRequest * @static - * @param {binlogdata.IFieldEvent} message FieldEvent 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 */ - FieldEvent.encodeDelimited = function encodeDelimited(message, writer) { + StreamKeyRangeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldEvent message from the specified reader or buffer. + * Decodes a StreamKeyRangeRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.FieldEvent + * @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.FieldEvent} FieldEvent + * @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 */ - FieldEvent.decode = function decode(reader, length) { + StreamKeyRangeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.FieldEvent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamKeyRangeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.table_name = reader.string(); + message.position = reader.string(); break; case 2: - if (!(message.fields && message.fields.length)) - message.fields = []; - message.fields.push($root.query.Field.decode(reader, reader.uint32())); + 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); @@ -66786,137 +67858,134 @@ $root.binlogdata = (function() { }; /** - * Decodes a FieldEvent 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.FieldEvent + * @memberof binlogdata.StreamKeyRangeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.FieldEvent} FieldEvent + * @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 */ - FieldEvent.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 FieldEvent message. + * Verifies a StreamKeyRangeRequest message. * @function verify - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamKeyRangeRequest * @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) { + StreamKeyRangeRequest.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 (var i = 0; i < message.fields.length; ++i) { - var error = $root.query.Field.verify(message.fields[i]); - if (error) - return "fields." + error; - } + 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")) { + var error = $root.topodata.KeyRange.verify(message.key_range); + if (error) + return "key_range." + error; + } + if (message.charset != null && message.hasOwnProperty("charset")) { + var error = $root.binlogdata.Charset.verify(message.charset); + if (error) + return "charset." + error; } return null; }; /** - * Creates a FieldEvent 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.FieldEvent + * @memberof binlogdata.StreamKeyRangeRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.FieldEvent} FieldEvent + * @returns {binlogdata.StreamKeyRangeRequest} StreamKeyRangeRequest */ - FieldEvent.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.FieldEvent) + StreamKeyRangeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.StreamKeyRangeRequest) return object; - var 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 (var 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]); - } + var 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; }; /** - * Creates a plain object from a FieldEvent 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.FieldEvent + * @memberof binlogdata.StreamKeyRangeRequest * @static - * @param {binlogdata.FieldEvent} message FieldEvent + * @param {binlogdata.StreamKeyRangeRequest} message StreamKeyRangeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldEvent.toObject = function toObject(message, options) { + StreamKeyRangeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.fields = []; - if (options.defaults) - object.table_name = ""; - if (message.table_name != null && message.hasOwnProperty("table_name")) - object.table_name = message.table_name; - if (message.fields && message.fields.length) { - object.fields = []; - for (var j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + if (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; }; /** - * Converts this FieldEvent to JSON. + * Converts this StreamKeyRangeRequest to JSON. * @function toJSON - * @memberof binlogdata.FieldEvent + * @memberof binlogdata.StreamKeyRangeRequest * @instance * @returns {Object.} JSON object */ - FieldEvent.prototype.toJSON = function toJSON() { + StreamKeyRangeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FieldEvent; + return StreamKeyRangeRequest; })(); - binlogdata.ShardGtid = (function() { + binlogdata.StreamKeyRangeResponse = (function() { /** - * Properties of a ShardGtid. + * Properties of a StreamKeyRangeResponse. * @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 IStreamKeyRangeResponse + * @property {binlogdata.IBinlogTransaction|null} [binlog_transaction] StreamKeyRangeResponse binlog_transaction */ /** - * Constructs a new ShardGtid. + * Constructs a new StreamKeyRangeResponse. * @memberof binlogdata - * @classdesc Represents a ShardGtid. - * @implements IShardGtid + * @classdesc Represents a StreamKeyRangeResponse. + * @implements IStreamKeyRangeResponse * @constructor - * @param {binlogdata.IShardGtid=} [properties] Properties to set + * @param {binlogdata.IStreamKeyRangeResponse=} [properties] Properties to set */ - function ShardGtid(properties) { - this.table_p_ks = []; + function StreamKeyRangeResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66924,117 +67993,75 @@ $root.binlogdata = (function() { } /** - * 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 - * @instance - */ - ShardGtid.prototype.gtid = ""; - - /** - * ShardGtid table_p_ks. - * @member {Array.} table_p_ks - * @memberof binlogdata.ShardGtid + * StreamKeyRangeResponse binlog_transaction. + * @member {binlogdata.IBinlogTransaction|null|undefined} binlog_transaction + * @memberof binlogdata.StreamKeyRangeResponse * @instance */ - ShardGtid.prototype.table_p_ks = $util.emptyArray; + StreamKeyRangeResponse.prototype.binlog_transaction = null; /** - * Creates a new ShardGtid instance using the specified properties. + * Creates a new StreamKeyRangeResponse instance using the specified properties. * @function create - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.StreamKeyRangeResponse * @static - * @param {binlogdata.IShardGtid=} [properties] Properties to set - * @returns {binlogdata.ShardGtid} ShardGtid instance + * @param {binlogdata.IStreamKeyRangeResponse=} [properties] Properties to set + * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse instance */ - ShardGtid.create = function create(properties) { - return new ShardGtid(properties); + StreamKeyRangeResponse.create = function create(properties) { + return new StreamKeyRangeResponse(properties); }; /** - * Encodes the specified ShardGtid message. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. + * Encodes the specified StreamKeyRangeResponse message. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. * @function encode - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.StreamKeyRangeResponse * @static - * @param {binlogdata.IShardGtid} message ShardGtid 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 */ - ShardGtid.encode = function encode(message, writer) { + StreamKeyRangeResponse.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 (var 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.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 ShardGtid message, length delimited. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. + * Encodes the specified StreamKeyRangeResponse message, length delimited. Does not implicitly {@link binlogdata.StreamKeyRangeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.StreamKeyRangeResponse * @static - * @param {binlogdata.IShardGtid} message ShardGtid 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 */ - ShardGtid.encodeDelimited = function encodeDelimited(message, writer) { + StreamKeyRangeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardGtid message from the specified reader or buffer. + * Decodes a StreamKeyRangeResponse message from the specified reader or buffer. * @function decode - * @memberof binlogdata.ShardGtid + * @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.ShardGtid} ShardGtid + * @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 */ - ShardGtid.decode = function decode(reader, length) { + StreamKeyRangeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.ShardGtid(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamKeyRangeResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = 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.binlog_transaction = $root.binlogdata.BinlogTransaction.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -67045,151 +68072,115 @@ $root.binlogdata = (function() { }; /** - * Decodes a ShardGtid 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.ShardGtid + * @memberof binlogdata.StreamKeyRangeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.ShardGtid} ShardGtid + * @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 */ - ShardGtid.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 ShardGtid message. + * Verifies a StreamKeyRangeResponse message. * @function verify - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.StreamKeyRangeResponse * @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) { + StreamKeyRangeResponse.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 (var i = 0; i < message.table_p_ks.length; ++i) { - var error = $root.binlogdata.TableLastPK.verify(message.table_p_ks[i]); - if (error) - return "table_p_ks." + error; - } + if (message.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) { + var error = $root.binlogdata.BinlogTransaction.verify(message.binlog_transaction); + if (error) + return "binlog_transaction." + error; } return null; }; /** - * Creates a ShardGtid 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.ShardGtid + * @memberof binlogdata.StreamKeyRangeResponse * @static * @param {Object.} object Plain object - * @returns {binlogdata.ShardGtid} ShardGtid + * @returns {binlogdata.StreamKeyRangeResponse} StreamKeyRangeResponse */ - ShardGtid.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.ShardGtid) + StreamKeyRangeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.StreamKeyRangeResponse) return object; - var 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 (var 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]); - } + var 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 ShardGtid 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.ShardGtid + * @memberof binlogdata.StreamKeyRangeResponse * @static - * @param {binlogdata.ShardGtid} message ShardGtid + * @param {binlogdata.StreamKeyRangeResponse} message StreamKeyRangeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardGtid.toObject = function toObject(message, options) { + StreamKeyRangeResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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 (var j = 0; j < message.table_p_ks.length; ++j) - object.table_p_ks[j] = $root.binlogdata.TableLastPK.toObject(message.table_p_ks[j], 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 ShardGtid to JSON. + * Converts this StreamKeyRangeResponse to JSON. * @function toJSON - * @memberof binlogdata.ShardGtid + * @memberof binlogdata.StreamKeyRangeResponse * @instance * @returns {Object.} JSON object */ - ShardGtid.prototype.toJSON = function toJSON() { + StreamKeyRangeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ShardGtid; + return StreamKeyRangeResponse; })(); - binlogdata.VGtid = (function() { + binlogdata.StreamTablesRequest = (function() { /** - * Properties of a VGtid. + * Properties of a StreamTablesRequest. * @memberof binlogdata - * @interface IVGtid - * @property {Array.|null} [shard_gtids] VGtid shard_gtids + * @interface IStreamTablesRequest + * @property {string|null} [position] StreamTablesRequest position + * @property {Array.|null} [tables] StreamTablesRequest tables + * @property {binlogdata.ICharset|null} [charset] StreamTablesRequest charset */ /** - * Constructs a new VGtid. + * Constructs a new StreamTablesRequest. * @memberof binlogdata - * @classdesc Represents a VGtid. - * @implements IVGtid + * @classdesc Represents a StreamTablesRequest. + * @implements IStreamTablesRequest * @constructor - * @param {binlogdata.IVGtid=} [properties] Properties to set + * @param {binlogdata.IStreamTablesRequest=} [properties] Properties to set */ - function VGtid(properties) { - this.shard_gtids = []; + function StreamTablesRequest(properties) { + this.tables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67197,78 +68188,104 @@ $root.binlogdata = (function() { } /** - * VGtid shard_gtids. - * @member {Array.} shard_gtids - * @memberof binlogdata.VGtid + * StreamTablesRequest position. + * @member {string} position + * @memberof binlogdata.StreamTablesRequest + * @instance + */ + StreamTablesRequest.prototype.position = ""; + + /** + * StreamTablesRequest tables. + * @member {Array.} tables + * @memberof binlogdata.StreamTablesRequest + * @instance + */ + StreamTablesRequest.prototype.tables = $util.emptyArray; + + /** + * StreamTablesRequest charset. + * @member {binlogdata.ICharset|null|undefined} charset + * @memberof binlogdata.StreamTablesRequest * @instance */ - VGtid.prototype.shard_gtids = $util.emptyArray; + StreamTablesRequest.prototype.charset = null; /** - * Creates a new VGtid instance using the specified properties. + * Creates a new StreamTablesRequest instance using the specified properties. * @function create - * @memberof binlogdata.VGtid + * @memberof binlogdata.StreamTablesRequest * @static - * @param {binlogdata.IVGtid=} [properties] Properties to set - * @returns {binlogdata.VGtid} VGtid instance + * @param {binlogdata.IStreamTablesRequest=} [properties] Properties to set + * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest instance */ - VGtid.create = function create(properties) { - return new VGtid(properties); + StreamTablesRequest.create = function create(properties) { + return new StreamTablesRequest(properties); }; /** - * Encodes the specified VGtid message. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. + * Encodes the specified StreamTablesRequest message. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. * @function encode - * @memberof binlogdata.VGtid + * @memberof binlogdata.StreamTablesRequest * @static - * @param {binlogdata.IVGtid} message VGtid 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 */ - VGtid.encode = function encode(message, writer) { + StreamTablesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shard_gtids != null && message.shard_gtids.length) - for (var 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.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 (var 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 VGtid message, length delimited. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. + * Encodes the specified StreamTablesRequest message, length delimited. Does not implicitly {@link binlogdata.StreamTablesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VGtid + * @memberof binlogdata.StreamTablesRequest * @static - * @param {binlogdata.IVGtid} message VGtid 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 */ - VGtid.encodeDelimited = function encodeDelimited(message, writer) { + StreamTablesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VGtid message from the specified reader or buffer. + * Decodes a StreamTablesRequest message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VGtid + * @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.VGtid} VGtid + * @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 */ - VGtid.decode = function decode(reader, length) { + StreamTablesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VGtid(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamTablesRequest(); while (reader.pos < end) { var 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.position = reader.string(); + break; + case 2: + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); + break; + case 3: + message.charset = $root.binlogdata.Charset.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -67279,125 +68296,142 @@ $root.binlogdata = (function() { }; /** - * Decodes a VGtid 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.VGtid + * @memberof binlogdata.StreamTablesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VGtid} VGtid + * @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 */ - VGtid.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 VGtid message. + * Verifies a StreamTablesRequest message. * @function verify - * @memberof binlogdata.VGtid + * @memberof binlogdata.StreamTablesRequest * @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) { + StreamTablesRequest.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 (var i = 0; i < message.shard_gtids.length; ++i) { - var error = $root.binlogdata.ShardGtid.verify(message.shard_gtids[i]); - if (error) - return "shard_gtids." + 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 (var i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; + } + if (message.charset != null && message.hasOwnProperty("charset")) { + var error = $root.binlogdata.Charset.verify(message.charset); + if (error) + return "charset." + error; } return null; }; /** - * Creates a VGtid 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.VGtid + * @memberof binlogdata.StreamTablesRequest * @static * @param {Object.} object Plain object - * @returns {binlogdata.VGtid} VGtid + * @returns {binlogdata.StreamTablesRequest} StreamTablesRequest */ - VGtid.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VGtid) + StreamTablesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.StreamTablesRequest) return object; - var 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 (var 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]); - } + var 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 (var 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); } return message; }; /** - * Creates a plain object from a VGtid 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.VGtid + * @memberof binlogdata.StreamTablesRequest * @static - * @param {binlogdata.VGtid} message VGtid + * @param {binlogdata.StreamTablesRequest} message StreamTablesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VGtid.toObject = function toObject(message, options) { + StreamTablesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.shard_gtids = []; - if (message.shard_gtids && message.shard_gtids.length) { - object.shard_gtids = []; - for (var j = 0; j < message.shard_gtids.length; ++j) - object.shard_gtids[j] = $root.binlogdata.ShardGtid.toObject(message.shard_gtids[j], options); + object.tables = []; + if (options.defaults) { + object.position = ""; + object.charset = null; + } + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.tables && message.tables.length) { + object.tables = []; + for (var j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; } + if (message.charset != null && message.hasOwnProperty("charset")) + object.charset = $root.binlogdata.Charset.toObject(message.charset, options); return object; }; /** - * Converts this VGtid to JSON. + * Converts this StreamTablesRequest to JSON. * @function toJSON - * @memberof binlogdata.VGtid + * @memberof binlogdata.StreamTablesRequest * @instance * @returns {Object.} JSON object */ - VGtid.prototype.toJSON = function toJSON() { + StreamTablesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VGtid; + return StreamTablesRequest; })(); - binlogdata.KeyspaceShard = (function() { + binlogdata.StreamTablesResponse = (function() { /** - * Properties of a KeyspaceShard. + * Properties of a StreamTablesResponse. * @memberof binlogdata - * @interface IKeyspaceShard - * @property {string|null} [keyspace] KeyspaceShard keyspace - * @property {string|null} [shard] KeyspaceShard shard + * @interface IStreamTablesResponse + * @property {binlogdata.IBinlogTransaction|null} [binlog_transaction] StreamTablesResponse binlog_transaction */ /** - * Constructs a new KeyspaceShard. + * Constructs a new StreamTablesResponse. * @memberof binlogdata - * @classdesc Represents a KeyspaceShard. - * @implements IKeyspaceShard + * @classdesc Represents a StreamTablesResponse. + * @implements IStreamTablesResponse * @constructor - * @param {binlogdata.IKeyspaceShard=} [properties] Properties to set + * @param {binlogdata.IStreamTablesResponse=} [properties] Properties to set */ - function KeyspaceShard(properties) { + function StreamTablesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67405,88 +68439,75 @@ $root.binlogdata = (function() { } /** - * KeyspaceShard keyspace. - * @member {string} keyspace - * @memberof binlogdata.KeyspaceShard - * @instance - */ - KeyspaceShard.prototype.keyspace = ""; - - /** - * KeyspaceShard shard. - * @member {string} shard - * @memberof binlogdata.KeyspaceShard + * StreamTablesResponse binlog_transaction. + * @member {binlogdata.IBinlogTransaction|null|undefined} binlog_transaction + * @memberof binlogdata.StreamTablesResponse * @instance */ - KeyspaceShard.prototype.shard = ""; + StreamTablesResponse.prototype.binlog_transaction = null; /** - * Creates a new KeyspaceShard instance using the specified properties. + * Creates a new StreamTablesResponse instance using the specified properties. * @function create - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.StreamTablesResponse * @static - * @param {binlogdata.IKeyspaceShard=} [properties] Properties to set - * @returns {binlogdata.KeyspaceShard} KeyspaceShard instance + * @param {binlogdata.IStreamTablesResponse=} [properties] Properties to set + * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse instance */ - KeyspaceShard.create = function create(properties) { - return new KeyspaceShard(properties); + StreamTablesResponse.create = function create(properties) { + return new StreamTablesResponse(properties); }; /** - * Encodes the specified KeyspaceShard message. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. + * Encodes the specified StreamTablesResponse message. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. * @function encode - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.StreamTablesResponse * @static - * @param {binlogdata.IKeyspaceShard} message KeyspaceShard 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 */ - KeyspaceShard.encode = function encode(message, writer) { + StreamTablesResponse.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.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 KeyspaceShard message, length delimited. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. + * Encodes the specified StreamTablesResponse message, length delimited. Does not implicitly {@link binlogdata.StreamTablesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.StreamTablesResponse * @static - * @param {binlogdata.IKeyspaceShard} message KeyspaceShard 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 */ - KeyspaceShard.encodeDelimited = function encodeDelimited(message, writer) { + StreamTablesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a KeyspaceShard message from the specified reader or buffer. + * Decodes a StreamTablesResponse message from the specified reader or buffer. * @function decode - * @memberof binlogdata.KeyspaceShard + * @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.KeyspaceShard} KeyspaceShard + * @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 */ - KeyspaceShard.decode = function decode(reader, length) { + StreamTablesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.KeyspaceShard(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.StreamTablesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); - break; - case 2: - message.shard = reader.string(); + message.binlog_transaction = $root.binlogdata.BinlogTransaction.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -67497,140 +68518,113 @@ $root.binlogdata = (function() { }; /** - * Decodes a KeyspaceShard 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.KeyspaceShard + * @memberof binlogdata.StreamTablesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.KeyspaceShard} KeyspaceShard + * @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 */ - KeyspaceShard.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 KeyspaceShard message. + * Verifies a StreamTablesResponse message. * @function verify - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.StreamTablesResponse * @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) { + StreamTablesResponse.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.binlog_transaction != null && message.hasOwnProperty("binlog_transaction")) { + var error = $root.binlogdata.BinlogTransaction.verify(message.binlog_transaction); + if (error) + return "binlog_transaction." + error; + } return null; }; /** - * Creates a KeyspaceShard 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.KeyspaceShard + * @memberof binlogdata.StreamTablesResponse * @static * @param {Object.} object Plain object - * @returns {binlogdata.KeyspaceShard} KeyspaceShard + * @returns {binlogdata.StreamTablesResponse} StreamTablesResponse */ - KeyspaceShard.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.KeyspaceShard) + StreamTablesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.StreamTablesResponse) return object; - var message = new $root.binlogdata.KeyspaceShard(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); + var 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); + } return message; }; /** - * Creates a plain object from a KeyspaceShard 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.KeyspaceShard + * @memberof binlogdata.StreamTablesResponse * @static - * @param {binlogdata.KeyspaceShard} message KeyspaceShard + * @param {binlogdata.StreamTablesResponse} message StreamTablesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KeyspaceShard.toObject = function toObject(message, options) { + StreamTablesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var 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; + 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 KeyspaceShard to JSON. + * Converts this StreamTablesResponse to JSON. * @function toJSON - * @memberof binlogdata.KeyspaceShard + * @memberof binlogdata.StreamTablesResponse * @instance * @returns {Object.} JSON object */ - KeyspaceShard.prototype.toJSON = function toJSON() { + StreamTablesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return KeyspaceShard; - })(); - - /** - * MigrationType enum. - * @name binlogdata.MigrationType - * @enum {number} - * @property {number} TABLES=0 TABLES value - * @property {number} SHARDS=1 SHARDS value - */ - binlogdata.MigrationType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TABLES"] = 0; - values[valuesById[1] = "SHARDS"] = 1; - return values; + return StreamTablesResponse; })(); - binlogdata.Journal = (function() { + binlogdata.Rule = (function() { /** - * Properties of a Journal. + * Properties of a Rule. * @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 IRule + * @property {string|null} [match] Rule match + * @property {string|null} [filter] Rule filter */ /** - * Constructs a new Journal. + * Constructs a new Rule. * @memberof binlogdata - * @classdesc Represents a Journal. - * @implements IJournal + * @classdesc Represents a Rule. + * @implements IRule * @constructor - * @param {binlogdata.IJournal=} [properties] Properties to set + * @param {binlogdata.IRule=} [properties] Properties to set */ - function Journal(properties) { - this.tables = []; - this.shard_gtids = []; - this.participants = []; - this.source_workflows = []; + function Rule(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67638,165 +68632,88 @@ $root.binlogdata = (function() { } /** - * Journal id. - * @member {number|Long} id - * @memberof binlogdata.Journal - * @instance - */ - Journal.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Journal migration_type. - * @member {binlogdata.MigrationType} migration_type - * @memberof binlogdata.Journal - * @instance - */ - Journal.prototype.migration_type = 0; - - /** - * Journal tables. - * @member {Array.} tables - * @memberof binlogdata.Journal - * @instance - */ - Journal.prototype.tables = $util.emptyArray; - - /** - * Journal local_position. - * @member {string} local_position - * @memberof binlogdata.Journal - * @instance - */ - Journal.prototype.local_position = ""; - - /** - * Journal shard_gtids. - * @member {Array.} shard_gtids - * @memberof binlogdata.Journal - * @instance - */ - Journal.prototype.shard_gtids = $util.emptyArray; - - /** - * Journal participants. - * @member {Array.} participants - * @memberof binlogdata.Journal + * Rule match. + * @member {string} match + * @memberof binlogdata.Rule * @instance */ - Journal.prototype.participants = $util.emptyArray; + Rule.prototype.match = ""; /** - * Journal source_workflows. - * @member {Array.} source_workflows - * @memberof binlogdata.Journal + * Rule filter. + * @member {string} filter + * @memberof binlogdata.Rule * @instance */ - Journal.prototype.source_workflows = $util.emptyArray; + Rule.prototype.filter = ""; /** - * Creates a new Journal instance using the specified properties. + * Creates a new Rule instance using the specified properties. * @function create - * @memberof binlogdata.Journal + * @memberof binlogdata.Rule * @static - * @param {binlogdata.IJournal=} [properties] Properties to set - * @returns {binlogdata.Journal} Journal instance + * @param {binlogdata.IRule=} [properties] Properties to set + * @returns {binlogdata.Rule} Rule instance */ - Journal.create = function create(properties) { - return new Journal(properties); + Rule.create = function create(properties) { + return new Rule(properties); }; /** - * Encodes the specified Journal message. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. + * Encodes the specified Rule message. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. * @function encode - * @memberof binlogdata.Journal + * @memberof binlogdata.Rule * @static - * @param {binlogdata.IJournal} message Journal 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 */ - Journal.encode = function encode(message, writer) { + Rule.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.tables != null && message.tables.length) - for (var 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 (var 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 (var 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 (var i = 0; i < message.source_workflows.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.source_workflows[i]); + 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); return writer; }; /** - * Encodes the specified Journal message, length delimited. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. + * Encodes the specified Rule message, length delimited. Does not implicitly {@link binlogdata.Rule.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.Journal + * @memberof binlogdata.Rule * @static - * @param {binlogdata.IJournal} message Journal 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 */ - Journal.encodeDelimited = function encodeDelimited(message, writer) { + Rule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Journal message from the specified reader or buffer. + * Decodes a Rule message from the specified reader or buffer. * @function decode - * @memberof binlogdata.Journal + * @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.Journal} Journal + * @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 */ - Journal.decode = function decode(reader, length) { + Rule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Journal(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Rule(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.int64(); - break; - case 2: - message.migration_type = reader.int32(); - break; - case 3: - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); - break; - case 4: - message.local_position = reader.string(); - 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())); - break; - case 6: - 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()); + message.match = reader.string(); + break; + case 2: + message.filter = reader.string(); break; default: reader.skipType(tag & 7); @@ -67807,253 +68724,118 @@ $root.binlogdata = (function() { }; /** - * Decodes a Journal 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.Journal + * @memberof binlogdata.Rule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.Journal} Journal + * @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 */ - Journal.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 Journal message. + * Verifies a Rule message. * @function verify - * @memberof binlogdata.Journal + * @memberof binlogdata.Rule * @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) { + Rule.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) { - 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 (var i = 0; i < message.tables.length; ++i) - 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 (var i = 0; i < message.shard_gtids.length; ++i) { - var error = $root.binlogdata.ShardGtid.verify(message.shard_gtids[i]); - if (error) - return "shard_gtids." + error; - } - } - if (message.participants != null && message.hasOwnProperty("participants")) { - if (!Array.isArray(message.participants)) - return "participants: array expected"; - for (var i = 0; i < message.participants.length; ++i) { - var error = $root.binlogdata.KeyspaceShard.verify(message.participants[i]); - if (error) - return "participants." + error; - } - } - if (message.source_workflows != null && message.hasOwnProperty("source_workflows")) { - if (!Array.isArray(message.source_workflows)) - return "source_workflows: array expected"; - for (var i = 0; i < message.source_workflows.length; ++i) - if (!$util.isString(message.source_workflows[i])) - return "source_workflows: string[] 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"; return null; }; /** - * Creates a Journal 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.Journal + * @memberof binlogdata.Rule * @static * @param {Object.} object Plain object - * @returns {binlogdata.Journal} Journal + * @returns {binlogdata.Rule} Rule */ - Journal.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.Journal) + Rule.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.Rule) return object; - var 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) { - case "TABLES": - case 0: - message.migration_type = 0; - break; - case "SHARDS": - case 1: - message.migration_type = 1; - break; - } - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".binlogdata.Journal.tables: array expected"); - message.tables = []; - for (var 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 (var 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.participants) { - if (!Array.isArray(object.participants)) - throw TypeError(".binlogdata.Journal.participants: array expected"); - message.participants = []; - for (var 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.source_workflows) { - if (!Array.isArray(object.source_workflows)) - throw TypeError(".binlogdata.Journal.source_workflows: array expected"); - message.source_workflows = []; - for (var i = 0; i < object.source_workflows.length; ++i) - message.source_workflows[i] = String(object.source_workflows[i]); - } + var message = new $root.binlogdata.Rule(); + if (object.match != null) + message.match = String(object.match); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a Journal 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.Journal + * @memberof binlogdata.Rule * @static - * @param {binlogdata.Journal} message Journal + * @param {binlogdata.Rule} message Rule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Journal.toObject = function toObject(message, options) { + Rule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.tables = []; - object.shard_gtids = []; - object.participants = []; - object.source_workflows = []; - } if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - object.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] : message.migration_type; - if (message.tables && message.tables.length) { - object.tables = []; - for (var 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 (var 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 (var 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 (var j = 0; j < message.source_workflows.length; ++j) - object.source_workflows[j] = message.source_workflows[j]; + object.match = ""; + object.filter = ""; } + if (message.match != null && message.hasOwnProperty("match")) + object.match = message.match; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this Journal to JSON. + * Converts this Rule to JSON. * @function toJSON - * @memberof binlogdata.Journal + * @memberof binlogdata.Rule * @instance * @returns {Object.} JSON object */ - Journal.prototype.toJSON = function toJSON() { + Rule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Journal; + return Rule; })(); - binlogdata.VEvent = (function() { + binlogdata.Filter = (function() { /** - * Properties of a VEvent. + * Properties of a Filter. * @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 + * @interface IFilter + * @property {Array.|null} [rules] Filter rules + * @property {binlogdata.Filter.FieldEventMode|null} [fieldEventMode] Filter fieldEventMode */ /** - * Constructs a new VEvent. + * Constructs a new Filter. * @memberof binlogdata - * @classdesc Represents a VEvent. - * @implements IVEvent + * @classdesc Represents a Filter. + * @implements IFilter * @constructor - * @param {binlogdata.IVEvent=} [properties] Properties to set + * @param {binlogdata.IFilter=} [properties] Properties to set */ - function VEvent(properties) { + function Filter(properties) { + this.rules = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68061,205 +68843,91 @@ $root.binlogdata = (function() { } /** - * 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 + * Filter rules. + * @member {Array.} rules + * @memberof binlogdata.Filter * @instance */ - VEvent.prototype.current_time = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Filter.prototype.rules = $util.emptyArray; /** - * VEvent last_p_k_event. - * @member {binlogdata.ILastPKEvent|null|undefined} last_p_k_event - * @memberof binlogdata.VEvent + * Filter fieldEventMode. + * @member {binlogdata.Filter.FieldEventMode} fieldEventMode + * @memberof binlogdata.Filter * @instance */ - VEvent.prototype.last_p_k_event = null; + Filter.prototype.fieldEventMode = 0; /** - * Creates a new VEvent instance using the specified properties. + * Creates a new Filter instance using the specified properties. * @function create - * @memberof binlogdata.VEvent + * @memberof binlogdata.Filter * @static - * @param {binlogdata.IVEvent=} [properties] Properties to set - * @returns {binlogdata.VEvent} VEvent instance + * @param {binlogdata.IFilter=} [properties] Properties to set + * @returns {binlogdata.Filter} Filter instance */ - VEvent.create = function create(properties) { - return new VEvent(properties); + Filter.create = function create(properties) { + return new Filter(properties); }; /** - * Encodes the specified VEvent message. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. + * Encodes the specified Filter message. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. * @function encode - * @memberof binlogdata.VEvent + * @memberof binlogdata.Filter * @static - * @param {binlogdata.IVEvent} message VEvent 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 */ - VEvent.encode = function encode(message, writer) { + Filter.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.rules != null && message.rules.length) + for (var 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.fieldEventMode != null && Object.hasOwnProperty.call(message, "fieldEventMode")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.fieldEventMode); return writer; }; /** - * Encodes the specified VEvent message, length delimited. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. + * Encodes the specified Filter message, length delimited. Does not implicitly {@link binlogdata.Filter.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VEvent + * @memberof binlogdata.Filter * @static - * @param {binlogdata.IVEvent} message VEvent 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 */ - VEvent.encodeDelimited = function encodeDelimited(message, writer) { + Filter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VEvent message from the specified reader or buffer. + * Decodes a Filter message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VEvent + * @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.VEvent} VEvent + * @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 */ - VEvent.decode = function decode(reader, length) { + Filter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VEvent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Filter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.int32(); + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.binlogdata.Rule.decode(reader, reader.uint32())); break; case 2: - message.timestamp = reader.int64(); - break; - case 3: - message.gtid = reader.string(); - 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()); + message.fieldEventMode = reader.int32(); break; default: reader.skipType(tag & 7); @@ -68270,348 +68938,188 @@ $root.binlogdata = (function() { }; /** - * Decodes a VEvent 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.VEvent + * @memberof binlogdata.Filter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VEvent} VEvent + * @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 */ - VEvent.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 VEvent message. + * Verifies a Filter message. * @function verify - * @memberof binlogdata.VEvent + * @memberof binlogdata.Filter * @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) { + Filter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.binlogdata.Rule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.fieldEventMode != null && message.hasOwnProperty("fieldEventMode")) + switch (message.fieldEventMode) { default: - return "type: enum value expected"; + return "fieldEventMode: 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: 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")) { - var error = $root.binlogdata.RowEvent.verify(message.row_event); - if (error) - return "row_event." + error; - } - if (message.field_event != null && message.hasOwnProperty("field_event")) { - var error = $root.binlogdata.FieldEvent.verify(message.field_event); - if (error) - return "field_event." + error; - } - if (message.vgtid != null && message.hasOwnProperty("vgtid")) { - var error = $root.binlogdata.VGtid.verify(message.vgtid); - if (error) - return "vgtid." + error; - } - if (message.journal != null && message.hasOwnProperty("journal")) { - var 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")) { - var error = $root.binlogdata.LastPKEvent.verify(message.last_p_k_event); - if (error) - return "last_p_k_event." + error; - } return null; }; /** - * Creates a VEvent 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.VEvent + * @memberof binlogdata.Filter * @static * @param {Object.} object Plain object - * @returns {binlogdata.VEvent} VEvent + * @returns {binlogdata.Filter} Filter */ - VEvent.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VEvent) + Filter.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.Filter) return object; - var message = new $root.binlogdata.VEvent(); - switch (object.type) { - case "UNKNOWN": + var message = new $root.binlogdata.Filter(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".binlogdata.Filter.rules: array expected"); + message.rules = []; + for (var 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.fieldEventMode) { + case "ERR_ON_MISMATCH": case 0: - message.type = 0; + message.fieldEventMode = 0; break; - case "GTID": + case "BEST_EFFORT": 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; + message.fieldEventMode = 1; 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); - } - 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); - } return message; }; /** - * Creates a plain object from a VEvent 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.VEvent + * @memberof binlogdata.Filter * @static - * @param {binlogdata.VEvent} message VEvent + * @param {binlogdata.Filter} message Filter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VEvent.toObject = function toObject(message, options) { + Filter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "UNKNOWN" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - object.gtid = ""; - object.statement = ""; - object.row_event = null; - object.field_event = null; - object.vgtid = null; - object.journal = null; - object.dml = ""; - if ($util.Long) { - var 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; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fieldEventMode = options.enums === String ? "ERR_ON_MISMATCH" : 0; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.binlogdata.Rule.toObject(message.rules[j], options); } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $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.fieldEventMode != null && message.hasOwnProperty("fieldEventMode")) + object.fieldEventMode = options.enums === String ? $root.binlogdata.Filter.FieldEventMode[message.fieldEventMode] : message.fieldEventMode; return object; }; /** - * Converts this VEvent to JSON. + * Converts this Filter to JSON. * @function toJSON - * @memberof binlogdata.VEvent + * @memberof binlogdata.Filter * @instance * @returns {Object.} JSON object */ - VEvent.prototype.toJSON = function toJSON() { + Filter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VEvent; + /** + * 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() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ERR_ON_MISMATCH"] = 0; + values[valuesById[1] = "BEST_EFFORT"] = 1; + return values; + })(); + + return Filter; })(); - binlogdata.MinimalTable = (function() { + /** + * 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() { + var 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; + })(); + + binlogdata.BinlogSource = (function() { /** - * Properties of a MinimalTable. + * Properties of a BinlogSource. * @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 + * @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 */ /** - * Constructs a new MinimalTable. + * Constructs a new BinlogSource. * @memberof binlogdata - * @classdesc Represents a MinimalTable. - * @implements IMinimalTable + * @classdesc Represents a BinlogSource. + * @implements IBinlogSource * @constructor - * @param {binlogdata.IMinimalTable=} [properties] Properties to set + * @param {binlogdata.IBinlogSource=} [properties] Properties to set */ - function MinimalTable(properties) { - this.fields = []; - this.p_k_columns = []; + function BinlogSource(properties) { + this.tables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68619,115 +69127,195 @@ $root.binlogdata = (function() { } /** - * MinimalTable name. - * @member {string} name - * @memberof binlogdata.MinimalTable + * BinlogSource keyspace. + * @member {string} keyspace + * @memberof binlogdata.BinlogSource * @instance */ - MinimalTable.prototype.name = ""; + BinlogSource.prototype.keyspace = ""; /** - * MinimalTable fields. - * @member {Array.} fields - * @memberof binlogdata.MinimalTable + * BinlogSource shard. + * @member {string} shard + * @memberof binlogdata.BinlogSource * @instance */ - MinimalTable.prototype.fields = $util.emptyArray; + BinlogSource.prototype.shard = ""; /** - * MinimalTable p_k_columns. - * @member {Array.} p_k_columns - * @memberof binlogdata.MinimalTable + * BinlogSource tablet_type. + * @member {topodata.TabletType} tablet_type + * @memberof binlogdata.BinlogSource * @instance */ - MinimalTable.prototype.p_k_columns = $util.emptyArray; + BinlogSource.prototype.tablet_type = 0; /** - * Creates a new MinimalTable instance using the specified properties. + * 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.BinlogSource + * @instance + */ + BinlogSource.prototype.tables = $util.emptyArray; + + /** + * BinlogSource filter. + * @member {binlogdata.IFilter|null|undefined} filter + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.filter = null; + + /** + * BinlogSource on_ddl. + * @member {binlogdata.OnDDLAction} on_ddl + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.on_ddl = 0; + + /** + * BinlogSource external_mysql. + * @member {string} external_mysql + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.external_mysql = ""; + + /** + * BinlogSource stop_after_copy. + * @member {boolean} stop_after_copy + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.stop_after_copy = false; + + /** + * BinlogSource external_cluster. + * @member {string} external_cluster + * @memberof binlogdata.BinlogSource + * @instance + */ + BinlogSource.prototype.external_cluster = ""; + + /** + * Creates a new BinlogSource instance using the specified properties. * @function create - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.BinlogSource * @static - * @param {binlogdata.IMinimalTable=} [properties] Properties to set - * @returns {binlogdata.MinimalTable} MinimalTable instance + * @param {binlogdata.IBinlogSource=} [properties] Properties to set + * @returns {binlogdata.BinlogSource} BinlogSource instance */ - MinimalTable.create = function create(properties) { - return new MinimalTable(properties); + BinlogSource.create = function create(properties) { + return new BinlogSource(properties); }; /** - * Encodes the specified MinimalTable message. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. + * Encodes the specified BinlogSource message. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. * @function encode - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.BinlogSource * @static - * @param {binlogdata.IMinimalTable} message MinimalTable 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 */ - MinimalTable.encode = function encode(message, writer) { + BinlogSource.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 (var 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 (var i = 0; i < message.p_k_columns.length; ++i) - writer.int64(message.p_k_columns[i]); - writer.ldelim(); - } + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tablet_type); + if (message.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 (var 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); return writer; }; /** - * Encodes the specified MinimalTable message, length delimited. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. + * Encodes the specified BinlogSource message, length delimited. Does not implicitly {@link binlogdata.BinlogSource.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.BinlogSource * @static - * @param {binlogdata.IMinimalTable} message MinimalTable 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 */ - MinimalTable.encodeDelimited = function encodeDelimited(message, writer) { + BinlogSource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MinimalTable message from the specified reader or buffer. + * Decodes a BinlogSource message from the specified reader or buffer. * @function decode - * @memberof binlogdata.MinimalTable + * @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.MinimalTable} MinimalTable + * @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 */ - MinimalTable.decode = function decode(reader, length) { + BinlogSource.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.MinimalTable(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.BinlogSource(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.keyspace = reader.string(); break; case 2: - if (!(message.fields && message.fields.length)) - message.fields = []; - message.fields.push($root.query.Field.decode(reader, reader.uint32())); + message.shard = reader.string(); break; case 3: - if (!(message.p_k_columns && message.p_k_columns.length)) - message.p_k_columns = []; - if ((tag & 7) === 2) { - var 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.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; default: reader.skipType(tag & 7); @@ -68738,165 +69326,330 @@ $root.binlogdata = (function() { }; /** - * Decodes a MinimalTable 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.MinimalTable + * @memberof binlogdata.BinlogSource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.MinimalTable} MinimalTable + * @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 */ - MinimalTable.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 MinimalTable message. + * Verifies a BinlogSource message. * @function verify - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.BinlogSource * @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) { + BinlogSource.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 (var i = 0; i < message.fields.length; ++i) { - var error = $root.query.Field.verify(message.fields[i]); - if (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.tablet_type != null && message.hasOwnProperty("tablet_type")) + switch (message.tablet_type) { + default: + return "tablet_type: 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.key_range != null && message.hasOwnProperty("key_range")) { + var error = $root.topodata.KeyRange.verify(message.key_range); + if (error) + return "key_range." + 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 (var 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.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (var i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; } + if (message.filter != null && message.hasOwnProperty("filter")) { + var error = $root.binlogdata.Filter.verify(message.filter); + if (error) + return "filter." + 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"; return null; }; /** - * Creates a MinimalTable 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.MinimalTable + * @memberof binlogdata.BinlogSource * @static * @param {Object.} object Plain object - * @returns {binlogdata.MinimalTable} MinimalTable + * @returns {binlogdata.BinlogSource} BinlogSource */ - MinimalTable.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.MinimalTable) + BinlogSource.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.BinlogSource) return object; - var 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 (var 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]); - } + var 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) { + case "UNKNOWN": + case 0: + message.tablet_type = 0; + 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.p_k_columns) { - if (!Array.isArray(object.p_k_columns)) - throw TypeError(".binlogdata.MinimalTable.p_k_columns: array expected"); - message.p_k_columns = []; - for (var 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.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.BinlogSource.tables: array expected"); + message.tables = []; + for (var 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) { + 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.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); return message; }; /** - * Creates a plain object from a MinimalTable 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.MinimalTable + * @memberof binlogdata.BinlogSource * @static - * @param {binlogdata.MinimalTable} message MinimalTable + * @param {binlogdata.BinlogSource} message BinlogSource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MinimalTable.toObject = function toObject(message, options) { + BinlogSource.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.fields = []; - object.p_k_columns = []; - } - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.fields && message.fields.length) { - object.fields = []; - for (var j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + if (options.arrays || options.defaults) + object.tables = []; + if (options.defaults) { + 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 = ""; } - if (message.p_k_columns && message.p_k_columns.length) { - object.p_k_columns = []; - for (var 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.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] : message.tablet_type; + if (message.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 (var 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] : 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; return object; }; /** - * Converts this MinimalTable to JSON. + * Converts this BinlogSource to JSON. * @function toJSON - * @memberof binlogdata.MinimalTable + * @memberof binlogdata.BinlogSource * @instance * @returns {Object.} JSON object */ - MinimalTable.prototype.toJSON = function toJSON() { + BinlogSource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MinimalTable; + return BinlogSource; })(); - binlogdata.MinimalSchema = (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 + */ + binlogdata.VEventType = (function() { + var 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; + return values; + })(); + + binlogdata.RowChange = (function() { /** - * Properties of a MinimalSchema. + * Properties of a RowChange. * @memberof binlogdata - * @interface IMinimalSchema - * @property {Array.|null} [tables] MinimalSchema tables + * @interface IRowChange + * @property {query.IRow|null} [before] RowChange before + * @property {query.IRow|null} [after] RowChange after */ /** - * Constructs a new MinimalSchema. + * Constructs a new RowChange. * @memberof binlogdata - * @classdesc Represents a MinimalSchema. - * @implements IMinimalSchema + * @classdesc Represents a RowChange. + * @implements IRowChange * @constructor - * @param {binlogdata.IMinimalSchema=} [properties] Properties to set + * @param {binlogdata.IRowChange=} [properties] Properties to set */ - function MinimalSchema(properties) { - this.tables = []; + function RowChange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68904,78 +69657,88 @@ $root.binlogdata = (function() { } /** - * MinimalSchema tables. - * @member {Array.} tables - * @memberof binlogdata.MinimalSchema + * RowChange before. + * @member {query.IRow|null|undefined} before + * @memberof binlogdata.RowChange * @instance */ - MinimalSchema.prototype.tables = $util.emptyArray; + RowChange.prototype.before = null; /** - * Creates a new MinimalSchema instance using the specified properties. + * RowChange after. + * @member {query.IRow|null|undefined} after + * @memberof binlogdata.RowChange + * @instance + */ + RowChange.prototype.after = null; + + /** + * Creates a new RowChange instance using the specified properties. * @function create - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.RowChange * @static - * @param {binlogdata.IMinimalSchema=} [properties] Properties to set - * @returns {binlogdata.MinimalSchema} MinimalSchema instance + * @param {binlogdata.IRowChange=} [properties] Properties to set + * @returns {binlogdata.RowChange} RowChange instance */ - MinimalSchema.create = function create(properties) { - return new MinimalSchema(properties); + RowChange.create = function create(properties) { + return new RowChange(properties); }; /** - * Encodes the specified MinimalSchema message. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. + * Encodes the specified RowChange message. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. * @function encode - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.RowChange * @static - * @param {binlogdata.IMinimalSchema} message MinimalSchema 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 */ - MinimalSchema.encode = function encode(message, writer) { + RowChange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tables != null && message.tables.length) - for (var 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.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(); return writer; }; /** - * Encodes the specified MinimalSchema message, length delimited. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. + * Encodes the specified RowChange message, length delimited. Does not implicitly {@link binlogdata.RowChange.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.RowChange * @static - * @param {binlogdata.IMinimalSchema} message MinimalSchema 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 */ - MinimalSchema.encodeDelimited = function encodeDelimited(message, writer) { + RowChange.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MinimalSchema message from the specified reader or buffer. + * Decodes a RowChange message from the specified reader or buffer. * @function decode - * @memberof binlogdata.MinimalSchema + * @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.MinimalSchema} MinimalSchema + * @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 */ - MinimalSchema.decode = function decode(reader, length) { + RowChange.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.MinimalSchema(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.RowChange(); while (reader.pos < end) { var 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.before = $root.query.Row.decode(reader, reader.uint32()); + break; + case 2: + message.after = $root.query.Row.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -68986,274 +69749,220 @@ $root.binlogdata = (function() { }; /** - * Decodes a MinimalSchema 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.MinimalSchema + * @memberof binlogdata.RowChange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.MinimalSchema} MinimalSchema + * @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 */ - MinimalSchema.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 MinimalSchema message. + * Verifies a RowChange message. * @function verify - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.RowChange * @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) { + RowChange.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 (var i = 0; i < message.tables.length; ++i) { - var error = $root.binlogdata.MinimalTable.verify(message.tables[i]); - if (error) - return "tables." + error; - } + if (message.before != null && message.hasOwnProperty("before")) { + var error = $root.query.Row.verify(message.before); + if (error) + return "before." + error; + } + if (message.after != null && message.hasOwnProperty("after")) { + var error = $root.query.Row.verify(message.after); + if (error) + return "after." + error; } return null; }; /** - * Creates a MinimalSchema 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.MinimalSchema + * @memberof binlogdata.RowChange * @static * @param {Object.} object Plain object - * @returns {binlogdata.MinimalSchema} MinimalSchema + * @returns {binlogdata.RowChange} RowChange */ - MinimalSchema.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.MinimalSchema) + RowChange.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.RowChange) return object; - var message = new $root.binlogdata.MinimalSchema(); - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".binlogdata.MinimalSchema.tables: array expected"); - message.tables = []; - for (var 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]); - } + var 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); } return message; }; /** - * Creates a plain object from a MinimalSchema 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.MinimalSchema + * @memberof binlogdata.RowChange * @static - * @param {binlogdata.MinimalSchema} message MinimalSchema + * @param {binlogdata.RowChange} message RowChange * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MinimalSchema.toObject = function toObject(message, options) { + RowChange.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.tables = []; - if (message.tables && message.tables.length) { - object.tables = []; - for (var j = 0; j < message.tables.length; ++j) - object.tables[j] = $root.binlogdata.MinimalTable.toObject(message.tables[j], options); + if (options.defaults) { + object.before = null; + object.after = 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); return object; }; /** - * Converts this MinimalSchema to JSON. + * Converts this RowChange to JSON. * @function toJSON - * @memberof binlogdata.MinimalSchema + * @memberof binlogdata.RowChange * @instance * @returns {Object.} JSON object */ - MinimalSchema.prototype.toJSON = function toJSON() { + RowChange.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MinimalSchema; - })(); - - binlogdata.VStreamRequest = (function() { - - /** - * Properties of a VStreamRequest. - * @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 - */ - - /** - * Constructs a new VStreamRequest. - * @memberof binlogdata - * @classdesc Represents a VStreamRequest. - * @implements IVStreamRequest - * @constructor - * @param {binlogdata.IVStreamRequest=} [properties] Properties to set - */ - function VStreamRequest(properties) { - this.table_last_p_ks = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * 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; + return RowChange; + })(); + + binlogdata.RowEvent = (function() { /** - * VStreamRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof binlogdata.VStreamRequest - * @instance + * Properties of a RowEvent. + * @memberof binlogdata + * @interface IRowEvent + * @property {string|null} [table_name] RowEvent table_name + * @property {Array.|null} [row_changes] RowEvent row_changes */ - VStreamRequest.prototype.target = null; /** - * VStreamRequest position. - * @member {string} position - * @memberof binlogdata.VStreamRequest - * @instance + * Constructs a new RowEvent. + * @memberof binlogdata + * @classdesc Represents a RowEvent. + * @implements IRowEvent + * @constructor + * @param {binlogdata.IRowEvent=} [properties] Properties to set */ - VStreamRequest.prototype.position = ""; + function RowEvent(properties) { + this.row_changes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * VStreamRequest filter. - * @member {binlogdata.IFilter|null|undefined} filter - * @memberof binlogdata.VStreamRequest + * RowEvent table_name. + * @member {string} table_name + * @memberof binlogdata.RowEvent * @instance */ - VStreamRequest.prototype.filter = null; + RowEvent.prototype.table_name = ""; /** - * VStreamRequest table_last_p_ks. - * @member {Array.} table_last_p_ks - * @memberof binlogdata.VStreamRequest + * RowEvent row_changes. + * @member {Array.} row_changes + * @memberof binlogdata.RowEvent * @instance */ - VStreamRequest.prototype.table_last_p_ks = $util.emptyArray; + RowEvent.prototype.row_changes = $util.emptyArray; /** - * Creates a new VStreamRequest instance using the specified properties. + * Creates a new RowEvent instance using the specified properties. * @function create - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.RowEvent * @static - * @param {binlogdata.IVStreamRequest=} [properties] Properties to set - * @returns {binlogdata.VStreamRequest} VStreamRequest instance + * @param {binlogdata.IRowEvent=} [properties] Properties to set + * @returns {binlogdata.RowEvent} RowEvent instance */ - VStreamRequest.create = function create(properties) { - return new VStreamRequest(properties); + RowEvent.create = function create(properties) { + return new RowEvent(properties); }; /** - * Encodes the specified VStreamRequest message. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. + * Encodes the specified RowEvent message. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.RowEvent * @static - * @param {binlogdata.IVStreamRequest} message VStreamRequest 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 */ - VStreamRequest.encode = function encode(message, writer) { + RowEvent.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 (var 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.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 (var 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(); return writer; }; /** - * Encodes the specified VStreamRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. + * Encodes the specified RowEvent message, length delimited. Does not implicitly {@link binlogdata.RowEvent.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.RowEvent * @static - * @param {binlogdata.IVStreamRequest} message VStreamRequest 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 */ - VStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + RowEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamRequest message from the specified reader or buffer. + * Decodes a RowEvent message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamRequest + * @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.VStreamRequest} VStreamRequest + * @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 */ - VStreamRequest.decode = function decode(reader, length) { + RowEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.RowEvent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.table_name = reader.string(); 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())); + if (!(message.row_changes && message.row_changes.length)) + message.row_changes = []; + message.row_changes.push($root.binlogdata.RowChange.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -69264,187 +69973,135 @@ $root.binlogdata = (function() { }; /** - * Decodes a VStreamRequest 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.VStreamRequest + * @memberof binlogdata.RowEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamRequest} VStreamRequest + * @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 */ - VStreamRequest.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 VStreamRequest message. + * Verifies a RowEvent message. * @function verify - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.RowEvent * @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) { + RowEvent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) { - var 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 (var i = 0; i < message.table_last_p_ks.length; ++i) { - var error = $root.binlogdata.TableLastPK.verify(message.table_last_p_ks[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 (var i = 0; i < message.row_changes.length; ++i) { + var error = $root.binlogdata.RowChange.verify(message.row_changes[i]); if (error) - return "table_last_p_ks." + error; + return "row_changes." + error; } } return null; }; /** - * Creates a VStreamRequest 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.VStreamRequest + * @memberof binlogdata.RowEvent * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamRequest} VStreamRequest + * @returns {binlogdata.RowEvent} RowEvent */ - VStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamRequest) + RowEvent.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.RowEvent) return object; - var 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 (var 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]); + var 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 (var 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]); } } return message; }; /** - * Creates a plain object from a VStreamRequest 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.VStreamRequest + * @memberof binlogdata.RowEvent * @static - * @param {binlogdata.VStreamRequest} message VStreamRequest + * @param {binlogdata.RowEvent} message RowEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamRequest.toObject = function toObject(message, options) { + RowEvent.toObject = function toObject(message, options) { if (!options) options = {}; var 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; - } - 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 (var 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.row_changes = []; + if (options.defaults) + object.table_name = ""; + 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 (var j = 0; j < message.row_changes.length; ++j) + object.row_changes[j] = $root.binlogdata.RowChange.toObject(message.row_changes[j], options); } return object; }; /** - * Converts this VStreamRequest to JSON. + * Converts this RowEvent to JSON. * @function toJSON - * @memberof binlogdata.VStreamRequest + * @memberof binlogdata.RowEvent * @instance * @returns {Object.} JSON object */ - VStreamRequest.prototype.toJSON = function toJSON() { + RowEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VStreamRequest; + return RowEvent; })(); - binlogdata.VStreamResponse = (function() { + binlogdata.FieldEvent = (function() { /** - * Properties of a VStreamResponse. + * Properties of a FieldEvent. * @memberof binlogdata - * @interface IVStreamResponse - * @property {Array.|null} [events] VStreamResponse events + * @interface IFieldEvent + * @property {string|null} [table_name] FieldEvent table_name + * @property {Array.|null} [fields] FieldEvent fields */ /** - * Constructs a new VStreamResponse. + * Constructs a new FieldEvent. * @memberof binlogdata - * @classdesc Represents a VStreamResponse. - * @implements IVStreamResponse + * @classdesc Represents a FieldEvent. + * @implements IFieldEvent * @constructor - * @param {binlogdata.IVStreamResponse=} [properties] Properties to set + * @param {binlogdata.IFieldEvent=} [properties] Properties to set */ - function VStreamResponse(properties) { - this.events = []; + function FieldEvent(properties) { + this.fields = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69452,78 +70109,91 @@ $root.binlogdata = (function() { } /** - * VStreamResponse events. - * @member {Array.} events - * @memberof binlogdata.VStreamResponse + * FieldEvent table_name. + * @member {string} table_name + * @memberof binlogdata.FieldEvent * @instance */ - VStreamResponse.prototype.events = $util.emptyArray; + FieldEvent.prototype.table_name = ""; /** - * Creates a new VStreamResponse instance using the specified properties. + * FieldEvent fields. + * @member {Array.} fields + * @memberof binlogdata.FieldEvent + * @instance + */ + FieldEvent.prototype.fields = $util.emptyArray; + + /** + * Creates a new FieldEvent instance using the specified properties. * @function create - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.FieldEvent * @static - * @param {binlogdata.IVStreamResponse=} [properties] Properties to set - * @returns {binlogdata.VStreamResponse} VStreamResponse instance + * @param {binlogdata.IFieldEvent=} [properties] Properties to set + * @returns {binlogdata.FieldEvent} FieldEvent instance */ - VStreamResponse.create = function create(properties) { - return new VStreamResponse(properties); + FieldEvent.create = function create(properties) { + return new FieldEvent(properties); }; /** - * Encodes the specified VStreamResponse message. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. + * Encodes the specified FieldEvent message. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.FieldEvent * @static - * @param {binlogdata.IVStreamResponse} message VStreamResponse 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 */ - VStreamResponse.encode = function encode(message, writer) { + FieldEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.events != null && message.events.length) - for (var 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.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 (var i = 0; i < message.fields.length; ++i) + $root.query.Field.encode(message.fields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified VStreamResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. + * Encodes the specified FieldEvent message, length delimited. Does not implicitly {@link binlogdata.FieldEvent.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.FieldEvent * @static - * @param {binlogdata.IVStreamResponse} message VStreamResponse 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 */ - VStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { + FieldEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamResponse message from the specified reader or buffer. + * Decodes a FieldEvent message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamResponse + * @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.VStreamResponse} VStreamResponse + * @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 */ - VStreamResponse.decode = function decode(reader, length) { + FieldEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.FieldEvent(); while (reader.pos < end) { var 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.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; default: reader.skipType(tag & 7); @@ -69534,128 +70204,137 @@ $root.binlogdata = (function() { }; /** - * Decodes a VStreamResponse 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.VStreamResponse + * @memberof binlogdata.FieldEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamResponse} VStreamResponse + * @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 */ - VStreamResponse.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 VStreamResponse message. + * Verifies a FieldEvent message. * @function verify - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.FieldEvent * @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) { + FieldEvent.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 (var i = 0; i < message.events.length; ++i) { - var error = $root.binlogdata.VEvent.verify(message.events[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 (var i = 0; i < message.fields.length; ++i) { + var error = $root.query.Field.verify(message.fields[i]); if (error) - return "events." + error; + return "fields." + error; } } return null; }; /** - * Creates a VStreamResponse 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.VStreamResponse + * @memberof binlogdata.FieldEvent * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamResponse} VStreamResponse + * @returns {binlogdata.FieldEvent} FieldEvent */ - VStreamResponse.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamResponse) + FieldEvent.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.FieldEvent) return object; - var message = new $root.binlogdata.VStreamResponse(); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".binlogdata.VStreamResponse.events: array expected"); - message.events = []; - for (var 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]); + var 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 (var 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]); } } return message; }; /** - * Creates a plain object from a VStreamResponse 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.VStreamResponse + * @memberof binlogdata.FieldEvent * @static - * @param {binlogdata.VStreamResponse} message VStreamResponse + * @param {binlogdata.FieldEvent} message FieldEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamResponse.toObject = function toObject(message, options) { + FieldEvent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.events = []; - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.binlogdata.VEvent.toObject(message.events[j], options); + object.fields = []; + if (options.defaults) + object.table_name = ""; + if (message.table_name != null && message.hasOwnProperty("table_name")) + object.table_name = message.table_name; + if (message.fields && message.fields.length) { + object.fields = []; + for (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); } return object; }; /** - * Converts this VStreamResponse to JSON. + * Converts this FieldEvent to JSON. * @function toJSON - * @memberof binlogdata.VStreamResponse + * @memberof binlogdata.FieldEvent * @instance * @returns {Object.} JSON object */ - VStreamResponse.prototype.toJSON = function toJSON() { + FieldEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VStreamResponse; + return FieldEvent; })(); - binlogdata.VStreamRowsRequest = (function() { + binlogdata.ShardGtid = (function() { /** - * Properties of a VStreamRowsRequest. + * Properties of a ShardGtid. * @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 + * @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 VStreamRowsRequest. + * Constructs a new ShardGtid. * @memberof binlogdata - * @classdesc Represents a VStreamRowsRequest. - * @implements IVStreamRowsRequest + * @classdesc Represents a ShardGtid. + * @implements IShardGtid * @constructor - * @param {binlogdata.IVStreamRowsRequest=} [properties] Properties to set + * @param {binlogdata.IShardGtid=} [properties] Properties to set */ - function VStreamRowsRequest(properties) { + function ShardGtid(properties) { + this.table_p_ks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69663,127 +70342,117 @@ $root.binlogdata = (function() { } /** - * VStreamRowsRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof binlogdata.VStreamRowsRequest - * @instance - */ - VStreamRowsRequest.prototype.effective_caller_id = null; - - /** - * VStreamRowsRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof binlogdata.VStreamRowsRequest + * ShardGtid keyspace. + * @member {string} keyspace + * @memberof binlogdata.ShardGtid * @instance */ - VStreamRowsRequest.prototype.immediate_caller_id = null; + ShardGtid.prototype.keyspace = ""; /** - * VStreamRowsRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof binlogdata.VStreamRowsRequest + * ShardGtid shard. + * @member {string} shard + * @memberof binlogdata.ShardGtid * @instance */ - VStreamRowsRequest.prototype.target = null; + ShardGtid.prototype.shard = ""; /** - * VStreamRowsRequest query. - * @member {string} query - * @memberof binlogdata.VStreamRowsRequest + * ShardGtid gtid. + * @member {string} gtid + * @memberof binlogdata.ShardGtid * @instance */ - VStreamRowsRequest.prototype.query = ""; + ShardGtid.prototype.gtid = ""; /** - * VStreamRowsRequest lastpk. - * @member {query.IQueryResult|null|undefined} lastpk - * @memberof binlogdata.VStreamRowsRequest + * ShardGtid table_p_ks. + * @member {Array.} table_p_ks + * @memberof binlogdata.ShardGtid * @instance */ - VStreamRowsRequest.prototype.lastpk = null; + ShardGtid.prototype.table_p_ks = $util.emptyArray; /** - * Creates a new VStreamRowsRequest instance using the specified properties. + * Creates a new ShardGtid instance using the specified properties. * @function create - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.ShardGtid * @static - * @param {binlogdata.IVStreamRowsRequest=} [properties] Properties to set - * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest instance + * @param {binlogdata.IShardGtid=} [properties] Properties to set + * @returns {binlogdata.ShardGtid} ShardGtid instance */ - VStreamRowsRequest.create = function create(properties) { - return new VStreamRowsRequest(properties); + ShardGtid.create = function create(properties) { + return new ShardGtid(properties); }; /** - * Encodes the specified VStreamRowsRequest message. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. + * Encodes the specified ShardGtid message. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.ShardGtid * @static - * @param {binlogdata.IVStreamRowsRequest} message VStreamRowsRequest 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 */ - VStreamRowsRequest.encode = function encode(message, writer) { + ShardGtid.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.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 (var 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 VStreamRowsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. + * Encodes the specified ShardGtid message, length delimited. Does not implicitly {@link binlogdata.ShardGtid.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.ShardGtid * @static - * @param {binlogdata.IVStreamRowsRequest} message VStreamRowsRequest 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 */ - VStreamRowsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ShardGtid.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamRowsRequest message from the specified reader or buffer. + * Decodes a ShardGtid message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamRowsRequest + * @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.VStreamRowsRequest} VStreamRowsRequest + * @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 */ - VStreamRowsRequest.decode = function decode(reader, length) { + ShardGtid.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRowsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.ShardGtid(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + message.shard = reader.string(); break; case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); + message.gtid = reader.string(); break; case 4: - message.query = reader.string(); - break; - case 5: - message.lastpk = $root.query.QueryResult.decode(reader, reader.uint32()); + 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: reader.skipType(tag & 7); @@ -69794,167 +70463,151 @@ $root.binlogdata = (function() { }; /** - * Decodes a VStreamRowsRequest 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.VStreamRowsRequest + * @memberof binlogdata.ShardGtid * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest + * @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 */ - VStreamRowsRequest.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 VStreamRowsRequest message. + * Verifies a ShardGtid message. * @function verify - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.ShardGtid * @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) { + ShardGtid.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: string expected"; - if (message.lastpk != null && message.hasOwnProperty("lastpk")) { - var error = $root.query.QueryResult.verify(message.lastpk); - if (error) - return "lastpk." + 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.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 (var i = 0; i < message.table_p_ks.length; ++i) { + var error = $root.binlogdata.TableLastPK.verify(message.table_p_ks[i]); + if (error) + return "table_p_ks." + error; + } } return null; }; /** - * Creates a VStreamRowsRequest 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.VStreamRowsRequest + * @memberof binlogdata.ShardGtid * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest + * @returns {binlogdata.ShardGtid} ShardGtid */ - VStreamRowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamRowsRequest) + ShardGtid.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.ShardGtid) return object; - var 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); - } - 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.target != null) { - if (typeof object.target !== "object") - 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); + var 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 (var 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 VStreamRowsRequest 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.VStreamRowsRequest + * @memberof binlogdata.ShardGtid * @static - * @param {binlogdata.VStreamRowsRequest} message VStreamRowsRequest + * @param {binlogdata.ShardGtid} message ShardGtid * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamRowsRequest.toObject = function toObject(message, options) { + ShardGtid.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.table_p_ks = []; if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.query = ""; - object.lastpk = null; + 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 (var j = 0; j < message.table_p_ks.length; ++j) + object.table_p_ks[j] = $root.binlogdata.TableLastPK.toObject(message.table_p_ks[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 = message.query; - if (message.lastpk != null && message.hasOwnProperty("lastpk")) - object.lastpk = $root.query.QueryResult.toObject(message.lastpk, options); return object; }; /** - * Converts this VStreamRowsRequest to JSON. + * Converts this ShardGtid to JSON. * @function toJSON - * @memberof binlogdata.VStreamRowsRequest + * @memberof binlogdata.ShardGtid * @instance * @returns {Object.} JSON object */ - VStreamRowsRequest.prototype.toJSON = function toJSON() { + ShardGtid.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VStreamRowsRequest; + return ShardGtid; })(); - binlogdata.VStreamRowsResponse = (function() { + binlogdata.VGtid = (function() { /** - * Properties of a VStreamRowsResponse. + * Properties of a VGtid. * @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 + * @interface IVGtid + * @property {Array.|null} [shard_gtids] VGtid shard_gtids */ /** - * Constructs a new VStreamRowsResponse. + * Constructs a new VGtid. * @memberof binlogdata - * @classdesc Represents a VStreamRowsResponse. - * @implements IVStreamRowsResponse + * @classdesc Represents a VGtid. + * @implements IVGtid * @constructor - * @param {binlogdata.IVStreamRowsResponse=} [properties] Properties to set + * @param {binlogdata.IVGtid=} [properties] Properties to set */ - function VStreamRowsResponse(properties) { - this.fields = []; - this.pkfields = []; - this.rows = []; + function VGtid(properties) { + this.shard_gtids = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69962,136 +70615,78 @@ $root.binlogdata = (function() { } /** - * VStreamRowsResponse fields. - * @member {Array.} fields - * @memberof binlogdata.VStreamRowsResponse - * @instance - */ - VStreamRowsResponse.prototype.fields = $util.emptyArray; - - /** - * VStreamRowsResponse pkfields. - * @member {Array.} pkfields - * @memberof binlogdata.VStreamRowsResponse - * @instance - */ - VStreamRowsResponse.prototype.pkfields = $util.emptyArray; - - /** - * VStreamRowsResponse gtid. - * @member {string} gtid - * @memberof binlogdata.VStreamRowsResponse - * @instance - */ - VStreamRowsResponse.prototype.gtid = ""; - - /** - * VStreamRowsResponse rows. - * @member {Array.} rows - * @memberof binlogdata.VStreamRowsResponse - * @instance - */ - VStreamRowsResponse.prototype.rows = $util.emptyArray; - - /** - * VStreamRowsResponse lastpk. - * @member {query.IRow|null|undefined} lastpk - * @memberof binlogdata.VStreamRowsResponse + * VGtid shard_gtids. + * @member {Array.} shard_gtids + * @memberof binlogdata.VGtid * @instance */ - VStreamRowsResponse.prototype.lastpk = null; + VGtid.prototype.shard_gtids = $util.emptyArray; /** - * Creates a new VStreamRowsResponse instance using the specified properties. + * Creates a new VGtid instance using the specified properties. * @function create - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VGtid * @static - * @param {binlogdata.IVStreamRowsResponse=} [properties] Properties to set - * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse instance + * @param {binlogdata.IVGtid=} [properties] Properties to set + * @returns {binlogdata.VGtid} VGtid instance */ - VStreamRowsResponse.create = function create(properties) { - return new VStreamRowsResponse(properties); + VGtid.create = function create(properties) { + return new VGtid(properties); }; /** - * Encodes the specified VStreamRowsResponse message. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. + * Encodes the specified VGtid message. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VGtid * @static - * @param {binlogdata.IVStreamRowsResponse} message VStreamRowsResponse 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 */ - VStreamRowsResponse.encode = function encode(message, writer) { + VGtid.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fields != null && message.fields.length) - for (var i = 0; i < message.fields.length; ++i) - $root.query.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pkfields != null && message.pkfields.length) - for (var 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 (var i = 0; i < message.rows.length; ++i) - $root.query.Row.encode(message.rows[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.lastpk != null && Object.hasOwnProperty.call(message, "lastpk")) - $root.query.Row.encode(message.lastpk, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.shard_gtids != null && message.shard_gtids.length) + for (var 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 VStreamRowsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. + * Encodes the specified VGtid message, length delimited. Does not implicitly {@link binlogdata.VGtid.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VGtid * @static - * @param {binlogdata.IVStreamRowsResponse} message VStreamRowsResponse 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 */ - VStreamRowsResponse.encodeDelimited = function encodeDelimited(message, writer) { + VGtid.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamRowsResponse message from the specified reader or buffer. + * Decodes a VGtid message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamRowsResponse + * @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.VStreamRowsResponse} VStreamRowsResponse + * @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 */ - VStreamRowsResponse.decode = function decode(reader, length) { + VGtid.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRowsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VGtid(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.fields && message.fields.length)) - message.fields = []; - message.fields.push($root.query.Field.decode(reader, reader.uint32())); - 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; - case 4: - if (!(message.rows && message.rows.length)) - message.rows = []; - message.rows.push($root.query.Row.decode(reader, reader.uint32())); - break; - case 5: - message.lastpk = $root.query.Row.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: reader.skipType(tag & 7); @@ -70102,199 +70697,125 @@ $root.binlogdata = (function() { }; /** - * Decodes a VStreamRowsResponse 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.VStreamRowsResponse + * @memberof binlogdata.VGtid * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse + * @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 */ - VStreamRowsResponse.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 VStreamRowsResponse message. + * Verifies a VGtid message. * @function verify - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VGtid * @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) { + VGtid.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!Array.isArray(message.fields)) - return "fields: array expected"; - for (var i = 0; i < message.fields.length; ++i) { - var error = $root.query.Field.verify(message.fields[i]); - if (error) - return "fields." + error; - } - } - if (message.pkfields != null && message.hasOwnProperty("pkfields")) { - if (!Array.isArray(message.pkfields)) - return "pkfields: array expected"; - for (var i = 0; i < message.pkfields.length; ++i) { - var 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 (var i = 0; i < message.rows.length; ++i) { - var error = $root.query.Row.verify(message.rows[i]); + if (message.shard_gtids != null && message.hasOwnProperty("shard_gtids")) { + if (!Array.isArray(message.shard_gtids)) + return "shard_gtids: array expected"; + for (var i = 0; i < message.shard_gtids.length; ++i) { + var error = $root.binlogdata.ShardGtid.verify(message.shard_gtids[i]); if (error) - return "rows." + error; + return "shard_gtids." + error; } } - if (message.lastpk != null && message.hasOwnProperty("lastpk")) { - var error = $root.query.Row.verify(message.lastpk); - if (error) - return "lastpk." + error; - } return null; }; /** - * Creates a VStreamRowsResponse 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.VStreamRowsResponse + * @memberof binlogdata.VGtid * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse + * @returns {binlogdata.VGtid} VGtid */ - VStreamRowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamRowsResponse) + VGtid.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VGtid) return object; - var message = new $root.binlogdata.VStreamRowsResponse(); - if (object.fields) { - if (!Array.isArray(object.fields)) - throw TypeError(".binlogdata.VStreamRowsResponse.fields: array expected"); - message.fields = []; - for (var 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 (var 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.VStreamRowsResponse.rows: array expected"); - message.rows = []; - for (var 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]); + var 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 (var 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.lastpk != null) { - if (typeof object.lastpk !== "object") - throw TypeError(".binlogdata.VStreamRowsResponse.lastpk: object expected"); - message.lastpk = $root.query.Row.fromObject(object.lastpk); - } return message; }; /** - * Creates a plain object from a VStreamRowsResponse 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.VStreamRowsResponse + * @memberof binlogdata.VGtid * @static - * @param {binlogdata.VStreamRowsResponse} message VStreamRowsResponse + * @param {binlogdata.VGtid} message VGtid * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamRowsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.fields = []; - object.pkfields = []; - object.rows = []; - } - if (options.defaults) { - object.gtid = ""; - object.lastpk = null; - } - if (message.fields && message.fields.length) { - object.fields = []; - for (var j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.query.Field.toObject(message.fields[j], options); - } - if (message.pkfields && message.pkfields.length) { - object.pkfields = []; - for (var 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 (var j = 0; j < message.rows.length; ++j) - object.rows[j] = $root.query.Row.toObject(message.rows[j], options); + VGtid.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.shard_gtids = []; + if (message.shard_gtids && message.shard_gtids.length) { + object.shard_gtids = []; + for (var j = 0; j < message.shard_gtids.length; ++j) + object.shard_gtids[j] = $root.binlogdata.ShardGtid.toObject(message.shard_gtids[j], options); } - if (message.lastpk != null && message.hasOwnProperty("lastpk")) - object.lastpk = $root.query.Row.toObject(message.lastpk, options); return object; }; /** - * Converts this VStreamRowsResponse to JSON. + * Converts this VGtid to JSON. * @function toJSON - * @memberof binlogdata.VStreamRowsResponse + * @memberof binlogdata.VGtid * @instance * @returns {Object.} JSON object */ - VStreamRowsResponse.prototype.toJSON = function toJSON() { + VGtid.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VStreamRowsResponse; + return VGtid; })(); - binlogdata.LastPKEvent = (function() { + binlogdata.KeyspaceShard = (function() { /** - * Properties of a LastPKEvent. + * Properties of a KeyspaceShard. * @memberof binlogdata - * @interface ILastPKEvent - * @property {binlogdata.ITableLastPK|null} [table_last_p_k] LastPKEvent table_last_p_k - * @property {boolean|null} [completed] LastPKEvent completed + * @interface IKeyspaceShard + * @property {string|null} [keyspace] KeyspaceShard keyspace + * @property {string|null} [shard] KeyspaceShard shard */ /** - * Constructs a new LastPKEvent. + * Constructs a new KeyspaceShard. * @memberof binlogdata - * @classdesc Represents a LastPKEvent. - * @implements ILastPKEvent + * @classdesc Represents a KeyspaceShard. + * @implements IKeyspaceShard * @constructor - * @param {binlogdata.ILastPKEvent=} [properties] Properties to set + * @param {binlogdata.IKeyspaceShard=} [properties] Properties to set */ - function LastPKEvent(properties) { + function KeyspaceShard(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70302,88 +70823,88 @@ $root.binlogdata = (function() { } /** - * LastPKEvent table_last_p_k. - * @member {binlogdata.ITableLastPK|null|undefined} table_last_p_k - * @memberof binlogdata.LastPKEvent + * KeyspaceShard keyspace. + * @member {string} keyspace + * @memberof binlogdata.KeyspaceShard * @instance */ - LastPKEvent.prototype.table_last_p_k = null; + KeyspaceShard.prototype.keyspace = ""; /** - * LastPKEvent completed. - * @member {boolean} completed - * @memberof binlogdata.LastPKEvent + * KeyspaceShard shard. + * @member {string} shard + * @memberof binlogdata.KeyspaceShard * @instance */ - LastPKEvent.prototype.completed = false; + KeyspaceShard.prototype.shard = ""; /** - * Creates a new LastPKEvent instance using the specified properties. + * Creates a new KeyspaceShard instance using the specified properties. * @function create - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.KeyspaceShard * @static - * @param {binlogdata.ILastPKEvent=} [properties] Properties to set - * @returns {binlogdata.LastPKEvent} LastPKEvent instance + * @param {binlogdata.IKeyspaceShard=} [properties] Properties to set + * @returns {binlogdata.KeyspaceShard} KeyspaceShard instance */ - LastPKEvent.create = function create(properties) { - return new LastPKEvent(properties); + KeyspaceShard.create = function create(properties) { + return new KeyspaceShard(properties); }; /** - * Encodes the specified LastPKEvent message. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. + * Encodes the specified KeyspaceShard message. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. * @function encode - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.KeyspaceShard * @static - * @param {binlogdata.ILastPKEvent} message LastPKEvent 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 */ - LastPKEvent.encode = function encode(message, writer) { + KeyspaceShard.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.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 LastPKEvent message, length delimited. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. + * Encodes the specified KeyspaceShard message, length delimited. Does not implicitly {@link binlogdata.KeyspaceShard.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.KeyspaceShard * @static - * @param {binlogdata.ILastPKEvent} message LastPKEvent 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 */ - LastPKEvent.encodeDelimited = function encodeDelimited(message, writer) { + KeyspaceShard.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LastPKEvent message from the specified reader or buffer. + * Decodes a KeyspaceShard message from the specified reader or buffer. * @function decode - * @memberof binlogdata.LastPKEvent + * @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.LastPKEvent} LastPKEvent + * @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 */ - LastPKEvent.decode = function decode(reader, length) { + KeyspaceShard.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.LastPKEvent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.KeyspaceShard(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.table_last_p_k = $root.binlogdata.TableLastPK.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; case 2: - message.completed = reader.bool(); + message.shard = reader.string(); break; default: reader.skipType(tag & 7); @@ -70394,122 +70915,140 @@ $root.binlogdata = (function() { }; /** - * Decodes a LastPKEvent 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.LastPKEvent + * @memberof binlogdata.KeyspaceShard * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.LastPKEvent} LastPKEvent + * @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 */ - LastPKEvent.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 LastPKEvent message. + * Verifies a KeyspaceShard message. * @function verify - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.KeyspaceShard * @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) { + KeyspaceShard.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")) { - var 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"; + 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 LastPKEvent 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.LastPKEvent + * @memberof binlogdata.KeyspaceShard * @static * @param {Object.} object Plain object - * @returns {binlogdata.LastPKEvent} LastPKEvent + * @returns {binlogdata.KeyspaceShard} KeyspaceShard */ - LastPKEvent.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.LastPKEvent) + KeyspaceShard.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.KeyspaceShard) return object; - var 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); + var 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 LastPKEvent 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.LastPKEvent + * @memberof binlogdata.KeyspaceShard * @static - * @param {binlogdata.LastPKEvent} message LastPKEvent + * @param {binlogdata.KeyspaceShard} message KeyspaceShard * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LastPKEvent.toObject = function toObject(message, options) { + KeyspaceShard.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.table_last_p_k = null; - object.completed = false; + object.keyspace = ""; + object.shard = ""; } - 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; + 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 LastPKEvent to JSON. + * Converts this KeyspaceShard to JSON. * @function toJSON - * @memberof binlogdata.LastPKEvent + * @memberof binlogdata.KeyspaceShard * @instance * @returns {Object.} JSON object */ - LastPKEvent.prototype.toJSON = function toJSON() { + KeyspaceShard.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LastPKEvent; + return KeyspaceShard; })(); - binlogdata.TableLastPK = (function() { + /** + * MigrationType enum. + * @name binlogdata.MigrationType + * @enum {number} + * @property {number} TABLES=0 TABLES value + * @property {number} SHARDS=1 SHARDS value + */ + binlogdata.MigrationType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TABLES"] = 0; + values[valuesById[1] = "SHARDS"] = 1; + return values; + })(); + + binlogdata.Journal = (function() { /** - * Properties of a TableLastPK. + * Properties of a Journal. * @memberof binlogdata - * @interface ITableLastPK - * @property {string|null} [table_name] TableLastPK table_name - * @property {query.IQueryResult|null} [lastpk] TableLastPK lastpk + * @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 TableLastPK. + * Constructs a new Journal. * @memberof binlogdata - * @classdesc Represents a TableLastPK. - * @implements ITableLastPK + * @classdesc Represents a Journal. + * @implements IJournal * @constructor - * @param {binlogdata.ITableLastPK=} [properties] Properties to set + * @param {binlogdata.IJournal=} [properties] Properties to set */ - function TableLastPK(properties) { + function Journal(properties) { + this.tables = []; + this.shard_gtids = []; + this.participants = []; + this.source_workflows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70517,88 +71056,165 @@ $root.binlogdata = (function() { } /** - * TableLastPK table_name. - * @member {string} table_name - * @memberof binlogdata.TableLastPK + * Journal id. + * @member {number|Long} id + * @memberof binlogdata.Journal * @instance */ - TableLastPK.prototype.table_name = ""; + Journal.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * TableLastPK lastpk. - * @member {query.IQueryResult|null|undefined} lastpk - * @memberof binlogdata.TableLastPK + * Journal migration_type. + * @member {binlogdata.MigrationType} migration_type + * @memberof binlogdata.Journal * @instance */ - TableLastPK.prototype.lastpk = null; + Journal.prototype.migration_type = 0; /** - * Creates a new TableLastPK instance using the specified properties. + * Journal tables. + * @member {Array.} tables + * @memberof binlogdata.Journal + * @instance + */ + Journal.prototype.tables = $util.emptyArray; + + /** + * Journal local_position. + * @member {string} local_position + * @memberof binlogdata.Journal + * @instance + */ + Journal.prototype.local_position = ""; + + /** + * Journal shard_gtids. + * @member {Array.} shard_gtids + * @memberof binlogdata.Journal + * @instance + */ + Journal.prototype.shard_gtids = $util.emptyArray; + + /** + * Journal participants. + * @member {Array.} participants + * @memberof binlogdata.Journal + * @instance + */ + Journal.prototype.participants = $util.emptyArray; + + /** + * 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.TableLastPK + * @memberof binlogdata.Journal * @static - * @param {binlogdata.ITableLastPK=} [properties] Properties to set - * @returns {binlogdata.TableLastPK} TableLastPK instance + * @param {binlogdata.IJournal=} [properties] Properties to set + * @returns {binlogdata.Journal} Journal instance */ - TableLastPK.create = function create(properties) { - return new TableLastPK(properties); + Journal.create = function create(properties) { + return new Journal(properties); }; /** - * Encodes the specified TableLastPK message. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. + * Encodes the specified Journal message. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. * @function encode - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.Journal * @static - * @param {binlogdata.ITableLastPK} message TableLastPK 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 */ - TableLastPK.encode = function encode(message, writer) { + Journal.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.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 (var 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 (var 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 (var 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 (var 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 TableLastPK message, length delimited. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. + * Encodes the specified Journal message, length delimited. Does not implicitly {@link binlogdata.Journal.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.Journal * @static - * @param {binlogdata.ITableLastPK} message TableLastPK 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 */ - TableLastPK.encodeDelimited = function encodeDelimited(message, writer) { + Journal.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TableLastPK message from the specified reader or buffer. + * Decodes a Journal message from the specified reader or buffer. * @function decode - * @memberof binlogdata.TableLastPK + * @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.TableLastPK} TableLastPK + * @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 */ - TableLastPK.decode = function decode(reader, length) { + Journal.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.TableLastPK(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.Journal(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.table_name = reader.string(); + message.id = reader.int64(); + break; + case 2: + message.migration_type = reader.int32(); break; case 3: - message.lastpk = $root.query.QueryResult.decode(reader, reader.uint32()); + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); + break; + case 4: + message.local_position = reader.string(); + 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())); + break; + case 6: + 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: reader.skipType(tag & 7); @@ -70609,124 +71225,253 @@ $root.binlogdata = (function() { }; /** - * Decodes a TableLastPK 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.TableLastPK + * @memberof binlogdata.Journal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.TableLastPK} TableLastPK + * @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 */ - TableLastPK.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 TableLastPK message. + * Verifies a Journal message. * @function verify - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.Journal * @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) { + Journal.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")) { - var error = $root.query.QueryResult.verify(message.lastpk); - if (error) - return "lastpk." + 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 (var i = 0; i < message.tables.length; ++i) + 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 (var i = 0; i < message.shard_gtids.length; ++i) { + var error = $root.binlogdata.ShardGtid.verify(message.shard_gtids[i]); + if (error) + return "shard_gtids." + error; + } + } + if (message.participants != null && message.hasOwnProperty("participants")) { + if (!Array.isArray(message.participants)) + return "participants: array expected"; + for (var i = 0; i < message.participants.length; ++i) { + var error = $root.binlogdata.KeyspaceShard.verify(message.participants[i]); + if (error) + return "participants." + error; + } + } + if (message.source_workflows != null && message.hasOwnProperty("source_workflows")) { + if (!Array.isArray(message.source_workflows)) + return "source_workflows: array expected"; + for (var i = 0; i < message.source_workflows.length; ++i) + if (!$util.isString(message.source_workflows[i])) + return "source_workflows: string[] expected"; } return null; }; /** - * Creates a TableLastPK 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.TableLastPK + * @memberof binlogdata.Journal * @static * @param {Object.} object Plain object - * @returns {binlogdata.TableLastPK} TableLastPK + * @returns {binlogdata.Journal} Journal */ - TableLastPK.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.TableLastPK) + Journal.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.Journal) return object; - var 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); + var 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) { + case "TABLES": + case 0: + message.migration_type = 0; + break; + case "SHARDS": + case 1: + message.migration_type = 1; + break; + } + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".binlogdata.Journal.tables: array expected"); + message.tables = []; + for (var 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 (var 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.participants) { + if (!Array.isArray(object.participants)) + throw TypeError(".binlogdata.Journal.participants: array expected"); + message.participants = []; + for (var 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.source_workflows) { + if (!Array.isArray(object.source_workflows)) + throw TypeError(".binlogdata.Journal.source_workflows: array expected"); + message.source_workflows = []; + for (var 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 TableLastPK 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.TableLastPK + * @memberof binlogdata.Journal * @static - * @param {binlogdata.TableLastPK} message TableLastPK + * @param {binlogdata.Journal} message Journal * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TableLastPK.toObject = function toObject(message, options) { + Journal.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.tables = []; + object.shard_gtids = []; + object.participants = []; + object.source_workflows = []; + } if (options.defaults) { - object.table_name = ""; - object.lastpk = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.id = options.longs === String ? "0" : 0; + object.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] : message.migration_type; + if (message.tables && message.tables.length) { + object.tables = []; + for (var 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 (var 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 (var 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 (var j = 0; j < message.source_workflows.length; ++j) + object.source_workflows[j] = message.source_workflows[j]; } - 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 TableLastPK to JSON. + * Converts this Journal to JSON. * @function toJSON - * @memberof binlogdata.TableLastPK + * @memberof binlogdata.Journal * @instance * @returns {Object.} JSON object */ - TableLastPK.prototype.toJSON = function toJSON() { + Journal.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TableLastPK; + return Journal; })(); - binlogdata.VStreamResultsRequest = (function() { + binlogdata.VEvent = (function() { /** - * Properties of a VStreamResultsRequest. + * Properties of a VEvent. * @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 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 */ /** - * Constructs a new VStreamResultsRequest. + * Constructs a new VEvent. * @memberof binlogdata - * @classdesc Represents a VStreamResultsRequest. - * @implements IVStreamResultsRequest + * @classdesc Represents a VEvent. + * @implements IVEvent * @constructor - * @param {binlogdata.IVStreamResultsRequest=} [properties] Properties to set + * @param {binlogdata.IVEvent=} [properties] Properties to set */ - function VStreamResultsRequest(properties) { + function VEvent(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70734,114 +71479,205 @@ $root.binlogdata = (function() { } /** - * VStreamResultsRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof binlogdata.VStreamResultsRequest + * VEvent type. + * @member {binlogdata.VEventType} type + * @memberof binlogdata.VEvent * @instance */ - VStreamResultsRequest.prototype.effective_caller_id = null; + VEvent.prototype.type = 0; /** - * VStreamResultsRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof binlogdata.VStreamResultsRequest + * VEvent timestamp. + * @member {number|Long} timestamp + * @memberof binlogdata.VEvent * @instance */ - VStreamResultsRequest.prototype.immediate_caller_id = null; + VEvent.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * VStreamResultsRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof binlogdata.VStreamResultsRequest + * VEvent gtid. + * @member {string} gtid + * @memberof binlogdata.VEvent * @instance */ - VStreamResultsRequest.prototype.target = null; + VEvent.prototype.gtid = ""; /** - * VStreamResultsRequest query. - * @member {string} query - * @memberof binlogdata.VStreamResultsRequest + * VEvent statement. + * @member {string} statement + * @memberof binlogdata.VEvent * @instance */ - VStreamResultsRequest.prototype.query = ""; + VEvent.prototype.statement = ""; /** - * Creates a new VStreamResultsRequest instance using the specified properties. + * 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; + + /** + * Creates a new VEvent instance using the specified properties. * @function create - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VEvent * @static - * @param {binlogdata.IVStreamResultsRequest=} [properties] Properties to set - * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest instance + * @param {binlogdata.IVEvent=} [properties] Properties to set + * @returns {binlogdata.VEvent} VEvent instance */ - VStreamResultsRequest.create = function create(properties) { - return new VStreamResultsRequest(properties); + VEvent.create = function create(properties) { + return new VEvent(properties); }; /** - * Encodes the specified VStreamResultsRequest message. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. + * Encodes the specified VEvent message. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VEvent * @static - * @param {binlogdata.IVStreamResultsRequest} message VStreamResultsRequest 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 */ - VStreamResultsRequest.encode = function encode(message, writer) { + VEvent.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.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(); return writer; }; /** - * Encodes the specified VStreamResultsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. + * Encodes the specified VEvent message, length delimited. Does not implicitly {@link binlogdata.VEvent.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VEvent * @static - * @param {binlogdata.IVStreamResultsRequest} message VStreamResultsRequest 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 */ - VStreamResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { + VEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamResultsRequest message from the specified reader or buffer. + * Decodes a VEvent message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamResultsRequest + * @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.VStreamResultsRequest} VStreamResultsRequest + * @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 */ - VStreamResultsRequest.decode = function decode(reader, length) { + VEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResultsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VEvent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.type = reader.int32(); break; case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + message.timestamp = reader.int64(); break; case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); + message.gtid = reader.string(); break; case 4: - message.query = reader.string(); + 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; default: reader.skipType(tag & 7); @@ -70852,151 +71688,348 @@ $root.binlogdata = (function() { }; /** - * Decodes a VStreamResultsRequest 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.VStreamResultsRequest + * @memberof binlogdata.VEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest + * @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 */ - VStreamResultsRequest.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 VStreamResultsRequest message. + * Verifies a VEvent message. * @function verify - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VEvent * @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) { + VEvent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (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: + 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")) { + var error = $root.binlogdata.RowEvent.verify(message.row_event); if (error) - return "effective_caller_id." + error; + return "row_event." + error; } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (message.field_event != null && message.hasOwnProperty("field_event")) { + var error = $root.binlogdata.FieldEvent.verify(message.field_event); if (error) - return "immediate_caller_id." + error; + return "field_event." + error; } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); + if (message.vgtid != null && message.hasOwnProperty("vgtid")) { + var error = $root.binlogdata.VGtid.verify(message.vgtid); if (error) - return "target." + error; + return "vgtid." + error; + } + if (message.journal != null && message.hasOwnProperty("journal")) { + var 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")) { + var error = $root.binlogdata.LastPKEvent.verify(message.last_p_k_event); + if (error) + return "last_p_k_event." + error; } - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: string expected"; return null; }; /** - * Creates a VStreamResultsRequest 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.VStreamResultsRequest + * @memberof binlogdata.VEvent * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest + * @returns {binlogdata.VEvent} VEvent */ - VStreamResultsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamResultsRequest) + VEvent.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VEvent) return object; - var 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); + var message = new $root.binlogdata.VEvent(); + switch (object.type) { + 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; } - 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.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.target != null) { - if (typeof object.target !== "object") - throw TypeError(".binlogdata.VStreamResultsRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); + 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.query != null) - message.query = String(object.query); return message; }; /** - * Creates a plain object from a VStreamResultsRequest 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.VStreamResultsRequest + * @memberof binlogdata.VEvent * @static - * @param {binlogdata.VStreamResultsRequest} message VStreamResultsRequest + * @param {binlogdata.VEvent} message VEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamResultsRequest.toObject = function toObject(message, options) { + VEvent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.query = ""; + object.type = options.enums === String ? "UNKNOWN" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + object.gtid = ""; + object.statement = ""; + object.row_event = null; + object.field_event = null; + object.vgtid = null; + object.journal = null; + object.dml = ""; + if ($util.Long) { + var 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; } - 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.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $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); return object; }; /** - * Converts this VStreamResultsRequest to JSON. + * Converts this VEvent to JSON. * @function toJSON - * @memberof binlogdata.VStreamResultsRequest + * @memberof binlogdata.VEvent * @instance * @returns {Object.} JSON object */ - VStreamResultsRequest.prototype.toJSON = function toJSON() { + VEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VStreamResultsRequest; + return VEvent; })(); - binlogdata.VStreamResultsResponse = (function() { + binlogdata.MinimalTable = (function() { /** - * Properties of a VStreamResultsResponse. + * Properties of a MinimalTable. * @memberof binlogdata - * @interface IVStreamResultsResponse - * @property {Array.|null} [fields] VStreamResultsResponse fields - * @property {string|null} [gtid] VStreamResultsResponse gtid - * @property {Array.|null} [rows] VStreamResultsResponse rows + * @interface IMinimalTable + * @property {string|null} [name] MinimalTable name + * @property {Array.|null} [fields] MinimalTable fields + * @property {Array.|null} [p_k_columns] MinimalTable p_k_columns */ /** - * Constructs a new VStreamResultsResponse. + * Constructs a new MinimalTable. * @memberof binlogdata - * @classdesc Represents a VStreamResultsResponse. - * @implements IVStreamResultsResponse + * @classdesc Represents a MinimalTable. + * @implements IMinimalTable * @constructor - * @param {binlogdata.IVStreamResultsResponse=} [properties] Properties to set + * @param {binlogdata.IMinimalTable=} [properties] Properties to set */ - function VStreamResultsResponse(properties) { + function MinimalTable(properties) { this.fields = []; - this.rows = []; + this.p_k_columns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71004,107 +72037,115 @@ $root.binlogdata = (function() { } /** - * VStreamResultsResponse fields. - * @member {Array.} fields - * @memberof binlogdata.VStreamResultsResponse + * MinimalTable name. + * @member {string} name + * @memberof binlogdata.MinimalTable * @instance */ - VStreamResultsResponse.prototype.fields = $util.emptyArray; + MinimalTable.prototype.name = ""; /** - * VStreamResultsResponse gtid. - * @member {string} gtid - * @memberof binlogdata.VStreamResultsResponse + * MinimalTable fields. + * @member {Array.} fields + * @memberof binlogdata.MinimalTable * @instance */ - VStreamResultsResponse.prototype.gtid = ""; + MinimalTable.prototype.fields = $util.emptyArray; /** - * VStreamResultsResponse rows. - * @member {Array.} rows - * @memberof binlogdata.VStreamResultsResponse + * MinimalTable p_k_columns. + * @member {Array.} p_k_columns + * @memberof binlogdata.MinimalTable * @instance */ - VStreamResultsResponse.prototype.rows = $util.emptyArray; + MinimalTable.prototype.p_k_columns = $util.emptyArray; /** - * Creates a new VStreamResultsResponse instance using the specified properties. + * Creates a new MinimalTable instance using the specified properties. * @function create - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.MinimalTable * @static - * @param {binlogdata.IVStreamResultsResponse=} [properties] Properties to set - * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse instance + * @param {binlogdata.IMinimalTable=} [properties] Properties to set + * @returns {binlogdata.MinimalTable} MinimalTable instance */ - VStreamResultsResponse.create = function create(properties) { - return new VStreamResultsResponse(properties); + MinimalTable.create = function create(properties) { + return new MinimalTable(properties); }; /** - * Encodes the specified VStreamResultsResponse message. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. + * Encodes the specified MinimalTable message. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. * @function encode - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.MinimalTable * @static - * @param {binlogdata.IVStreamResultsResponse} message VStreamResultsResponse 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 */ - VStreamResultsResponse.encode = function encode(message, writer) { + MinimalTable.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 (var i = 0; i < message.fields.length; ++i) - $root.query.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.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 (var i = 0; i < message.rows.length; ++i) - $root.query.Row.encode(message.rows[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $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 (var i = 0; i < message.p_k_columns.length; ++i) + writer.int64(message.p_k_columns[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified VStreamResultsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. + * Encodes the specified MinimalTable message, length delimited. Does not implicitly {@link binlogdata.MinimalTable.verify|verify} messages. * @function encodeDelimited - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.MinimalTable * @static - * @param {binlogdata.IVStreamResultsResponse} message VStreamResultsResponse 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 */ - VStreamResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MinimalTable.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VStreamResultsResponse message from the specified reader or buffer. + * Decodes a MinimalTable message from the specified reader or buffer. * @function decode - * @memberof binlogdata.VStreamResultsResponse + * @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.VStreamResultsResponse} VStreamResultsResponse + * @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 */ - VStreamResultsResponse.decode = function decode(reader, length) { + MinimalTable.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResultsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.MinimalTable(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: + message.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.gtid = reader.string(); - break; - case 4: - if (!(message.rows && message.rows.length)) - message.rows = []; - message.rows.push($root.query.Row.decode(reader, reader.uint32())); + if (!(message.p_k_columns && message.p_k_columns.length)) + message.p_k_columns = []; + if ((tag & 7) === 2) { + var 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; default: reader.skipType(tag & 7); @@ -71115,32 +72156,35 @@ $root.binlogdata = (function() { }; /** - * Decodes a VStreamResultsResponse 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.VStreamResultsResponse + * @memberof binlogdata.MinimalTable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse + * @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 */ - VStreamResultsResponse.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 VStreamResultsResponse message. + * Verifies a MinimalTable message. * @function verify - * @memberof binlogdata.VStreamResultsResponse + * @memberof binlogdata.MinimalTable * @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) { + MinimalTable.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"; @@ -71150,338 +72194,127 @@ $root.binlogdata = (function() { 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 (var i = 0; i < message.rows.length; ++i) { - var error = $root.query.Row.verify(message.rows[i]); - if (error) - return "rows." + 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 (var 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"; } return null; }; /** - * Creates a VStreamResultsResponse 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.VStreamResultsResponse + * @memberof binlogdata.MinimalTable * @static * @param {Object.} object Plain object - * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse + * @returns {binlogdata.MinimalTable} MinimalTable */ - VStreamResultsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.binlogdata.VStreamResultsResponse) + MinimalTable.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.MinimalTable) return object; - var message = new $root.binlogdata.VStreamResultsResponse(); + var 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.VStreamResultsResponse.fields: array expected"); + throw TypeError(".binlogdata.MinimalTable.fields: array expected"); message.fields = []; for (var i = 0; i < object.fields.length; ++i) { if (typeof object.fields[i] !== "object") - throw TypeError(".binlogdata.VStreamResultsResponse.fields: object expected"); + throw TypeError(".binlogdata.MinimalTable.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 (var 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]); - } + 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 (var 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(); } return message; }; /** - * Creates a plain object from a VStreamResultsResponse 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.VStreamResultsResponse + * @memberof binlogdata.MinimalTable * @static - * @param {binlogdata.VStreamResultsResponse} message VStreamResultsResponse + * @param {binlogdata.MinimalTable} message MinimalTable * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VStreamResultsResponse.toObject = function toObject(message, options) { + MinimalTable.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { object.fields = []; - object.rows = []; + object.p_k_columns = []; } if (options.defaults) - object.gtid = ""; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; if (message.fields && message.fields.length) { object.fields = []; for (var j = 0; j < message.fields.length; ++j) object.fields[j] = $root.query.Field.toObject(message.fields[j], options); } - if (message.gtid != null && message.hasOwnProperty("gtid")) - object.gtid = message.gtid; - if (message.rows && message.rows.length) { - object.rows = []; - for (var j = 0; j < message.rows.length; ++j) - object.rows[j] = $root.query.Row.toObject(message.rows[j], options); - } - return object; - }; - - /** - * Converts this VStreamResultsResponse to JSON. - * @function toJSON - * @memberof binlogdata.VStreamResultsResponse - * @instance - * @returns {Object.} JSON object - */ - VStreamResultsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return VStreamResultsResponse; - })(); - - return binlogdata; -})(); - -$root.mysqlctl = (function() { - - /** - * Namespace mysqlctl. - * @exports mysqlctl - * @namespace - */ - var mysqlctl = {}; - - mysqlctl.StartRequest = (function() { - - /** - * Properties of a StartRequest. - * @memberof mysqlctl - * @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.IStartRequest=} [properties] Properties to set - */ - function StartRequest(properties) { - this.mysqld_args = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StartRequest mysqld_args. - * @member {Array.} mysqld_args - * @memberof mysqlctl.StartRequest - * @instance - */ - StartRequest.prototype.mysqld_args = $util.emptyArray; - - /** - * Creates a new StartRequest instance using the specified properties. - * @function create - * @memberof mysqlctl.StartRequest - * @static - * @param {mysqlctl.IStartRequest=} [properties] Properties to set - * @returns {mysqlctl.StartRequest} StartRequest instance - */ - StartRequest.create = function create(properties) { - return new StartRequest(properties); - }; - - /** - * Encodes the specified StartRequest message. Does not implicitly {@link mysqlctl.StartRequest.verify|verify} messages. - * @function encode - * @memberof mysqlctl.StartRequest - * @static - * @param {mysqlctl.IStartRequest} message StartRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StartRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mysqld_args != null && message.mysqld_args.length) - for (var 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 StartRequest message, length delimited. Does not implicitly {@link mysqlctl.StartRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof mysqlctl.StartRequest - * @static - * @param {mysqlctl.IStartRequest} message StartRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StartRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StartRequest message from the specified reader or buffer. - * @function decode - * @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.StartRequest} StartRequest - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.StartRequest(); - while (reader.pos < end) { - var 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()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StartRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof mysqlctl.StartRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - StartRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StartRequest message. - * @function verify - * @memberof mysqlctl.StartRequest - * @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) { - 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 (var i = 0; i < message.mysqld_args.length; ++i) - if (!$util.isString(message.mysqld_args[i])) - return "mysqld_args: string[] expected"; - } - return null; - }; - - /** - * Creates a StartRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof mysqlctl.StartRequest - * @static - * @param {Object.} object Plain object - * @returns {mysqlctl.StartRequest} StartRequest - */ - StartRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.StartRequest) - return object; - var 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 (var i = 0; i < object.mysqld_args.length; ++i) - message.mysqld_args[i] = String(object.mysqld_args[i]); - } - return message; - }; - - /** - * Creates a plain object from a StartRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof mysqlctl.StartRequest - * @static - * @param {mysqlctl.StartRequest} message StartRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StartRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.mysqld_args = []; - if (message.mysqld_args && message.mysqld_args.length) { - object.mysqld_args = []; - for (var j = 0; j < message.mysqld_args.length; ++j) - object.mysqld_args[j] = message.mysqld_args[j]; + if (message.p_k_columns && message.p_k_columns.length) { + object.p_k_columns = []; + for (var 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]; } return object; }; /** - * Converts this StartRequest to JSON. + * Converts this MinimalTable to JSON. * @function toJSON - * @memberof mysqlctl.StartRequest + * @memberof binlogdata.MinimalTable * @instance * @returns {Object.} JSON object */ - StartRequest.prototype.toJSON = function toJSON() { + MinimalTable.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StartRequest; + return MinimalTable; })(); - mysqlctl.StartResponse = (function() { + binlogdata.MinimalSchema = (function() { /** - * Properties of a StartResponse. - * @memberof mysqlctl - * @interface IStartResponse + * Properties of a MinimalSchema. + * @memberof binlogdata + * @interface IMinimalSchema + * @property {Array.|null} [tables] MinimalSchema tables */ /** - * Constructs a new StartResponse. - * @memberof mysqlctl - * @classdesc Represents a StartResponse. - * @implements IStartResponse + * Constructs a new MinimalSchema. + * @memberof binlogdata + * @classdesc Represents a MinimalSchema. + * @implements IMinimalSchema * @constructor - * @param {mysqlctl.IStartResponse=} [properties] Properties to set + * @param {binlogdata.IMinimalSchema=} [properties] Properties to set */ - function StartResponse(properties) { + function MinimalSchema(properties) { + this.tables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71489,63 +72322,79 @@ $root.mysqlctl = (function() { } /** - * Creates a new StartResponse instance using the specified properties. + * MinimalSchema tables. + * @member {Array.} tables + * @memberof binlogdata.MinimalSchema + * @instance + */ + MinimalSchema.prototype.tables = $util.emptyArray; + + /** + * Creates a new MinimalSchema instance using the specified properties. * @function create - * @memberof mysqlctl.StartResponse + * @memberof binlogdata.MinimalSchema * @static - * @param {mysqlctl.IStartResponse=} [properties] Properties to set - * @returns {mysqlctl.StartResponse} StartResponse instance + * @param {binlogdata.IMinimalSchema=} [properties] Properties to set + * @returns {binlogdata.MinimalSchema} MinimalSchema instance */ - StartResponse.create = function create(properties) { - return new StartResponse(properties); + MinimalSchema.create = function create(properties) { + return new MinimalSchema(properties); }; /** - * Encodes the specified StartResponse message. Does not implicitly {@link mysqlctl.StartResponse.verify|verify} messages. + * Encodes the specified MinimalSchema message. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. * @function encode - * @memberof mysqlctl.StartResponse + * @memberof binlogdata.MinimalSchema * @static - * @param {mysqlctl.IStartResponse} message StartResponse 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 */ - StartResponse.encode = function encode(message, writer) { + MinimalSchema.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.tables != null && message.tables.length) + for (var 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 StartResponse message, length delimited. Does not implicitly {@link mysqlctl.StartResponse.verify|verify} messages. + * Encodes the specified MinimalSchema message, length delimited. Does not implicitly {@link binlogdata.MinimalSchema.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.StartResponse + * @memberof binlogdata.MinimalSchema * @static - * @param {mysqlctl.IStartResponse} message StartResponse 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 */ - StartResponse.encodeDelimited = function encodeDelimited(message, writer) { + MinimalSchema.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartResponse message from the specified reader or buffer. + * Decodes a MinimalSchema message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.StartResponse + * @memberof binlogdata.MinimalSchema * @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 {binlogdata.MinimalSchema} MinimalSchema * @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) { + MinimalSchema.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.StartResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.MinimalSchema(); while (reader.pos < end) { var 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())); + break; default: reader.skipType(tag & 7); break; @@ -71555,94 +72404,130 @@ $root.mysqlctl = (function() { }; /** - * Decodes a StartResponse message from the specified reader or buffer, length delimited. + * Decodes a MinimalSchema message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.StartResponse + * @memberof binlogdata.MinimalSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.StartResponse} StartResponse + * @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 */ - StartResponse.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 StartResponse message. + * Verifies a MinimalSchema message. * @function verify - * @memberof mysqlctl.StartResponse + * @memberof binlogdata.MinimalSchema * @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) { + MinimalSchema.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 (var i = 0; i < message.tables.length; ++i) { + var error = $root.binlogdata.MinimalTable.verify(message.tables[i]); + if (error) + return "tables." + error; + } + } return null; }; /** - * Creates a StartResponse 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 mysqlctl.StartResponse + * @memberof binlogdata.MinimalSchema * @static * @param {Object.} object Plain object - * @returns {mysqlctl.StartResponse} StartResponse + * @returns {binlogdata.MinimalSchema} MinimalSchema */ - StartResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.StartResponse) + MinimalSchema.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.MinimalSchema) return object; - return new $root.mysqlctl.StartResponse(); + var message = new $root.binlogdata.MinimalSchema(); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".binlogdata.MinimalSchema.tables: array expected"); + message.tables = []; + for (var 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]); + } + } + return message; }; /** - * Creates a plain object from a StartResponse 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 mysqlctl.StartResponse + * @memberof binlogdata.MinimalSchema * @static - * @param {mysqlctl.StartResponse} message StartResponse + * @param {binlogdata.MinimalSchema} message MinimalSchema * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartResponse.toObject = function toObject() { - return {}; + MinimalSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.tables = []; + if (message.tables && message.tables.length) { + object.tables = []; + for (var j = 0; j < message.tables.length; ++j) + object.tables[j] = $root.binlogdata.MinimalTable.toObject(message.tables[j], options); + } + return object; }; /** - * Converts this StartResponse to JSON. + * Converts this MinimalSchema to JSON. * @function toJSON - * @memberof mysqlctl.StartResponse + * @memberof binlogdata.MinimalSchema * @instance * @returns {Object.} JSON object */ - StartResponse.prototype.toJSON = function toJSON() { + MinimalSchema.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StartResponse; + return MinimalSchema; })(); - mysqlctl.ShutdownRequest = (function() { + binlogdata.VStreamRequest = (function() { /** - * Properties of a ShutdownRequest. - * @memberof mysqlctl - * @interface IShutdownRequest - * @property {boolean|null} [wait_for_mysqld] ShutdownRequest wait_for_mysqld + * Properties of a VStreamRequest. + * @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 */ /** - * Constructs a new ShutdownRequest. - * @memberof mysqlctl - * @classdesc Represents a ShutdownRequest. - * @implements IShutdownRequest + * Constructs a new VStreamRequest. + * @memberof binlogdata + * @classdesc Represents a VStreamRequest. + * @implements IVStreamRequest * @constructor - * @param {mysqlctl.IShutdownRequest=} [properties] Properties to set + * @param {binlogdata.IVStreamRequest=} [properties] Properties to set */ - function ShutdownRequest(properties) { + function VStreamRequest(properties) { + this.table_last_p_ks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71650,75 +72535,143 @@ $root.mysqlctl = (function() { } /** - * ShutdownRequest wait_for_mysqld. - * @member {boolean} wait_for_mysqld - * @memberof mysqlctl.ShutdownRequest + * VStreamRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof binlogdata.VStreamRequest * @instance */ - ShutdownRequest.prototype.wait_for_mysqld = false; + VStreamRequest.prototype.effective_caller_id = null; /** - * Creates a new ShutdownRequest instance using the specified properties. + * 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; + + /** + * Creates a new VStreamRequest instance using the specified properties. * @function create - * @memberof mysqlctl.ShutdownRequest + * @memberof binlogdata.VStreamRequest * @static - * @param {mysqlctl.IShutdownRequest=} [properties] Properties to set - * @returns {mysqlctl.ShutdownRequest} ShutdownRequest instance + * @param {binlogdata.IVStreamRequest=} [properties] Properties to set + * @returns {binlogdata.VStreamRequest} VStreamRequest instance */ - ShutdownRequest.create = function create(properties) { - return new ShutdownRequest(properties); + VStreamRequest.create = function create(properties) { + return new VStreamRequest(properties); }; /** - * Encodes the specified ShutdownRequest message. Does not implicitly {@link mysqlctl.ShutdownRequest.verify|verify} messages. + * Encodes the specified VStreamRequest message. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.ShutdownRequest + * @memberof binlogdata.VStreamRequest * @static - * @param {mysqlctl.IShutdownRequest} message ShutdownRequest 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 */ - ShutdownRequest.encode = function encode(message, writer) { + VStreamRequest.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.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 (var 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(); return writer; }; /** - * Encodes the specified ShutdownRequest message, length delimited. Does not implicitly {@link mysqlctl.ShutdownRequest.verify|verify} messages. + * Encodes the specified VStreamRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.ShutdownRequest + * @memberof binlogdata.VStreamRequest * @static - * @param {mysqlctl.IShutdownRequest} message ShutdownRequest 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 */ - ShutdownRequest.encodeDelimited = function encodeDelimited(message, writer) { + VStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShutdownRequest message from the specified reader or buffer. + * Decodes a VStreamRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.ShutdownRequest + * @memberof binlogdata.VStreamRequest * @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 {binlogdata.VStreamRequest} VStreamRequest * @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) { + VStreamRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ShutdownRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.wait_for_mysqld = reader.bool(); + 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; default: reader.skipType(tag & 7); @@ -71729,106 +72682,187 @@ $root.mysqlctl = (function() { }; /** - * Decodes a ShutdownRequest message from the specified reader or buffer, length delimited. + * Decodes a VStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.ShutdownRequest + * @memberof binlogdata.VStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.ShutdownRequest} ShutdownRequest + * @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 */ - ShutdownRequest.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 ShutdownRequest message. + * Verifies a VStreamRequest message. * @function verify - * @memberof mysqlctl.ShutdownRequest + * @memberof binlogdata.VStreamRequest * @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) { + VStreamRequest.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.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) { + var 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 (var i = 0; i < message.table_last_p_ks.length; ++i) { + var error = $root.binlogdata.TableLastPK.verify(message.table_last_p_ks[i]); + if (error) + return "table_last_p_ks." + error; + } + } return null; }; /** - * Creates a ShutdownRequest 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 mysqlctl.ShutdownRequest + * @memberof binlogdata.VStreamRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.ShutdownRequest} ShutdownRequest + * @returns {binlogdata.VStreamRequest} VStreamRequest */ - ShutdownRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.ShutdownRequest) + VStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamRequest) return object; - var message = new $root.mysqlctl.ShutdownRequest(); - if (object.wait_for_mysqld != null) - message.wait_for_mysqld = Boolean(object.wait_for_mysqld); + var 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 (var 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]); + } + } return message; }; /** - * Creates a plain object from a ShutdownRequest 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 mysqlctl.ShutdownRequest + * @memberof binlogdata.VStreamRequest * @static - * @param {mysqlctl.ShutdownRequest} message ShutdownRequest + * @param {binlogdata.VStreamRequest} message VStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShutdownRequest.toObject = function toObject(message, options) { + VStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.wait_for_mysqld = false; - if (message.wait_for_mysqld != null && message.hasOwnProperty("wait_for_mysqld")) - object.wait_for_mysqld = message.wait_for_mysqld; + 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; + } + 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 (var 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); + } return object; }; /** - * Converts this ShutdownRequest to JSON. + * Converts this VStreamRequest to JSON. * @function toJSON - * @memberof mysqlctl.ShutdownRequest + * @memberof binlogdata.VStreamRequest * @instance * @returns {Object.} JSON object */ - ShutdownRequest.prototype.toJSON = function toJSON() { + VStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ShutdownRequest; + return VStreamRequest; })(); - mysqlctl.ShutdownResponse = (function() { + binlogdata.VStreamResponse = (function() { /** - * Properties of a ShutdownResponse. - * @memberof mysqlctl - * @interface IShutdownResponse + * Properties of a VStreamResponse. + * @memberof binlogdata + * @interface IVStreamResponse + * @property {Array.|null} [events] VStreamResponse events */ /** - * Constructs a new ShutdownResponse. - * @memberof mysqlctl - * @classdesc Represents a ShutdownResponse. - * @implements IShutdownResponse + * Constructs a new VStreamResponse. + * @memberof binlogdata + * @classdesc Represents a VStreamResponse. + * @implements IVStreamResponse * @constructor - * @param {mysqlctl.IShutdownResponse=} [properties] Properties to set + * @param {binlogdata.IVStreamResponse=} [properties] Properties to set */ - function ShutdownResponse(properties) { + function VStreamResponse(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71836,63 +72870,79 @@ $root.mysqlctl = (function() { } /** - * Creates a new ShutdownResponse instance using the specified properties. + * 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 mysqlctl.ShutdownResponse + * @memberof binlogdata.VStreamResponse * @static - * @param {mysqlctl.IShutdownResponse=} [properties] Properties to set - * @returns {mysqlctl.ShutdownResponse} ShutdownResponse instance + * @param {binlogdata.IVStreamResponse=} [properties] Properties to set + * @returns {binlogdata.VStreamResponse} VStreamResponse instance */ - ShutdownResponse.create = function create(properties) { - return new ShutdownResponse(properties); + VStreamResponse.create = function create(properties) { + return new VStreamResponse(properties); }; /** - * Encodes the specified ShutdownResponse message. Does not implicitly {@link mysqlctl.ShutdownResponse.verify|verify} messages. + * Encodes the specified VStreamResponse message. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. * @function encode - * @memberof mysqlctl.ShutdownResponse + * @memberof binlogdata.VStreamResponse * @static - * @param {mysqlctl.IShutdownResponse} message ShutdownResponse message or plain object to encode + * @param {binlogdata.IVStreamResponse} message VStreamResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShutdownResponse.encode = function encode(message, writer) { + VStreamResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.events != null && message.events.length) + for (var 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 ShutdownResponse message, length delimited. Does not implicitly {@link mysqlctl.ShutdownResponse.verify|verify} messages. + * Encodes the specified VStreamResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResponse.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.ShutdownResponse + * @memberof binlogdata.VStreamResponse * @static - * @param {mysqlctl.IShutdownResponse} message ShutdownResponse message or plain object to encode + * @param {binlogdata.IVStreamResponse} message VStreamResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShutdownResponse.encodeDelimited = function encodeDelimited(message, writer) { + VStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShutdownResponse message from the specified reader or buffer. + * Decodes a VStreamResponse message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.ShutdownResponse + * @memberof binlogdata.VStreamResponse * @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 {binlogdata.VStreamResponse} VStreamResponse * @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) { + VStreamResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ShutdownResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResponse(); while (reader.pos < end) { var 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; @@ -71902,93 +72952,128 @@ $root.mysqlctl = (function() { }; /** - * Decodes a ShutdownResponse message from the specified reader or buffer, length delimited. + * Decodes a VStreamResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.ShutdownResponse + * @memberof binlogdata.VStreamResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.ShutdownResponse} ShutdownResponse + * @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 */ - ShutdownResponse.decodeDelimited = function decodeDelimited(reader) { + VStreamResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShutdownResponse message. + * Verifies a VStreamResponse message. * @function verify - * @memberof mysqlctl.ShutdownResponse + * @memberof binlogdata.VStreamResponse * @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) { + 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 (var i = 0; i < message.events.length; ++i) { + var error = $root.binlogdata.VEvent.verify(message.events[i]); + if (error) + return "events." + error; + } + } return null; }; /** - * Creates a ShutdownResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VStreamResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof mysqlctl.ShutdownResponse + * @memberof binlogdata.VStreamResponse * @static * @param {Object.} object Plain object - * @returns {mysqlctl.ShutdownResponse} ShutdownResponse + * @returns {binlogdata.VStreamResponse} VStreamResponse */ - ShutdownResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.ShutdownResponse) + VStreamResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamResponse) return object; - return new $root.mysqlctl.ShutdownResponse(); + var message = new $root.binlogdata.VStreamResponse(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".binlogdata.VStreamResponse.events: array expected"); + message.events = []; + for (var 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 ShutdownResponse message. Also converts values to other types if specified. + * Creates a plain object from a VStreamResponse message. Also converts values to other types if specified. * @function toObject - * @memberof mysqlctl.ShutdownResponse + * @memberof binlogdata.VStreamResponse * @static - * @param {mysqlctl.ShutdownResponse} message ShutdownResponse + * @param {binlogdata.VStreamResponse} message VStreamResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShutdownResponse.toObject = function toObject() { - return {}; + VStreamResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.events = []; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.binlogdata.VEvent.toObject(message.events[j], options); + } + return object; }; /** - * Converts this ShutdownResponse to JSON. + * Converts this VStreamResponse to JSON. * @function toJSON - * @memberof mysqlctl.ShutdownResponse + * @memberof binlogdata.VStreamResponse * @instance * @returns {Object.} JSON object */ - ShutdownResponse.prototype.toJSON = function toJSON() { + VStreamResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ShutdownResponse; + return VStreamResponse; })(); - mysqlctl.RunMysqlUpgradeRequest = (function() { + binlogdata.VStreamRowsRequest = (function() { /** - * Properties of a RunMysqlUpgradeRequest. - * @memberof mysqlctl - * @interface IRunMysqlUpgradeRequest + * 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 */ /** - * Constructs a new RunMysqlUpgradeRequest. - * @memberof mysqlctl - * @classdesc Represents a RunMysqlUpgradeRequest. - * @implements IRunMysqlUpgradeRequest + * Constructs a new VStreamRowsRequest. + * @memberof binlogdata + * @classdesc Represents a VStreamRowsRequest. + * @implements IVStreamRowsRequest * @constructor - * @param {mysqlctl.IRunMysqlUpgradeRequest=} [properties] Properties to set + * @param {binlogdata.IVStreamRowsRequest=} [properties] Properties to set */ - function RunMysqlUpgradeRequest(properties) { + function VStreamRowsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71996,63 +73081,128 @@ $root.mysqlctl = (function() { } /** - * Creates a new RunMysqlUpgradeRequest instance using the specified properties. + * VStreamRowsRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof binlogdata.VStreamRowsRequest + * @instance + */ + VStreamRowsRequest.prototype.effective_caller_id = null; + + /** + * VStreamRowsRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof binlogdata.VStreamRowsRequest + * @instance + */ + VStreamRowsRequest.prototype.immediate_caller_id = null; + + /** + * VStreamRowsRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof binlogdata.VStreamRowsRequest + * @instance + */ + VStreamRowsRequest.prototype.target = null; + + /** + * VStreamRowsRequest query. + * @member {string} query + * @memberof binlogdata.VStreamRowsRequest + * @instance + */ + VStreamRowsRequest.prototype.query = ""; + + /** + * VStreamRowsRequest lastpk. + * @member {query.IQueryResult|null|undefined} lastpk + * @memberof binlogdata.VStreamRowsRequest + * @instance + */ + VStreamRowsRequest.prototype.lastpk = null; + + /** + * Creates a new VStreamRowsRequest instance using the specified properties. * @function create - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof binlogdata.VStreamRowsRequest * @static - * @param {mysqlctl.IRunMysqlUpgradeRequest=} [properties] Properties to set - * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest instance + * @param {binlogdata.IVStreamRowsRequest=} [properties] Properties to set + * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest instance */ - RunMysqlUpgradeRequest.create = function create(properties) { - return new RunMysqlUpgradeRequest(properties); + VStreamRowsRequest.create = function create(properties) { + return new VStreamRowsRequest(properties); }; /** - * Encodes the specified RunMysqlUpgradeRequest message. Does not implicitly {@link mysqlctl.RunMysqlUpgradeRequest.verify|verify} messages. + * Encodes the specified VStreamRowsRequest message. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof binlogdata.VStreamRowsRequest * @static - * @param {mysqlctl.IRunMysqlUpgradeRequest} message RunMysqlUpgradeRequest 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 */ - RunMysqlUpgradeRequest.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")) + $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(); return writer; }; /** - * Encodes the specified RunMysqlUpgradeRequest message, length delimited. Does not implicitly {@link mysqlctl.RunMysqlUpgradeRequest.verify|verify} messages. + * Encodes the specified VStreamRowsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof binlogdata.VStreamRowsRequest * @static - * @param {mysqlctl.IRunMysqlUpgradeRequest} message RunMysqlUpgradeRequest 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 */ - RunMysqlUpgradeRequest.encodeDelimited = function encodeDelimited(message, writer) { + VStreamRowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer. + * Decodes a VStreamRowsRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof binlogdata.VStreamRowsRequest * @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 {binlogdata.VStreamRowsRequest} VStreamRowsRequest * @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) { + VStreamRowsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RunMysqlUpgradeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRowsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.query = reader.string(); + break; + case 5: + message.lastpk = $root.query.QueryResult.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -72062,93 +73212,167 @@ $root.mysqlctl = (function() { }; /** - * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer, length delimited. + * Decodes a VStreamRowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof binlogdata.VStreamRowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest + * @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 */ - RunMysqlUpgradeRequest.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 RunMysqlUpgradeRequest message. + * Verifies a VStreamRowsRequest message. * @function verify - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof binlogdata.VStreamRowsRequest * @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) { + 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")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; + if (message.lastpk != null && message.hasOwnProperty("lastpk")) { + var error = $root.query.QueryResult.verify(message.lastpk); + if (error) + return "lastpk." + error; + } return null; }; /** - * Creates a RunMysqlUpgradeRequest 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 mysqlctl.RunMysqlUpgradeRequest + * @memberof binlogdata.VStreamRowsRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest + * @returns {binlogdata.VStreamRowsRequest} VStreamRowsRequest */ - RunMysqlUpgradeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.RunMysqlUpgradeRequest) + VStreamRowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamRowsRequest) return object; - return new $root.mysqlctl.RunMysqlUpgradeRequest(); + var 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); + } + 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.target != null) { + if (typeof object.target !== "object") + 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); + } + return message; }; /** - * Creates a plain object from a RunMysqlUpgradeRequest 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 mysqlctl.RunMysqlUpgradeRequest + * @memberof binlogdata.VStreamRowsRequest * @static - * @param {mysqlctl.RunMysqlUpgradeRequest} message RunMysqlUpgradeRequest + * @param {binlogdata.VStreamRowsRequest} message VStreamRowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunMysqlUpgradeRequest.toObject = function toObject() { - return {}; + VStreamRowsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = ""; + object.lastpk = 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 = message.query; + if (message.lastpk != null && message.hasOwnProperty("lastpk")) + object.lastpk = $root.query.QueryResult.toObject(message.lastpk, options); + return object; }; /** - * Converts this RunMysqlUpgradeRequest to JSON. + * Converts this VStreamRowsRequest to JSON. * @function toJSON - * @memberof mysqlctl.RunMysqlUpgradeRequest + * @memberof binlogdata.VStreamRowsRequest * @instance * @returns {Object.} JSON object */ - RunMysqlUpgradeRequest.prototype.toJSON = function toJSON() { + VStreamRowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunMysqlUpgradeRequest; + return VStreamRowsRequest; })(); - mysqlctl.RunMysqlUpgradeResponse = (function() { + binlogdata.VStreamRowsResponse = (function() { /** - * Properties of a RunMysqlUpgradeResponse. - * @memberof mysqlctl - * @interface IRunMysqlUpgradeResponse + * Properties of a VStreamRowsResponse. + * @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 */ /** - * Constructs a new RunMysqlUpgradeResponse. - * @memberof mysqlctl - * @classdesc Represents a RunMysqlUpgradeResponse. - * @implements IRunMysqlUpgradeResponse + * Constructs a new VStreamRowsResponse. + * @memberof binlogdata + * @classdesc Represents a VStreamRowsResponse. + * @implements IVStreamRowsResponse * @constructor - * @param {mysqlctl.IRunMysqlUpgradeResponse=} [properties] Properties to set + * @param {binlogdata.IVStreamRowsResponse=} [properties] Properties to set */ - function RunMysqlUpgradeResponse(properties) { + function VStreamRowsResponse(properties) { + this.fields = []; + this.pkfields = []; + this.rows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72156,63 +73380,137 @@ $root.mysqlctl = (function() { } /** - * Creates a new RunMysqlUpgradeResponse instance using the specified properties. + * VStreamRowsResponse fields. + * @member {Array.} fields + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.fields = $util.emptyArray; + + /** + * VStreamRowsResponse pkfields. + * @member {Array.} pkfields + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.pkfields = $util.emptyArray; + + /** + * VStreamRowsResponse gtid. + * @member {string} gtid + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.gtid = ""; + + /** + * VStreamRowsResponse rows. + * @member {Array.} rows + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.rows = $util.emptyArray; + + /** + * VStreamRowsResponse lastpk. + * @member {query.IRow|null|undefined} lastpk + * @memberof binlogdata.VStreamRowsResponse + * @instance + */ + VStreamRowsResponse.prototype.lastpk = null; + + /** + * Creates a new VStreamRowsResponse instance using the specified properties. * @function create - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof binlogdata.VStreamRowsResponse * @static - * @param {mysqlctl.IRunMysqlUpgradeResponse=} [properties] Properties to set - * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse instance + * @param {binlogdata.IVStreamRowsResponse=} [properties] Properties to set + * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse instance */ - RunMysqlUpgradeResponse.create = function create(properties) { - return new RunMysqlUpgradeResponse(properties); + VStreamRowsResponse.create = function create(properties) { + return new VStreamRowsResponse(properties); }; /** - * Encodes the specified RunMysqlUpgradeResponse message. Does not implicitly {@link mysqlctl.RunMysqlUpgradeResponse.verify|verify} messages. + * Encodes the specified VStreamRowsResponse message. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. * @function encode - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof binlogdata.VStreamRowsResponse * @static - * @param {mysqlctl.IRunMysqlUpgradeResponse} message RunMysqlUpgradeResponse 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 */ - RunMysqlUpgradeResponse.encode = function encode(message, writer) { + VStreamRowsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.fields != null && message.fields.length) + for (var i = 0; i < message.fields.length; ++i) + $root.query.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pkfields != null && message.pkfields.length) + for (var 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 (var i = 0; i < message.rows.length; ++i) + $root.query.Row.encode(message.rows[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.lastpk != null && Object.hasOwnProperty.call(message, "lastpk")) + $root.query.Row.encode(message.lastpk, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunMysqlUpgradeResponse message, length delimited. Does not implicitly {@link mysqlctl.RunMysqlUpgradeResponse.verify|verify} messages. + * Encodes the specified VStreamRowsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamRowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof binlogdata.VStreamRowsResponse * @static - * @param {mysqlctl.IRunMysqlUpgradeResponse} message RunMysqlUpgradeResponse 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 */ - RunMysqlUpgradeResponse.encodeDelimited = function encodeDelimited(message, writer) { + VStreamRowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer. + * Decodes a VStreamRowsResponse message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof binlogdata.VStreamRowsResponse * @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 {binlogdata.VStreamRowsResponse} VStreamRowsResponse * @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) { + VStreamRowsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RunMysqlUpgradeResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamRowsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.query.Field.decode(reader, reader.uint32())); + 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; + case 4: + if (!(message.rows && message.rows.length)) + message.rows = []; + message.rows.push($root.query.Row.decode(reader, reader.uint32())); + break; + case 5: + message.lastpk = $root.query.Row.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -72222,93 +73520,199 @@ $root.mysqlctl = (function() { }; /** - * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer, length delimited. + * Decodes a VStreamRowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof binlogdata.VStreamRowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse + * @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 */ - RunMysqlUpgradeResponse.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 RunMysqlUpgradeResponse message. + * Verifies a VStreamRowsResponse message. * @function verify - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof binlogdata.VStreamRowsResponse * @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) { + VStreamRowsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (var i = 0; i < message.fields.length; ++i) { + var error = $root.query.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } + } + if (message.pkfields != null && message.hasOwnProperty("pkfields")) { + if (!Array.isArray(message.pkfields)) + return "pkfields: array expected"; + for (var i = 0; i < message.pkfields.length; ++i) { + var 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 (var i = 0; i < message.rows.length; ++i) { + var error = $root.query.Row.verify(message.rows[i]); + if (error) + return "rows." + error; + } + } + if (message.lastpk != null && message.hasOwnProperty("lastpk")) { + var error = $root.query.Row.verify(message.lastpk); + if (error) + return "lastpk." + error; + } return null; }; /** - * Creates a RunMysqlUpgradeResponse 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 mysqlctl.RunMysqlUpgradeResponse + * @memberof binlogdata.VStreamRowsResponse * @static * @param {Object.} object Plain object - * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse + * @returns {binlogdata.VStreamRowsResponse} VStreamRowsResponse */ - RunMysqlUpgradeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.RunMysqlUpgradeResponse) + VStreamRowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamRowsResponse) return object; - return new $root.mysqlctl.RunMysqlUpgradeResponse(); + var message = new $root.binlogdata.VStreamRowsResponse(); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".binlogdata.VStreamRowsResponse.fields: array expected"); + message.fields = []; + for (var 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 (var 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.VStreamRowsResponse.rows: array expected"); + message.rows = []; + for (var 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.lastpk != null) { + if (typeof object.lastpk !== "object") + throw TypeError(".binlogdata.VStreamRowsResponse.lastpk: object expected"); + message.lastpk = $root.query.Row.fromObject(object.lastpk); + } + return message; }; /** - * Creates a plain object from a RunMysqlUpgradeResponse 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 mysqlctl.RunMysqlUpgradeResponse + * @memberof binlogdata.VStreamRowsResponse * @static - * @param {mysqlctl.RunMysqlUpgradeResponse} message RunMysqlUpgradeResponse + * @param {binlogdata.VStreamRowsResponse} message VStreamRowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunMysqlUpgradeResponse.toObject = function toObject() { - return {}; + VStreamRowsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.fields = []; + object.pkfields = []; + object.rows = []; + } + if (options.defaults) { + object.gtid = ""; + object.lastpk = null; + } + if (message.fields && message.fields.length) { + object.fields = []; + for (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + } + if (message.pkfields && message.pkfields.length) { + object.pkfields = []; + for (var 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 (var 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 RunMysqlUpgradeResponse to JSON. + * Converts this VStreamRowsResponse to JSON. * @function toJSON - * @memberof mysqlctl.RunMysqlUpgradeResponse + * @memberof binlogdata.VStreamRowsResponse * @instance * @returns {Object.} JSON object */ - RunMysqlUpgradeResponse.prototype.toJSON = function toJSON() { + VStreamRowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunMysqlUpgradeResponse; + return VStreamRowsResponse; })(); - mysqlctl.ReinitConfigRequest = (function() { + binlogdata.LastPKEvent = (function() { /** - * Properties of a ReinitConfigRequest. - * @memberof mysqlctl - * @interface IReinitConfigRequest + * 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 ReinitConfigRequest. - * @memberof mysqlctl - * @classdesc Represents a ReinitConfigRequest. - * @implements IReinitConfigRequest + * Constructs a new LastPKEvent. + * @memberof binlogdata + * @classdesc Represents a LastPKEvent. + * @implements ILastPKEvent * @constructor - * @param {mysqlctl.IReinitConfigRequest=} [properties] Properties to set + * @param {binlogdata.ILastPKEvent=} [properties] Properties to set */ - function ReinitConfigRequest(properties) { + function LastPKEvent(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72316,63 +73720,89 @@ $root.mysqlctl = (function() { } /** - * Creates a new ReinitConfigRequest instance using the specified properties. + * LastPKEvent table_last_p_k. + * @member {binlogdata.ITableLastPK|null|undefined} table_last_p_k + * @memberof binlogdata.LastPKEvent + * @instance + */ + LastPKEvent.prototype.table_last_p_k = null; + + /** + * LastPKEvent completed. + * @member {boolean} completed + * @memberof binlogdata.LastPKEvent + * @instance + */ + LastPKEvent.prototype.completed = false; + + /** + * Creates a new LastPKEvent instance using the specified properties. * @function create - * @memberof mysqlctl.ReinitConfigRequest + * @memberof binlogdata.LastPKEvent * @static - * @param {mysqlctl.IReinitConfigRequest=} [properties] Properties to set - * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest instance + * @param {binlogdata.ILastPKEvent=} [properties] Properties to set + * @returns {binlogdata.LastPKEvent} LastPKEvent instance */ - ReinitConfigRequest.create = function create(properties) { - return new ReinitConfigRequest(properties); + LastPKEvent.create = function create(properties) { + return new LastPKEvent(properties); }; /** - * Encodes the specified ReinitConfigRequest message. Does not implicitly {@link mysqlctl.ReinitConfigRequest.verify|verify} messages. + * Encodes the specified LastPKEvent message. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. * @function encode - * @memberof mysqlctl.ReinitConfigRequest + * @memberof binlogdata.LastPKEvent * @static - * @param {mysqlctl.IReinitConfigRequest} message ReinitConfigRequest 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 */ - ReinitConfigRequest.encode = function encode(message, writer) { + LastPKEvent.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); return writer; }; /** - * Encodes the specified ReinitConfigRequest message, length delimited. Does not implicitly {@link mysqlctl.ReinitConfigRequest.verify|verify} messages. + * Encodes the specified LastPKEvent message, length delimited. Does not implicitly {@link binlogdata.LastPKEvent.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.ReinitConfigRequest + * @memberof binlogdata.LastPKEvent * @static - * @param {mysqlctl.IReinitConfigRequest} message ReinitConfigRequest 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 */ - ReinitConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + LastPKEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReinitConfigRequest message from the specified reader or buffer. + * Decodes a LastPKEvent message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.ReinitConfigRequest + * @memberof binlogdata.LastPKEvent * @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 {binlogdata.LastPKEvent} LastPKEvent * @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) { + LastPKEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ReinitConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.LastPKEvent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.table_last_p_k = $root.binlogdata.TableLastPK.decode(reader, reader.uint32()); + break; + case 2: + message.completed = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -72382,93 +73812,122 @@ $root.mysqlctl = (function() { }; /** - * Decodes a ReinitConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a LastPKEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.ReinitConfigRequest + * @memberof binlogdata.LastPKEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest + * @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 */ - ReinitConfigRequest.decodeDelimited = function decodeDelimited(reader) { + LastPKEvent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReinitConfigRequest message. + * Verifies a LastPKEvent message. * @function verify - * @memberof mysqlctl.ReinitConfigRequest + * @memberof binlogdata.LastPKEvent * @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) { + LastPKEvent.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")) { + var 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 a ReinitConfigRequest 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 mysqlctl.ReinitConfigRequest + * @memberof binlogdata.LastPKEvent * @static * @param {Object.} object Plain object - * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest + * @returns {binlogdata.LastPKEvent} LastPKEvent */ - ReinitConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.ReinitConfigRequest) + LastPKEvent.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.LastPKEvent) return object; - return new $root.mysqlctl.ReinitConfigRequest(); + var 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 a ReinitConfigRequest 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 mysqlctl.ReinitConfigRequest + * @memberof binlogdata.LastPKEvent * @static - * @param {mysqlctl.ReinitConfigRequest} message ReinitConfigRequest + * @param {binlogdata.LastPKEvent} message LastPKEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReinitConfigRequest.toObject = function toObject() { - return {}; + LastPKEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.table_last_p_k = null; + object.completed = false; + } + 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 ReinitConfigRequest to JSON. + * Converts this LastPKEvent to JSON. * @function toJSON - * @memberof mysqlctl.ReinitConfigRequest + * @memberof binlogdata.LastPKEvent * @instance * @returns {Object.} JSON object */ - ReinitConfigRequest.prototype.toJSON = function toJSON() { + LastPKEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReinitConfigRequest; + return LastPKEvent; })(); - mysqlctl.ReinitConfigResponse = (function() { + binlogdata.TableLastPK = (function() { /** - * Properties of a ReinitConfigResponse. - * @memberof mysqlctl - * @interface IReinitConfigResponse + * 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 ReinitConfigResponse. - * @memberof mysqlctl - * @classdesc Represents a ReinitConfigResponse. - * @implements IReinitConfigResponse + * Constructs a new TableLastPK. + * @memberof binlogdata + * @classdesc Represents a TableLastPK. + * @implements ITableLastPK * @constructor - * @param {mysqlctl.IReinitConfigResponse=} [properties] Properties to set + * @param {binlogdata.ITableLastPK=} [properties] Properties to set */ - function ReinitConfigResponse(properties) { + function TableLastPK(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72476,63 +73935,89 @@ $root.mysqlctl = (function() { } /** - * Creates a new ReinitConfigResponse instance using the specified properties. + * TableLastPK table_name. + * @member {string} table_name + * @memberof binlogdata.TableLastPK + * @instance + */ + TableLastPK.prototype.table_name = ""; + + /** + * TableLastPK lastpk. + * @member {query.IQueryResult|null|undefined} lastpk + * @memberof binlogdata.TableLastPK + * @instance + */ + TableLastPK.prototype.lastpk = null; + + /** + * Creates a new TableLastPK instance using the specified properties. * @function create - * @memberof mysqlctl.ReinitConfigResponse + * @memberof binlogdata.TableLastPK * @static - * @param {mysqlctl.IReinitConfigResponse=} [properties] Properties to set - * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse instance + * @param {binlogdata.ITableLastPK=} [properties] Properties to set + * @returns {binlogdata.TableLastPK} TableLastPK instance */ - ReinitConfigResponse.create = function create(properties) { - return new ReinitConfigResponse(properties); + TableLastPK.create = function create(properties) { + return new TableLastPK(properties); }; /** - * Encodes the specified ReinitConfigResponse message. Does not implicitly {@link mysqlctl.ReinitConfigResponse.verify|verify} messages. + * Encodes the specified TableLastPK message. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. * @function encode - * @memberof mysqlctl.ReinitConfigResponse + * @memberof binlogdata.TableLastPK * @static - * @param {mysqlctl.IReinitConfigResponse} message ReinitConfigResponse 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 */ - ReinitConfigResponse.encode = function encode(message, writer) { + TableLastPK.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(); return writer; }; /** - * Encodes the specified ReinitConfigResponse message, length delimited. Does not implicitly {@link mysqlctl.ReinitConfigResponse.verify|verify} messages. + * Encodes the specified TableLastPK message, length delimited. Does not implicitly {@link binlogdata.TableLastPK.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.ReinitConfigResponse + * @memberof binlogdata.TableLastPK * @static - * @param {mysqlctl.IReinitConfigResponse} message ReinitConfigResponse 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 */ - ReinitConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { + TableLastPK.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReinitConfigResponse message from the specified reader or buffer. + * Decodes a TableLastPK message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.ReinitConfigResponse + * @memberof binlogdata.TableLastPK * @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 {binlogdata.TableLastPK} TableLastPK * @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) { + TableLastPK.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ReinitConfigResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.TableLastPK(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.table_name = reader.string(); + break; + case 3: + message.lastpk = $root.query.QueryResult.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -72542,93 +74027,124 @@ $root.mysqlctl = (function() { }; /** - * Decodes a ReinitConfigResponse message from the specified reader or buffer, length delimited. + * Decodes a TableLastPK message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.ReinitConfigResponse + * @memberof binlogdata.TableLastPK * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse + * @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 */ - ReinitConfigResponse.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 ReinitConfigResponse message. + * Verifies a TableLastPK message. * @function verify - * @memberof mysqlctl.ReinitConfigResponse + * @memberof binlogdata.TableLastPK * @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) { + TableLastPK.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")) { + var error = $root.query.QueryResult.verify(message.lastpk); + if (error) + return "lastpk." + error; + } return null; }; /** - * Creates a ReinitConfigResponse 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 mysqlctl.ReinitConfigResponse + * @memberof binlogdata.TableLastPK * @static * @param {Object.} object Plain object - * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse + * @returns {binlogdata.TableLastPK} TableLastPK */ - ReinitConfigResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.ReinitConfigResponse) + TableLastPK.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.TableLastPK) return object; - return new $root.mysqlctl.ReinitConfigResponse(); + var 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); + } + return message; }; /** - * Creates a plain object from a ReinitConfigResponse 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 mysqlctl.ReinitConfigResponse + * @memberof binlogdata.TableLastPK * @static - * @param {mysqlctl.ReinitConfigResponse} message ReinitConfigResponse + * @param {binlogdata.TableLastPK} message TableLastPK * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReinitConfigResponse.toObject = function toObject() { - return {}; + TableLastPK.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.table_name = ""; + object.lastpk = 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); + return object; }; /** - * Converts this ReinitConfigResponse to JSON. + * Converts this TableLastPK to JSON. * @function toJSON - * @memberof mysqlctl.ReinitConfigResponse + * @memberof binlogdata.TableLastPK * @instance * @returns {Object.} JSON object */ - ReinitConfigResponse.prototype.toJSON = function toJSON() { + TableLastPK.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReinitConfigResponse; + return TableLastPK; })(); - mysqlctl.RefreshConfigRequest = (function() { + binlogdata.VStreamResultsRequest = (function() { /** - * Properties of a RefreshConfigRequest. - * @memberof mysqlctl - * @interface IRefreshConfigRequest + * 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 RefreshConfigRequest. - * @memberof mysqlctl - * @classdesc Represents a RefreshConfigRequest. - * @implements IRefreshConfigRequest + * Constructs a new VStreamResultsRequest. + * @memberof binlogdata + * @classdesc Represents a VStreamResultsRequest. + * @implements IVStreamResultsRequest * @constructor - * @param {mysqlctl.IRefreshConfigRequest=} [properties] Properties to set + * @param {binlogdata.IVStreamResultsRequest=} [properties] Properties to set */ - function RefreshConfigRequest(properties) { + function VStreamResultsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72636,63 +74152,115 @@ $root.mysqlctl = (function() { } /** - * Creates a new RefreshConfigRequest instance using the specified properties. + * VStreamResultsRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof binlogdata.VStreamResultsRequest + * @instance + */ + VStreamResultsRequest.prototype.effective_caller_id = null; + + /** + * VStreamResultsRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof binlogdata.VStreamResultsRequest + * @instance + */ + VStreamResultsRequest.prototype.immediate_caller_id = null; + + /** + * VStreamResultsRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof binlogdata.VStreamResultsRequest + * @instance + */ + VStreamResultsRequest.prototype.target = null; + + /** + * VStreamResultsRequest query. + * @member {string} query + * @memberof binlogdata.VStreamResultsRequest + * @instance + */ + VStreamResultsRequest.prototype.query = ""; + + /** + * Creates a new VStreamResultsRequest instance using the specified properties. * @function create - * @memberof mysqlctl.RefreshConfigRequest + * @memberof binlogdata.VStreamResultsRequest * @static - * @param {mysqlctl.IRefreshConfigRequest=} [properties] Properties to set - * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest instance + * @param {binlogdata.IVStreamResultsRequest=} [properties] Properties to set + * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest instance */ - RefreshConfigRequest.create = function create(properties) { - return new RefreshConfigRequest(properties); + VStreamResultsRequest.create = function create(properties) { + return new VStreamResultsRequest(properties); }; /** - * Encodes the specified RefreshConfigRequest message. Does not implicitly {@link mysqlctl.RefreshConfigRequest.verify|verify} messages. + * Encodes the specified VStreamResultsRequest message. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.RefreshConfigRequest + * @memberof binlogdata.VStreamResultsRequest * @static - * @param {mysqlctl.IRefreshConfigRequest} message RefreshConfigRequest 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 */ - RefreshConfigRequest.encode = function encode(message, writer) { + VStreamResultsRequest.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); return writer; }; /** - * Encodes the specified RefreshConfigRequest message, length delimited. Does not implicitly {@link mysqlctl.RefreshConfigRequest.verify|verify} messages. + * Encodes the specified VStreamResultsRequest message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.RefreshConfigRequest + * @memberof binlogdata.VStreamResultsRequest * @static - * @param {mysqlctl.IRefreshConfigRequest} message RefreshConfigRequest 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 */ - RefreshConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + VStreamResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RefreshConfigRequest message from the specified reader or buffer. + * Decodes a VStreamResultsRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.RefreshConfigRequest + * @memberof binlogdata.VStreamResultsRequest * @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 {binlogdata.VStreamResultsRequest} VStreamResultsRequest * @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) { + VStreamResultsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RefreshConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResultsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.query = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -72702,93 +74270,151 @@ $root.mysqlctl = (function() { }; /** - * Decodes a RefreshConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a VStreamResultsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.RefreshConfigRequest + * @memberof binlogdata.VStreamResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest + * @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 */ - RefreshConfigRequest.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 RefreshConfigRequest message. + * Verifies a VStreamResultsRequest message. * @function verify - * @memberof mysqlctl.RefreshConfigRequest + * @memberof binlogdata.VStreamResultsRequest * @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) { + VStreamResultsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; return null; }; /** - * Creates a RefreshConfigRequest 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 mysqlctl.RefreshConfigRequest + * @memberof binlogdata.VStreamResultsRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest + * @returns {binlogdata.VStreamResultsRequest} VStreamResultsRequest */ - RefreshConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.RefreshConfigRequest) + VStreamResultsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamResultsRequest) return object; - return new $root.mysqlctl.RefreshConfigRequest(); + var 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.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 RefreshConfigRequest 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 mysqlctl.RefreshConfigRequest + * @memberof binlogdata.VStreamResultsRequest * @static - * @param {mysqlctl.RefreshConfigRequest} message RefreshConfigRequest + * @param {binlogdata.VStreamResultsRequest} message VStreamResultsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RefreshConfigRequest.toObject = function toObject() { - return {}; + VStreamResultsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = ""; + } + 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 RefreshConfigRequest to JSON. + * Converts this VStreamResultsRequest to JSON. * @function toJSON - * @memberof mysqlctl.RefreshConfigRequest + * @memberof binlogdata.VStreamResultsRequest * @instance * @returns {Object.} JSON object */ - RefreshConfigRequest.prototype.toJSON = function toJSON() { + VStreamResultsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RefreshConfigRequest; + return VStreamResultsRequest; })(); - mysqlctl.RefreshConfigResponse = (function() { + binlogdata.VStreamResultsResponse = (function() { /** - * Properties of a RefreshConfigResponse. - * @memberof mysqlctl - * @interface IRefreshConfigResponse + * 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 RefreshConfigResponse. - * @memberof mysqlctl - * @classdesc Represents a RefreshConfigResponse. - * @implements IRefreshConfigResponse + * Constructs a new VStreamResultsResponse. + * @memberof binlogdata + * @classdesc Represents a VStreamResultsResponse. + * @implements IVStreamResultsResponse * @constructor - * @param {mysqlctl.IRefreshConfigResponse=} [properties] Properties to set + * @param {binlogdata.IVStreamResultsResponse=} [properties] Properties to set */ - function RefreshConfigResponse(properties) { + function VStreamResultsResponse(properties) { + this.fields = []; + this.rows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72796,63 +74422,108 @@ $root.mysqlctl = (function() { } /** - * Creates a new RefreshConfigResponse instance using the specified properties. + * VStreamResultsResponse fields. + * @member {Array.} fields + * @memberof binlogdata.VStreamResultsResponse + * @instance + */ + VStreamResultsResponse.prototype.fields = $util.emptyArray; + + /** + * VStreamResultsResponse gtid. + * @member {string} gtid + * @memberof binlogdata.VStreamResultsResponse + * @instance + */ + VStreamResultsResponse.prototype.gtid = ""; + + /** + * 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 mysqlctl.RefreshConfigResponse + * @memberof binlogdata.VStreamResultsResponse * @static - * @param {mysqlctl.IRefreshConfigResponse=} [properties] Properties to set - * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse instance + * @param {binlogdata.IVStreamResultsResponse=} [properties] Properties to set + * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse instance */ - RefreshConfigResponse.create = function create(properties) { - return new RefreshConfigResponse(properties); + VStreamResultsResponse.create = function create(properties) { + return new VStreamResultsResponse(properties); }; /** - * Encodes the specified RefreshConfigResponse message. Does not implicitly {@link mysqlctl.RefreshConfigResponse.verify|verify} messages. + * Encodes the specified VStreamResultsResponse message. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. * @function encode - * @memberof mysqlctl.RefreshConfigResponse + * @memberof binlogdata.VStreamResultsResponse * @static - * @param {mysqlctl.IRefreshConfigResponse} message RefreshConfigResponse 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 */ - RefreshConfigResponse.encode = function encode(message, writer) { + VStreamResultsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.fields != null && message.fields.length) + for (var i = 0; i < message.fields.length; ++i) + $root.query.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.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 (var 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 RefreshConfigResponse message, length delimited. Does not implicitly {@link mysqlctl.RefreshConfigResponse.verify|verify} messages. + * Encodes the specified VStreamResultsResponse message, length delimited. Does not implicitly {@link binlogdata.VStreamResultsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.RefreshConfigResponse + * @memberof binlogdata.VStreamResultsResponse * @static - * @param {mysqlctl.IRefreshConfigResponse} message RefreshConfigResponse 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 */ - RefreshConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { + VStreamResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RefreshConfigResponse message from the specified reader or buffer. + * Decodes a VStreamResultsResponse message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.RefreshConfigResponse + * @memberof binlogdata.VStreamResultsResponse * @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 {binlogdata.VStreamResultsResponse} VStreamResultsResponse * @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) { + VStreamResultsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RefreshConfigResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.binlogdata.VStreamResultsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.query.Field.decode(reader, reader.uint32())); + break; + 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: reader.skipType(tag & 7); break; @@ -72862,295 +74533,172 @@ $root.mysqlctl = (function() { }; /** - * Decodes a RefreshConfigResponse message from the specified reader or buffer, length delimited. + * Decodes a VStreamResultsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof mysqlctl.RefreshConfigResponse + * @memberof binlogdata.VStreamResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse + * @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 */ - RefreshConfigResponse.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 RefreshConfigResponse message. + * Verifies a VStreamResultsResponse message. * @function verify - * @memberof mysqlctl.RefreshConfigResponse + * @memberof binlogdata.VStreamResultsResponse * @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) { + VStreamResultsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (var i = 0; i < message.fields.length; ++i) { + var error = $root.query.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } + } + if (message.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 (var i = 0; i < message.rows.length; ++i) { + var error = $root.query.Row.verify(message.rows[i]); + if (error) + return "rows." + error; + } + } return null; }; /** - * Creates a RefreshConfigResponse 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 mysqlctl.RefreshConfigResponse + * @memberof binlogdata.VStreamResultsResponse * @static * @param {Object.} object Plain object - * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse + * @returns {binlogdata.VStreamResultsResponse} VStreamResultsResponse */ - RefreshConfigResponse.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.RefreshConfigResponse) + VStreamResultsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.binlogdata.VStreamResultsResponse) return object; - return new $root.mysqlctl.RefreshConfigResponse(); + var message = new $root.binlogdata.VStreamResultsResponse(); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".binlogdata.VStreamResultsResponse.fields: array expected"); + message.fields = []; + for (var 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 (var 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 RefreshConfigResponse 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 mysqlctl.RefreshConfigResponse + * @memberof binlogdata.VStreamResultsResponse * @static - * @param {mysqlctl.RefreshConfigResponse} message RefreshConfigResponse + * @param {binlogdata.VStreamResultsResponse} message VStreamResultsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RefreshConfigResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this RefreshConfigResponse to JSON. - * @function toJSON - * @memberof mysqlctl.RefreshConfigResponse - * @instance - * @returns {Object.} JSON object - */ - RefreshConfigResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RefreshConfigResponse; - })(); - - 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); - }; - - /** - * 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#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" }); + VStreamResultsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.fields = []; + object.rows = []; + } + if (options.defaults) + object.gtid = ""; + if (message.fields && message.fields.length) { + object.fields = []; + for (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + } + if (message.gtid != null && message.hasOwnProperty("gtid")) + object.gtid = message.gtid; + if (message.rows && message.rows.length) { + object.rows = []; + for (var j = 0; j < message.rows.length; ++j) + object.rows[j] = $root.query.Row.toObject(message.rows[j], options); + } + return object; + }; /** - * Calls RefreshConfig. - * @function refreshConfig - * @memberof mysqlctl.MysqlCtl + * Converts this VStreamResultsResponse to JSON. + * @function toJSON + * @memberof binlogdata.VStreamResultsResponse * @instance - * @param {mysqlctl.IRefreshConfigRequest} request RefreshConfigRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + VStreamResultsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return MysqlCtl; + return VStreamResultsResponse; })(); - mysqlctl.BackupInfo = (function() { + return binlogdata; +})(); + +$root.mysqlctl = (function() { + + /** + * Namespace mysqlctl. + * @exports mysqlctl + * @namespace + */ + var mysqlctl = {}; + + mysqlctl.StartRequest = (function() { /** - * Properties of a BackupInfo. + * Properties of a StartRequest. * @memberof mysqlctl - * @interface IBackupInfo - * @property {string|null} [name] BackupInfo name - * @property {string|null} [directory] BackupInfo directory + * @interface IStartRequest + * @property {Array.|null} [mysqld_args] StartRequest mysqld_args */ /** - * Constructs a new BackupInfo. + * Constructs a new StartRequest. * @memberof mysqlctl - * @classdesc Represents a BackupInfo. - * @implements IBackupInfo + * @classdesc Represents a StartRequest. + * @implements IStartRequest * @constructor - * @param {mysqlctl.IBackupInfo=} [properties] Properties to set + * @param {mysqlctl.IStartRequest=} [properties] Properties to set */ - function BackupInfo(properties) { + function StartRequest(properties) { + this.mysqld_args = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73158,88 +74706,78 @@ $root.mysqlctl = (function() { } /** - * BackupInfo name. - * @member {string} name - * @memberof mysqlctl.BackupInfo - * @instance - */ - BackupInfo.prototype.name = ""; - - /** - * BackupInfo directory. - * @member {string} directory - * @memberof mysqlctl.BackupInfo + * StartRequest mysqld_args. + * @member {Array.} mysqld_args + * @memberof mysqlctl.StartRequest * @instance */ - BackupInfo.prototype.directory = ""; + StartRequest.prototype.mysqld_args = $util.emptyArray; /** - * Creates a new BackupInfo instance using the specified properties. + * Creates a new StartRequest instance using the specified properties. * @function create - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.StartRequest * @static - * @param {mysqlctl.IBackupInfo=} [properties] Properties to set - * @returns {mysqlctl.BackupInfo} BackupInfo instance + * @param {mysqlctl.IStartRequest=} [properties] Properties to set + * @returns {mysqlctl.StartRequest} StartRequest instance */ - BackupInfo.create = function create(properties) { - return new BackupInfo(properties); + StartRequest.create = function create(properties) { + return new StartRequest(properties); }; /** - * Encodes the specified BackupInfo message. Does not implicitly {@link mysqlctl.BackupInfo.verify|verify} messages. + * Encodes the specified StartRequest message. Does not implicitly {@link mysqlctl.StartRequest.verify|verify} messages. * @function encode - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.StartRequest * @static - * @param {mysqlctl.IBackupInfo} message BackupInfo 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 */ - BackupInfo.encode = function encode(message, writer) { + StartRequest.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.mysqld_args != null && message.mysqld_args.length) + for (var 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 BackupInfo message, length delimited. Does not implicitly {@link mysqlctl.BackupInfo.verify|verify} messages. + * Encodes the specified StartRequest message, length delimited. Does not implicitly {@link mysqlctl.StartRequest.verify|verify} messages. * @function encodeDelimited - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.StartRequest * @static - * @param {mysqlctl.IBackupInfo} message BackupInfo 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 */ - BackupInfo.encodeDelimited = function encodeDelimited(message, writer) { + StartRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupInfo message from the specified reader or buffer. + * Decodes a StartRequest message from the specified reader or buffer. * @function decode - * @memberof mysqlctl.BackupInfo + * @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.BackupInfo} BackupInfo + * @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 */ - BackupInfo.decode = function decode(reader, length) { + StartRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.BackupInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.StartRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.directory = reader.string(); + if (!(message.mysqld_args && message.mysqld_args.length)) + message.mysqld_args = []; + message.mysqld_args.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -73250,129 +74788,118 @@ $root.mysqlctl = (function() { }; /** - * Decodes a BackupInfo 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.BackupInfo + * @memberof mysqlctl.StartRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {mysqlctl.BackupInfo} BackupInfo + * @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 */ - BackupInfo.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 BackupInfo message. + * Verifies a StartRequest message. * @function verify - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.StartRequest * @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) { + StartRequest.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.mysqld_args != null && message.hasOwnProperty("mysqld_args")) { + if (!Array.isArray(message.mysqld_args)) + return "mysqld_args: array expected"; + for (var i = 0; i < message.mysqld_args.length; ++i) + if (!$util.isString(message.mysqld_args[i])) + return "mysqld_args: string[] expected"; + } return null; }; /** - * Creates a BackupInfo 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.BackupInfo + * @memberof mysqlctl.StartRequest * @static * @param {Object.} object Plain object - * @returns {mysqlctl.BackupInfo} BackupInfo + * @returns {mysqlctl.StartRequest} StartRequest */ - BackupInfo.fromObject = function fromObject(object) { - if (object instanceof $root.mysqlctl.BackupInfo) + StartRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.StartRequest) return object; - var message = new $root.mysqlctl.BackupInfo(); - if (object.name != null) - message.name = String(object.name); - if (object.directory != null) - message.directory = String(object.directory); + var 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 (var i = 0; i < object.mysqld_args.length; ++i) + message.mysqld_args[i] = String(object.mysqld_args[i]); + } return message; }; /** - * Creates a plain object from a BackupInfo 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.BackupInfo + * @memberof mysqlctl.StartRequest * @static - * @param {mysqlctl.BackupInfo} message BackupInfo + * @param {mysqlctl.StartRequest} message StartRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupInfo.toObject = function toObject(message, options) { + StartRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.directory = ""; + if (options.arrays || options.defaults) + object.mysqld_args = []; + if (message.mysqld_args && message.mysqld_args.length) { + object.mysqld_args = []; + for (var j = 0; j < message.mysqld_args.length; ++j) + object.mysqld_args[j] = message.mysqld_args[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.directory != null && message.hasOwnProperty("directory")) - object.directory = message.directory; return object; }; /** - * Converts this BackupInfo to JSON. + * Converts this StartRequest to JSON. * @function toJSON - * @memberof mysqlctl.BackupInfo + * @memberof mysqlctl.StartRequest * @instance * @returns {Object.} JSON object */ - BackupInfo.prototype.toJSON = function toJSON() { + StartRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BackupInfo; + return StartRequest; })(); - return mysqlctl; -})(); - -$root.vschema = (function() { - - /** - * Namespace vschema. - * @exports vschema - * @namespace - */ - var vschema = {}; - - vschema.RoutingRules = (function() { + mysqlctl.StartResponse = (function() { /** - * Properties of a RoutingRules. - * @memberof vschema - * @interface IRoutingRules - * @property {Array.|null} [rules] RoutingRules rules + * Properties of a StartResponse. + * @memberof mysqlctl + * @interface IStartResponse */ /** - * Constructs a new RoutingRules. - * @memberof vschema - * @classdesc Represents a RoutingRules. - * @implements IRoutingRules + * Constructs a new StartResponse. + * @memberof mysqlctl + * @classdesc Represents a StartResponse. + * @implements IStartResponse * @constructor - * @param {vschema.IRoutingRules=} [properties] Properties to set + * @param {mysqlctl.IStartResponse=} [properties] Properties to set */ - function RoutingRules(properties) { - this.rules = []; + function StartResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73380,79 +74907,63 @@ $root.vschema = (function() { } /** - * RoutingRules rules. - * @member {Array.} rules - * @memberof vschema.RoutingRules - * @instance - */ - RoutingRules.prototype.rules = $util.emptyArray; - - /** - * Creates a new RoutingRules instance using the specified properties. + * Creates a new StartResponse instance using the specified properties. * @function create - * @memberof vschema.RoutingRules + * @memberof mysqlctl.StartResponse * @static - * @param {vschema.IRoutingRules=} [properties] Properties to set - * @returns {vschema.RoutingRules} RoutingRules instance + * @param {mysqlctl.IStartResponse=} [properties] Properties to set + * @returns {mysqlctl.StartResponse} StartResponse instance */ - RoutingRules.create = function create(properties) { - return new RoutingRules(properties); + StartResponse.create = function create(properties) { + return new StartResponse(properties); }; /** - * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. + * Encodes the specified StartResponse message. Does not implicitly {@link mysqlctl.StartResponse.verify|verify} messages. * @function encode - * @memberof vschema.RoutingRules + * @memberof mysqlctl.StartResponse * @static - * @param {vschema.IRoutingRules} message RoutingRules 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 */ - RoutingRules.encode = function encode(message, writer) { + StartResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.vschema.RoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. + * Encodes the specified StartResponse message, length delimited. Does not implicitly {@link mysqlctl.StartResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.RoutingRules + * @memberof mysqlctl.StartResponse * @static - * @param {vschema.IRoutingRules} message RoutingRules 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 */ - RoutingRules.encodeDelimited = function encodeDelimited(message, writer) { + StartResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RoutingRules message from the specified reader or buffer. + * Decodes a StartResponse message from the specified reader or buffer. * @function decode - * @memberof vschema.RoutingRules + * @memberof mysqlctl.StartResponse * @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 {mysqlctl.StartResponse} StartResponse * @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) { + StartResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRules(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.StartResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.vschema.RoutingRule.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -73462,126 +74973,94 @@ $root.vschema = (function() { }; /** - * Decodes a RoutingRules message from the specified reader or buffer, length delimited. + * Decodes a StartResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.RoutingRules + * @memberof mysqlctl.StartResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.RoutingRules} RoutingRules + * @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 */ - RoutingRules.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 RoutingRules message. + * Verifies a StartResponse message. * @function verify - * @memberof vschema.RoutingRules + * @memberof mysqlctl.StartResponse * @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) { + StartResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.vschema.RoutingRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } return null; }; /** - * Creates a RoutingRules 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 vschema.RoutingRules + * @memberof mysqlctl.StartResponse * @static * @param {Object.} object Plain object - * @returns {vschema.RoutingRules} RoutingRules + * @returns {mysqlctl.StartResponse} StartResponse */ - RoutingRules.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.RoutingRules) + StartResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.StartResponse) return object; - var message = new $root.vschema.RoutingRules(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".vschema.RoutingRules.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".vschema.RoutingRules.rules: object expected"); - message.rules[i] = $root.vschema.RoutingRule.fromObject(object.rules[i]); - } - } - return message; + return new $root.mysqlctl.StartResponse(); }; /** - * Creates a plain object from a RoutingRules 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 vschema.RoutingRules + * @memberof mysqlctl.StartResponse * @static - * @param {vschema.RoutingRules} message RoutingRules + * @param {mysqlctl.StartResponse} message StartResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoutingRules.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.vschema.RoutingRule.toObject(message.rules[j], options); - } - return object; + StartResponse.toObject = function toObject() { + return {}; }; /** - * Converts this RoutingRules to JSON. + * Converts this StartResponse to JSON. * @function toJSON - * @memberof vschema.RoutingRules + * @memberof mysqlctl.StartResponse * @instance * @returns {Object.} JSON object */ - RoutingRules.prototype.toJSON = function toJSON() { + StartResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RoutingRules; + return StartResponse; })(); - vschema.RoutingRule = (function() { + mysqlctl.ShutdownRequest = (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 ShutdownRequest. + * @memberof mysqlctl + * @interface IShutdownRequest + * @property {boolean|null} [wait_for_mysqld] ShutdownRequest wait_for_mysqld */ /** - * Constructs a new RoutingRule. - * @memberof vschema - * @classdesc Represents a RoutingRule. - * @implements IRoutingRule + * Constructs a new ShutdownRequest. + * @memberof mysqlctl + * @classdesc Represents a ShutdownRequest. + * @implements IShutdownRequest * @constructor - * @param {vschema.IRoutingRule=} [properties] Properties to set + * @param {mysqlctl.IShutdownRequest=} [properties] Properties to set */ - function RoutingRule(properties) { - this.to_tables = []; + function ShutdownRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73589,91 +75068,75 @@ $root.vschema = (function() { } /** - * RoutingRule from_table. - * @member {string} from_table - * @memberof vschema.RoutingRule - * @instance - */ - RoutingRule.prototype.from_table = ""; - - /** - * RoutingRule to_tables. - * @member {Array.} to_tables - * @memberof vschema.RoutingRule + * ShutdownRequest wait_for_mysqld. + * @member {boolean} wait_for_mysqld + * @memberof mysqlctl.ShutdownRequest * @instance */ - RoutingRule.prototype.to_tables = $util.emptyArray; + ShutdownRequest.prototype.wait_for_mysqld = false; /** - * Creates a new RoutingRule instance using the specified properties. + * Creates a new ShutdownRequest instance using the specified properties. * @function create - * @memberof vschema.RoutingRule + * @memberof mysqlctl.ShutdownRequest * @static - * @param {vschema.IRoutingRule=} [properties] Properties to set - * @returns {vschema.RoutingRule} RoutingRule instance + * @param {mysqlctl.IShutdownRequest=} [properties] Properties to set + * @returns {mysqlctl.ShutdownRequest} ShutdownRequest instance */ - RoutingRule.create = function create(properties) { - return new RoutingRule(properties); + ShutdownRequest.create = function create(properties) { + return new ShutdownRequest(properties); }; /** - * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * Encodes the specified ShutdownRequest message. Does not implicitly {@link mysqlctl.ShutdownRequest.verify|verify} messages. * @function encode - * @memberof vschema.RoutingRule + * @memberof mysqlctl.ShutdownRequest * @static - * @param {vschema.IRoutingRule} message RoutingRule 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 */ - RoutingRule.encode = function encode(message, writer) { + ShutdownRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.from_table != null && Object.hasOwnProperty.call(message, "from_table")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_table); - if (message.to_tables != null && message.to_tables.length) - for (var i = 0; i < message.to_tables.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_tables[i]); + 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); return writer; }; /** - * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * Encodes the specified ShutdownRequest message, length delimited. Does not implicitly {@link mysqlctl.ShutdownRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.RoutingRule + * @memberof mysqlctl.ShutdownRequest * @static - * @param {vschema.IRoutingRule} message RoutingRule 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 */ - RoutingRule.encodeDelimited = function encodeDelimited(message, writer) { + ShutdownRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RoutingRule message from the specified reader or buffer. + * Decodes a ShutdownRequest message from the specified reader or buffer. * @function decode - * @memberof vschema.RoutingRule + * @memberof mysqlctl.ShutdownRequest * @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 {mysqlctl.ShutdownRequest} ShutdownRequest * @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) { + ShutdownRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ShutdownRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.from_table = reader.string(); - break; - case 2: - if (!(message.to_tables && message.to_tables.length)) - message.to_tables = []; - message.to_tables.push(reader.string()); + message.wait_for_mysqld = reader.bool(); break; default: reader.skipType(tag & 7); @@ -73684,133 +75147,106 @@ $root.vschema = (function() { }; /** - * Decodes a RoutingRule message from the specified reader or buffer, length delimited. + * Decodes a ShutdownRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.RoutingRule + * @memberof mysqlctl.ShutdownRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.RoutingRule} RoutingRule + * @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 */ - RoutingRule.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 RoutingRule message. + * Verifies a ShutdownRequest message. * @function verify - * @memberof vschema.RoutingRule + * @memberof mysqlctl.ShutdownRequest * @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) { + ShutdownRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.from_table != null && message.hasOwnProperty("from_table")) - if (!$util.isString(message.from_table)) - return "from_table: string expected"; - if (message.to_tables != null && message.hasOwnProperty("to_tables")) { - if (!Array.isArray(message.to_tables)) - return "to_tables: array expected"; - for (var i = 0; i < message.to_tables.length; ++i) - if (!$util.isString(message.to_tables[i])) - return "to_tables: string[] expected"; - } + if (message.wait_for_mysqld != null && message.hasOwnProperty("wait_for_mysqld")) + if (typeof message.wait_for_mysqld !== "boolean") + return "wait_for_mysqld: boolean expected"; return null; }; /** - * Creates a RoutingRule 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 vschema.RoutingRule + * @memberof mysqlctl.ShutdownRequest * @static * @param {Object.} object Plain object - * @returns {vschema.RoutingRule} RoutingRule + * @returns {mysqlctl.ShutdownRequest} ShutdownRequest */ - RoutingRule.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.RoutingRule) + ShutdownRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.ShutdownRequest) return object; - var message = new $root.vschema.RoutingRule(); - if (object.from_table != null) - message.from_table = String(object.from_table); - if (object.to_tables) { - if (!Array.isArray(object.to_tables)) - throw TypeError(".vschema.RoutingRule.to_tables: array expected"); - message.to_tables = []; - for (var i = 0; i < object.to_tables.length; ++i) - message.to_tables[i] = String(object.to_tables[i]); - } + var message = new $root.mysqlctl.ShutdownRequest(); + if (object.wait_for_mysqld != null) + message.wait_for_mysqld = Boolean(object.wait_for_mysqld); return message; }; /** - * Creates a plain object from a RoutingRule 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 vschema.RoutingRule + * @memberof mysqlctl.ShutdownRequest * @static - * @param {vschema.RoutingRule} message RoutingRule + * @param {mysqlctl.ShutdownRequest} message ShutdownRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoutingRule.toObject = function toObject(message, options) { + ShutdownRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.to_tables = []; if (options.defaults) - object.from_table = ""; - if (message.from_table != null && message.hasOwnProperty("from_table")) - object.from_table = message.from_table; - if (message.to_tables && message.to_tables.length) { - object.to_tables = []; - for (var j = 0; j < message.to_tables.length; ++j) - object.to_tables[j] = message.to_tables[j]; - } + object.wait_for_mysqld = false; + if (message.wait_for_mysqld != null && message.hasOwnProperty("wait_for_mysqld")) + object.wait_for_mysqld = message.wait_for_mysqld; return object; }; /** - * Converts this RoutingRule to JSON. + * Converts this ShutdownRequest to JSON. * @function toJSON - * @memberof vschema.RoutingRule + * @memberof mysqlctl.ShutdownRequest * @instance * @returns {Object.} JSON object */ - RoutingRule.prototype.toJSON = function toJSON() { + ShutdownRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RoutingRule; + return ShutdownRequest; })(); - vschema.Keyspace = (function() { + mysqlctl.ShutdownResponse = (function() { /** - * Properties of a Keyspace. - * @memberof vschema - * @interface IKeyspace - * @property {boolean|null} [sharded] Keyspace sharded - * @property {Object.|null} [vindexes] Keyspace vindexes - * @property {Object.|null} [tables] Keyspace tables - * @property {boolean|null} [require_explicit_routing] Keyspace require_explicit_routing + * Properties of a ShutdownResponse. + * @memberof mysqlctl + * @interface IShutdownResponse */ /** - * Constructs a new Keyspace. - * @memberof vschema - * @classdesc Represents a Keyspace. - * @implements IKeyspace + * Constructs a new ShutdownResponse. + * @memberof mysqlctl + * @classdesc Represents a ShutdownResponse. + * @implements IShutdownResponse * @constructor - * @param {vschema.IKeyspace=} [properties] Properties to set + * @param {mysqlctl.IShutdownResponse=} [properties] Properties to set */ - function Keyspace(properties) { - this.vindexes = {}; - this.tables = {}; + function ShutdownResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73818,159 +75254,63 @@ $root.vschema = (function() { } /** - * Keyspace sharded. - * @member {boolean} sharded - * @memberof vschema.Keyspace - * @instance - */ - Keyspace.prototype.sharded = false; - - /** - * Keyspace vindexes. - * @member {Object.} vindexes - * @memberof vschema.Keyspace - * @instance - */ - Keyspace.prototype.vindexes = $util.emptyObject; - - /** - * Keyspace tables. - * @member {Object.} tables - * @memberof vschema.Keyspace - * @instance - */ - Keyspace.prototype.tables = $util.emptyObject; - - /** - * Keyspace require_explicit_routing. - * @member {boolean} require_explicit_routing - * @memberof vschema.Keyspace - * @instance - */ - Keyspace.prototype.require_explicit_routing = false; - - /** - * Creates a new Keyspace instance using the specified properties. + * Creates a new ShutdownResponse instance using the specified properties. * @function create - * @memberof vschema.Keyspace + * @memberof mysqlctl.ShutdownResponse * @static - * @param {vschema.IKeyspace=} [properties] Properties to set - * @returns {vschema.Keyspace} Keyspace instance + * @param {mysqlctl.IShutdownResponse=} [properties] Properties to set + * @returns {mysqlctl.ShutdownResponse} ShutdownResponse instance */ - Keyspace.create = function create(properties) { - return new Keyspace(properties); + ShutdownResponse.create = function create(properties) { + return new ShutdownResponse(properties); }; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * Encodes the specified ShutdownResponse message. Does not implicitly {@link mysqlctl.ShutdownResponse.verify|verify} messages. * @function encode - * @memberof vschema.Keyspace + * @memberof mysqlctl.ShutdownResponse * @static - * @param {vschema.IKeyspace} message Keyspace 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 */ - Keyspace.encode = function encode(message, writer) { + ShutdownResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharded != null && Object.hasOwnProperty.call(message, "sharded")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.sharded); - if (message.vindexes != null && Object.hasOwnProperty.call(message, "vindexes")) - for (var keys = Object.keys(message.vindexes), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vschema.Vindex.encode(message.vindexes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.tables != null && Object.hasOwnProperty.call(message, "tables")) - for (var keys = Object.keys(message.tables), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vschema.Table.encode(message.tables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.require_explicit_routing != null && Object.hasOwnProperty.call(message, "require_explicit_routing")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.require_explicit_routing); return writer; }; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * Encodes the specified ShutdownResponse message, length delimited. Does not implicitly {@link mysqlctl.ShutdownResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Keyspace + * @memberof mysqlctl.ShutdownResponse * @static - * @param {vschema.IKeyspace} message Keyspace 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 */ - Keyspace.encodeDelimited = function encodeDelimited(message, writer) { + ShutdownResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a ShutdownResponse message from the specified reader or buffer. * @function decode - * @memberof vschema.Keyspace + * @memberof mysqlctl.ShutdownResponse * @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 {mysqlctl.ShutdownResponse} ShutdownResponse * @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) { + ShutdownResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Keyspace(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ShutdownResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.sharded = reader.bool(); - break; - case 2: - if (message.vindexes === $util.emptyObject) - message.vindexes = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.Vindex.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.vindexes[key] = value; - break; - case 3: - if (message.tables === $util.emptyObject) - message.tables = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.Table.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.tables[key] = value; - break; - case 4: - message.require_explicit_routing = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -73980,174 +75320,93 @@ $root.vschema = (function() { }; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * Decodes a ShutdownResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Keyspace + * @memberof mysqlctl.ShutdownResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Keyspace} Keyspace + * @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 */ - Keyspace.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 Keyspace message. + * Verifies a ShutdownResponse message. * @function verify - * @memberof vschema.Keyspace + * @memberof mysqlctl.ShutdownResponse * @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) { + ShutdownResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sharded != null && message.hasOwnProperty("sharded")) - if (typeof message.sharded !== "boolean") - return "sharded: boolean expected"; - if (message.vindexes != null && message.hasOwnProperty("vindexes")) { - if (!$util.isObject(message.vindexes)) - return "vindexes: object expected"; - var key = Object.keys(message.vindexes); - for (var i = 0; i < key.length; ++i) { - var error = $root.vschema.Vindex.verify(message.vindexes[key[i]]); - if (error) - return "vindexes." + error; - } - } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!$util.isObject(message.tables)) - return "tables: object expected"; - var key = Object.keys(message.tables); - for (var i = 0; i < key.length; ++i) { - var error = $root.vschema.Table.verify(message.tables[key[i]]); - if (error) - return "tables." + error; - } - } - if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) - if (typeof message.require_explicit_routing !== "boolean") - return "require_explicit_routing: boolean expected"; return null; }; /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * Creates a ShutdownResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.Keyspace + * @memberof mysqlctl.ShutdownResponse * @static * @param {Object.} object Plain object - * @returns {vschema.Keyspace} Keyspace + * @returns {mysqlctl.ShutdownResponse} ShutdownResponse */ - Keyspace.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Keyspace) + ShutdownResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.ShutdownResponse) return object; - var message = new $root.vschema.Keyspace(); - if (object.sharded != null) - message.sharded = Boolean(object.sharded); - if (object.vindexes) { - if (typeof object.vindexes !== "object") - throw TypeError(".vschema.Keyspace.vindexes: object expected"); - message.vindexes = {}; - for (var keys = Object.keys(object.vindexes), i = 0; i < keys.length; ++i) { - if (typeof object.vindexes[keys[i]] !== "object") - throw TypeError(".vschema.Keyspace.vindexes: object expected"); - message.vindexes[keys[i]] = $root.vschema.Vindex.fromObject(object.vindexes[keys[i]]); - } - } - if (object.tables) { - if (typeof object.tables !== "object") - throw TypeError(".vschema.Keyspace.tables: object expected"); - message.tables = {}; - for (var keys = Object.keys(object.tables), i = 0; i < keys.length; ++i) { - if (typeof object.tables[keys[i]] !== "object") - throw TypeError(".vschema.Keyspace.tables: object expected"); - message.tables[keys[i]] = $root.vschema.Table.fromObject(object.tables[keys[i]]); - } - } - if (object.require_explicit_routing != null) - message.require_explicit_routing = Boolean(object.require_explicit_routing); - return message; + return new $root.mysqlctl.ShutdownResponse(); }; /** - * Creates a plain object from a Keyspace 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 vschema.Keyspace + * @memberof mysqlctl.ShutdownResponse * @static - * @param {vschema.Keyspace} message Keyspace + * @param {mysqlctl.ShutdownResponse} message ShutdownResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Keyspace.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.vindexes = {}; - object.tables = {}; - } - if (options.defaults) { - object.sharded = false; - object.require_explicit_routing = false; - } - if (message.sharded != null && message.hasOwnProperty("sharded")) - object.sharded = message.sharded; - var keys2; - if (message.vindexes && (keys2 = Object.keys(message.vindexes)).length) { - object.vindexes = {}; - for (var j = 0; j < keys2.length; ++j) - object.vindexes[keys2[j]] = $root.vschema.Vindex.toObject(message.vindexes[keys2[j]], options); - } - if (message.tables && (keys2 = Object.keys(message.tables)).length) { - object.tables = {}; - for (var j = 0; j < keys2.length; ++j) - object.tables[keys2[j]] = $root.vschema.Table.toObject(message.tables[keys2[j]], options); - } - if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) - object.require_explicit_routing = message.require_explicit_routing; - return object; + ShutdownResponse.toObject = function toObject() { + return {}; }; /** - * Converts this Keyspace to JSON. + * Converts this ShutdownResponse to JSON. * @function toJSON - * @memberof vschema.Keyspace + * @memberof mysqlctl.ShutdownResponse * @instance * @returns {Object.} JSON object */ - Keyspace.prototype.toJSON = function toJSON() { + ShutdownResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Keyspace; + return ShutdownResponse; })(); - vschema.Vindex = (function() { + mysqlctl.RunMysqlUpgradeRequest = (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 RunMysqlUpgradeRequest. + * @memberof mysqlctl + * @interface IRunMysqlUpgradeRequest */ /** - * Constructs a new Vindex. - * @memberof vschema - * @classdesc Represents a Vindex. - * @implements IVindex + * Constructs a new RunMysqlUpgradeRequest. + * @memberof mysqlctl + * @classdesc Represents a RunMysqlUpgradeRequest. + * @implements IRunMysqlUpgradeRequest * @constructor - * @param {vschema.IVindex=} [properties] Properties to set + * @param {mysqlctl.IRunMysqlUpgradeRequest=} [properties] Properties to set */ - function Vindex(properties) { - this.params = {}; + function RunMysqlUpgradeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74155,122 +75414,63 @@ $root.vschema = (function() { } /** - * Vindex type. - * @member {string} type - * @memberof vschema.Vindex - * @instance - */ - Vindex.prototype.type = ""; - - /** - * 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. + * Creates a new RunMysqlUpgradeRequest instance using the specified properties. * @function create - * @memberof vschema.Vindex + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static - * @param {vschema.IVindex=} [properties] Properties to set - * @returns {vschema.Vindex} Vindex instance + * @param {mysqlctl.IRunMysqlUpgradeRequest=} [properties] Properties to set + * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest instance */ - Vindex.create = function create(properties) { - return new Vindex(properties); + RunMysqlUpgradeRequest.create = function create(properties) { + return new RunMysqlUpgradeRequest(properties); }; /** - * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * Encodes the specified RunMysqlUpgradeRequest message. Does not implicitly {@link mysqlctl.RunMysqlUpgradeRequest.verify|verify} messages. * @function encode - * @memberof vschema.Vindex + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static - * @param {vschema.IVindex} message Vindex 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 */ - Vindex.encode = function encode(message, writer) { + RunMysqlUpgradeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - for (var keys = Object.keys(message.params), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.params[keys[i]]).ldelim(); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.owner); return writer; }; /** - * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * Encodes the specified RunMysqlUpgradeRequest message, length delimited. Does not implicitly {@link mysqlctl.RunMysqlUpgradeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Vindex + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static - * @param {vschema.IVindex} message Vindex 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 */ - Vindex.encodeDelimited = function encodeDelimited(message, writer) { + RunMysqlUpgradeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Vindex message from the specified reader or buffer. + * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer. * @function decode - * @memberof vschema.Vindex + * @memberof mysqlctl.RunMysqlUpgradeRequest * @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 {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest * @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) { + RunMysqlUpgradeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Vindex(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RunMysqlUpgradeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - if (message.params === $util.emptyObject) - message.params = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.params[key] = value; - break; - case 3: - message.owner = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -74280,146 +75480,93 @@ $root.vschema = (function() { }; /** - * Decodes a Vindex message from the specified reader or buffer, length delimited. + * Decodes a RunMysqlUpgradeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Vindex + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Vindex} Vindex + * @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 */ - Vindex.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 Vindex message. + * Verifies a RunMysqlUpgradeRequest message. * @function verify - * @memberof vschema.Vindex + * @memberof mysqlctl.RunMysqlUpgradeRequest * @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) { + RunMysqlUpgradeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.params != null && message.hasOwnProperty("params")) { - if (!$util.isObject(message.params)) - return "params: object expected"; - var key = Object.keys(message.params); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.params[key[i]])) - return "params: string{k:string} expected"; - } - if (message.owner != null && message.hasOwnProperty("owner")) - if (!$util.isString(message.owner)) - return "owner: string expected"; return null; }; /** - * Creates a Vindex 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 vschema.Vindex + * @memberof mysqlctl.RunMysqlUpgradeRequest * @static * @param {Object.} object Plain object - * @returns {vschema.Vindex} Vindex + * @returns {mysqlctl.RunMysqlUpgradeRequest} RunMysqlUpgradeRequest */ - Vindex.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Vindex) + RunMysqlUpgradeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.RunMysqlUpgradeRequest) return object; - var message = new $root.vschema.Vindex(); - if (object.type != null) - message.type = String(object.type); - if (object.params) { - if (typeof object.params !== "object") - throw TypeError(".vschema.Vindex.params: object expected"); - message.params = {}; - for (var keys = Object.keys(object.params), i = 0; i < keys.length; ++i) - message.params[keys[i]] = String(object.params[keys[i]]); - } - if (object.owner != null) - message.owner = String(object.owner); - return message; + return new $root.mysqlctl.RunMysqlUpgradeRequest(); }; /** - * Creates a plain object from a Vindex message. Also converts values to other types if specified. - * @function toObject - * @memberof vschema.Vindex - * @static - * @param {vschema.Vindex} message Vindex - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Vindex.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.params = {}; - if (options.defaults) { - object.type = ""; - object.owner = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - var keys2; - if (message.params && (keys2 = Object.keys(message.params)).length) { - object.params = {}; - for (var j = 0; j < keys2.length; ++j) - object.params[keys2[j]] = message.params[keys2[j]]; - } - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - return object; + * Creates a plain object from a RunMysqlUpgradeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof mysqlctl.RunMysqlUpgradeRequest + * @static + * @param {mysqlctl.RunMysqlUpgradeRequest} message RunMysqlUpgradeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RunMysqlUpgradeRequest.toObject = function toObject() { + return {}; }; /** - * Converts this Vindex to JSON. + * Converts this RunMysqlUpgradeRequest to JSON. * @function toJSON - * @memberof vschema.Vindex + * @memberof mysqlctl.RunMysqlUpgradeRequest * @instance * @returns {Object.} JSON object */ - Vindex.prototype.toJSON = function toJSON() { + RunMysqlUpgradeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Vindex; + return RunMysqlUpgradeRequest; })(); - vschema.Table = (function() { + mysqlctl.RunMysqlUpgradeResponse = (function() { /** - * Properties of a Table. - * @memberof vschema - * @interface ITable - * @property {string|null} [type] Table type - * @property {Array.|null} [column_vindexes] Table column_vindexes - * @property {vschema.IAutoIncrement|null} [auto_increment] Table auto_increment - * @property {Array.|null} [columns] Table columns - * @property {string|null} [pinned] Table pinned - * @property {boolean|null} [column_list_authoritative] Table column_list_authoritative + * Properties of a RunMysqlUpgradeResponse. + * @memberof mysqlctl + * @interface IRunMysqlUpgradeResponse */ /** - * Constructs a new Table. - * @memberof vschema - * @classdesc Represents a Table. - * @implements ITable + * Constructs a new RunMysqlUpgradeResponse. + * @memberof mysqlctl + * @classdesc Represents a RunMysqlUpgradeResponse. + * @implements IRunMysqlUpgradeResponse * @constructor - * @param {vschema.ITable=} [properties] Properties to set + * @param {mysqlctl.IRunMysqlUpgradeResponse=} [properties] Properties to set */ - function Table(properties) { - this.column_vindexes = []; - this.columns = []; + function RunMysqlUpgradeResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74427,147 +75574,63 @@ $root.vschema = (function() { } /** - * Table type. - * @member {string} type - * @memberof vschema.Table - * @instance - */ - Table.prototype.type = ""; - - /** - * Table column_vindexes. - * @member {Array.} column_vindexes - * @memberof vschema.Table - * @instance - */ - Table.prototype.column_vindexes = $util.emptyArray; - - /** - * Table auto_increment. - * @member {vschema.IAutoIncrement|null|undefined} auto_increment - * @memberof vschema.Table - * @instance - */ - Table.prototype.auto_increment = null; - - /** - * Table columns. - * @member {Array.} columns - * @memberof vschema.Table - * @instance - */ - Table.prototype.columns = $util.emptyArray; - - /** - * Table pinned. - * @member {string} pinned - * @memberof vschema.Table - * @instance - */ - Table.prototype.pinned = ""; - - /** - * Table column_list_authoritative. - * @member {boolean} column_list_authoritative - * @memberof vschema.Table - * @instance - */ - Table.prototype.column_list_authoritative = false; - - /** - * Creates a new Table instance using the specified properties. + * Creates a new RunMysqlUpgradeResponse instance using the specified properties. * @function create - * @memberof vschema.Table + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static - * @param {vschema.ITable=} [properties] Properties to set - * @returns {vschema.Table} Table instance + * @param {mysqlctl.IRunMysqlUpgradeResponse=} [properties] Properties to set + * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse instance */ - Table.create = function create(properties) { - return new Table(properties); + RunMysqlUpgradeResponse.create = function create(properties) { + return new RunMysqlUpgradeResponse(properties); }; /** - * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. + * Encodes the specified RunMysqlUpgradeResponse message. Does not implicitly {@link mysqlctl.RunMysqlUpgradeResponse.verify|verify} messages. * @function encode - * @memberof vschema.Table + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static - * @param {vschema.ITable} message Table 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 */ - Table.encode = function encode(message, writer) { + RunMysqlUpgradeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.column_vindexes != null && message.column_vindexes.length) - for (var i = 0; i < message.column_vindexes.length; ++i) - $root.vschema.ColumnVindex.encode(message.column_vindexes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.auto_increment != null && Object.hasOwnProperty.call(message, "auto_increment")) - $root.vschema.AutoIncrement.encode(message.auto_increment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.vschema.Column.encode(message.columns[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.pinned != null && Object.hasOwnProperty.call(message, "pinned")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.pinned); - if (message.column_list_authoritative != null && Object.hasOwnProperty.call(message, "column_list_authoritative")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.column_list_authoritative); return writer; }; /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. + * Encodes the specified RunMysqlUpgradeResponse message, length delimited. Does not implicitly {@link mysqlctl.RunMysqlUpgradeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Table + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static - * @param {vschema.ITable} message Table 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 */ - Table.encodeDelimited = function encodeDelimited(message, writer) { + RunMysqlUpgradeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Table message from the specified reader or buffer. + * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer. * @function decode - * @memberof vschema.Table + * @memberof mysqlctl.RunMysqlUpgradeResponse * @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 {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse * @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) { + RunMysqlUpgradeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Table(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RunMysqlUpgradeResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - if (!(message.column_vindexes && message.column_vindexes.length)) - message.column_vindexes = []; - message.column_vindexes.push($root.vschema.ColumnVindex.decode(reader, reader.uint32())); - break; - case 3: - message.auto_increment = $root.vschema.AutoIncrement.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.vschema.Column.decode(reader, reader.uint32())); - break; - case 5: - message.pinned = reader.string(); - break; - case 6: - message.column_list_authoritative = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -74577,192 +75640,93 @@ $root.vschema = (function() { }; /** - * Decodes a Table message from the specified reader or buffer, length delimited. + * Decodes a RunMysqlUpgradeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Table + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Table} Table + * @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 */ - Table.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 Table message. + * Verifies a RunMysqlUpgradeResponse message. * @function verify - * @memberof vschema.Table + * @memberof mysqlctl.RunMysqlUpgradeResponse * @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) { + RunMysqlUpgradeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.column_vindexes != null && message.hasOwnProperty("column_vindexes")) { - if (!Array.isArray(message.column_vindexes)) - return "column_vindexes: array expected"; - for (var i = 0; i < message.column_vindexes.length; ++i) { - var error = $root.vschema.ColumnVindex.verify(message.column_vindexes[i]); - if (error) - return "column_vindexes." + error; - } - } - if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) { - var error = $root.vschema.AutoIncrement.verify(message.auto_increment); - if (error) - return "auto_increment." + error; - } - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.vschema.Column.verify(message.columns[i]); - if (error) - return "columns." + error; - } - } - if (message.pinned != null && message.hasOwnProperty("pinned")) - if (!$util.isString(message.pinned)) - return "pinned: string expected"; - if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) - if (typeof message.column_list_authoritative !== "boolean") - return "column_list_authoritative: boolean expected"; return null; }; /** - * Creates a Table 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 vschema.Table + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static * @param {Object.} object Plain object - * @returns {vschema.Table} Table + * @returns {mysqlctl.RunMysqlUpgradeResponse} RunMysqlUpgradeResponse */ - Table.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Table) + RunMysqlUpgradeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.RunMysqlUpgradeResponse) return object; - var message = new $root.vschema.Table(); - if (object.type != null) - message.type = String(object.type); - if (object.column_vindexes) { - if (!Array.isArray(object.column_vindexes)) - throw TypeError(".vschema.Table.column_vindexes: array expected"); - message.column_vindexes = []; - for (var i = 0; i < object.column_vindexes.length; ++i) { - if (typeof object.column_vindexes[i] !== "object") - throw TypeError(".vschema.Table.column_vindexes: object expected"); - message.column_vindexes[i] = $root.vschema.ColumnVindex.fromObject(object.column_vindexes[i]); - } - } - if (object.auto_increment != null) { - if (typeof object.auto_increment !== "object") - throw TypeError(".vschema.Table.auto_increment: object expected"); - message.auto_increment = $root.vschema.AutoIncrement.fromObject(object.auto_increment); - } - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".vschema.Table.columns: array expected"); - message.columns = []; - for (var i = 0; i < object.columns.length; ++i) { - if (typeof object.columns[i] !== "object") - throw TypeError(".vschema.Table.columns: object expected"); - message.columns[i] = $root.vschema.Column.fromObject(object.columns[i]); - } - } - if (object.pinned != null) - message.pinned = String(object.pinned); - if (object.column_list_authoritative != null) - message.column_list_authoritative = Boolean(object.column_list_authoritative); - return message; + return new $root.mysqlctl.RunMysqlUpgradeResponse(); }; /** - * Creates a plain object from a Table 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 vschema.Table + * @memberof mysqlctl.RunMysqlUpgradeResponse * @static - * @param {vschema.Table} message Table + * @param {mysqlctl.RunMysqlUpgradeResponse} message RunMysqlUpgradeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Table.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.column_vindexes = []; - object.columns = []; - } - if (options.defaults) { - object.type = ""; - object.auto_increment = null; - object.pinned = ""; - object.column_list_authoritative = false; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.column_vindexes && message.column_vindexes.length) { - object.column_vindexes = []; - for (var j = 0; j < message.column_vindexes.length; ++j) - object.column_vindexes[j] = $root.vschema.ColumnVindex.toObject(message.column_vindexes[j], options); - } - if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) - object.auto_increment = $root.vschema.AutoIncrement.toObject(message.auto_increment, options); - if (message.columns && message.columns.length) { - object.columns = []; - for (var j = 0; j < message.columns.length; ++j) - object.columns[j] = $root.vschema.Column.toObject(message.columns[j], options); - } - if (message.pinned != null && message.hasOwnProperty("pinned")) - object.pinned = message.pinned; - if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) - object.column_list_authoritative = message.column_list_authoritative; - return object; + RunMysqlUpgradeResponse.toObject = function toObject() { + return {}; }; /** - * Converts this Table to JSON. + * Converts this RunMysqlUpgradeResponse to JSON. * @function toJSON - * @memberof vschema.Table + * @memberof mysqlctl.RunMysqlUpgradeResponse * @instance * @returns {Object.} JSON object */ - Table.prototype.toJSON = function toJSON() { + RunMysqlUpgradeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Table; + return RunMysqlUpgradeResponse; })(); - vschema.ColumnVindex = (function() { + mysqlctl.ReinitConfigRequest = (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 ReinitConfigRequest. + * @memberof mysqlctl + * @interface IReinitConfigRequest */ /** - * Constructs a new ColumnVindex. - * @memberof vschema - * @classdesc Represents a ColumnVindex. - * @implements IColumnVindex + * Constructs a new ReinitConfigRequest. + * @memberof mysqlctl + * @classdesc Represents a ReinitConfigRequest. + * @implements IReinitConfigRequest * @constructor - * @param {vschema.IColumnVindex=} [properties] Properties to set + * @param {mysqlctl.IReinitConfigRequest=} [properties] Properties to set */ - function ColumnVindex(properties) { - this.columns = []; + function ReinitConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74770,105 +75734,63 @@ $root.vschema = (function() { } /** - * ColumnVindex column. - * @member {string} column - * @memberof vschema.ColumnVindex - * @instance - */ - ColumnVindex.prototype.column = ""; - - /** - * 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. + * Creates a new ReinitConfigRequest instance using the specified properties. * @function create - * @memberof vschema.ColumnVindex + * @memberof mysqlctl.ReinitConfigRequest * @static - * @param {vschema.IColumnVindex=} [properties] Properties to set - * @returns {vschema.ColumnVindex} ColumnVindex instance + * @param {mysqlctl.IReinitConfigRequest=} [properties] Properties to set + * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest instance */ - ColumnVindex.create = function create(properties) { - return new ColumnVindex(properties); + ReinitConfigRequest.create = function create(properties) { + return new ReinitConfigRequest(properties); }; /** - * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * Encodes the specified ReinitConfigRequest message. Does not implicitly {@link mysqlctl.ReinitConfigRequest.verify|verify} messages. * @function encode - * @memberof vschema.ColumnVindex + * @memberof mysqlctl.ReinitConfigRequest * @static - * @param {vschema.IColumnVindex} message ColumnVindex 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 */ - ColumnVindex.encode = function encode(message, writer) { + ReinitConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.column != null && Object.hasOwnProperty.call(message, "column")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.column); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.columns[i]); return writer; }; /** - * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * Encodes the specified ReinitConfigRequest message, length delimited. Does not implicitly {@link mysqlctl.ReinitConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.ColumnVindex + * @memberof mysqlctl.ReinitConfigRequest * @static - * @param {vschema.IColumnVindex} message ColumnVindex 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 */ - ColumnVindex.encodeDelimited = function encodeDelimited(message, writer) { + ReinitConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ColumnVindex message from the specified reader or buffer. + * Decodes a ReinitConfigRequest message from the specified reader or buffer. * @function decode - * @memberof vschema.ColumnVindex + * @memberof mysqlctl.ReinitConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.ColumnVindex} ColumnVindex + * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ColumnVindex.decode = function decode(reader, length) { + ReinitConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ColumnVindex(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ReinitConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.column = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push(reader.string()); - break; default: reader.skipType(tag & 7); break; @@ -74878,138 +75800,93 @@ $root.vschema = (function() { }; /** - * Decodes a ColumnVindex message from the specified reader or buffer, length delimited. + * Decodes a ReinitConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.ColumnVindex + * @memberof mysqlctl.ReinitConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.ColumnVindex} ColumnVindex + * @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 */ - ColumnVindex.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 ColumnVindex message. + * Verifies a ReinitConfigRequest message. * @function verify - * @memberof vschema.ColumnVindex + * @memberof mysqlctl.ReinitConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ColumnVindex.verify = function verify(message) { + ReinitConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.column != null && message.hasOwnProperty("column")) - if (!$util.isString(message.column)) - return "column: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) - if (!$util.isString(message.columns[i])) - return "columns: string[] expected"; - } return null; }; /** - * Creates a ColumnVindex 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 vschema.ColumnVindex + * @memberof mysqlctl.ReinitConfigRequest * @static * @param {Object.} object Plain object - * @returns {vschema.ColumnVindex} ColumnVindex + * @returns {mysqlctl.ReinitConfigRequest} ReinitConfigRequest */ - ColumnVindex.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.ColumnVindex) + ReinitConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.ReinitConfigRequest) return object; - var message = new $root.vschema.ColumnVindex(); - if (object.column != null) - message.column = String(object.column); - if (object.name != null) - message.name = String(object.name); - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".vschema.ColumnVindex.columns: array expected"); - message.columns = []; - for (var i = 0; i < object.columns.length; ++i) - message.columns[i] = String(object.columns[i]); - } - return message; + return new $root.mysqlctl.ReinitConfigRequest(); }; /** - * Creates a plain object from a ColumnVindex 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 vschema.ColumnVindex + * @memberof mysqlctl.ReinitConfigRequest * @static - * @param {vschema.ColumnVindex} message ColumnVindex + * @param {mysqlctl.ReinitConfigRequest} message ReinitConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ColumnVindex.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.columns = []; - if (options.defaults) { - object.column = ""; - object.name = ""; - } - if (message.column != null && message.hasOwnProperty("column")) - object.column = message.column; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.columns && message.columns.length) { - object.columns = []; - for (var j = 0; j < message.columns.length; ++j) - object.columns[j] = message.columns[j]; - } - return object; + ReinitConfigRequest.toObject = function toObject() { + return {}; }; /** - * Converts this ColumnVindex to JSON. + * Converts this ReinitConfigRequest to JSON. * @function toJSON - * @memberof vschema.ColumnVindex + * @memberof mysqlctl.ReinitConfigRequest * @instance * @returns {Object.} JSON object */ - ColumnVindex.prototype.toJSON = function toJSON() { + ReinitConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ColumnVindex; + return ReinitConfigRequest; })(); - vschema.AutoIncrement = (function() { + mysqlctl.ReinitConfigResponse = (function() { /** - * Properties of an AutoIncrement. - * @memberof vschema - * @interface IAutoIncrement - * @property {string|null} [column] AutoIncrement column - * @property {string|null} [sequence] AutoIncrement sequence + * Properties of a ReinitConfigResponse. + * @memberof mysqlctl + * @interface IReinitConfigResponse */ /** - * Constructs a new AutoIncrement. - * @memberof vschema - * @classdesc Represents an AutoIncrement. - * @implements IAutoIncrement + * Constructs a new ReinitConfigResponse. + * @memberof mysqlctl + * @classdesc Represents a ReinitConfigResponse. + * @implements IReinitConfigResponse * @constructor - * @param {vschema.IAutoIncrement=} [properties] Properties to set + * @param {mysqlctl.IReinitConfigResponse=} [properties] Properties to set */ - function AutoIncrement(properties) { + function ReinitConfigResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75017,89 +75894,63 @@ $root.vschema = (function() { } /** - * AutoIncrement column. - * @member {string} column - * @memberof vschema.AutoIncrement - * @instance - */ - AutoIncrement.prototype.column = ""; - - /** - * AutoIncrement sequence. - * @member {string} sequence - * @memberof vschema.AutoIncrement - * @instance - */ - AutoIncrement.prototype.sequence = ""; - - /** - * Creates a new AutoIncrement instance using the specified properties. + * Creates a new ReinitConfigResponse instance using the specified properties. * @function create - * @memberof vschema.AutoIncrement + * @memberof mysqlctl.ReinitConfigResponse * @static - * @param {vschema.IAutoIncrement=} [properties] Properties to set - * @returns {vschema.AutoIncrement} AutoIncrement instance + * @param {mysqlctl.IReinitConfigResponse=} [properties] Properties to set + * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse instance */ - AutoIncrement.create = function create(properties) { - return new AutoIncrement(properties); + ReinitConfigResponse.create = function create(properties) { + return new ReinitConfigResponse(properties); }; /** - * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * Encodes the specified ReinitConfigResponse message. Does not implicitly {@link mysqlctl.ReinitConfigResponse.verify|verify} messages. * @function encode - * @memberof vschema.AutoIncrement + * @memberof mysqlctl.ReinitConfigResponse * @static - * @param {vschema.IAutoIncrement} message AutoIncrement 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 */ - AutoIncrement.encode = function encode(message, writer) { + ReinitConfigResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.column != null && Object.hasOwnProperty.call(message, "column")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.column); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sequence); return writer; }; /** - * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * Encodes the specified ReinitConfigResponse message, length delimited. Does not implicitly {@link mysqlctl.ReinitConfigResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.AutoIncrement + * @memberof mysqlctl.ReinitConfigResponse * @static - * @param {vschema.IAutoIncrement} message AutoIncrement 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 */ - AutoIncrement.encodeDelimited = function encodeDelimited(message, writer) { + ReinitConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AutoIncrement message from the specified reader or buffer. + * Decodes a ReinitConfigResponse message from the specified reader or buffer. * @function decode - * @memberof vschema.AutoIncrement + * @memberof mysqlctl.ReinitConfigResponse * @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 {mysqlctl.ReinitConfigResponse} ReinitConfigResponse * @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) { + ReinitConfigResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.AutoIncrement(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.ReinitConfigResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.column = reader.string(); - break; - case 2: - message.sequence = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -75109,117 +75960,93 @@ $root.vschema = (function() { }; /** - * Decodes an AutoIncrement message from the specified reader or buffer, length delimited. + * Decodes a ReinitConfigResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.AutoIncrement + * @memberof mysqlctl.ReinitConfigResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.AutoIncrement} AutoIncrement + * @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 */ - AutoIncrement.decodeDelimited = function decodeDelimited(reader) { + ReinitConfigResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AutoIncrement message. + * Verifies a ReinitConfigResponse message. * @function verify - * @memberof vschema.AutoIncrement + * @memberof mysqlctl.ReinitConfigResponse * @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) { + ReinitConfigResponse.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. + * Creates a ReinitConfigResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.AutoIncrement + * @memberof mysqlctl.ReinitConfigResponse * @static * @param {Object.} object Plain object - * @returns {vschema.AutoIncrement} AutoIncrement + * @returns {mysqlctl.ReinitConfigResponse} ReinitConfigResponse */ - AutoIncrement.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.AutoIncrement) + ReinitConfigResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.ReinitConfigResponse) return object; - var message = new $root.vschema.AutoIncrement(); - if (object.column != null) - message.column = String(object.column); - if (object.sequence != null) - message.sequence = String(object.sequence); - return message; + return new $root.mysqlctl.ReinitConfigResponse(); }; /** - * Creates a plain object from an AutoIncrement 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 vschema.AutoIncrement + * @memberof mysqlctl.ReinitConfigResponse * @static - * @param {vschema.AutoIncrement} message AutoIncrement + * @param {mysqlctl.ReinitConfigResponse} message ReinitConfigResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutoIncrement.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.column = ""; - object.sequence = ""; - } - if (message.column != null && message.hasOwnProperty("column")) - object.column = message.column; - if (message.sequence != null && message.hasOwnProperty("sequence")) - object.sequence = message.sequence; - return object; + ReinitConfigResponse.toObject = function toObject() { + return {}; }; /** - * Converts this AutoIncrement to JSON. + * Converts this ReinitConfigResponse to JSON. * @function toJSON - * @memberof vschema.AutoIncrement + * @memberof mysqlctl.ReinitConfigResponse * @instance * @returns {Object.} JSON object */ - AutoIncrement.prototype.toJSON = function toJSON() { + ReinitConfigResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AutoIncrement; + return ReinitConfigResponse; })(); - vschema.Column = (function() { + mysqlctl.RefreshConfigRequest = (function() { /** - * Properties of a Column. - * @memberof vschema - * @interface IColumn - * @property {string|null} [name] Column name - * @property {query.Type|null} [type] Column type + * Properties of a RefreshConfigRequest. + * @memberof mysqlctl + * @interface IRefreshConfigRequest */ /** - * Constructs a new Column. - * @memberof vschema - * @classdesc Represents a Column. - * @implements IColumn + * Constructs a new RefreshConfigRequest. + * @memberof mysqlctl + * @classdesc Represents a RefreshConfigRequest. + * @implements IRefreshConfigRequest * @constructor - * @param {vschema.IColumn=} [properties] Properties to set + * @param {mysqlctl.IRefreshConfigRequest=} [properties] Properties to set */ - function Column(properties) { + function RefreshConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75227,89 +76054,63 @@ $root.vschema = (function() { } /** - * Column name. - * @member {string} name - * @memberof vschema.Column - * @instance - */ - Column.prototype.name = ""; - - /** - * Column type. - * @member {query.Type} type - * @memberof vschema.Column - * @instance - */ - Column.prototype.type = 0; - - /** - * Creates a new Column instance using the specified properties. + * Creates a new RefreshConfigRequest instance using the specified properties. * @function create - * @memberof vschema.Column + * @memberof mysqlctl.RefreshConfigRequest * @static - * @param {vschema.IColumn=} [properties] Properties to set - * @returns {vschema.Column} Column instance + * @param {mysqlctl.IRefreshConfigRequest=} [properties] Properties to set + * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest instance */ - Column.create = function create(properties) { - return new Column(properties); + RefreshConfigRequest.create = function create(properties) { + return new RefreshConfigRequest(properties); }; /** - * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. + * Encodes the specified RefreshConfigRequest message. Does not implicitly {@link mysqlctl.RefreshConfigRequest.verify|verify} messages. * @function encode - * @memberof vschema.Column + * @memberof mysqlctl.RefreshConfigRequest * @static - * @param {vschema.IColumn} message Column message or plain object to encode + * @param {mysqlctl.IRefreshConfigRequest} message RefreshConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Column.encode = function encode(message, writer) { + RefreshConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); return writer; }; /** - * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. + * Encodes the specified RefreshConfigRequest message, length delimited. Does not implicitly {@link mysqlctl.RefreshConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Column + * @memberof mysqlctl.RefreshConfigRequest * @static - * @param {vschema.IColumn} message Column message or plain object to encode + * @param {mysqlctl.IRefreshConfigRequest} message RefreshConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Column.encodeDelimited = function encodeDelimited(message, writer) { + RefreshConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Column message from the specified reader or buffer. + * Decodes a RefreshConfigRequest message from the specified reader or buffer. * @function decode - * @memberof vschema.Column + * @memberof mysqlctl.RefreshConfigRequest * @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 {mysqlctl.RefreshConfigRequest} RefreshConfigRequest * @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) { + RefreshConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Column(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RefreshConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.type = reader.int32(); - break; default: reader.skipType(tag & 7); break; @@ -75319,281 +76120,455 @@ $root.vschema = (function() { }; /** - * Decodes a Column message from the specified reader or buffer, length delimited. + * Decodes a RefreshConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Column + * @memberof mysqlctl.RefreshConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Column} Column + * @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 */ - Column.decodeDelimited = function decodeDelimited(reader) { + RefreshConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Column message. + * Verifies a RefreshConfigRequest message. * @function verify - * @memberof vschema.Column + * @memberof mysqlctl.RefreshConfigRequest * @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) { + RefreshConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 257: - case 770: - case 259: - case 772: - case 261: - case 774: - case 263: - case 776: - case 265: - case 778: - case 1035: - case 1036: - case 2061: - case 2062: - case 2063: - case 2064: - case 785: - case 18: - case 6163: - case 10260: - case 6165: - case 10262: - case 6167: - case 10264: - case 2073: - case 2074: - case 2075: - case 28: - case 2077: - case 2078: - case 31: - break; - } return null; }; /** - * Creates a Column 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. * @function fromObject - * @memberof vschema.Column + * @memberof mysqlctl.RefreshConfigRequest * @static * @param {Object.} object Plain object - * @returns {vschema.Column} Column + * @returns {mysqlctl.RefreshConfigRequest} RefreshConfigRequest */ - Column.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Column) + RefreshConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.RefreshConfigRequest) return object; - var message = new $root.vschema.Column(); - if (object.name != null) - message.name = String(object.name); - switch (object.type) { - case "NULL_TYPE": - case 0: - message.type = 0; - break; - case "INT8": - case 257: - message.type = 257; - break; - case "UINT8": - case 770: - message.type = 770; - break; - case "INT16": - case 259: - message.type = 259; - break; - case "UINT16": - case 772: - message.type = 772; - break; - case "INT24": - case 261: - message.type = 261; - break; - case "UINT24": - case 774: - message.type = 774; - break; - case "INT32": - case 263: - message.type = 263; - break; - case "UINT32": - case 776: - message.type = 776; - break; - case "INT64": - case 265: - message.type = 265; - break; - case "UINT64": - case 778: - message.type = 778; - break; - case "FLOAT32": - case 1035: - message.type = 1035; - break; - case "FLOAT64": - case 1036: - message.type = 1036; - break; - case "TIMESTAMP": - case 2061: - message.type = 2061; - break; - case "DATE": - case 2062: - message.type = 2062; - break; - case "TIME": - case 2063: - message.type = 2063; - break; - case "DATETIME": - case 2064: - message.type = 2064; - break; - case "YEAR": - case 785: - message.type = 785; - break; - case "DECIMAL": - case 18: - message.type = 18; - break; - case "TEXT": - case 6163: - message.type = 6163; - break; - case "BLOB": - case 10260: - message.type = 10260; - break; - case "VARCHAR": - case 6165: - message.type = 6165; - break; - case "VARBINARY": - case 10262: - message.type = 10262; - break; - case "CHAR": - case 6167: - message.type = 6167; - break; - case "BINARY": - case 10264: - message.type = 10264; - break; - case "BIT": - case 2073: - message.type = 2073; - break; - case "ENUM": - case 2074: - message.type = 2074; - break; - case "SET": - case 2075: - message.type = 2075; - break; - case "TUPLE": - case 28: - message.type = 28; - break; - case "GEOMETRY": - case 2077: - message.type = 2077; - break; - case "JSON": - case 2078: - message.type = 2078; - break; - case "EXPRESSION": - case 31: - message.type = 31; - break; + return new $root.mysqlctl.RefreshConfigRequest(); + }; + + /** + * 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 + */ + RefreshConfigRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this RefreshConfigRequest to JSON. + * @function toJSON + * @memberof mysqlctl.RefreshConfigRequest + * @instance + * @returns {Object.} JSON object + */ + RefreshConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return RefreshConfigRequest; + })(); + + mysqlctl.RefreshConfigResponse = (function() { + + /** + * Properties of a RefreshConfigResponse. + * @memberof mysqlctl + * @interface IRefreshConfigResponse + */ + + /** + * Constructs a new RefreshConfigResponse. + * @memberof mysqlctl + * @classdesc Represents a RefreshConfigResponse. + * @implements IRefreshConfigResponse + * @constructor + * @param {mysqlctl.IRefreshConfigResponse=} [properties] Properties to set + */ + function RefreshConfigResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new RefreshConfigResponse instance using the specified properties. + * @function create + * @memberof mysqlctl.RefreshConfigResponse + * @static + * @param {mysqlctl.IRefreshConfigResponse=} [properties] Properties to set + * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse instance + */ + RefreshConfigResponse.create = function create(properties) { + return new RefreshConfigResponse(properties); + }; + + /** + * Encodes the specified RefreshConfigResponse message. Does not implicitly {@link mysqlctl.RefreshConfigResponse.verify|verify} messages. + * @function encode + * @memberof mysqlctl.RefreshConfigResponse + * @static + * @param {mysqlctl.IRefreshConfigResponse} message RefreshConfigResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RefreshConfigResponse.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. + * @function encodeDelimited + * @memberof mysqlctl.RefreshConfigResponse + * @static + * @param {mysqlctl.IRefreshConfigResponse} message RefreshConfigResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RefreshConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RefreshConfigResponse message from the specified reader or buffer. + * @function decode + * @memberof mysqlctl.RefreshConfigResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @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 + */ + RefreshConfigResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.RefreshConfigResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } } return message; }; /** - * Creates a plain object from a Column message. Also converts values to other types if specified. + * Decodes a RefreshConfigResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof mysqlctl.RefreshConfigResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + RefreshConfigResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RefreshConfigResponse message. + * @function verify + * @memberof mysqlctl.RefreshConfigResponse + * @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) { + 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. + * @function fromObject + * @memberof mysqlctl.RefreshConfigResponse + * @static + * @param {Object.} object Plain object + * @returns {mysqlctl.RefreshConfigResponse} RefreshConfigResponse + */ + RefreshConfigResponse.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.RefreshConfigResponse) + return object; + return new $root.mysqlctl.RefreshConfigResponse(); + }; + + /** + * Creates a plain object from a RefreshConfigResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.Column + * @memberof mysqlctl.RefreshConfigResponse * @static - * @param {vschema.Column} message Column + * @param {mysqlctl.RefreshConfigResponse} message RefreshConfigResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Column.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.type = options.enums === String ? "NULL_TYPE" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.query.Type[message.type] : message.type; - return object; + RefreshConfigResponse.toObject = function toObject() { + return {}; }; /** - * Converts this Column to JSON. + * Converts this RefreshConfigResponse to JSON. * @function toJSON - * @memberof vschema.Column + * @memberof mysqlctl.RefreshConfigResponse * @instance * @returns {Object.} JSON object */ - Column.prototype.toJSON = function toJSON() { + RefreshConfigResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Column; + return RefreshConfigResponse; })(); - vschema.SrvVSchema = (function() { + mysqlctl.MysqlCtl = (function() { /** - * Properties of a SrvVSchema. - * @memberof vschema - * @interface ISrvVSchema - * @property {Object.|null} [keyspaces] SrvVSchema keyspaces - * @property {vschema.IRoutingRules|null} [routing_rules] SrvVSchema routing_rules + * 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 SrvVSchema. - * @memberof vschema - * @classdesc Represents a SrvVSchema. - * @implements ISrvVSchema + * 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); + }; + + /** + * 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#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 + */ + + return MysqlCtl; + })(); + + mysqlctl.BackupInfo = (function() { + + /** + * Properties of a BackupInfo. + * @memberof mysqlctl + * @interface IBackupInfo + * @property {string|null} [name] BackupInfo name + * @property {string|null} [directory] BackupInfo directory + */ + + /** + * Constructs a new BackupInfo. + * @memberof mysqlctl + * @classdesc Represents a BackupInfo. + * @implements IBackupInfo * @constructor - * @param {vschema.ISrvVSchema=} [properties] Properties to set + * @param {mysqlctl.IBackupInfo=} [properties] Properties to set */ - function SrvVSchema(properties) { - this.keyspaces = {}; + function BackupInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75601,110 +76576,88 @@ $root.vschema = (function() { } /** - * SrvVSchema keyspaces. - * @member {Object.} keyspaces - * @memberof vschema.SrvVSchema + * BackupInfo name. + * @member {string} name + * @memberof mysqlctl.BackupInfo * @instance */ - SrvVSchema.prototype.keyspaces = $util.emptyObject; + BackupInfo.prototype.name = ""; /** - * SrvVSchema routing_rules. - * @member {vschema.IRoutingRules|null|undefined} routing_rules - * @memberof vschema.SrvVSchema + * BackupInfo directory. + * @member {string} directory + * @memberof mysqlctl.BackupInfo * @instance */ - SrvVSchema.prototype.routing_rules = null; + BackupInfo.prototype.directory = ""; /** - * Creates a new SrvVSchema instance using the specified properties. + * Creates a new BackupInfo instance using the specified properties. * @function create - * @memberof vschema.SrvVSchema + * @memberof mysqlctl.BackupInfo * @static - * @param {vschema.ISrvVSchema=} [properties] Properties to set - * @returns {vschema.SrvVSchema} SrvVSchema instance + * @param {mysqlctl.IBackupInfo=} [properties] Properties to set + * @returns {mysqlctl.BackupInfo} BackupInfo instance */ - SrvVSchema.create = function create(properties) { - return new SrvVSchema(properties); + BackupInfo.create = function create(properties) { + return new BackupInfo(properties); }; /** - * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * Encodes the specified BackupInfo message. Does not implicitly {@link mysqlctl.BackupInfo.verify|verify} messages. * @function encode - * @memberof vschema.SrvVSchema + * @memberof mysqlctl.BackupInfo * @static - * @param {vschema.ISrvVSchema} message SrvVSchema 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 */ - SrvVSchema.encode = function encode(message, writer) { + BackupInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspaces != null && Object.hasOwnProperty.call(message, "keyspaces")) - for (var keys = Object.keys(message.keyspaces), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vschema.Keyspace.encode(message.keyspaces[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) - $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.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); return writer; }; /** - * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * Encodes the specified BackupInfo message, length delimited. Does not implicitly {@link mysqlctl.BackupInfo.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.SrvVSchema + * @memberof mysqlctl.BackupInfo * @static - * @param {vschema.ISrvVSchema} message SrvVSchema 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 */ - SrvVSchema.encodeDelimited = function encodeDelimited(message, writer) { + BackupInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SrvVSchema message from the specified reader or buffer. + * Decodes a BackupInfo message from the specified reader or buffer. * @function decode - * @memberof vschema.SrvVSchema + * @memberof mysqlctl.BackupInfo * @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 {mysqlctl.BackupInfo} BackupInfo * @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) { + BackupInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.SrvVSchema(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.mysqlctl.BackupInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (message.keyspaces === $util.emptyObject) - message.keyspaces = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.Keyspace.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.keyspaces[key] = value; + message.name = reader.string(); break; case 2: - message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); + message.directory = reader.string(); break; default: reader.skipType(tag & 7); @@ -75715,123 +76668,99 @@ $root.vschema = (function() { }; /** - * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. + * Decodes a BackupInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.SrvVSchema + * @memberof mysqlctl.BackupInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.SrvVSchema} SrvVSchema + * @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 */ - SrvVSchema.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 SrvVSchema message. + * Verifies a BackupInfo message. * @function verify - * @memberof vschema.SrvVSchema + * @memberof mysqlctl.BackupInfo * @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) { + BackupInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { - if (!$util.isObject(message.keyspaces)) - return "keyspaces: object expected"; - var key = Object.keys(message.keyspaces); - for (var i = 0; i < key.length; ++i) { - var error = $root.vschema.Keyspace.verify(message.keyspaces[key[i]]); - if (error) - return "keyspaces." + error; - } - } - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { - var error = $root.vschema.RoutingRules.verify(message.routing_rules); - if (error) - return "routing_rules." + error; - } + if (message.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"; return null; }; /** - * Creates a SrvVSchema 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 vschema.SrvVSchema + * @memberof mysqlctl.BackupInfo * @static * @param {Object.} object Plain object - * @returns {vschema.SrvVSchema} SrvVSchema + * @returns {mysqlctl.BackupInfo} BackupInfo */ - SrvVSchema.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.SrvVSchema) + BackupInfo.fromObject = function fromObject(object) { + if (object instanceof $root.mysqlctl.BackupInfo) return object; - var message = new $root.vschema.SrvVSchema(); - if (object.keyspaces) { - if (typeof object.keyspaces !== "object") - throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); - message.keyspaces = {}; - for (var keys = Object.keys(object.keyspaces), i = 0; i < keys.length; ++i) { - if (typeof object.keyspaces[keys[i]] !== "object") - throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); - message.keyspaces[keys[i]] = $root.vschema.Keyspace.fromObject(object.keyspaces[keys[i]]); - } - } - if (object.routing_rules != null) { - if (typeof object.routing_rules !== "object") - throw TypeError(".vschema.SrvVSchema.routing_rules: object expected"); - message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); - } + var message = new $root.mysqlctl.BackupInfo(); + if (object.name != null) + message.name = String(object.name); + if (object.directory != null) + message.directory = String(object.directory); return message; }; /** - * Creates a plain object from a SrvVSchema 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 vschema.SrvVSchema + * @memberof mysqlctl.BackupInfo * @static - * @param {vschema.SrvVSchema} message SrvVSchema + * @param {mysqlctl.BackupInfo} message BackupInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SrvVSchema.toObject = function toObject(message, options) { + BackupInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.keyspaces = {}; - if (options.defaults) - object.routing_rules = null; - var keys2; - if (message.keyspaces && (keys2 = Object.keys(message.keyspaces)).length) { - object.keyspaces = {}; - for (var j = 0; j < keys2.length; ++j) - object.keyspaces[keys2[j]] = $root.vschema.Keyspace.toObject(message.keyspaces[keys2[j]], options); + if (options.defaults) { + object.name = ""; + object.directory = ""; } - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) - object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.directory != null && message.hasOwnProperty("directory")) + object.directory = message.directory; return object; }; /** - * Converts this SrvVSchema to JSON. + * Converts this BackupInfo to JSON. * @function toJSON - * @memberof vschema.SrvVSchema + * @memberof mysqlctl.BackupInfo * @instance * @returns {Object.} JSON object */ - SrvVSchema.prototype.toJSON = function toJSON() { + BackupInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SrvVSchema; + return BackupInfo; })(); - return vschema; + return mysqlctl; })(); module.exports = $root; From 38b48d7596ecc0b37d20add42ad69c4d6b3ea4aa Mon Sep 17 00:00:00 2001 From: Andrew Mason Date: Sat, 6 Mar 2021 09:58:55 -0500 Subject: [PATCH 3/7] Implement GetVSchema and GetVSchemas endpoints Signed-off-by: Andrew Mason --- go/vt/vtadmin/api.go | 98 +++++++++++++++++++++++++++++++- go/vt/vtadmin/cluster/cluster.go | 26 +++++++++ go/vt/vtadmin/cluster/trace.go | 25 ++++++++ 3 files changed, 147 insertions(+), 2 deletions(-) create mode 100644 go/vt/vtadmin/cluster/trace.go diff --git a/go/vt/vtadmin/api.go b/go/vt/vtadmin/api.go index 3943d3e0131..3132c83ab40 100644 --- a/go/vt/vtadmin/api.go +++ b/go/vt/vtadmin/api.go @@ -658,12 +658,106 @@ func (api *API) getClustersForRequest(ids []string) ([]*cluster.Cluster, []strin // GetVSchema is part of the vtadminpb.VTAdminServer interface. func (api *API) GetVSchema(ctx context.Context, req *vtadminpb.GetVSchemaRequest) (*vtadminpb.VSchema, error) { - panic("unimplemented!") + span, ctx := trace.NewSpan(ctx, "API.GetVSchema") + defer span.Finish() + + c, ok := api.clusterMap[req.ClusterId] + if !ok { + return nil, fmt.Errorf("%w: no such cluster %s", errors.ErrUnsupportedCluster, req.ClusterId) + } + + cluster.AnnotateSpan(c, span) + + if err := c.Vtctld.Dial(ctx); err != nil { + return nil, err + } + + return c.GetVSchema(ctx, req.Keyspace) } // GetVSchemas is part of the vtadminpb.VTAdminServer interface. func (api *API) GetVSchemas(ctx context.Context, req *vtadminpb.GetVSchemasRequest) (*vtadminpb.GetVSchemasResponse, error) { - panic("unimplemented!") + span, ctx := trace.NewSpan(ctx, "API.GetVSchemas") + defer span.Finish() + + clusters, _ := api.getClustersForRequest(req.ClusterIds) + + var ( + m sync.Mutex + wg sync.WaitGroup + rec concurrency.AllErrorRecorder + vschemas []*vtadminpb.VSchema + ) + + for _, c := range clusters { + wg.Add(1) + + go func(c *cluster.Cluster) { + defer wg.Done() + + span, ctx := trace.NewSpan(ctx, "API.getVSchemasForCluster") + defer span.Finish() + + cluster.AnnotateSpan(c, span) + + if err := c.Vtctld.Dial(ctx); err != nil { + rec.RecordError(fmt.Errorf("Vtctld.Dial(cluster = %s): %w", c.ID, err)) + return + } + + keyspaces, err := c.Vtctld.GetKeyspaces(ctx, &vtctldatapb.GetKeyspacesRequest{}) + if err != nil { + rec.RecordError(fmt.Errorf("GetKeyspaces(cluster = %s): %w", c.ID, err)) + return + } + + var ( + clusterM sync.Mutex + clusterWG sync.WaitGroup + clusterRec concurrency.ErrorRecorder + clusterVSchemas = make([]*vtadminpb.VSchema, 0, len(keyspaces.Keyspaces)) + ) + + for _, keyspace := range keyspaces.Keyspaces { + clusterWG.Add(1) + + go func(keyspace *vtctldatapb.Keyspace) { + defer clusterWG.Done() + + vschema, err := c.GetVSchema(ctx, keyspace.Name) + if err != nil { + clusterRec.RecordError(fmt.Errorf("GetVSchema(keyspace = %s): %w", keyspace.Name, err)) + return + } + + clusterM.Lock() + clusterVSchemas = append(clusterVSchemas, vschema) + clusterM.Unlock() + }(keyspace) + } + + clusterWG.Wait() + + if clusterRec.HasErrors() { + rec.RecordError(fmt.Errorf("GetVSchemas(cluster = %s): %w", c.ID, clusterRec.Error())) + return + } + + m.Lock() + vschemas = append(vschemas, clusterVSchemas...) + m.Unlock() + }(c) + } + + wg.Wait() + + if rec.HasErrors() { + return nil, rec.Error() + } + + return &vtadminpb.GetVSchemasResponse{ + VSchemas: vschemas, + }, nil } // VTExplain is part of the vtadminpb.VTAdminServer interface. diff --git a/go/vt/vtadmin/cluster/cluster.go b/go/vt/vtadmin/cluster/cluster.go index cce27e34b6c..5441fa6f540 100644 --- a/go/vt/vtadmin/cluster/cluster.go +++ b/go/vt/vtadmin/cluster/cluster.go @@ -22,6 +22,7 @@ import ( "fmt" "time" + "vitess.io/vitess/go/trace" "vitess.io/vitess/go/vt/log" "vitess.io/vitess/go/vt/logutil" "vitess.io/vitess/go/vt/topo/topoproto" @@ -246,6 +247,31 @@ func (c *Cluster) GetSchema(ctx context.Context, req *vtctldatapb.GetSchemaReque }, nil } +// GetVSchema returns the vschema for a given keyspace in this cluster. The +// caller is responsible for making at least one call to c.Vtctld.Dial prior to +// calling this function. +func (c *Cluster) GetVSchema(ctx context.Context, keyspace string) (*vtadminpb.VSchema, error) { + span, ctx := trace.NewSpan(ctx, "Cluster.GetVSchema") + defer span.Finish() + + AnnotateSpan(c, span) + span.Annotate("keyspace", keyspace) + + vschema, err := c.Vtctld.GetVSchema(ctx, &vtctldatapb.GetVSchemaRequest{ + Keyspace: keyspace, + }) + + if err != nil { + return nil, err + } + + return &vtadminpb.VSchema{ + Cluster: c.ToProto(), + Name: keyspace, + VSchema: vschema.VSchema, + }, nil +} + // FindTablet returns the first tablet in a given cluster that satisfies the filter function. func (c *Cluster) FindTablet(ctx context.Context, filter func(*vtadminpb.Tablet) bool) (*vtadminpb.Tablet, error) { tablets, err := c.FindTablets(ctx, filter, 1) diff --git a/go/vt/vtadmin/cluster/trace.go b/go/vt/vtadmin/cluster/trace.go new file mode 100644 index 00000000000..e45e5c24587 --- /dev/null +++ b/go/vt/vtadmin/cluster/trace.go @@ -0,0 +1,25 @@ +/* +Copyright 2021 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 cluster + +import "vitess.io/vitess/go/trace" + +// AnnotateSpan adds the cluster_id and cluster_name to a span. +func AnnotateSpan(c *Cluster, span trace.Span) { + span.Annotate("cluster_id", c.ID) + span.Annotate("cluster_name", c.Name) +} From 6c8af8b087ffcfe0d11590b95d0791e246c4cc06 Mon Sep 17 00:00:00 2001 From: Andrew Mason Date: Sat, 6 Mar 2021 11:35:24 -0500 Subject: [PATCH 4/7] Add tests for `Cluster.GetVSchema` Signed-off-by: Andrew Mason --- go/vt/vtadmin/cluster/cluster_test.go | 93 ++++++++++++++++++++++++++ go/vt/vtadmin/testutil/vtctldclient.go | 17 +++++ 2 files changed, 110 insertions(+) diff --git a/go/vt/vtadmin/cluster/cluster_test.go b/go/vt/vtadmin/cluster/cluster_test.go index d374234ab1b..6c2dccf9779 100644 --- a/go/vt/vtadmin/cluster/cluster_test.go +++ b/go/vt/vtadmin/cluster/cluster_test.go @@ -36,6 +36,7 @@ import ( tabletmanagerdatapb "vitess.io/vitess/go/vt/proto/tabletmanagerdata" topodatapb "vitess.io/vitess/go/vt/proto/topodata" + vschemapb "vitess.io/vitess/go/vt/proto/vschema" vtadminpb "vitess.io/vitess/go/vt/proto/vtadmin" vtctldatapb "vitess.io/vitess/go/vt/proto/vtctldata" ) @@ -252,6 +253,98 @@ func TestGetSchema(t *testing.T) { }) } +func TestGetVSchema(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + cfg testutil.TestClusterConfig + keyspace string + expected *vtadminpb.VSchema + shouldErr bool + }{ + { + name: "success", + cfg: testutil.TestClusterConfig{ + Cluster: &vtadminpb.Cluster{ + Id: "c0", + Name: "cluster0", + }, + VtctldClient: &testutil.VtctldClient{ + GetVSchemaResults: map[string]struct { + Response *vtctldatapb.GetVSchemaResponse + Error error + }{ + "testkeyspace": { + Response: &vtctldatapb.GetVSchemaResponse{ + VSchema: &vschemapb.Keyspace{Sharded: true}, + }, + }, + }, + }, + }, + keyspace: "testkeyspace", + expected: &vtadminpb.VSchema{ + Cluster: &vtadminpb.Cluster{ + Id: "c0", + Name: "cluster0", + }, + Name: "testkeyspace", + VSchema: &vschemapb.Keyspace{Sharded: true}, + }, + shouldErr: false, + }, + { + name: "error", + cfg: testutil.TestClusterConfig{ + Cluster: &vtadminpb.Cluster{ + Id: "c0", + Name: "cluster0", + }, + VtctldClient: &testutil.VtctldClient{ + GetVSchemaResults: map[string]struct { + Response *vtctldatapb.GetVSchemaResponse + Error error + }{ + "testkeyspace": { + Response: &vtctldatapb.GetVSchemaResponse{ + VSchema: &vschemapb.Keyspace{Sharded: true}, + }, + }, + }, + }, + }, + keyspace: "notfound", + expected: nil, + shouldErr: true, + }, + } + + ctx := context.Background() + + for _, tt := range tests { + tt := tt + + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + cluster := testutil.BuildCluster(tt.cfg) + err := cluster.Vtctld.Dial(ctx) + require.NoError(t, err, "could not dial test vtctld") + + vschema, err := cluster.GetVSchema(ctx, tt.keyspace) + if tt.shouldErr { + assert.Error(t, err) + + return + } + + assert.NoError(t, err) + assert.Equal(t, tt.expected, vschema) + }) + } +} + func TestFindTablets(t *testing.T) { tests := []struct { name string diff --git a/go/vt/vtadmin/testutil/vtctldclient.go b/go/vt/vtadmin/testutil/vtctldclient.go index c93354a6a72..b957bbd873b 100644 --- a/go/vt/vtadmin/testutil/vtctldclient.go +++ b/go/vt/vtadmin/testutil/vtctldclient.go @@ -42,6 +42,10 @@ type VtctldClient struct { Response *vtctldatapb.GetSchemaResponse Error error } + GetVSchemaResults map[string]struct { + Response *vtctldatapb.GetVSchemaResponse + Error error + } } // Compile-time type assertion to make sure we haven't overriden a method @@ -77,3 +81,16 @@ func (fake *VtctldClient) GetSchema(ctx context.Context, req *vtctldatapb.GetSch return nil, fmt.Errorf("%w: no result set for tablet alias %s", assert.AnError, key) } + +// GetVSchema is part of the vtctldclient.VtctldClient interface. +func (fake *VtctldClient) GetVSchema(ctx context.Context, req *vtctldatapb.GetVSchemaRequest, opts ...grpc.CallOption) (*vtctldatapb.GetVSchemaResponse, error) { + if fake.GetVSchemaResults == nil { + return nil, fmt.Errorf("%w: GetVSchemaResults not set of fake vtctldclient", assert.AnError) + } + + if result, ok := fake.GetVSchemaResults[req.Keyspace]; ok { + return result.Response, result.Error + } + + return nil, fmt.Errorf("%w: no result set for keyspace %s", assert.AnError, req.Keyspace) +} From 50790c0ee7a9783998d0ee51ed9b9e037a2075e5 Mon Sep 17 00:00:00 2001 From: Andrew Mason Date: Sat, 6 Mar 2021 16:08:01 -0500 Subject: [PATCH 5/7] Add "zero valid clusters" check, and fix type from interface to struct Signed-off-by: Andrew Mason --- go/vt/vtadmin/api.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/go/vt/vtadmin/api.go b/go/vt/vtadmin/api.go index 3132c83ab40..48fbc83d2d7 100644 --- a/go/vt/vtadmin/api.go +++ b/go/vt/vtadmin/api.go @@ -689,6 +689,14 @@ func (api *API) GetVSchemas(ctx context.Context, req *vtadminpb.GetVSchemasReque vschemas []*vtadminpb.VSchema ) + if len(clusters) == 0 { + if len(req.ClusterIds) > 0 { + return nil, fmt.Errorf("%w: %s", errors.ErrUnsupportedCluster, strings.Join(req.ClusterIds, ", ")) + } + + return &vtadminpb.GetVSchemasResponse{VSchemas: []*vtadminpb.VSchema{}}, nil + } + for _, c := range clusters { wg.Add(1) @@ -714,7 +722,7 @@ func (api *API) GetVSchemas(ctx context.Context, req *vtadminpb.GetVSchemasReque var ( clusterM sync.Mutex clusterWG sync.WaitGroup - clusterRec concurrency.ErrorRecorder + clusterRec concurrency.AllErrorRecorder clusterVSchemas = make([]*vtadminpb.VSchema, 0, len(keyspaces.Keyspaces)) ) From f1fae61e5417f6106b2d69b074781a0e52c1f2a2 Mon Sep 17 00:00:00 2001 From: Andrew Mason Date: Sat, 6 Mar 2021 16:09:20 -0500 Subject: [PATCH 6/7] Add GetVSchema/GetVSchemas tests Signed-off-by: Andrew Mason --- go/vt/vtadmin/api_test.go | 463 ++++++++++++++++++++++++++++++ go/vt/vtadmin/testutil/cluster.go | 12 + 2 files changed, 475 insertions(+) diff --git a/go/vt/vtadmin/api_test.go b/go/vt/vtadmin/api_test.go index c6ed1ce609c..cf003954c07 100644 --- a/go/vt/vtadmin/api_test.go +++ b/go/vt/vtadmin/api_test.go @@ -2067,6 +2067,469 @@ func TestGetTablet(t *testing.T) { } } +func TestGetVSchema(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + clusterCfg vtadmintestutil.TestClusterConfig + req *vtadminpb.GetVSchemaRequest + expected *vtadminpb.VSchema + shouldErr bool + }{ + { + name: "success", + clusterCfg: vtadmintestutil.TestClusterConfig{ + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + VtctldClient: &vtadmintestutil.VtctldClient{ + GetVSchemaResults: map[string]struct { + Response *vtctldatapb.GetVSchemaResponse + Error error + }{ + "testkeyspace": { + Response: &vtctldatapb.GetVSchemaResponse{ + VSchema: &vschemapb.Keyspace{ + Sharded: true, + Vindexes: map[string]*vschemapb.Vindex{ + "hash": { + Type: "md5hash", + }, + }, + }, + }, + }, + }, + }, + }, + req: &vtadminpb.GetVSchemaRequest{ + ClusterId: "c1", + Keyspace: "testkeyspace", + }, + expected: &vtadminpb.VSchema{ + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + Name: "testkeyspace", + VSchema: &vschemapb.Keyspace{ + Sharded: true, + Vindexes: map[string]*vschemapb.Vindex{ + "hash": { + Type: "md5hash", + }, + }, + }, + }, + shouldErr: false, + }, + { + name: "no vschema for keyspace", + clusterCfg: vtadmintestutil.TestClusterConfig{ + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + VtctldClient: &vtadmintestutil.VtctldClient{ + GetVSchemaResults: map[string]struct { + Response *vtctldatapb.GetVSchemaResponse + Error error + }{ + "testkeyspace": { + Response: &vtctldatapb.GetVSchemaResponse{ + VSchema: &vschemapb.Keyspace{ + Sharded: true, + Vindexes: map[string]*vschemapb.Vindex{ + "hash": { + Type: "md5hash", + }, + }, + }, + }, + }, + }, + }, + }, + req: &vtadminpb.GetVSchemaRequest{ + ClusterId: "c1", + Keyspace: "otherkeyspace", + }, + expected: nil, + shouldErr: true, + }, + { + name: "cluster not found", + clusterCfg: vtadmintestutil.TestClusterConfig{ + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + }, + req: &vtadminpb.GetVSchemaRequest{ + ClusterId: "c2", + Keyspace: "testkeyspace", + }, + expected: nil, + shouldErr: true, + }, + } + + ctx := context.Background() + + for _, tt := range tests { + tt := tt + + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + clusters := []*cluster.Cluster{vtadmintestutil.BuildCluster(tt.clusterCfg)} + api := NewAPI(clusters, grpcserver.Options{}, http.Options{}) + + resp, err := api.GetVSchema(ctx, tt.req) + if tt.shouldErr { + assert.Error(t, err) + + return + } + + assert.NoError(t, err) + assert.Equal(t, tt.expected, resp) + }) + } +} + +func TestGetVSchemas(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + clusterCfgs []vtadmintestutil.TestClusterConfig + req *vtadminpb.GetVSchemasRequest + expected *vtadminpb.GetVSchemasResponse + shouldErr bool + }{ + { + name: "success", + clusterCfgs: []vtadmintestutil.TestClusterConfig{ + { + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + VtctldClient: &vtadmintestutil.VtctldClient{ + GetKeyspacesResults: struct { + Keyspaces []*vtctldatapb.Keyspace + Error error + }{ + Keyspaces: []*vtctldatapb.Keyspace{ + { + Name: "testkeyspace", + }, + }, + }, + GetVSchemaResults: map[string]struct { + Response *vtctldatapb.GetVSchemaResponse + Error error + }{ + "testkeyspace": { + Response: &vtctldatapb.GetVSchemaResponse{ + VSchema: &vschemapb.Keyspace{}, + }, + }, + }, + }, + }, + { + Cluster: &vtadminpb.Cluster{ + Id: "c2", + Name: "cluster2", + }, + VtctldClient: &vtadmintestutil.VtctldClient{ + GetKeyspacesResults: struct { + Keyspaces []*vtctldatapb.Keyspace + Error error + }{ + Keyspaces: []*vtctldatapb.Keyspace{ + { + Name: "k2", + }, + }, + }, + GetVSchemaResults: map[string]struct { + Response *vtctldatapb.GetVSchemaResponse + Error error + }{ + "k2": { + Response: &vtctldatapb.GetVSchemaResponse{ + VSchema: &vschemapb.Keyspace{}, + }, + }, + }, + }, + }, + }, + req: &vtadminpb.GetVSchemasRequest{}, + expected: &vtadminpb.GetVSchemasResponse{ + VSchemas: []*vtadminpb.VSchema{ + { + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + Name: "testkeyspace", + VSchema: &vschemapb.Keyspace{}, + }, + { + Cluster: &vtadminpb.Cluster{ + Id: "c2", + Name: "cluster2", + }, + Name: "k2", + VSchema: &vschemapb.Keyspace{}, + }, + }, + }, + shouldErr: false, + }, + { + name: "requesting specific clusters", + clusterCfgs: []vtadmintestutil.TestClusterConfig{ + { + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + VtctldClient: &vtadmintestutil.VtctldClient{ + GetKeyspacesResults: struct { + Keyspaces []*vtctldatapb.Keyspace + Error error + }{ + Keyspaces: []*vtctldatapb.Keyspace{ + { + Name: "testkeyspace", + }, + }, + }, + GetVSchemaResults: map[string]struct { + Response *vtctldatapb.GetVSchemaResponse + Error error + }{ + "testkeyspace": { + Response: &vtctldatapb.GetVSchemaResponse{ + VSchema: &vschemapb.Keyspace{}, + }, + }, + }, + }, + }, + { + Cluster: &vtadminpb.Cluster{ + Id: "c2", + Name: "cluster2", + }, + VtctldClient: &vtadmintestutil.VtctldClient{ + GetKeyspacesResults: struct { + Keyspaces []*vtctldatapb.Keyspace + Error error + }{ + Keyspaces: []*vtctldatapb.Keyspace{ + { + Name: "k2", + }, + }, + }, + GetVSchemaResults: map[string]struct { + Response *vtctldatapb.GetVSchemaResponse + Error error + }{ + "k2": { + Response: &vtctldatapb.GetVSchemaResponse{ + VSchema: &vschemapb.Keyspace{}, + }, + }, + }, + }, + }, + }, + req: &vtadminpb.GetVSchemasRequest{ + ClusterIds: []string{"c2"}, + }, + expected: &vtadminpb.GetVSchemasResponse{ + VSchemas: []*vtadminpb.VSchema{ + { + Cluster: &vtadminpb.Cluster{ + Id: "c2", + Name: "cluster2", + }, + Name: "k2", + VSchema: &vschemapb.Keyspace{}, + }, + }, + }, + shouldErr: false, + }, + { + name: "GetKeyspaces failure", + clusterCfgs: []vtadmintestutil.TestClusterConfig{ + { + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + VtctldClient: &vtadmintestutil.VtctldClient{ + GetKeyspacesResults: struct { + Keyspaces []*vtctldatapb.Keyspace + Error error + }{ + Keyspaces: []*vtctldatapb.Keyspace{ + { + Name: "testkeyspace", + }, + }, + }, + GetVSchemaResults: map[string]struct { + Response *vtctldatapb.GetVSchemaResponse + Error error + }{ + "testkeyspace": { + Response: &vtctldatapb.GetVSchemaResponse{ + VSchema: &vschemapb.Keyspace{}, + }, + }, + }, + }, + }, + { + Cluster: &vtadminpb.Cluster{ + Id: "c2", + Name: "cluster2", + }, + VtctldClient: &vtadmintestutil.VtctldClient{ + GetKeyspacesResults: struct { + Keyspaces []*vtctldatapb.Keyspace + Error error + }{ + Error: assert.AnError, + }, + }, + }, + }, + req: &vtadminpb.GetVSchemasRequest{}, + expected: nil, + shouldErr: true, + }, + { + name: "GetVSchema failure", + clusterCfgs: []vtadmintestutil.TestClusterConfig{ + { + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + VtctldClient: &vtadmintestutil.VtctldClient{ + GetKeyspacesResults: struct { + Keyspaces []*vtctldatapb.Keyspace + Error error + }{ + Keyspaces: []*vtctldatapb.Keyspace{ + { + Name: "testkeyspace", + }, + }, + }, + GetVSchemaResults: map[string]struct { + Response *vtctldatapb.GetVSchemaResponse + Error error + }{ + "testkeyspace": { + Error: assert.AnError, + }, + }, + }, + }, + { + Cluster: &vtadminpb.Cluster{ + Id: "c2", + Name: "cluster2", + }, + VtctldClient: &vtadmintestutil.VtctldClient{ + GetKeyspacesResults: struct { + Keyspaces []*vtctldatapb.Keyspace + Error error + }{ + Keyspaces: []*vtctldatapb.Keyspace{ + { + Name: "k2", + }, + }, + }, + GetVSchemaResults: map[string]struct { + Response *vtctldatapb.GetVSchemaResponse + Error error + }{ + "k2": { + Response: &vtctldatapb.GetVSchemaResponse{ + VSchema: &vschemapb.Keyspace{}, + }, + }, + }, + }, + }, + }, + req: &vtadminpb.GetVSchemasRequest{}, + expected: nil, + shouldErr: true, + }, + { + name: "no clusters specified", + clusterCfgs: []vtadmintestutil.TestClusterConfig{}, + req: &vtadminpb.GetVSchemasRequest{}, + expected: &vtadminpb.GetVSchemasResponse{ + VSchemas: []*vtadminpb.VSchema{}, + }, + shouldErr: false, + }, + { + name: "requested invalid cluster", + clusterCfgs: []vtadmintestutil.TestClusterConfig{}, + req: &vtadminpb.GetVSchemasRequest{ + ClusterIds: []string{"c1"}, + }, + expected: nil, + shouldErr: true, + }, + } + + ctx := context.Background() + + for _, tt := range tests { + tt := tt + + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + if tt.req == nil { + t.SkipNow() + } + + clusters := vtadmintestutil.BuildClusters(tt.clusterCfgs...) + api := NewAPI(clusters, grpcserver.Options{}, http.Options{}) + + resp, err := api.GetVSchemas(ctx, tt.req) + if tt.shouldErr { + assert.Error(t, err) + + return + } + + assert.NoError(t, err) + assert.ElementsMatch(t, tt.expected.VSchemas, resp.VSchemas) + }) + } +} + func TestVTExplain(t *testing.T) { tests := []struct { name string diff --git a/go/vt/vtadmin/testutil/cluster.go b/go/vt/vtadmin/testutil/cluster.go index d8e8a04eac3..3bf228e8390 100644 --- a/go/vt/vtadmin/testutil/cluster.go +++ b/go/vt/vtadmin/testutil/cluster.go @@ -103,3 +103,15 @@ func BuildCluster(cfg TestClusterConfig) *cluster.Cluster { Vtctld: vtctld, } } + +// BuildClusters is a helper for building multiple clusters from a slice of +// TestClusterConfigs. +func BuildClusters(cfgs ...TestClusterConfig) []*cluster.Cluster { + clusters := make([]*cluster.Cluster, len(cfgs)) + + for i, cfg := range cfgs { + clusters[i] = BuildCluster(cfg) + } + + return clusters +} From 074325686169f94991b519fe2259ab32b15925da Mon Sep 17 00:00:00 2001 From: Andrew Mason Date: Sat, 6 Mar 2021 16:12:17 -0500 Subject: [PATCH 7/7] Implement http wrappers for GetVSchema/GetVSchemas Signed-off-by: Andrew Mason --- go/vt/vtadmin/api.go | 4 ++-- go/vt/vtadmin/http/vschemas.go | 21 ++++++++++++++++++--- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/go/vt/vtadmin/api.go b/go/vt/vtadmin/api.go index 48fbc83d2d7..b5bd0d0efb7 100644 --- a/go/vt/vtadmin/api.go +++ b/go/vt/vtadmin/api.go @@ -94,8 +94,8 @@ func NewAPI(clusters []*cluster.Cluster, opts grpcserver.Options, httpOpts vtadm router.HandleFunc("/schemas", httpAPI.Adapt(vtadminhttp.GetSchemas)).Name("API.GetSchemas") router.HandleFunc("/tablets", httpAPI.Adapt(vtadminhttp.GetTablets)).Name("API.GetTablets") router.HandleFunc("/tablet/{tablet}", httpAPI.Adapt(vtadminhttp.GetTablet)).Name("API.GetTablet") - router.HandleFunc("/vschema/{cluster_id}/{keyspace}", nil).Name("API.GetVSchema") - router.HandleFunc("/vschemas", nil).Name("API.GetVSchemas") + router.HandleFunc("/vschema/{cluster_id}/{keyspace}", httpAPI.Adapt(vtadminhttp.GetVSchema)).Name("API.GetVSchema") + router.HandleFunc("/vschemas", httpAPI.Adapt(vtadminhttp.GetVSchemas)).Name("API.GetVSchemas") router.HandleFunc("/vtexplain", httpAPI.Adapt(vtadminhttp.VTExplain)).Name("API.VTExplain") // Middlewares are executed in order of addition. Our ordering (all diff --git a/go/vt/vtadmin/http/vschemas.go b/go/vt/vtadmin/http/vschemas.go index ec2526d2159..09d706527c1 100644 --- a/go/vt/vtadmin/http/vschemas.go +++ b/go/vt/vtadmin/http/vschemas.go @@ -16,16 +16,31 @@ limitations under the License. package http -import "context" +import ( + "context" + + vtadminpb "vitess.io/vitess/go/vt/proto/vtadmin" +) // GetVSchema implements the http wrapper for the // /vschema/{cluster_id}/{keyspace} route. func GetVSchema(ctx context.Context, r Request, api *API) *JSONResponse { - panic("unimplemented!") + vars := r.Vars() + + vschema, err := api.server.GetVSchema(ctx, &vtadminpb.GetVSchemaRequest{ + ClusterId: vars["cluster_id"], + Keyspace: vars["keyspace"], + }) + + return NewJSONResponse(vschema, err) } // GetVSchemas implements the http wrapper for the // /vschemas[?cluster=[&cluster=]] route. func GetVSchemas(ctx context.Context, r Request, api *API) *JSONResponse { - panic("unimplemented!") + vschemas, err := api.server.GetVSchemas(ctx, &vtadminpb.GetVSchemasRequest{ + ClusterIds: r.URL.Query()["cluster"], + }) + + return NewJSONResponse(vschemas, err) }