Skip to content
27 changes: 27 additions & 0 deletions proto/controls/service/grpc-unr/v1/base-info.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
syntax = "proto3";

import "google/protobuf/empty.proto";

package services.base_info;

service BaseInfoService {
rpc create(BaseInfo) returns (google.protobuf.Empty);
rpc read(BaseRequest) returns (BaseResponse);
rpc update(BaseInfo) returns (google.protobuf.Empty);
rpc delete(BaseRequest) returns (google.protobuf.Empty);
Comment thread
mguzman04 marked this conversation as resolved.
}

message BaseRequest {
repeated string id = 1;
}

message BaseResponse {
repeated BaseInfo base_info = 1;
}

message BaseInfo {
string id = 1;
string address = 2;
string type = 3;
string protocol = 4;
}
25 changes: 25 additions & 0 deletions proto/controls/service/grpc-unr/v1/relationship-info.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
syntax = "proto3";

import "google/protobuf/empty.proto";

package services.relationship_info;

service RelationshipInfoService {
rpc create(RelationshipInfo) returns (google.protobuf.Empty);
rpc read(RelationshipRequest) returns (RelationshipResponse);
rpc update(RelationshipInfo) returns (google.protobuf.Empty);
rpc delete(RelationshipRequest) returns (google.protobuf.Empty);
}

message RelationshipRequest {
string id = 1;
}

message RelationshipInfo {
string parent_id = 1;
repeated string child_ids = 2;
}

message RelationshipResponse {
repeated RelationshipInfo relationship_info = 1;
}
Comment on lines +18 to +25

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, looks like the double repeated snuck back in here after a refactor @bstover74

Loading