Autogenerated update for e7913b7950...9a7a123284

This commit is contained in:
2025-08-14 23:57:02 +00:00
parent 0e86b1bb6c
commit b526ae64ca
2 changed files with 82 additions and 0 deletions

View File

@@ -164,6 +164,15 @@ pub struct NullResponse {
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct OperationSuccessRequest {
#[prost(uint32, tag="1")]
pub operation_id: u32,
#[prost(string, tag="2")]
pub path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct OperationFailRequest {
#[prost(uint32, tag="1")]
pub operation_id: u32,

View File

@@ -2456,6 +2456,29 @@ pub mod validator_operation_service_client {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn success(
&mut self,
request: impl tonic::IntoRequest<super::OperationSuccessRequest>,
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic_prost::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/validator.ValidatorOperationService/Success",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("validator.ValidatorOperationService", "Success"),
);
self.inner.unary(req, path, codec).await
}
pub async fn fail(
&mut self,
request: impl tonic::IntoRequest<super::OperationFailRequest>,
@@ -2492,6 +2515,10 @@ pub mod validator_operation_service_server {
/// Generated trait containing gRPC methods that should be implemented for use with ValidatorOperationServiceServer.
#[async_trait]
pub trait ValidatorOperationService: std::marker::Send + std::marker::Sync + 'static {
async fn success(
&self,
request: tonic::Request<super::OperationSuccessRequest>,
) -> std::result::Result<tonic::Response<super::NullResponse>, tonic::Status>;
async fn fail(
&self,
request: tonic::Request<super::OperationFailRequest>,
@@ -2574,6 +2601,52 @@ pub mod validator_operation_service_server {
}
fn call(&mut self, req: http::Request<B>) -> Self::Future {
match req.uri().path() {
"/validator.ValidatorOperationService/Success" => {
#[allow(non_camel_case_types)]
struct SuccessSvc<T: ValidatorOperationService>(pub Arc<T>);
impl<
T: ValidatorOperationService,
> tonic::server::UnaryService<super::OperationSuccessRequest>
for SuccessSvc<T> {
type Response = super::NullResponse;
type Future = BoxFuture<
tonic::Response<Self::Response>,
tonic::Status,
>;
fn call(
&mut self,
request: tonic::Request<super::OperationSuccessRequest>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as ValidatorOperationService>::success(&inner, request)
.await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = SuccessSvc(inner);
let codec = tonic_prost::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/validator.ValidatorOperationService/Fail" => {
#[allow(non_camel_case_types)]
struct FailSvc<T: ValidatorOperationService>(pub Arc<T>);