mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
First implementation with Asynchronous gRPC server, a few services and some client python code.
61 lines
1.1 KiB
Protocol Buffer
61 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "Empty.proto";
|
|
|
|
package rips;
|
|
|
|
service Commands
|
|
{
|
|
rpc Execute(CommandParams) returns(Empty) {}
|
|
}
|
|
|
|
message SetTimeStepParams
|
|
{
|
|
int32 caseId = 1;
|
|
int32 timeStep = 2;
|
|
}
|
|
|
|
message SetMainWindowSizeParams
|
|
{
|
|
int32 height = 1;
|
|
int32 width = 2;
|
|
}
|
|
|
|
message FilePathRequest
|
|
{
|
|
string path = 1;
|
|
}
|
|
|
|
message ReplaceCaseRequest
|
|
{
|
|
string newGridFile = 1;
|
|
int32 caseId = 2;
|
|
}
|
|
|
|
message ReplaceSourceCasesRequest
|
|
{
|
|
string gridListFile = 1;
|
|
}
|
|
|
|
message ExportMultiCaseRequest
|
|
{
|
|
string gridListFile = 1;
|
|
}
|
|
|
|
message CommandParams
|
|
{
|
|
oneof params
|
|
{
|
|
SetTimeStepParams setTimeStep = 1;
|
|
SetMainWindowSizeParams setMainWindowSize = 2;
|
|
FilePathRequest openProject = 3;
|
|
Empty closeProject = 4;
|
|
FilePathRequest setStartDir = 5;
|
|
FilePathRequest loadCase = 6;
|
|
ReplaceCaseRequest replaceCase = 7;
|
|
ReplaceSourceCasesRequest replaceSourceCases = 8;
|
|
ExportMultiCaseRequest exportMultiCaseSnapshots = 9;
|
|
}
|
|
}
|
|
|