pub mod vtctl_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct VtctlClient<T> {
inner: tonic::client::Grpc<T>,
}
impl VtctlClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> VtctlClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> VtctlClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
VtctlClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn execute_vtctl_command(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ExecuteVtctlCommandRequest,
>,
) -> std::result::Result<
tonic::Response<
tonic::codec::Streaming<
super::super::vtctldata::ExecuteVtctlCommandResponse,
>,
>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctl/ExecuteVtctlCommand",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctl", "ExecuteVtctlCommand"));
self.inner.server_streaming(req, path, codec).await
}
}
}
pub mod vtctld_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct VtctldClient<T> {
inner: tonic::client::Grpc<T>,
}
impl VtctldClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> VtctldClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> VtctldClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
VtctldClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn add_cell_info(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::AddCellInfoRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::AddCellInfoResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/AddCellInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "AddCellInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn add_cells_alias(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::AddCellsAliasRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::AddCellsAliasResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/AddCellsAlias",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "AddCellsAlias"));
self.inner.unary(req, path, codec).await
}
pub async fn apply_routing_rules(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ApplyRoutingRulesRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ApplyRoutingRulesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ApplyRoutingRules",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ApplyRoutingRules"));
self.inner.unary(req, path, codec).await
}
pub async fn apply_schema(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::ApplySchemaRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ApplySchemaResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ApplySchema",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ApplySchema"));
self.inner.unary(req, path, codec).await
}
pub async fn apply_shard_routing_rules(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ApplyShardRoutingRulesRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ApplyShardRoutingRulesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ApplyShardRoutingRules",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("vtctlservice.Vtctld", "ApplyShardRoutingRules"),
);
self.inner.unary(req, path, codec).await
}
pub async fn apply_v_schema(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ApplyVSchemaRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ApplyVSchemaResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ApplyVSchema",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ApplyVSchema"));
self.inner.unary(req, path, codec).await
}
pub async fn backup(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::BackupRequest>,
) -> std::result::Result<
tonic::Response<
tonic::codec::Streaming<super::super::vtctldata::BackupResponse>,
>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/Backup",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "Backup"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn backup_shard(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::BackupShardRequest>,
) -> std::result::Result<
tonic::Response<
tonic::codec::Streaming<super::super::vtctldata::BackupResponse>,
>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/BackupShard",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "BackupShard"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn change_tablet_type(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ChangeTabletTypeRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ChangeTabletTypeResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ChangeTabletType",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ChangeTabletType"));
self.inner.unary(req, path, codec).await
}
pub async fn create_keyspace(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::CreateKeyspaceRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::CreateKeyspaceResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/CreateKeyspace",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "CreateKeyspace"));
self.inner.unary(req, path, codec).await
}
pub async fn create_shard(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::CreateShardRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::CreateShardResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/CreateShard",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "CreateShard"));
self.inner.unary(req, path, codec).await
}
pub async fn delete_cell_info(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::DeleteCellInfoRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::DeleteCellInfoResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/DeleteCellInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "DeleteCellInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn delete_cells_alias(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::DeleteCellsAliasRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::DeleteCellsAliasResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/DeleteCellsAlias",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "DeleteCellsAlias"));
self.inner.unary(req, path, codec).await
}
pub async fn delete_keyspace(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::DeleteKeyspaceRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::DeleteKeyspaceResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/DeleteKeyspace",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "DeleteKeyspace"));
self.inner.unary(req, path, codec).await
}
pub async fn delete_shards(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::DeleteShardsRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::DeleteShardsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/DeleteShards",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "DeleteShards"));
self.inner.unary(req, path, codec).await
}
pub async fn delete_srv_v_schema(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::DeleteSrvVSchemaRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::DeleteSrvVSchemaResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/DeleteSrvVSchema",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "DeleteSrvVSchema"));
self.inner.unary(req, path, codec).await
}
pub async fn delete_tablets(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::DeleteTabletsRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::DeleteTabletsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/DeleteTablets",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "DeleteTablets"));
self.inner.unary(req, path, codec).await
}
pub async fn emergency_reparent_shard(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::EmergencyReparentShardRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::EmergencyReparentShardResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/EmergencyReparentShard",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("vtctlservice.Vtctld", "EmergencyReparentShard"),
);
self.inner.unary(req, path, codec).await
}
pub async fn execute_fetch_as_app(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ExecuteFetchAsAppRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ExecuteFetchAsAppResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ExecuteFetchAsApp",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ExecuteFetchAsApp"));
self.inner.unary(req, path, codec).await
}
pub async fn execute_fetch_as_dba(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ExecuteFetchAsDbaRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ExecuteFetchAsDbaResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ExecuteFetchAsDBA",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ExecuteFetchAsDBA"));
self.inner.unary(req, path, codec).await
}
pub async fn execute_hook(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::ExecuteHookRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ExecuteHookResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ExecuteHook",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ExecuteHook"));
self.inner.unary(req, path, codec).await
}
pub async fn find_all_shards_in_keyspace(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::FindAllShardsInKeyspaceRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::FindAllShardsInKeyspaceResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/FindAllShardsInKeyspace",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("vtctlservice.Vtctld", "FindAllShardsInKeyspace"),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_backups(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::GetBackupsRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetBackupsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetBackups",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetBackups"));
self.inner.unary(req, path, codec).await
}
pub async fn get_cell_info(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::GetCellInfoRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetCellInfoResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetCellInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetCellInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn get_cell_info_names(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetCellInfoNamesRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetCellInfoNamesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetCellInfoNames",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetCellInfoNames"));
self.inner.unary(req, path, codec).await
}
pub async fn get_cells_aliases(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetCellsAliasesRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetCellsAliasesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetCellsAliases",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetCellsAliases"));
self.inner.unary(req, path, codec).await
}
pub async fn get_full_status(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetFullStatusRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetFullStatusResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetFullStatus",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetFullStatus"));
self.inner.unary(req, path, codec).await
}
pub async fn get_keyspace(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::GetKeyspaceRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetKeyspaceResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetKeyspace",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetKeyspace"));
self.inner.unary(req, path, codec).await
}
pub async fn get_keyspaces(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetKeyspacesRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetKeyspacesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetKeyspaces",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetKeyspaces"));
self.inner.unary(req, path, codec).await
}
pub async fn get_permissions(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetPermissionsRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetPermissionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetPermissions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetPermissions"));
self.inner.unary(req, path, codec).await
}
pub async fn get_routing_rules(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetRoutingRulesRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetRoutingRulesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetRoutingRules",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetRoutingRules"));
self.inner.unary(req, path, codec).await
}
pub async fn get_schema(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::GetSchemaRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetSchemaResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetSchema",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetSchema"));
self.inner.unary(req, path, codec).await
}
pub async fn get_shard(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::GetShardRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetShardResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetShard",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetShard"));
self.inner.unary(req, path, codec).await
}
pub async fn get_shard_routing_rules(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetShardRoutingRulesRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetShardRoutingRulesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetShardRoutingRules",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetShardRoutingRules"));
self.inner.unary(req, path, codec).await
}
pub async fn get_srv_keyspace_names(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetSrvKeyspaceNamesRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetSrvKeyspaceNamesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetSrvKeyspaceNames",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetSrvKeyspaceNames"));
self.inner.unary(req, path, codec).await
}
pub async fn get_srv_keyspaces(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetSrvKeyspacesRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetSrvKeyspacesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetSrvKeyspaces",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetSrvKeyspaces"));
self.inner.unary(req, path, codec).await
}
pub async fn get_srv_v_schema(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetSrvVSchemaRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetSrvVSchemaResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetSrvVSchema",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetSrvVSchema"));
self.inner.unary(req, path, codec).await
}
pub async fn get_srv_v_schemas(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetSrvVSchemasRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetSrvVSchemasResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetSrvVSchemas",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetSrvVSchemas"));
self.inner.unary(req, path, codec).await
}
pub async fn get_tablet(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::GetTabletRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetTabletResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetTablet",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetTablet"));
self.inner.unary(req, path, codec).await
}
pub async fn get_tablets(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::GetTabletsRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetTabletsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetTablets",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetTablets"));
self.inner.unary(req, path, codec).await
}
pub async fn get_topology_path(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetTopologyPathRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetTopologyPathResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetTopologyPath",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetTopologyPath"));
self.inner.unary(req, path, codec).await
}
pub async fn get_version(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::GetVersionRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetVersionResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetVersion",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetVersion"));
self.inner.unary(req, path, codec).await
}
pub async fn get_v_schema(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::GetVSchemaRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetVSchemaResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetVSchema",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetVSchema"));
self.inner.unary(req, path, codec).await
}
pub async fn get_workflows(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::GetWorkflowsRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::GetWorkflowsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/GetWorkflows",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "GetWorkflows"));
self.inner.unary(req, path, codec).await
}
pub async fn init_shard_primary(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::InitShardPrimaryRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::InitShardPrimaryResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/InitShardPrimary",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "InitShardPrimary"));
self.inner.unary(req, path, codec).await
}
pub async fn ping_tablet(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::PingTabletRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::PingTabletResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/PingTablet",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "PingTablet"));
self.inner.unary(req, path, codec).await
}
pub async fn planned_reparent_shard(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::PlannedReparentShardRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::PlannedReparentShardResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/PlannedReparentShard",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "PlannedReparentShard"));
self.inner.unary(req, path, codec).await
}
pub async fn rebuild_keyspace_graph(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::RebuildKeyspaceGraphRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::RebuildKeyspaceGraphResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/RebuildKeyspaceGraph",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "RebuildKeyspaceGraph"));
self.inner.unary(req, path, codec).await
}
pub async fn rebuild_v_schema_graph(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::RebuildVSchemaGraphRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::RebuildVSchemaGraphResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/RebuildVSchemaGraph",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "RebuildVSchemaGraph"));
self.inner.unary(req, path, codec).await
}
pub async fn refresh_state(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::RefreshStateRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::RefreshStateResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/RefreshState",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "RefreshState"));
self.inner.unary(req, path, codec).await
}
pub async fn refresh_state_by_shard(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::RefreshStateByShardRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::RefreshStateByShardResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/RefreshStateByShard",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "RefreshStateByShard"));
self.inner.unary(req, path, codec).await
}
pub async fn reload_schema(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ReloadSchemaRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ReloadSchemaResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ReloadSchema",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ReloadSchema"));
self.inner.unary(req, path, codec).await
}
pub async fn reload_schema_keyspace(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ReloadSchemaKeyspaceRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ReloadSchemaKeyspaceResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ReloadSchemaKeyspace",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ReloadSchemaKeyspace"));
self.inner.unary(req, path, codec).await
}
pub async fn reload_schema_shard(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ReloadSchemaShardRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ReloadSchemaShardResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ReloadSchemaShard",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ReloadSchemaShard"));
self.inner.unary(req, path, codec).await
}
pub async fn remove_backup(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::RemoveBackupRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::RemoveBackupResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/RemoveBackup",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "RemoveBackup"));
self.inner.unary(req, path, codec).await
}
pub async fn remove_keyspace_cell(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::RemoveKeyspaceCellRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::RemoveKeyspaceCellResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/RemoveKeyspaceCell",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "RemoveKeyspaceCell"));
self.inner.unary(req, path, codec).await
}
pub async fn remove_shard_cell(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::RemoveShardCellRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::RemoveShardCellResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/RemoveShardCell",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "RemoveShardCell"));
self.inner.unary(req, path, codec).await
}
pub async fn reparent_tablet(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ReparentTabletRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ReparentTabletResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ReparentTablet",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ReparentTablet"));
self.inner.unary(req, path, codec).await
}
pub async fn restore_from_backup(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::RestoreFromBackupRequest,
>,
) -> std::result::Result<
tonic::Response<
tonic::codec::Streaming<
super::super::vtctldata::RestoreFromBackupResponse,
>,
>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/RestoreFromBackup",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "RestoreFromBackup"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn run_health_check(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::RunHealthCheckRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::RunHealthCheckResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/RunHealthCheck",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "RunHealthCheck"));
self.inner.unary(req, path, codec).await
}
pub async fn set_keyspace_durability_policy(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::SetKeyspaceDurabilityPolicyRequest,
>,
) -> std::result::Result<
tonic::Response<
super::super::vtctldata::SetKeyspaceDurabilityPolicyResponse,
>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/SetKeyspaceDurabilityPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("vtctlservice.Vtctld", "SetKeyspaceDurabilityPolicy"),
);
self.inner.unary(req, path, codec).await
}
pub async fn set_shard_is_primary_serving(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::SetShardIsPrimaryServingRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::SetShardIsPrimaryServingResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/SetShardIsPrimaryServing",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("vtctlservice.Vtctld", "SetShardIsPrimaryServing"),
);
self.inner.unary(req, path, codec).await
}
pub async fn set_shard_tablet_control(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::SetShardTabletControlRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::SetShardTabletControlResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/SetShardTabletControl",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "SetShardTabletControl"));
self.inner.unary(req, path, codec).await
}
pub async fn set_writable(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::SetWritableRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::SetWritableResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/SetWritable",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "SetWritable"));
self.inner.unary(req, path, codec).await
}
pub async fn shard_replication_add(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ShardReplicationAddRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ShardReplicationAddResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ShardReplicationAdd",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ShardReplicationAdd"));
self.inner.unary(req, path, codec).await
}
pub async fn shard_replication_fix(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ShardReplicationFixRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ShardReplicationFixResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ShardReplicationFix",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ShardReplicationFix"));
self.inner.unary(req, path, codec).await
}
pub async fn shard_replication_positions(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ShardReplicationPositionsRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ShardReplicationPositionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ShardReplicationPositions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("vtctlservice.Vtctld", "ShardReplicationPositions"),
);
self.inner.unary(req, path, codec).await
}
pub async fn shard_replication_remove(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ShardReplicationRemoveRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ShardReplicationRemoveResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ShardReplicationRemove",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("vtctlservice.Vtctld", "ShardReplicationRemove"),
);
self.inner.unary(req, path, codec).await
}
pub async fn sleep_tablet(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::SleepTabletRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::SleepTabletResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/SleepTablet",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "SleepTablet"));
self.inner.unary(req, path, codec).await
}
pub async fn source_shard_add(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::SourceShardAddRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::SourceShardAddResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/SourceShardAdd",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "SourceShardAdd"));
self.inner.unary(req, path, codec).await
}
pub async fn source_shard_delete(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::SourceShardDeleteRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::SourceShardDeleteResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/SourceShardDelete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "SourceShardDelete"));
self.inner.unary(req, path, codec).await
}
pub async fn start_replication(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::StartReplicationRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::StartReplicationResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/StartReplication",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "StartReplication"));
self.inner.unary(req, path, codec).await
}
pub async fn stop_replication(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::StopReplicationRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::StopReplicationResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/StopReplication",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "StopReplication"));
self.inner.unary(req, path, codec).await
}
pub async fn tablet_externally_reparented(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::TabletExternallyReparentedRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::TabletExternallyReparentedResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/TabletExternallyReparented",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("vtctlservice.Vtctld", "TabletExternallyReparented"),
);
self.inner.unary(req, path, codec).await
}
pub async fn update_cell_info(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::UpdateCellInfoRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::UpdateCellInfoResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/UpdateCellInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "UpdateCellInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn update_cells_alias(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::UpdateCellsAliasRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::UpdateCellsAliasResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/UpdateCellsAlias",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "UpdateCellsAlias"));
self.inner.unary(req, path, codec).await
}
pub async fn validate(
&mut self,
request: impl tonic::IntoRequest<super::super::vtctldata::ValidateRequest>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ValidateResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/Validate",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "Validate"));
self.inner.unary(req, path, codec).await
}
pub async fn validate_keyspace(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ValidateKeyspaceRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ValidateKeyspaceResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ValidateKeyspace",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ValidateKeyspace"));
self.inner.unary(req, path, codec).await
}
pub async fn validate_schema_keyspace(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ValidateSchemaKeyspaceRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ValidateSchemaKeyspaceResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ValidateSchemaKeyspace",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("vtctlservice.Vtctld", "ValidateSchemaKeyspace"),
);
self.inner.unary(req, path, codec).await
}
pub async fn validate_shard(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ValidateShardRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ValidateShardResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ValidateShard",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ValidateShard"));
self.inner.unary(req, path, codec).await
}
pub async fn validate_version_keyspace(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ValidateVersionKeyspaceRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ValidateVersionKeyspaceResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ValidateVersionKeyspace",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("vtctlservice.Vtctld", "ValidateVersionKeyspace"),
);
self.inner.unary(req, path, codec).await
}
pub async fn validate_version_shard(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ValidateVersionShardRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ValidateVersionShardResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ValidateVersionShard",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ValidateVersionShard"));
self.inner.unary(req, path, codec).await
}
pub async fn validate_v_schema(
&mut self,
request: impl tonic::IntoRequest<
super::super::vtctldata::ValidateVSchemaRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::vtctldata::ValidateVSchemaResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/vtctlservice.Vtctld/ValidateVSchema",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("vtctlservice.Vtctld", "ValidateVSchema"));
self.inner.unary(req, path, codec).await
}
}
}