syntax = "proto3"; import "google/protobuf/empty.proto"; import "google/protobuf/wrappers.proto"; package owner; option go_package = "github.com/hub335/petclinic-protobuf/owner"; service OwnerService { rpc CreateOwner(OwnerCreateRequest) returns (google.protobuf.StringValue); rpc UpdateOwner(OwnerUpdateRequest) returns (google.protobuf.BoolValue); rpc DeleteOwner(google.protobuf.StringValue) returns (google.protobuf.Empty); rpc GetOwnerByPid(google.protobuf.StringValue) returns (Owner); rpc GetOwnersByPids(OwnerStringsRequest) returns (Owners); } message OwnerPetRequest { string ownerPid = 1; string petPid = 2; } message OwnerCreateRequest { google.protobuf.StringValue familyName = 1; google.protobuf.StringValue givenName = 2; Address address = 3; string email = 4; google.protobuf.StringValue phoneNumber = 5; string password = 6; } message OwnerUpdateRequest { google.protobuf.StringValue familyName = 1; google.protobuf.StringValue givenName = 2; Address address = 3; google.protobuf.StringValue email = 4; google.protobuf.StringValue phoneNumber = 5; string pid = 6; } message Owner { string pid = 1; google.protobuf.StringValue familyName = 2; google.protobuf.StringValue givenName = 3; Address address = 4; string email = 5; google.protobuf.StringValue phoneNumber = 6; } message Owners { repeated Owner owners = 1; } message Address { google.protobuf.StringValue address = 1; google.protobuf.StringValue city = 2; google.protobuf.StringValue country = 3; } message OwnerStringsRequest { repeated string requests = 1; }