import { Message, proto3, type BinaryReadOptions, type FieldList, type JsonReadOptions, type JsonValue, type PartialMessage, type PlainMessage } from '@bufbuild/protobuf'; import { Time } from './vttime_pb.js'; /** * KeyspaceType describes the type of the keyspace * * @generated from enum topodata.KeyspaceType */ export declare enum KeyspaceType { /** * NORMAL is the default value * * @generated from enum value: NORMAL = 0; */ NORMAL = 0, /** * SNAPSHOT is when we are creating a snapshot keyspace * * @generated from enum value: SNAPSHOT = 1; */ SNAPSHOT = 1 } /** * TabletType represents the type of a given tablet. * * @generated from enum topodata.TabletType */ export declare enum TabletType { /** * UNKNOWN is not a valid value. * * @generated from enum value: UNKNOWN = 0; */ UNKNOWN = 0, /** * PRIMARY is the primary server for the shard. Only PRIMARY allows DMLs. * * @generated from enum value: PRIMARY = 1; */ PRIMARY = 1, /** * DEPRECATED * * @generated from enum value: MASTER = 1; */ MASTER = 1, /** * REPLICA replicates from primary. It is used to serve live traffic. * A REPLICA can be promoted to PRIMARY. A demoted PRIMARY will go to REPLICA. * * @generated from enum value: REPLICA = 2; */ REPLICA = 2, /** * RDONLY (old name) / BATCH (new name) is used to serve traffic for * long-running jobs. It is a separate type from REPLICA so * long-running queries don't affect web-like traffic. * * @generated from enum value: RDONLY = 3; */ RDONLY = 3, /** * @generated from enum value: BATCH = 3; */ BATCH = 3, /** * SPARE is a type of servers that cannot serve queries, but is available * in case an extra server is needed. * * @generated from enum value: SPARE = 4; */ SPARE = 4, /** * EXPERIMENTAL is like SPARE, except it can serve queries. This * type can be used for usages not planned by Vitess, like online * export to another storage engine. * * @generated from enum value: EXPERIMENTAL = 5; */ EXPERIMENTAL = 5, /** * BACKUP is the type a server goes to when taking a backup. No queries * can be served in BACKUP mode. * * @generated from enum value: BACKUP = 6; */ BACKUP = 6, /** * RESTORE is the type a server uses when restoring a backup, at * startup time. No queries can be served in RESTORE mode. * * @generated from enum value: RESTORE = 7; */ RESTORE = 7, /** * DRAINED is the type a server goes into when used by Vitess tools * to perform an offline action. It is a serving type (as * the tools processes may need to run queries), but it's not used * to route queries from Vitess users. In this state, * this tablet is dedicated to the process that uses it. * * @generated from enum value: DRAINED = 8; */ DRAINED = 8 } /** * KeyRange describes a range of sharding keys, when range-based * sharding is used. * * @generated from message topodata.KeyRange */ export declare class KeyRange extends Message { /** * @generated from field: bytes start = 1; */ start: Uint8Array; /** * @generated from field: bytes end = 2; */ end: Uint8Array; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.KeyRange"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): KeyRange; static fromJson(jsonValue: JsonValue, options?: Partial): KeyRange; static fromJsonString(jsonString: string, options?: Partial): KeyRange; static equals(a: KeyRange | PlainMessage | undefined, b: KeyRange | PlainMessage | undefined): boolean; } /** * TabletAlias is a globally unique tablet identifier. * * @generated from message topodata.TabletAlias */ export declare class TabletAlias extends Message { /** * cell is the cell (or datacenter) the tablet is in * * @generated from field: string cell = 1; */ cell: string; /** * uid is a unique id for this tablet within the shard * (this is the MySQL server id as well). * * @generated from field: uint32 uid = 2; */ uid: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.TabletAlias"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TabletAlias; static fromJson(jsonValue: JsonValue, options?: Partial): TabletAlias; static fromJsonString(jsonString: string, options?: Partial): TabletAlias; static equals(a: TabletAlias | PlainMessage | undefined, b: TabletAlias | PlainMessage | undefined): boolean; } /** * Tablet represents information about a running instance of vttablet. * * @generated from message topodata.Tablet */ export declare class Tablet extends Message { /** * alias is the unique name of the tablet. * * @generated from field: topodata.TabletAlias alias = 1; */ alias?: TabletAlias; /** * Fully qualified domain name of the host. * * @generated from field: string hostname = 2; */ hostname: string; /** * Map of named ports. Normally this should include vt and grpc. * Going forward, the mysql port will be stored in mysql_port * instead of here. * For accessing mysql port, use topoproto.MysqlPort to fetch, and * topoproto.SetMysqlPort to set. These wrappers will ensure * legacy behavior is supported. * * @generated from field: map port_map = 4; */ portMap: { [key: string]: number; }; /** * Keyspace name. * * @generated from field: string keyspace = 5; */ keyspace: string; /** * Shard name. If range based sharding is used, it should match * key_range. * * @generated from field: string shard = 6; */ shard: string; /** * If range based sharding is used, range for the tablet's shard. * * @generated from field: topodata.KeyRange key_range = 7; */ keyRange?: KeyRange; /** * type is the current type of the tablet. * * @generated from field: topodata.TabletType type = 8; */ type: TabletType; /** * It this is set, it is used as the database name instead of the * normal "vt_" + keyspace. * * @generated from field: string db_name_override = 9; */ dbNameOverride: string; /** * tablet tags * * @generated from field: map tags = 10; */ tags: { [key: string]: string; }; /** * MySQL hostname. * * @generated from field: string mysql_hostname = 12; */ mysqlHostname: string; /** * MySQL port. Use topoproto.MysqlPort and topoproto.SetMysqlPort * to access this variable. The functions provide support * for legacy behavior. * * @generated from field: int32 mysql_port = 13; */ mysqlPort: number; /** * primary_term_start_time is the time (in UTC) at which the current term of * the current tablet began as primary. If this tablet is not currently the * primary, this value is ignored. * * A new primary term begins any time an authoritative decision is communicated * about which tablet should be the primary, such as via Vitess * replication-management commands like PlannedReparentShard, * EmergencyReparentShard, and TabletExternallyReparented. * * * @generated from field: vttime.Time primary_term_start_time = 14; */ primaryTermStartTime?: Time; /** * default_conn_collation is the default connection collation used by this tablet. * * @generated from field: uint32 default_conn_collation = 16; */ defaultConnCollation: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.Tablet"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Tablet; static fromJson(jsonValue: JsonValue, options?: Partial): Tablet; static fromJsonString(jsonString: string, options?: Partial): Tablet; static equals(a: Tablet | PlainMessage | undefined, b: Tablet | PlainMessage | undefined): boolean; } /** * A Shard contains data about a subset of the data whithin a keyspace. * * @generated from message topodata.Shard */ export declare class Shard extends Message { /** * primary_alias is the tablet alias of the primary for the shard. * If it is unset, then there is no primary in this shard yet. * No lock is necessary to update this field, when for instance * TabletExternallyReparented updates this. However, we lock the * shard for reparenting operations (InitShardPrimary, * PlannedReparentShard,EmergencyReparentShard), to guarantee * exclusive operation. * * @generated from field: topodata.TabletAlias primary_alias = 1; */ primaryAlias?: TabletAlias; /** * primary_term_start_time is the time (in UTC) at which the current term of * the primary specified in primary_alias began. * * A new primary term begins any time an authoritative decision is communicated * about which tablet should be the primary, such as via Vitess * replication-management commands like PlannedReparentShard, * EmergencyReparentShard, and TabletExternallyReparented. * * The primary_alias should only ever be changed if the new primary's term began * at a later time than this. Note that a new term can start for the tablet * that is already the primary. In that case, the primary_term_start_time would * be increased without changing the primary_alias. * * @generated from field: vttime.Time primary_term_start_time = 8; */ primaryTermStartTime?: Time; /** * key_range is the KeyRange for this shard. It can be unset if: * - we are not using range-based sharding in this shard. * - the shard covers the entire keyrange. * This must match the shard name based on our other conventions, but * helpful to have it decomposed here. * Once set at creation time, it is never changed. * * @generated from field: topodata.KeyRange key_range = 2; */ keyRange?: KeyRange; /** * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * * @generated from field: repeated topodata.Shard.SourceShard source_shards = 4; */ sourceShards: Shard_SourceShard[]; /** * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * * @generated from field: repeated topodata.Shard.TabletControl tablet_controls = 6; */ tabletControls: Shard_TabletControl[]; /** * is_primary_serving sets whether this shard primary is serving traffic or not. * The keyspace lock is always taken when changing this. * * @generated from field: bool is_primary_serving = 7; */ isPrimaryServing: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.Shard"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Shard; static fromJson(jsonValue: JsonValue, options?: Partial): Shard; static fromJsonString(jsonString: string, options?: Partial): Shard; static equals(a: Shard | PlainMessage | undefined, b: Shard | PlainMessage | undefined): boolean; } /** * SourceShard represents a data source for filtered replication * across shards. When this is used in a destination shard, the primary * of that shard will run filtered replication. * * @generated from message topodata.Shard.SourceShard */ export declare class Shard_SourceShard extends Message { /** * Uid is the unique ID for this SourceShard object. * * @generated from field: int32 uid = 1; */ uid: number; /** * the source keyspace * * @generated from field: string keyspace = 2; */ keyspace: string; /** * the source shard * * @generated from field: string shard = 3; */ shard: string; /** * the source shard keyrange * * @generated from field: topodata.KeyRange key_range = 4; */ keyRange?: KeyRange; /** * the source table list to replicate * * @generated from field: repeated string tables = 5; */ tables: string[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.Shard.SourceShard"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Shard_SourceShard; static fromJson(jsonValue: JsonValue, options?: Partial): Shard_SourceShard; static fromJsonString(jsonString: string, options?: Partial): Shard_SourceShard; static equals(a: Shard_SourceShard | PlainMessage | undefined, b: Shard_SourceShard | PlainMessage | undefined): boolean; } /** * TabletControl controls tablet's behavior * * @generated from message topodata.Shard.TabletControl */ export declare class Shard_TabletControl extends Message { /** * which tablet type is affected * * @generated from field: topodata.TabletType tablet_type = 1; */ tabletType: TabletType; /** * @generated from field: repeated string cells = 2; */ cells: string[]; /** * @generated from field: repeated string denied_tables = 4; */ deniedTables: string[]; /** * frozen is set if we've started failing over traffic for * the primary. If set, this record should not be removed. * * @generated from field: bool frozen = 5; */ frozen: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.Shard.TabletControl"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Shard_TabletControl; static fromJson(jsonValue: JsonValue, options?: Partial): Shard_TabletControl; static fromJsonString(jsonString: string, options?: Partial): Shard_TabletControl; static equals(a: Shard_TabletControl | PlainMessage | undefined, b: Shard_TabletControl | PlainMessage | undefined): boolean; } /** * A Keyspace contains data about a keyspace. * * @generated from message topodata.Keyspace */ export declare class Keyspace extends Message { /** * keyspace_type will determine how this keyspace is treated by * vtgate / vschema. Normal keyspaces are routable by * any query. Snapshot keyspaces are only accessible * by explicit addresssing or by calling "use keyspace" first * * @generated from field: topodata.KeyspaceType keyspace_type = 5; */ keyspaceType: KeyspaceType; /** * base_keyspace is the base keyspace from which a snapshot * keyspace is created. empty for normal keyspaces * * @generated from field: string base_keyspace = 6; */ baseKeyspace: string; /** * snapshot_time (in UTC) is a property of snapshot * keyspaces which tells us what point in time * the snapshot is of * * @generated from field: vttime.Time snapshot_time = 7; */ snapshotTime?: Time; /** * DurabilityPolicy is the durability policy to be * used for the keyspace. * * @generated from field: string durability_policy = 8; */ durabilityPolicy: string; /** * ThrottlerConfig has the configuration for the tablet * server's lag throttler, and applies to the entire * keyspace, across all shards and tablets. * * @generated from field: topodata.ThrottlerConfig throttler_config = 9; */ throttlerConfig?: ThrottlerConfig; /** * SidecarDBName is the name of the Vitess sidecar database * used for various system metadata that is stored in each * tablet's mysqld instance. * * @generated from field: string sidecar_db_name = 10; */ sidecarDbName: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.Keyspace"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Keyspace; static fromJson(jsonValue: JsonValue, options?: Partial): Keyspace; static fromJsonString(jsonString: string, options?: Partial): Keyspace; static equals(a: Keyspace | PlainMessage | undefined, b: Keyspace | PlainMessage | undefined): boolean; } /** * ShardReplication describes the MySQL replication relationships * whithin a cell. * * @generated from message topodata.ShardReplication */ export declare class ShardReplication extends Message { /** * Note there can be only one Node in this array * for a given tablet. * * @generated from field: repeated topodata.ShardReplication.Node nodes = 1; */ nodes: ShardReplication_Node[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.ShardReplication"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ShardReplication; static fromJson(jsonValue: JsonValue, options?: Partial): ShardReplication; static fromJsonString(jsonString: string, options?: Partial): ShardReplication; static equals(a: ShardReplication | PlainMessage | undefined, b: ShardReplication | PlainMessage | undefined): boolean; } /** * Node describes a tablet instance within the cell * * @generated from message topodata.ShardReplication.Node */ export declare class ShardReplication_Node extends Message { /** * @generated from field: topodata.TabletAlias tablet_alias = 1; */ tabletAlias?: TabletAlias; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.ShardReplication.Node"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ShardReplication_Node; static fromJson(jsonValue: JsonValue, options?: Partial): ShardReplication_Node; static fromJsonString(jsonString: string, options?: Partial): ShardReplication_Node; static equals(a: ShardReplication_Node | PlainMessage | undefined, b: ShardReplication_Node | PlainMessage | undefined): boolean; } /** * ShardReplicationError describes the error being fixed by * ShardReplicationFix. * * @generated from message topodata.ShardReplicationError */ export declare class ShardReplicationError extends Message { /** * Type is the category of problem being fixed. * * @generated from field: topodata.ShardReplicationError.Type type = 1; */ type: ShardReplicationError_Type; /** * TabletAlias is the tablet record that has the problem. * * @generated from field: topodata.TabletAlias tablet_alias = 2; */ tabletAlias?: TabletAlias; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.ShardReplicationError"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ShardReplicationError; static fromJson(jsonValue: JsonValue, options?: Partial): ShardReplicationError; static fromJsonString(jsonString: string, options?: Partial): ShardReplicationError; static equals(a: ShardReplicationError | PlainMessage | undefined, b: ShardReplicationError | PlainMessage | undefined): boolean; } /** * @generated from enum topodata.ShardReplicationError.Type */ export declare enum ShardReplicationError_Type { /** * UNKNOWN is not a valid value. * * @generated from enum value: UNKNOWN = 0; */ UNKNOWN = 0, /** * NOT_FOUND occurs when a tablet is in the ShardReplication record * but does not exist in the topology. * * @generated from enum value: NOT_FOUND = 1; */ NOT_FOUND = 1, /** * TOPOLOGY_MISMATCH occurs when a tablet is in the replication graph and * exists in the topology, but at least one of the Keyspace, Shard, or Cell * fields for that tablet does not match the ShardReplication record. * * @generated from enum value: TOPOLOGY_MISMATCH = 2; */ TOPOLOGY_MISMATCH = 2 } /** * ShardReference is used as a pointer from a SrvKeyspace to a Shard * * @generated from message topodata.ShardReference */ export declare class ShardReference extends Message { /** * Copied from Shard. * * @generated from field: string name = 1; */ name: string; /** * Disable query serving in this shard * * @generated from field: topodata.KeyRange key_range = 2; */ keyRange?: KeyRange; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.ShardReference"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ShardReference; static fromJson(jsonValue: JsonValue, options?: Partial): ShardReference; static fromJsonString(jsonString: string, options?: Partial): ShardReference; static equals(a: ShardReference | PlainMessage | undefined, b: ShardReference | PlainMessage | undefined): boolean; } /** * ShardTabletControl is used as a pointer from a SrvKeyspace to a Shard * * @generated from message topodata.ShardTabletControl */ export declare class ShardTabletControl extends Message { /** * Copied from Shard. * * @generated from field: string name = 1; */ name: string; /** * @generated from field: topodata.KeyRange key_range = 2; */ keyRange?: KeyRange; /** * Disable query serving in this shard * * @generated from field: bool query_service_disabled = 3; */ queryServiceDisabled: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.ShardTabletControl"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ShardTabletControl; static fromJson(jsonValue: JsonValue, options?: Partial): ShardTabletControl; static fromJsonString(jsonString: string, options?: Partial): ShardTabletControl; static equals(a: ShardTabletControl | PlainMessage | undefined, b: ShardTabletControl | PlainMessage | undefined): boolean; } /** * ThrottledAppRule defines an app-specific throttling rule, with expiration. * * @generated from message topodata.ThrottledAppRule */ export declare class ThrottledAppRule extends Message { /** * Name of the app to be throttled, e.g. "vreplication" or "online-ddl" * * @generated from field: string name = 1; */ name: string; /** * Ratio defines how much the app should be throttled, range [0.0...1.0]. 1.0 means fully throttled. 0.0 means not throttled at all. * Negative values are reserved for a future implementation. * * @generated from field: double ratio = 2; */ ratio: number; /** * ExpiresAt is the time at which the rule expires. * * @generated from field: vttime.Time expires_at = 3; */ expiresAt?: Time; /** * Exempt indicates the app should never be throttled, even if the throttler is, in general, throttling other apps. * * @generated from field: bool exempt = 4; */ exempt: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.ThrottledAppRule"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ThrottledAppRule; static fromJson(jsonValue: JsonValue, options?: Partial): ThrottledAppRule; static fromJsonString(jsonString: string, options?: Partial): ThrottledAppRule; static equals(a: ThrottledAppRule | PlainMessage | undefined, b: ThrottledAppRule | PlainMessage | undefined): boolean; } /** * @generated from message topodata.ThrottlerConfig */ export declare class ThrottlerConfig extends Message { /** * Enabled indicates that the throttler is actually checking state for * requests. When disabled, it automatically returns 200 OK for all * checks. * * @generated from field: bool enabled = 1; */ enabled: boolean; /** * Threshold is the threshold for either the default check (heartbeat * lag) or custom check. * * @generated from field: double threshold = 2; */ threshold: number; /** * CustomQuery is an optional query that overrides the default check * query. * * @generated from field: string custom_query = 3; */ customQuery: string; /** * CheckAsCheckSelf indicates whether a throttler /check request * should behave like a /check-self. * * @generated from field: bool check_as_check_self = 4; */ checkAsCheckSelf: boolean; /** * ThrottledApps is a map of rules for app-specific throttling * * @generated from field: map throttled_apps = 5; */ throttledApps: { [key: string]: ThrottledAppRule; }; /** * AppCheckedMetrics maps app names to the list of metrics that should be checked for that app * * @generated from field: map app_checked_metrics = 6; */ appCheckedMetrics: { [key: string]: ThrottlerConfig_MetricNames; }; /** * MetricThresholds maps metric names to the threshold values that should be used for that metric * * @generated from field: map metric_thresholds = 7; */ metricThresholds: { [key: string]: number; }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.ThrottlerConfig"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ThrottlerConfig; static fromJson(jsonValue: JsonValue, options?: Partial): ThrottlerConfig; static fromJsonString(jsonString: string, options?: Partial): ThrottlerConfig; static equals(a: ThrottlerConfig | PlainMessage | undefined, b: ThrottlerConfig | PlainMessage | undefined): boolean; } /** * @generated from message topodata.ThrottlerConfig.MetricNames */ export declare class ThrottlerConfig_MetricNames extends Message { /** * @generated from field: repeated string names = 1; */ names: string[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.ThrottlerConfig.MetricNames"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ThrottlerConfig_MetricNames; static fromJson(jsonValue: JsonValue, options?: Partial): ThrottlerConfig_MetricNames; static fromJsonString(jsonString: string, options?: Partial): ThrottlerConfig_MetricNames; static equals(a: ThrottlerConfig_MetricNames | PlainMessage | undefined, b: ThrottlerConfig_MetricNames | PlainMessage | undefined): boolean; } /** * SrvKeyspace is a rollup node for the keyspace itself. * * @generated from message topodata.SrvKeyspace */ export declare class SrvKeyspace extends Message { /** * The partitions this keyspace is serving, per tablet type. * * @generated from field: repeated topodata.SrvKeyspace.KeyspacePartition partitions = 1; */ partitions: SrvKeyspace_KeyspacePartition[]; /** * ThrottlerConfig has the configuration for the tablet server's * lag throttler, and applies to the entire keyspace, across all * shards and tablets. This is copied from the global keyspace * object. * * @generated from field: topodata.ThrottlerConfig throttler_config = 6; */ throttlerConfig?: ThrottlerConfig; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.SrvKeyspace"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SrvKeyspace; static fromJson(jsonValue: JsonValue, options?: Partial): SrvKeyspace; static fromJsonString(jsonString: string, options?: Partial): SrvKeyspace; static equals(a: SrvKeyspace | PlainMessage | undefined, b: SrvKeyspace | PlainMessage | undefined): boolean; } /** * @generated from message topodata.SrvKeyspace.KeyspacePartition */ export declare class SrvKeyspace_KeyspacePartition extends Message { /** * The type this partition applies to. * * @generated from field: topodata.TabletType served_type = 1; */ servedType: TabletType; /** * List of non-overlapping continuous shards sorted by range. * * @generated from field: repeated topodata.ShardReference shard_references = 2; */ shardReferences: ShardReference[]; /** * List of shard tablet controls * * @generated from field: repeated topodata.ShardTabletControl shard_tablet_controls = 3; */ shardTabletControls: ShardTabletControl[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.SrvKeyspace.KeyspacePartition"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SrvKeyspace_KeyspacePartition; static fromJson(jsonValue: JsonValue, options?: Partial): SrvKeyspace_KeyspacePartition; static fromJsonString(jsonString: string, options?: Partial): SrvKeyspace_KeyspacePartition; static equals(a: SrvKeyspace_KeyspacePartition | PlainMessage | undefined, b: SrvKeyspace_KeyspacePartition | PlainMessage | undefined): boolean; } /** * CellInfo contains information about a cell. CellInfo objects are * stored in the global topology server, and describe how to reach * local topology servers. * * @generated from message topodata.CellInfo */ export declare class CellInfo extends Message { /** * ServerAddress contains the address of the server for the cell. * The syntax of this field is topology implementation specific. * For instance, for Zookeeper, it is a comma-separated list of * server addresses. * * @generated from field: string server_address = 1; */ serverAddress: string; /** * Root is the path to store data in. It is only used when talking * to server_address. * * @generated from field: string root = 2; */ root: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.CellInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CellInfo; static fromJson(jsonValue: JsonValue, options?: Partial): CellInfo; static fromJsonString(jsonString: string, options?: Partial): CellInfo; static equals(a: CellInfo | PlainMessage | undefined, b: CellInfo | PlainMessage | undefined): boolean; } /** * CellsAlias * * @generated from message topodata.CellsAlias */ export declare class CellsAlias extends Message { /** * Cells that map to this alias * * @generated from field: repeated string cells = 2; */ cells: string[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.CellsAlias"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CellsAlias; static fromJson(jsonValue: JsonValue, options?: Partial): CellsAlias; static fromJsonString(jsonString: string, options?: Partial): CellsAlias; static equals(a: CellsAlias | PlainMessage | undefined, b: CellsAlias | PlainMessage | undefined): boolean; } /** * @generated from message topodata.TopoConfig */ export declare class TopoConfig extends Message { /** * @generated from field: string topo_type = 1; */ topoType: string; /** * @generated from field: string server = 2; */ server: string; /** * @generated from field: string root = 3; */ root: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.TopoConfig"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TopoConfig; static fromJson(jsonValue: JsonValue, options?: Partial): TopoConfig; static fromJsonString(jsonString: string, options?: Partial): TopoConfig; static equals(a: TopoConfig | PlainMessage | undefined, b: TopoConfig | PlainMessage | undefined): boolean; } /** * @generated from message topodata.ExternalVitessCluster */ export declare class ExternalVitessCluster extends Message { /** * @generated from field: topodata.TopoConfig topo_config = 1; */ topoConfig?: TopoConfig; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.ExternalVitessCluster"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ExternalVitessCluster; static fromJson(jsonValue: JsonValue, options?: Partial): ExternalVitessCluster; static fromJsonString(jsonString: string, options?: Partial): ExternalVitessCluster; static equals(a: ExternalVitessCluster | PlainMessage | undefined, b: ExternalVitessCluster | PlainMessage | undefined): boolean; } /** * ExternalClusters * * @generated from message topodata.ExternalClusters */ export declare class ExternalClusters extends Message { /** * @generated from field: repeated topodata.ExternalVitessCluster vitess_cluster = 1; */ vitessCluster: ExternalVitessCluster[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "topodata.ExternalClusters"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ExternalClusters; static fromJson(jsonValue: JsonValue, options?: Partial): ExternalClusters; static fromJsonString(jsonString: string, options?: Partial): ExternalClusters; static equals(a: ExternalClusters | PlainMessage | undefined, b: ExternalClusters | PlainMessage | undefined): boolean; }