From 58b06169e68f2983f1395a9a963d35b64a3f894c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Augustyniak?= Date: Tue, 12 Nov 2024 11:09:39 -0500 Subject: [PATCH] reword sankey path upload intent decision apis (#34) --- .../protobuf/client/v1/api.proto | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/bitdrift_public/protobuf/client/v1/api.proto b/src/bitdrift_public/protobuf/client/v1/api.proto index 106b576..de4d3d6 100644 --- a/src/bitdrift_public/protobuf/client/v1/api.proto +++ b/src/bitdrift_public/protobuf/client/v1/api.proto @@ -428,16 +428,24 @@ message SankeyPathUploadResponse { // The response to Sankey diagram intent request. message SankeyIntentResponse { - enum Decision { - // The diagram should be uploaded. - UPLOAD = 0; - // The diagram should be dropped. - DROP = 1; + string intent_uuid = 1 [(validate.rules).string = {min_len: 1}]; + + reserved 2; + reserved 'decision'; + + message UploadImmediately { } - string intent_uuid = 1 [(validate.rules).string = {min_len: 1}]; + message Drop { + } - Decision decision = 2; + oneof decision { + // The candidate sankey path should be uploaded immediatly. + UploadImmediately upload_immediately = 3; + + // The candidate sankey path should be dropped. + Drop drop = 4; + } } // A multiplexed response sent over the bitdrift API.