#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteVtctlCommandRequest {
#[prost(string, repeated, tag = "1")]
pub args: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(int64, tag = "2")]
pub action_timeout: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteVtctlCommandResponse {
#[prost(message, optional, tag = "1")]
pub event: ::core::option::Option<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TableMaterializeSettings {
#[prost(string, tag = "1")]
pub target_table: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub source_expression: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub create_ddl: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MaterializeSettings {
#[prost(string, tag = "1")]
pub workflow: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub source_keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub target_keyspace: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub stop_after_copy: bool,
#[prost(message, repeated, tag = "5")]
pub table_settings: ::prost::alloc::vec::Vec<TableMaterializeSettings>,
#[prost(string, tag = "6")]
pub cell: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub tablet_types: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub external_cluster: ::prost::alloc::string::String,
#[prost(enumeration = "MaterializationIntent", tag = "9")]
pub materialization_intent: i32,
#[prost(string, tag = "10")]
pub source_time_zone: ::prost::alloc::string::String,
#[prost(string, tag = "11")]
pub target_time_zone: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "12")]
pub source_shards: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Keyspace {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub keyspace: ::core::option::Option<super::topodata::Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Shard {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub shard: ::core::option::Option<super::topodata::Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Workflow {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub source: ::core::option::Option<workflow::ReplicationLocation>,
#[prost(message, optional, tag = "3")]
pub target: ::core::option::Option<workflow::ReplicationLocation>,
#[prost(int64, tag = "4")]
pub max_v_replication_lag: i64,
#[prost(map = "string, message", tag = "5")]
pub shard_streams: ::std::collections::HashMap<
::prost::alloc::string::String,
workflow::ShardStream,
>,
}
pub mod workflow {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReplicationLocation {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub shards: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardStream {
#[prost(message, repeated, tag = "1")]
pub streams: ::prost::alloc::vec::Vec<Stream>,
#[prost(message, repeated, tag = "2")]
pub tablet_controls: ::prost::alloc::vec::Vec<
super::super::topodata::shard::TabletControl,
>,
#[prost(bool, tag = "3")]
pub is_primary_serving: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Stream {
#[prost(int64, tag = "1")]
pub id: i64,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub tablet: ::core::option::Option<super::super::topodata::TabletAlias>,
#[prost(message, optional, tag = "4")]
pub binlog_source: ::core::option::Option<
super::super::binlogdata::BinlogSource,
>,
#[prost(string, tag = "5")]
pub position: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub stop_position: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub state: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub db_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "9")]
pub transaction_timestamp: ::core::option::Option<super::super::vttime::Time>,
#[prost(message, optional, tag = "10")]
pub time_updated: ::core::option::Option<super::super::vttime::Time>,
#[prost(string, tag = "11")]
pub message: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "12")]
pub copy_states: ::prost::alloc::vec::Vec<stream::CopyState>,
#[prost(message, repeated, tag = "13")]
pub logs: ::prost::alloc::vec::Vec<stream::Log>,
#[prost(string, tag = "14")]
pub log_fetch_error: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "15")]
pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
pub mod stream {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CopyState {
#[prost(string, tag = "1")]
pub table: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub last_pk: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Log {
#[prost(int64, tag = "1")]
pub id: i64,
#[prost(int64, tag = "2")]
pub stream_id: i64,
#[prost(string, tag = "3")]
pub r#type: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub state: ::prost::alloc::string::String,
#[prost(message, optional, tag = "5")]
pub created_at: ::core::option::Option<super::super::super::vttime::Time>,
#[prost(message, optional, tag = "6")]
pub updated_at: ::core::option::Option<super::super::super::vttime::Time>,
#[prost(string, tag = "7")]
pub message: ::prost::alloc::string::String,
#[prost(int64, tag = "8")]
pub count: i64,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddCellInfoRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub cell_info: ::core::option::Option<super::topodata::CellInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddCellInfoResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddCellsAliasRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddCellsAliasResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyRoutingRulesRequest {
#[prost(message, optional, tag = "1")]
pub routing_rules: ::core::option::Option<super::vschema::RoutingRules>,
#[prost(bool, tag = "2")]
pub skip_rebuild: bool,
#[prost(string, repeated, tag = "3")]
pub rebuild_cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyRoutingRulesResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyShardRoutingRulesRequest {
#[prost(message, optional, tag = "1")]
pub shard_routing_rules: ::core::option::Option<super::vschema::ShardRoutingRules>,
#[prost(bool, tag = "2")]
pub skip_rebuild: bool,
#[prost(string, repeated, tag = "3")]
pub rebuild_cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyShardRoutingRulesResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplySchemaRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub allow_long_unavailability: bool,
#[prost(string, repeated, tag = "3")]
pub sql: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, tag = "4")]
pub ddl_strategy: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "5")]
pub uuid_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, tag = "6")]
pub migration_context: ::prost::alloc::string::String,
#[prost(message, optional, tag = "7")]
pub wait_replicas_timeout: ::core::option::Option<super::vttime::Duration>,
#[prost(bool, tag = "8")]
pub skip_preflight: bool,
#[prost(message, optional, tag = "9")]
pub caller_id: ::core::option::Option<super::vtrpc::CallerId>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplySchemaResponse {
#[prost(string, repeated, tag = "1")]
pub uuid_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyVSchemaRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub skip_rebuild: bool,
#[prost(bool, tag = "3")]
pub dry_run: bool,
#[prost(string, repeated, tag = "4")]
pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "5")]
pub v_schema: ::core::option::Option<super::vschema::Keyspace>,
#[prost(string, tag = "6")]
pub sql: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyVSchemaResponse {
#[prost(message, optional, tag = "1")]
pub v_schema: ::core::option::Option<super::vschema::Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackupRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(bool, tag = "2")]
pub allow_primary: bool,
#[prost(uint64, tag = "3")]
pub concurrency: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackupResponse {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(string, tag = "2")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "4")]
pub event: ::core::option::Option<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackupShardRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub allow_primary: bool,
#[prost(uint64, tag = "4")]
pub concurrency: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeTabletTypeRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(enumeration = "super::topodata::TabletType", tag = "2")]
pub db_type: i32,
#[prost(bool, tag = "3")]
pub dry_run: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeTabletTypeResponse {
#[prost(message, optional, tag = "1")]
pub before_tablet: ::core::option::Option<super::topodata::Tablet>,
#[prost(message, optional, tag = "2")]
pub after_tablet: ::core::option::Option<super::topodata::Tablet>,
#[prost(bool, tag = "3")]
pub was_dry_run: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateKeyspaceRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub force: bool,
#[prost(bool, tag = "3")]
pub allow_empty_v_schema: bool,
#[prost(message, repeated, tag = "6")]
pub served_froms: ::prost::alloc::vec::Vec<super::topodata::keyspace::ServedFrom>,
#[prost(enumeration = "super::topodata::KeyspaceType", tag = "7")]
pub r#type: i32,
#[prost(string, tag = "8")]
pub base_keyspace: ::prost::alloc::string::String,
#[prost(message, optional, tag = "9")]
pub snapshot_time: ::core::option::Option<super::vttime::Time>,
#[prost(string, tag = "10")]
pub durability_policy: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateKeyspaceResponse {
#[prost(message, optional, tag = "1")]
pub keyspace: ::core::option::Option<Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateShardRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard_name: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub force: bool,
#[prost(bool, tag = "4")]
pub include_parent: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateShardResponse {
#[prost(message, optional, tag = "1")]
pub keyspace: ::core::option::Option<Keyspace>,
#[prost(message, optional, tag = "2")]
pub shard: ::core::option::Option<Shard>,
#[prost(bool, tag = "3")]
pub shard_already_exists: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteCellInfoRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub force: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteCellInfoResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteCellsAliasRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteCellsAliasResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteKeyspaceRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub recursive: bool,
#[prost(bool, tag = "3")]
pub force: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteKeyspaceResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteShardsRequest {
#[prost(message, repeated, tag = "1")]
pub shards: ::prost::alloc::vec::Vec<Shard>,
#[prost(bool, tag = "2")]
pub recursive: bool,
#[prost(bool, tag = "4")]
pub even_if_serving: bool,
#[prost(bool, tag = "5")]
pub force: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteShardsResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSrvVSchemaRequest {
#[prost(string, tag = "1")]
pub cell: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSrvVSchemaResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTabletsRequest {
#[prost(message, repeated, tag = "1")]
pub tablet_aliases: ::prost::alloc::vec::Vec<super::topodata::TabletAlias>,
#[prost(bool, tag = "2")]
pub allow_primary: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTabletsResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EmergencyReparentShardRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub new_primary: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(message, repeated, tag = "4")]
pub ignore_replicas: ::prost::alloc::vec::Vec<super::topodata::TabletAlias>,
#[prost(message, optional, tag = "5")]
pub wait_replicas_timeout: ::core::option::Option<super::vttime::Duration>,
#[prost(bool, tag = "6")]
pub prevent_cross_cell_promotion: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EmergencyReparentShardResponse {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub promoted_primary: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(message, repeated, tag = "4")]
pub events: ::prost::alloc::vec::Vec<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteFetchAsAppRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(string, tag = "2")]
pub query: ::prost::alloc::string::String,
#[prost(int64, tag = "3")]
pub max_rows: i64,
#[prost(bool, tag = "4")]
pub use_pool: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteFetchAsAppResponse {
#[prost(message, optional, tag = "1")]
pub result: ::core::option::Option<super::query::QueryResult>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteFetchAsDbaRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(string, tag = "2")]
pub query: ::prost::alloc::string::String,
#[prost(int64, tag = "3")]
pub max_rows: i64,
#[prost(bool, tag = "4")]
pub disable_binlogs: bool,
#[prost(bool, tag = "5")]
pub reload_schema: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteFetchAsDbaResponse {
#[prost(message, optional, tag = "1")]
pub result: ::core::option::Option<super::query::QueryResult>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteHookRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(message, optional, tag = "2")]
pub tablet_hook_request: ::core::option::Option<
super::tabletmanagerdata::ExecuteHookRequest,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteHookResponse {
#[prost(message, optional, tag = "1")]
pub hook_result: ::core::option::Option<
super::tabletmanagerdata::ExecuteHookResponse,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FindAllShardsInKeyspaceRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FindAllShardsInKeyspaceResponse {
#[prost(map = "string, message", tag = "1")]
pub shards: ::std::collections::HashMap<::prost::alloc::string::String, Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBackupsRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(uint32, tag = "3")]
pub limit: u32,
#[prost(bool, tag = "4")]
pub detailed: bool,
#[prost(uint32, tag = "5")]
pub detailed_limit: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBackupsResponse {
#[prost(message, repeated, tag = "1")]
pub backups: ::prost::alloc::vec::Vec<super::mysqlctl::BackupInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCellInfoRequest {
#[prost(string, tag = "1")]
pub cell: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCellInfoResponse {
#[prost(message, optional, tag = "1")]
pub cell_info: ::core::option::Option<super::topodata::CellInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCellInfoNamesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCellInfoNamesResponse {
#[prost(string, repeated, tag = "1")]
pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCellsAliasesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCellsAliasesResponse {
#[prost(map = "string, message", tag = "1")]
pub aliases: ::std::collections::HashMap<
::prost::alloc::string::String,
super::topodata::CellsAlias,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFullStatusRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFullStatusResponse {
#[prost(message, optional, tag = "1")]
pub status: ::core::option::Option<super::replicationdata::FullStatus>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetKeyspacesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetKeyspacesResponse {
#[prost(message, repeated, tag = "1")]
pub keyspaces: ::prost::alloc::vec::Vec<Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetKeyspaceRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetKeyspaceResponse {
#[prost(message, optional, tag = "1")]
pub keyspace: ::core::option::Option<Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPermissionsRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPermissionsResponse {
#[prost(message, optional, tag = "1")]
pub permissions: ::core::option::Option<super::tabletmanagerdata::Permissions>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRoutingRulesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRoutingRulesResponse {
#[prost(message, optional, tag = "1")]
pub routing_rules: ::core::option::Option<super::vschema::RoutingRules>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSchemaRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(string, repeated, tag = "2")]
pub tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "3")]
pub exclude_tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(bool, tag = "4")]
pub include_views: bool,
#[prost(bool, tag = "5")]
pub table_names_only: bool,
#[prost(bool, tag = "6")]
pub table_sizes_only: bool,
#[prost(bool, tag = "7")]
pub table_schema_only: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSchemaResponse {
#[prost(message, optional, tag = "1")]
pub schema: ::core::option::Option<super::tabletmanagerdata::SchemaDefinition>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetShardRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetShardResponse {
#[prost(message, optional, tag = "1")]
pub shard: ::core::option::Option<Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetShardRoutingRulesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetShardRoutingRulesResponse {
#[prost(message, optional, tag = "1")]
pub shard_routing_rules: ::core::option::Option<super::vschema::ShardRoutingRules>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvKeyspaceNamesRequest {
#[prost(string, repeated, tag = "1")]
pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvKeyspaceNamesResponse {
#[prost(map = "string, message", tag = "1")]
pub names: ::std::collections::HashMap<
::prost::alloc::string::String,
get_srv_keyspace_names_response::NameList,
>,
}
pub mod get_srv_keyspace_names_response {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NameList {
#[prost(string, repeated, tag = "1")]
pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvKeyspacesRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvKeyspacesResponse {
#[prost(map = "string, message", tag = "1")]
pub srv_keyspaces: ::std::collections::HashMap<
::prost::alloc::string::String,
super::topodata::SrvKeyspace,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvVSchemaRequest {
#[prost(string, tag = "1")]
pub cell: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvVSchemaResponse {
#[prost(message, optional, tag = "1")]
pub srv_v_schema: ::core::option::Option<super::vschema::SrvVSchema>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvVSchemasRequest {
#[prost(string, repeated, tag = "2")]
pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvVSchemasResponse {
#[prost(map = "string, message", tag = "1")]
pub srv_v_schemas: ::std::collections::HashMap<
::prost::alloc::string::String,
super::vschema::SrvVSchema,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTabletRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTabletResponse {
#[prost(message, optional, tag = "1")]
pub tablet: ::core::option::Option<super::topodata::Tablet>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTabletsRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "3")]
pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(bool, tag = "4")]
pub strict: bool,
#[prost(message, repeated, tag = "5")]
pub tablet_aliases: ::prost::alloc::vec::Vec<super::topodata::TabletAlias>,
#[prost(enumeration = "super::topodata::TabletType", tag = "6")]
pub tablet_type: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTabletsResponse {
#[prost(message, repeated, tag = "1")]
pub tablets: ::prost::alloc::vec::Vec<super::topodata::Tablet>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTopologyPathRequest {
#[prost(string, tag = "1")]
pub path: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTopologyPathResponse {
#[prost(message, optional, tag = "1")]
pub cell: ::core::option::Option<TopologyCell>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TopologyCell {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub path: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub data: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "4")]
pub children: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVSchemaRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVersionRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVersionResponse {
#[prost(string, tag = "1")]
pub version: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVSchemaResponse {
#[prost(message, optional, tag = "1")]
pub v_schema: ::core::option::Option<super::vschema::Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetWorkflowsRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub active_only: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetWorkflowsResponse {
#[prost(message, repeated, tag = "1")]
pub workflows: ::prost::alloc::vec::Vec<Workflow>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitShardPrimaryRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub primary_elect_tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(bool, tag = "4")]
pub force: bool,
#[prost(message, optional, tag = "5")]
pub wait_replicas_timeout: ::core::option::Option<super::vttime::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitShardPrimaryResponse {
#[prost(message, repeated, tag = "1")]
pub events: ::prost::alloc::vec::Vec<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingTabletRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingTabletResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlannedReparentShardRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub new_primary: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(message, optional, tag = "4")]
pub avoid_primary: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(message, optional, tag = "5")]
pub wait_replicas_timeout: ::core::option::Option<super::vttime::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlannedReparentShardResponse {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub promoted_primary: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(message, repeated, tag = "4")]
pub events: ::prost::alloc::vec::Vec<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RebuildKeyspaceGraphRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(bool, tag = "3")]
pub allow_partial: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RebuildKeyspaceGraphResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RebuildVSchemaGraphRequest {
#[prost(string, repeated, tag = "1")]
pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RebuildVSchemaGraphResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RefreshStateRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RefreshStateResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RefreshStateByShardRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "3")]
pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RefreshStateByShardResponse {
#[prost(bool, tag = "1")]
pub is_partial_refresh: bool,
#[prost(string, tag = "2")]
pub partial_refresh_details: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadSchemaRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadSchemaResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadSchemaKeyspaceRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub wait_position: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub include_primary: bool,
#[prost(uint32, tag = "4")]
pub concurrency: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadSchemaKeyspaceResponse {
#[prost(message, repeated, tag = "1")]
pub events: ::prost::alloc::vec::Vec<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadSchemaShardRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub wait_position: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub include_primary: bool,
#[prost(uint32, tag = "5")]
pub concurrency: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadSchemaShardResponse {
#[prost(message, repeated, tag = "2")]
pub events: ::prost::alloc::vec::Vec<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveBackupRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveBackupResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveKeyspaceCellRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub cell: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub force: bool,
#[prost(bool, tag = "4")]
pub recursive: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveKeyspaceCellResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveShardCellRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub cell: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub force: bool,
#[prost(bool, tag = "5")]
pub recursive: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveShardCellResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReparentTabletRequest {
#[prost(message, optional, tag = "1")]
pub tablet: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReparentTabletResponse {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub primary: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RestoreFromBackupRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(message, optional, tag = "2")]
pub backup_time: ::core::option::Option<super::vttime::Time>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RestoreFromBackupResponse {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(string, tag = "2")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "4")]
pub event: ::core::option::Option<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RunHealthCheckRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RunHealthCheckResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetKeyspaceDurabilityPolicyRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub durability_policy: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetKeyspaceDurabilityPolicyResponse {
#[prost(message, optional, tag = "1")]
pub keyspace: ::core::option::Option<super::topodata::Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetKeyspaceServedFromRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(enumeration = "super::topodata::TabletType", tag = "2")]
pub tablet_type: i32,
#[prost(string, repeated, tag = "3")]
pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(bool, tag = "4")]
pub remove: bool,
#[prost(string, tag = "5")]
pub source_keyspace: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetKeyspaceServedFromResponse {
#[prost(message, optional, tag = "1")]
pub keyspace: ::core::option::Option<super::topodata::Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetKeyspaceShardingInfoRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub force: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetKeyspaceShardingInfoResponse {
#[prost(message, optional, tag = "1")]
pub keyspace: ::core::option::Option<super::topodata::Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetShardIsPrimaryServingRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub is_serving: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetShardIsPrimaryServingResponse {
#[prost(message, optional, tag = "1")]
pub shard: ::core::option::Option<super::topodata::Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetShardTabletControlRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(enumeration = "super::topodata::TabletType", tag = "3")]
pub tablet_type: i32,
#[prost(string, repeated, tag = "4")]
pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "5")]
pub denied_tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(bool, tag = "6")]
pub disable_query_service: bool,
#[prost(bool, tag = "7")]
pub remove: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetShardTabletControlResponse {
#[prost(message, optional, tag = "1")]
pub shard: ::core::option::Option<super::topodata::Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetWritableRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(bool, tag = "2")]
pub writable: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetWritableResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationAddRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationAddResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationFixRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub cell: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationFixResponse {
#[prost(message, optional, tag = "1")]
pub error: ::core::option::Option<super::topodata::ShardReplicationError>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationPositionsRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationPositionsResponse {
#[prost(map = "string, message", tag = "1")]
pub replication_statuses: ::std::collections::HashMap<
::prost::alloc::string::String,
super::replicationdata::Status,
>,
#[prost(map = "string, message", tag = "2")]
pub tablet_map: ::std::collections::HashMap<
::prost::alloc::string::String,
super::topodata::Tablet,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationRemoveRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationRemoveResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SleepTabletRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(message, optional, tag = "2")]
pub duration: ::core::option::Option<super::vttime::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SleepTabletResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceShardAddRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(uint32, tag = "3")]
pub uid: u32,
#[prost(string, tag = "4")]
pub source_keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub source_shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "6")]
pub key_range: ::core::option::Option<super::topodata::KeyRange>,
#[prost(string, repeated, tag = "7")]
pub tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceShardAddResponse {
#[prost(message, optional, tag = "1")]
pub shard: ::core::option::Option<super::topodata::Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceShardDeleteRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(uint32, tag = "3")]
pub uid: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceShardDeleteResponse {
#[prost(message, optional, tag = "1")]
pub shard: ::core::option::Option<super::topodata::Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartReplicationRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartReplicationResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopReplicationRequest {
#[prost(message, optional, tag = "1")]
pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopReplicationResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TabletExternallyReparentedRequest {
#[prost(message, optional, tag = "1")]
pub tablet: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TabletExternallyReparentedResponse {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub new_primary: ::core::option::Option<super::topodata::TabletAlias>,
#[prost(message, optional, tag = "4")]
pub old_primary: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCellInfoRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub cell_info: ::core::option::Option<super::topodata::CellInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCellInfoResponse {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub cell_info: ::core::option::Option<super::topodata::CellInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCellsAliasRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub cells_alias: ::core::option::Option<super::topodata::CellsAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCellsAliasResponse {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub cells_alias: ::core::option::Option<super::topodata::CellsAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateRequest {
#[prost(bool, tag = "1")]
pub ping_tablets: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateResponse {
#[prost(string, repeated, tag = "1")]
pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(map = "string, message", tag = "2")]
pub results_by_keyspace: ::std::collections::HashMap<
::prost::alloc::string::String,
ValidateKeyspaceResponse,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateKeyspaceRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub ping_tablets: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateKeyspaceResponse {
#[prost(string, repeated, tag = "1")]
pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(map = "string, message", tag = "2")]
pub results_by_shard: ::std::collections::HashMap<
::prost::alloc::string::String,
ValidateShardResponse,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateSchemaKeyspaceRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub exclude_tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(bool, tag = "3")]
pub include_views: bool,
#[prost(bool, tag = "4")]
pub skip_no_primary: bool,
#[prost(bool, tag = "5")]
pub include_vschema: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateSchemaKeyspaceResponse {
#[prost(string, repeated, tag = "1")]
pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(map = "string, message", tag = "2")]
pub results_by_shard: ::std::collections::HashMap<
::prost::alloc::string::String,
ValidateShardResponse,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateShardRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub ping_tablets: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateShardResponse {
#[prost(string, repeated, tag = "1")]
pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateVersionKeyspaceRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateVersionKeyspaceResponse {
#[prost(string, repeated, tag = "1")]
pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(map = "string, message", tag = "2")]
pub results_by_shard: ::std::collections::HashMap<
::prost::alloc::string::String,
ValidateShardResponse,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateVersionShardRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub shard: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateVersionShardResponse {
#[prost(string, repeated, tag = "1")]
pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateVSchemaRequest {
#[prost(string, tag = "1")]
pub keyspace: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub shards: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "3")]
pub exclude_tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(bool, tag = "4")]
pub include_views: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateVSchemaResponse {
#[prost(string, repeated, tag = "1")]
pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(map = "string, message", tag = "2")]
pub results_by_shard: ::std::collections::HashMap<
::prost::alloc::string::String,
ValidateShardResponse,
>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MaterializationIntent {
Custom = 0,
Movetables = 1,
Createlookupindex = 2,
}
impl MaterializationIntent {
pub fn as_str_name(&self) -> &'static str {
match self {
MaterializationIntent::Custom => "CUSTOM",
MaterializationIntent::Movetables => "MOVETABLES",
MaterializationIntent::Createlookupindex => "CREATELOOKUPINDEX",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CUSTOM" => Some(Self::Custom),
"MOVETABLES" => Some(Self::Movetables),
"CREATELOOKUPINDEX" => Some(Self::Createlookupindex),
_ => None,
}
}
}