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/facility.proto"; message FacilityFilter { optional string created_by_user_id = 1; reserved 2; optional string owner_team_id = 3; optional string owner_user_id = 4; } message CreateFacilityRequest { Facility facility = 1; } message CreateFacilityResponse { Facility facility = 1; } message DeleteFacilityRequest { string id = 1; } message DeleteFacilityResponse { } message FindFacilityRequest { string id = 1; } message FindFacilityResponse { Facility facility = 1; } message FindFacilitiesRequest { FacilityFilter filter = 1; } message FindFacilitiesResponse { repeated Facility facilities = 1; } message UpdateFacilityRequest { Facility facility = 1; } message UpdateFacilityResponse { Facility facility = 1; } message ValidateFacilityRequest { Facility facility = 1; } message ValidateFacilityResponse { repeated ErrorObject errors = 1; }