mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-11 07:56:08 -06:00
* gRPC: Make names more consistent * gRPC: clean up case info and improve Python API for cases * gRPC: much more object oriented Python interface * Python: Make a proper pip-installable package * Update rips Python package to auto generate setup.py with version number * Python: add setup.py to gitignore * Python: Update Python RIPS interface * gRPC: Remove example client from cmake file and unit test * gRPC: Fix up unit test after merge and hide warnings * gRPC: fix up python client code
35 lines
447 B
Protocol Buffer
35 lines
447 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package rips;
|
|
|
|
import "Case.proto";
|
|
|
|
service Grid
|
|
{
|
|
rpc GetCellCenters(GridRequest) returns(CellCenters) {}
|
|
rpc GetDimensions(GridRequest) returns (GridDimensions) {}
|
|
}
|
|
|
|
message GridRequest
|
|
{
|
|
CaseRequest case_request = 1;
|
|
int32 grid_index = 2;
|
|
}
|
|
|
|
message Vec3d
|
|
{
|
|
double x = 1;
|
|
double y = 2;
|
|
double z = 3;
|
|
}
|
|
|
|
message CellCenters
|
|
{
|
|
repeated Vec3d centers = 1;
|
|
}
|
|
|
|
message GridDimensions
|
|
{
|
|
Vec3i dimensions = 1;
|
|
}
|