2019-05-21 06:40:42 -05:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2019-08-13 06:15:58 -05:00
|
|
|
import "Definitions.proto";
|
2019-06-03 07:33:16 -05:00
|
|
|
import "Case.proto";
|
2019-05-21 06:40:42 -05:00
|
|
|
|
|
|
|
package rips;
|
|
|
|
|
|
|
|
service Properties
|
|
|
|
{
|
2019-06-03 07:33:16 -05:00
|
|
|
rpc GetAvailableProperties(AvailablePropertiesRequest) returns (AvailableProperties) {}
|
|
|
|
rpc GetActiveCellProperty(PropertyRequest) returns (stream PropertyChunk) {}
|
2020-02-19 15:01:42 -06:00
|
|
|
rpc GetSelectedCellProperty(PropertyRequest) returns (stream PropertyChunk) {}
|
2019-06-03 07:33:16 -05:00
|
|
|
rpc GetGridProperty(PropertyRequest) returns (stream PropertyChunk) {}
|
2019-08-13 06:15:58 -05:00
|
|
|
rpc SetActiveCellProperty(stream PropertyInputChunk) returns (ClientToServerStreamReply) {}
|
|
|
|
rpc SetGridProperty(stream PropertyInputChunk) returns (ClientToServerStreamReply) {}
|
2019-05-21 06:40:42 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
enum PropertyType
|
|
|
|
{
|
|
|
|
DYNAMIC_NATIVE = 0;
|
|
|
|
STATIC_NATIVE = 1;
|
|
|
|
SOURSIMRL = 2;
|
|
|
|
GENERATED = 3;
|
|
|
|
INPUT_PROPERTY = 4;
|
|
|
|
FORMATION_NAMES = 5;
|
|
|
|
FLOW_DIAGNOSTICS = 6;
|
|
|
|
INJECTION_FLOODING = 7;
|
|
|
|
REMOVED = 8;
|
|
|
|
UNDEFINED = 999;
|
|
|
|
}
|
|
|
|
|
2019-06-03 07:33:16 -05:00
|
|
|
message AvailablePropertiesRequest
|
2019-05-21 06:40:42 -05:00
|
|
|
{
|
2019-06-03 07:33:16 -05:00
|
|
|
CaseRequest case_request = 1;
|
2019-05-21 06:40:42 -05:00
|
|
|
PropertyType property_type = 2;
|
|
|
|
PorosityModelType porosity_model = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AvailableProperties
|
|
|
|
{
|
|
|
|
repeated string property_names = 1;
|
|
|
|
}
|
|
|
|
|
2019-06-03 07:33:16 -05:00
|
|
|
message PropertyRequest
|
2019-05-21 06:40:42 -05:00
|
|
|
{
|
2019-06-03 07:33:16 -05:00
|
|
|
CaseRequest case_request = 1;
|
2019-05-21 06:40:42 -05:00
|
|
|
PropertyType property_type = 2;
|
|
|
|
string property_name = 3;
|
|
|
|
int32 time_step = 4;
|
|
|
|
int32 grid_index = 5;
|
|
|
|
PorosityModelType porosity_model = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TimeStep
|
|
|
|
{
|
|
|
|
int32 index = 1;
|
|
|
|
}
|
|
|
|
|
2019-06-03 07:33:16 -05:00
|
|
|
message PropertyInputChunk
|
2019-05-21 06:40:42 -05:00
|
|
|
{
|
2019-06-03 07:33:16 -05:00
|
|
|
oneof ChunkType
|
|
|
|
{
|
|
|
|
// Params needs to be sent in the first message
|
|
|
|
PropertyRequest params = 1;
|
|
|
|
PropertyChunk values = 2;
|
|
|
|
}
|
2019-05-21 06:40:42 -05:00
|
|
|
}
|
|
|
|
|
2019-06-03 07:33:16 -05:00
|
|
|
message PropertyChunk
|
2019-05-21 06:40:42 -05:00
|
|
|
{
|
|
|
|
repeated double values = 1;
|
|
|
|
}
|