syntax = "proto3"; package onprem.user.v1; option go_package="gitlab.com/on-prem-net/protocol/onprem/user/v1;userproto"; import "onprem/user/v1/device.proto"; import "onprem/user/v1/error.proto"; import "onprem/user/v1/hat.proto"; message CreateHatRequest { Hat hat = 1; } message CreateHatResponse { Hat hat = 1; optional Device changed_device = 2; } message DeleteHatRequest { string id = 1; } message DeleteHatResponse { optional Device changed_device = 1; } message FindHatRequest { string id = 1; } message FindHatResponse { Hat hat = 1; } message FindHatsRequest { } message FindHatsResponse { repeated Hat hats = 1; } message UpdateHatRequest { Hat hat = 1; } message UpdateHatResponse { Hat hat = 1; optional Device changed_device = 2; } message ValidateHatRequest { Hat hat = 1; } message ValidateHatResponse { repeated ErrorObject errors = 1; }