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/team.proto"; message TeamFilter { optional string id = 1; optional string name = 2; optional string owner_user_id = 3; } message CreateTeamRequest { Team team = 1; } message CreateTeamResponse { Team team = 1; } message DeleteTeamRequest { string id = 1; } message DeleteTeamResponse { } message FindTeamRequest { string id = 1; } message FindTeamResponse { Team team = 1; } message FindTeamsRequest { TeamFilter filter = 1; } message FindTeamsResponse { repeated Team teams = 1; } message UpdateTeamRequest { Team team = 1; } message UpdateTeamResponse { Team team = 1; } message ValidateTeamRequest { Team team = 1; } message ValidateTeamResponse { repeated ErrorObject errors = 1; }