syntax = "proto3";

option java_multiple_files = true;
option java_package = "com.para.zta.pdp.proto";
option java_outer_classname = "PdpServiceProto";

package com_para_zta_pdp;

// The greeting service definition.
service PdpData {
  // read pdp data
  rpc Read (PdpRequest) returns (PdpReply) {
  }
  // create or update pdp data
  rpc CreateUpdate (PdpRequest) returns (PdpReply) {
  }
}
service PdpPolicy {
  // read pdp policy
  rpc Read (PdpRequest) returns (PdpReply) {
  }
  // create or update pdp policy
  rpc CreateUpdate (PdpRequest) returns (PdpReply) {
  }
}
service PdpExec {
  // exec policy
  rpc ExecInput (PdpRequest) returns (PdpReply) {
  }
}

// The request message containing the user's name.
message PdpRequest {
  string source = 1;
  string key = 2;
  string namespace = 3;
  string path = 4;
  string input = 5;
}

// The response message containing the greetings
message PdpReply {
  int32 error_code = 1;
  string error_msg = 2;
  string data = 3;
}