mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-20 21:43:20 -06:00
273e416b40
* #7797 Well Targets: Add scripting capability * #7794 Python : Do not update childField or childFieldArray * #7797: Python - Add scripting to well path collection - Extend the pdmobject.py with method add_object() - allow objects to be created from Python in well path collections - add well targets to modelled well path * #7795 Python : Make sure referenced generated classes are defined * #7810 StimPlanModel: clean-up python generation * Python : Always use empty string as default value for ptrFieldValue It can happen that a ptrField is assigned to a pointer on object construction. (FaciesProperties) Make sure that constructor always assigns an empty string. Co-authored-by: magnesj <magnesj@users.noreply.github.com> Co-authored-by: Kristian Bendiksen <kristian.bendiksen@gmail.com>
113 lines
2.3 KiB
Protocol Buffer
113 lines
2.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "Definitions.proto";
|
|
|
|
package rips;
|
|
|
|
service PdmObjectService
|
|
{
|
|
rpc GetDescendantPdmObjects(PdmDescendantObjectRequest) returns (PdmObjectArray) {}
|
|
rpc GetChildPdmObjects(PdmChildObjectRequest) returns (PdmObjectArray) {}
|
|
rpc GetAncestorPdmObject(PdmParentObjectRequest) returns (PdmObject) {}
|
|
rpc CreateChildPdmObject(CreatePdmChildObjectRequest) returns (PdmObject) {}
|
|
rpc UpdateExistingPdmObject(PdmObject) returns (Empty) {}
|
|
rpc CallPdmObjectGetter(PdmObjectGetterRequest) returns (stream PdmObjectGetterReply) {}
|
|
rpc CallPdmObjectSetter(stream PdmObjectSetterChunk) returns (ClientToServerStreamReply) {}
|
|
rpc CallPdmObjectMethod(PdmObjectMethodRequest) returns (PdmObject) {}
|
|
}
|
|
|
|
message PdmDescendantObjectRequest
|
|
{
|
|
PdmObject object = 1;
|
|
string child_keyword = 2;
|
|
}
|
|
|
|
message PdmChildObjectRequest
|
|
{
|
|
PdmObject object = 1;
|
|
string child_field = 2;
|
|
}
|
|
|
|
message CreatePdmChildObjectRequest
|
|
{
|
|
PdmObject object = 1;
|
|
string child_field = 2;
|
|
string class_keyword = 3;
|
|
}
|
|
|
|
message PdmParentObjectRequest
|
|
{
|
|
PdmObject object = 1;
|
|
string parent_keyword = 2;
|
|
}
|
|
|
|
message PdmObject
|
|
{
|
|
string class_keyword = 1;
|
|
uint64 address = 2;
|
|
map<string, string> parameters = 3;
|
|
bool visible = 4;
|
|
bool persistent = 5; // Does this object live on in ResInsight?
|
|
}
|
|
|
|
message PdmObjectArray
|
|
{
|
|
repeated PdmObject objects = 1;
|
|
}
|
|
|
|
message PdmObjectGetterRequest
|
|
{
|
|
PdmObject object = 1;
|
|
string method = 2;
|
|
}
|
|
|
|
message PdmObjectSetterRequest
|
|
{
|
|
PdmObjectGetterRequest request = 1;
|
|
int32 data_count = 2;
|
|
}
|
|
|
|
message PdmObjectSetterChunk
|
|
{
|
|
oneof data
|
|
{
|
|
PdmObjectSetterRequest set_request = 1;
|
|
DoubleArray doubles = 2;
|
|
IntArray ints = 3;
|
|
StringArray strings = 4;
|
|
}
|
|
}
|
|
|
|
|
|
message DoubleArray
|
|
{
|
|
repeated double data = 1;
|
|
}
|
|
|
|
message IntArray
|
|
{
|
|
repeated int32 data = 1;
|
|
}
|
|
|
|
message StringArray
|
|
{
|
|
repeated string data = 1;
|
|
}
|
|
|
|
message PdmObjectGetterReply
|
|
{
|
|
oneof data
|
|
{
|
|
DoubleArray doubles = 1;
|
|
IntArray ints = 2;
|
|
StringArray strings = 3;
|
|
}
|
|
}
|
|
|
|
message PdmObjectMethodRequest
|
|
{
|
|
PdmObject object = 1;
|
|
string method = 2;
|
|
PdmObject params = 3;
|
|
}
|