Skip to content

Commit

Permalink
add the package statement to protos (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-roberts authored Jan 14, 2025
1 parent afcf0b5 commit b1cd995
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/main/proto/epp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ option java_multiple_files = true;
option java_package = "gov.nist.csd.pm.proto.epp";
option java_outer_classname = "EPPProto";

package gov.nist.csd.pm.proto.epp;

message StringList {
repeated string values = 1;
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/proto/graph.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ option java_multiple_files = true;
option java_package = "gov.nist.csd.pm.proto.graph";
option java_outer_classname = "GraphProto";

package gov.nist.csd.pm.proto.graph;

message AssignOp {
string ascendant = 1;
repeated string descendants = 2;
Expand Down
2 changes: 2 additions & 0 deletions src/main/proto/obligation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ option java_multiple_files = true;
option java_package = "gov.nist.csd.pm.proto.obligation";
option java_outer_classname = "ObligationProto";

package gov.nist.csd.pm.proto.obligation;

message CreateObligationOp {
string name = 1;
string author = 2;
Expand Down
2 changes: 2 additions & 0 deletions src/main/proto/operation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ option java_multiple_files = true;
option java_package = "gov.nist.csd.pm.proto.operation";
option java_outer_classname = "OperationProto";

package gov.nist.csd.pm.proto.operation;

message CreateAdminOperationOp {
string pml = 1;
}
Expand Down
6 changes: 4 additions & 2 deletions src/main/proto/pdp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ option java_multiple_files = true;
option java_package = "gov.nist.csd.pm.proto.pdp";
option java_outer_classname = "PDPProto";

package gov.nist.csd.pm.proto.pdp;

enum Decision {
GRANT = 0;
DENY = 1;
Expand All @@ -31,7 +33,7 @@ service ResourcePDP {
// admin
message AdminOperationRequest {
string opName = 1;
repeated OperandEntry operands = 2;
repeated gov.nist.csd.pm.proto.epp.OperandEntry operands = 2;
}

message AdminRoutineRequest {
Expand All @@ -40,7 +42,7 @@ message AdminRoutineRequest {

message NamedAdminRoutineRequest {
string name = 1;
repeated OperandEntry operands = 2;
repeated gov.nist.csd.pm.proto.epp.OperandEntry operands = 2;
}

service AdminPDP {
Expand Down
2 changes: 2 additions & 0 deletions src/main/proto/prohibitions.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ option java_multiple_files = true;
option java_package = "gov.nist.csd.pm.proto.prohibition";
option java_outer_classname = "ProhibitionProto";

package gov.nist.csd.pm.proto.prohibitions;

message CreateProhibitionOp {
string name = 1;
string subject = 2;
Expand Down
2 changes: 2 additions & 0 deletions src/main/proto/routine.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ option java_multiple_files = true;
option java_package = "gov.nist.csd.pm.proto.routine";
option java_outer_classname = "RoutineProto";

package gov.nist.csd.pm.proto.routine;

message CreateAdminRoutineOp {
string pml = 1;
}
Expand Down

0 comments on commit b1cd995

Please sign in to comment.