syntax = "proto3"; package onprem.user.v1; option go_package = "gitlab.com/on-prem-net/protocol/onprem/user/v1;userproto"; import "onprem/user/v1/error.proto"; import "onprem/user/v1/plan.proto"; message PlanFilter { optional string service_id = 1; optional bool visible = 2; } message CreatePlanRequest { Plan plan = 1; } message CreatePlanResponse { Plan plan = 1; } message DeletePlanRequest { string id = 1; } message DeletePlanResponse { } message FindPlanRequest { string id = 1; } message FindPlanResponse { Plan plan = 1; } message FindPlansRequest { PlanFilter filter = 1; } message FindPlansResponse { repeated Plan plans = 1; } message UpdatePlanRequest { Plan plan = 1; } message UpdatePlanResponse { Plan plan = 1; } message ValidatePlanRequest { Plan plan = 1; } message ValidatePlanResponse { repeated ErrorObject errors = 1; }