From 5d58fdb2980f5f2b03a3e6e7f36dc64884b56fa2 Mon Sep 17 00:00:00 2001 From: Zen Yui Date: Thu, 23 Jul 2020 22:11:27 -0400 Subject: [PATCH] GetState gRPC for current state (#3) --- chief_of_state/service.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/chief_of_state/service.proto b/chief_of_state/service.proto index 8e60771..619ec1e 100644 --- a/chief_of_state/service.proto +++ b/chief_of_state/service.proto @@ -15,6 +15,8 @@ import "chief_of_state/common.proto"; service ChiefOfStateService { // Used to process command sent by an application rpc ProcessCommand(ProcessCommandRequest) returns (ProcessCommandResponse); + // Used to get the current state of that entity + rpc GetState(GetStateRequest) returns (GetStateResponse); } // ProcessCommandRequest @@ -32,3 +34,14 @@ message ProcessCommandResponse { // additional meta data MetaData meta = 2; } + +message GetStateRequest { + string entity_id = 1; +} + +message GetStateResponse { + // the current state of the entity + google.protobuf.Any state = 1; + // additional meta data + MetaData meta = 2; +}