2019-06-10 13:42:20 -05:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2019-08-13 06:15:58 -05:00
|
|
|
import "Definitions.proto";
|
2019-06-10 13:42:20 -05:00
|
|
|
|
|
|
|
package rips;
|
|
|
|
|
|
|
|
service PdmObjectService
|
|
|
|
{
|
2019-07-19 06:54:15 -05:00
|
|
|
rpc GetDescendantPdmObjects(PdmDescendantObjectRequest) returns (PdmObjectArray) {}
|
2019-06-10 13:42:20 -05:00
|
|
|
rpc GetChildPdmObjects(PdmChildObjectRequest) returns (PdmObjectArray) {}
|
|
|
|
rpc GetAncestorPdmObject(PdmParentObjectRequest) returns (PdmObject) {}
|
2019-07-19 06:54:15 -05:00
|
|
|
rpc CreateChildPdmObject(CreatePdmChildObjectRequest) returns (PdmObject) {}
|
2019-06-10 13:42:20 -05:00
|
|
|
rpc UpdateExistingPdmObject(PdmObject) returns (Empty) {}
|
2020-03-10 08:11:22 -05:00
|
|
|
rpc CallPdmObjectGetter(PdmObjectGetterRequest) returns (stream PdmObjectGetterReply) {}
|
|
|
|
rpc CallPdmObjectSetter(stream PdmObjectSetterChunk) returns (ClientToServerStreamReply) {}
|
|
|
|
rpc CallPdmObjectMethod(PdmObjectMethodRequest) returns (PdmObject) {}
|
2024-01-29 01:46:45 -06:00
|
|
|
rpc DeleteExistingPdmObject(PdmObject) returns (Empty) {}
|
2019-06-10 13:42:20 -05:00
|
|
|
}
|
|
|
|
|
2019-07-19 06:54:15 -05:00
|
|
|
message PdmDescendantObjectRequest
|
2019-06-10 13:42:20 -05:00
|
|
|
{
|
|
|
|
PdmObject object = 1;
|
|
|
|
string child_keyword = 2;
|
|
|
|
}
|
|
|
|
|
2019-07-19 06:54:15 -05:00
|
|
|
message PdmChildObjectRequest
|
|
|
|
{
|
|
|
|
PdmObject object = 1;
|
|
|
|
string child_field = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreatePdmChildObjectRequest
|
|
|
|
{
|
|
|
|
PdmObject object = 1;
|
|
|
|
string child_field = 2;
|
2021-06-25 07:18:36 -05:00
|
|
|
string class_keyword = 3;
|
2019-07-19 06:54:15 -05:00
|
|
|
}
|
|
|
|
|
2019-06-10 13:42:20 -05:00
|
|
|
message PdmParentObjectRequest
|
|
|
|
{
|
|
|
|
PdmObject object = 1;
|
|
|
|
string parent_keyword = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PdmObject
|
|
|
|
{
|
|
|
|
string class_keyword = 1;
|
|
|
|
uint64 address = 2;
|
|
|
|
map<string, string> parameters = 3;
|
2020-01-28 08:48:50 -06:00
|
|
|
bool visible = 4;
|
2020-03-10 08:11:22 -05:00
|
|
|
bool persistent = 5; // Does this object live on in ResInsight?
|
2019-06-10 13:42:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message PdmObjectArray
|
|
|
|
{
|
|
|
|
repeated PdmObject objects = 1;
|
2020-02-28 07:38:24 -06:00
|
|
|
}
|
|
|
|
|
2020-03-10 08:11:22 -05:00
|
|
|
message PdmObjectGetterRequest
|
2020-02-28 07:38:24 -06:00
|
|
|
{
|
|
|
|
PdmObject object = 1;
|
|
|
|
string method = 2;
|
|
|
|
}
|
|
|
|
|
2020-03-10 08:11:22 -05:00
|
|
|
message PdmObjectSetterRequest
|
2020-02-28 07:38:24 -06:00
|
|
|
{
|
2020-03-10 08:11:22 -05:00
|
|
|
PdmObjectGetterRequest request = 1;
|
2020-02-28 07:38:24 -06:00
|
|
|
int32 data_count = 2;
|
|
|
|
}
|
|
|
|
|
2020-03-10 08:11:22 -05:00
|
|
|
message PdmObjectSetterChunk
|
2020-02-28 07:38:24 -06:00
|
|
|
{
|
|
|
|
oneof data
|
|
|
|
{
|
2020-03-10 08:11:22 -05:00
|
|
|
PdmObjectSetterRequest set_request = 1;
|
|
|
|
DoubleArray doubles = 2;
|
|
|
|
IntArray ints = 3;
|
|
|
|
StringArray strings = 4;
|
2020-02-28 07:38:24 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message DoubleArray
|
|
|
|
{
|
|
|
|
repeated double data = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message IntArray
|
|
|
|
{
|
|
|
|
repeated int32 data = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message StringArray
|
|
|
|
{
|
|
|
|
repeated string data = 1;
|
|
|
|
}
|
|
|
|
|
2020-03-10 08:11:22 -05:00
|
|
|
message PdmObjectGetterReply
|
2020-02-28 07:38:24 -06:00
|
|
|
{
|
|
|
|
oneof data
|
|
|
|
{
|
|
|
|
DoubleArray doubles = 1;
|
|
|
|
IntArray ints = 2;
|
|
|
|
StringArray strings = 3;
|
|
|
|
}
|
2020-03-10 08:11:22 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message PdmObjectMethodRequest
|
|
|
|
{
|
|
|
|
PdmObject object = 1;
|
|
|
|
string method = 2;
|
|
|
|
PdmObject params = 3;
|
|
|
|
}
|