Files
ResInsight/ApplicationCode/GrpcInterface/GrpcProtos/NNCProperties.proto
Kristian Bendiksen 34d3785709 #4477 Add python methods to get NNC values (dynamic, static and generated).
Equivalent to GetDynamicNNCValues and GetStaticNNCValues in Octave. Also adds
support for generated values which is currently not in Octave.
2020-02-25 09:42:13 +01:00

58 lines
1.0 KiB
Protocol Buffer

syntax = "proto3";
import "Case.proto";
import "Definitions.proto";
package rips;
service NNCProperties
{
rpc GetAvailableNNCProperties(CaseRequest) returns (AvailableNNCProperties) {}
rpc GetNNCConnections(CaseRequest) returns (stream NNCConnections) {}
rpc GetNNCValues(NNCValuesRequest) returns (stream NNCValues) {}
}
enum NNCPropertyType
{
NNC_DYNAMIC = 0;
NNC_STATIC = 1;
NNC_GENERATED = 2;
}
message AvailableNNCProperty
{
string name = 1;
NNCPropertyType property_type = 2;
}
message AvailableNNCProperties
{
repeated AvailableNNCProperty properties = 1;
}
message NNCConnection
{
int32 cell_grid_index1 = 1;
int32 cell_grid_index2 = 2;
Vec3i cell1 = 3;
Vec3i cell2 = 4;
}
message NNCConnections
{
repeated NNCConnection connections = 1;
}
message NNCValuesRequest
{
int32 case_id = 1;
string property_name = 2;
NNCPropertyType property_type = 3;
int32 time_step = 4;
}
message NNCValues
{
repeated double values = 1;
}