blob: e4fe7c8669f5c5f55b33885ae45a8ce05f02e53a [file] [log] [blame]
syntax = "proto3";
package bufman.dubbo.apache.org.registry.v1alpha1;
import "registry/v1alpha1/organization.proto";
import "registry/v1alpha1/user.proto";
message Owner {
oneof owner {
// The requested owner is a `User`.
User user = 1;
// The requested owner is a `Organization`.
Organization organization = 2;
}
}
// OwnerService is a service that provides RPCs that allow the BSR to query
// for owner information.
service OwnerService {
// GetOwnerByName takes an owner name and returns the owner as
// either a user or organization.
rpc GetOwnerByName(GetOwnerByNameRequest) returns (GetOwnerByNameResponse) {
option idempotency_level = NO_SIDE_EFFECTS;
}
}
message GetOwnerByNameRequest {
// Name of the requested owner.
string name = 1;
}
message GetOwnerByNameResponse {
Owner owner = 1;
}