Autogenerated update for 63ad706dd9...0773cba6c7
This commit is contained in:
@@ -92,7 +92,7 @@ pub mod bot_analyzer_client {
|
|||||||
}
|
}
|
||||||
pub async fn analyze(
|
pub async fn analyze(
|
||||||
&mut self,
|
&mut self,
|
||||||
request: impl tonic::IntoRequest<super::FileId>,
|
request: impl tonic::IntoRequest<super::DownloadUrl>,
|
||||||
) -> std::result::Result<
|
) -> std::result::Result<
|
||||||
tonic::Response<super::AnalysisResponse>,
|
tonic::Response<super::AnalysisResponse>,
|
||||||
tonic::Status,
|
tonic::Status,
|
||||||
@@ -131,7 +131,7 @@ pub mod bot_analyzer_server {
|
|||||||
pub trait BotAnalyzer: std::marker::Send + std::marker::Sync + 'static {
|
pub trait BotAnalyzer: std::marker::Send + std::marker::Sync + 'static {
|
||||||
async fn analyze(
|
async fn analyze(
|
||||||
&self,
|
&self,
|
||||||
request: tonic::Request<super::FileId>,
|
request: tonic::Request<super::DownloadUrl>,
|
||||||
) -> std::result::Result<
|
) -> std::result::Result<
|
||||||
tonic::Response<super::AnalysisResponse>,
|
tonic::Response<super::AnalysisResponse>,
|
||||||
tonic::Status,
|
tonic::Status,
|
||||||
@@ -216,7 +216,7 @@ pub mod bot_analyzer_server {
|
|||||||
"/bot_analyzer.BotAnalyzer/Analyze" => {
|
"/bot_analyzer.BotAnalyzer/Analyze" => {
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
struct AnalyzeSvc<T: BotAnalyzer>(pub Arc<T>);
|
struct AnalyzeSvc<T: BotAnalyzer>(pub Arc<T>);
|
||||||
impl<T: BotAnalyzer> tonic::server::UnaryService<super::FileId>
|
impl<T: BotAnalyzer> tonic::server::UnaryService<super::DownloadUrl>
|
||||||
for AnalyzeSvc<T> {
|
for AnalyzeSvc<T> {
|
||||||
type Response = super::AnalysisResponse;
|
type Response = super::AnalysisResponse;
|
||||||
type Future = BoxFuture<
|
type Future = BoxFuture<
|
||||||
@@ -225,7 +225,7 @@ pub mod bot_analyzer_server {
|
|||||||
>;
|
>;
|
||||||
fn call(
|
fn call(
|
||||||
&mut self,
|
&mut self,
|
||||||
request: tonic::Request<super::FileId>,
|
request: tonic::Request<super::DownloadUrl>,
|
||||||
) -> Self::Future {
|
) -> Self::Future {
|
||||||
let inner = Arc::clone(&self.0);
|
let inner = Arc::clone(&self.0);
|
||||||
let fut = async move {
|
let fut = async move {
|
||||||
|
|||||||
@@ -3,10 +3,9 @@
|
|||||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||||
#[derive(serde::Serialize, serde::Deserialize)]
|
#[derive(serde::Serialize, serde::Deserialize)]
|
||||||
#[serde(rename_all = "PascalCase")]
|
#[serde(rename_all = "PascalCase")]
|
||||||
pub struct FileId {
|
pub struct DownloadUrl {
|
||||||
#[prost(string, tag="1")]
|
#[prost(string, tag="1")]
|
||||||
#[serde(rename = "FileID")]
|
pub url: ::prost::alloc::string::String,
|
||||||
pub file_id: ::prost::alloc::string::String,
|
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||||
#[derive(serde::Serialize, serde::Deserialize)]
|
#[derive(serde::Serialize, serde::Deserialize)]
|
||||||
|
|||||||
Reference in New Issue
Block a user