From 306af210b1de7cc2f34f3db8ffa6e154cae78065 Mon Sep 17 00:00:00 2001 From: rnethi1701 Date: Tue, 29 Sep 2026 12:08:52 -0500 Subject: [PATCH] Add set relationship RPC --- proto/controls/service/grpc-unr/relationship.proto | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proto/controls/service/grpc-unr/relationship.proto b/proto/controls/service/grpc-unr/relationship.proto index 971afed..8f9e49d 100644 --- a/proto/controls/service/grpc-unr/relationship.proto +++ b/proto/controls/service/grpc-unr/relationship.proto @@ -11,6 +11,9 @@ service RelationshipService { // Removes the requested relationships from the relationship DB table. rpc delete(DeleteRelationshipRequest) returns (google.protobuf.Empty); + // Replaces all children for the requested parent in the relationship DB table. + rpc set(SetRelationshipRequest) returns (google.protobuf.Empty); + // Returns the relevant relationship metadata for the requested IDs. rpc read(ReadRelationshipRequest) returns (ReadRelationshipResponse); @@ -25,6 +28,11 @@ message DeleteRelationshipRequest { repeated Relationship relationships = 1; } +message SetRelationshipRequest { + string parent_id = 1; + repeated string child_ids = 2; +} + message ReadRelationshipRequest { repeated string ids = 1; }