From 71198a61a1be9825aacd511c35a569a8b0c010a5 Mon Sep 17 00:00:00 2001 From: merle <sebastien.merle@stritzinger.com> Date: Tue, 11 Jul 2023 05:54:41 -0700 Subject: [PATCH] Use Empty defined in the context to prevent duplication --- proto/l3_centralizedattackdetector.proto | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/proto/l3_centralizedattackdetector.proto b/proto/l3_centralizedattackdetector.proto index ed99435aa..5fbed424c 100644 --- a/proto/l3_centralizedattackdetector.proto +++ b/proto/l3_centralizedattackdetector.proto @@ -18,13 +18,13 @@ import "context.proto"; service L3Centralizedattackdetector { // Analyze single input to the ML model in the CAD component - rpc AnalyzeConnectionStatistics (L3CentralizedattackdetectorMetrics) returns (Empty) {} + rpc AnalyzeConnectionStatistics (L3CentralizedattackdetectorMetrics) returns (context.Empty) {} // Analyze a batch of inputs to the ML model in the CAD component - rpc AnalyzeBatchConnectionStatistics (L3CentralizedattackdetectorBatchInput) returns (Empty) {} + rpc AnalyzeBatchConnectionStatistics (L3CentralizedattackdetectorBatchInput) returns (context.Empty) {} // Get the list of features used by the ML model in the CAD component - rpc GetFeaturesIds (Empty) returns (AutoFeatures) {} + rpc GetFeaturesIds (context.Empty) returns (AutoFeatures) {} } message Feature { @@ -63,6 +63,6 @@ message L3CentralizedattackdetectorBatchInput { repeated L3CentralizedattackdetectorMetrics metrics = 1; } -message Empty { - string message = 1; -} +// message Empty { +// string message = 1; +// } -- GitLab