2025-04-28 17:46:35 +02:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
package rips;
|
|
|
|
|
|
|
|
|
|
import "Definitions.proto";
|
|
|
|
|
|
|
|
|
|
service KeyValueStore {
|
|
|
|
|
rpc SetValue(stream KeyValueStoreInputChunk)
|
|
|
|
|
returns (ClientToServerStreamReply) {}
|
2025-08-01 10:33:04 +02:00
|
|
|
rpc GetValue(KeyValueStoreOutputRequest)
|
|
|
|
|
returns (stream KeyValueStoreOutputChunk) {}
|
2025-08-01 13:35:42 +02:00
|
|
|
rpc RemoveValue(KeyValueStoreRemoveRequest) returns (Empty) {}
|
2025-04-28 17:46:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message KeyValueStoreInputChunk {
|
|
|
|
|
oneof KeyValueStoreChunkType {
|
|
|
|
|
KeyValueInputParameters parameters = 1;
|
|
|
|
|
KeyValueStoreChunk values = 2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message KeyValueInputParameters {
|
|
|
|
|
// Name needs to be sent in the first message
|
|
|
|
|
string name = 1;
|
|
|
|
|
int64 num_elements = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message KeyValueStoreChunk { repeated float values = 1; }
|
2025-08-01 10:33:04 +02:00
|
|
|
|
|
|
|
|
message KeyValueStoreOutputRequest { string name = 1; }
|
|
|
|
|
|
|
|
|
|
message KeyValueStoreOutputChunk { repeated float values = 1; }
|
2025-08-01 13:35:42 +02:00
|
|
|
|
|
|
|
|
message KeyValueStoreRemoveRequest { string name = 1; }
|