blob: f6e3d781e6baa6aa661805da31517c50f3098b35 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc (unknown)
// source: registry/v1alpha1/owner.proto
package registryv1alpha1
import (
reflect "reflect"
sync "sync"
)
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Owner struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Owner:
//
// *Owner_User
// *Owner_Organization
Owner isOwner_Owner `protobuf_oneof:"owner"`
}
func (x *Owner) Reset() {
*x = Owner{}
if protoimpl.UnsafeEnabled {
mi := &file_registry_v1alpha1_owner_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Owner) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Owner) ProtoMessage() {}
func (x *Owner) ProtoReflect() protoreflect.Message {
mi := &file_registry_v1alpha1_owner_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Owner.ProtoReflect.Descriptor instead.
func (*Owner) Descriptor() ([]byte, []int) {
return file_registry_v1alpha1_owner_proto_rawDescGZIP(), []int{0}
}
func (m *Owner) GetOwner() isOwner_Owner {
if m != nil {
return m.Owner
}
return nil
}
func (x *Owner) GetUser() *User {
if x, ok := x.GetOwner().(*Owner_User); ok {
return x.User
}
return nil
}
func (x *Owner) GetOrganization() *Organization {
if x, ok := x.GetOwner().(*Owner_Organization); ok {
return x.Organization
}
return nil
}
type isOwner_Owner interface {
isOwner_Owner()
}
type Owner_User struct {
// The requested owner is a `User`.
User *User `protobuf:"bytes,1,opt,name=user,proto3,oneof"`
}
type Owner_Organization struct {
// The requested owner is a `Organization`.
Organization *Organization `protobuf:"bytes,2,opt,name=organization,proto3,oneof"`
}
func (*Owner_User) isOwner_Owner() {}
func (*Owner_Organization) isOwner_Owner() {}
type GetOwnerByNameRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the requested owner.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetOwnerByNameRequest) Reset() {
*x = GetOwnerByNameRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_registry_v1alpha1_owner_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetOwnerByNameRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetOwnerByNameRequest) ProtoMessage() {}
func (x *GetOwnerByNameRequest) ProtoReflect() protoreflect.Message {
mi := &file_registry_v1alpha1_owner_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetOwnerByNameRequest.ProtoReflect.Descriptor instead.
func (*GetOwnerByNameRequest) Descriptor() ([]byte, []int) {
return file_registry_v1alpha1_owner_proto_rawDescGZIP(), []int{1}
}
func (x *GetOwnerByNameRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type GetOwnerByNameResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Owner *Owner `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
}
func (x *GetOwnerByNameResponse) Reset() {
*x = GetOwnerByNameResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_registry_v1alpha1_owner_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetOwnerByNameResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetOwnerByNameResponse) ProtoMessage() {}
func (x *GetOwnerByNameResponse) ProtoReflect() protoreflect.Message {
mi := &file_registry_v1alpha1_owner_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetOwnerByNameResponse.ProtoReflect.Descriptor instead.
func (*GetOwnerByNameResponse) Descriptor() ([]byte, []int) {
return file_registry_v1alpha1_owner_proto_rawDescGZIP(), []int{2}
}
func (x *GetOwnerByNameResponse) GetOwner() *Owner {
if x != nil {
return x.Owner
}
return nil
}
var File_registry_v1alpha1_owner_proto protoreflect.FileDescriptor
var file_registry_v1alpha1_owner_proto_rawDesc = []byte{
0x0a, 0x1d, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70,
0x68, 0x61, 0x31, 0x2f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x29, 0x62, 0x75, 0x66, 0x6d, 0x61, 0x6e, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x2e, 0x61, 0x70,
0x61, 0x63, 0x68, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x24, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6f, 0x72,
0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x1c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70,
0x68, 0x61, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6,
0x01, 0x0a, 0x05, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x62, 0x75, 0x66, 0x6d, 0x61, 0x6e, 0x2e,
0x64, 0x75, 0x62, 0x62, 0x6f, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x6f, 0x72, 0x67,
0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68,
0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x48, 0x00, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12,
0x5d, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x6d, 0x61, 0x6e, 0x2e, 0x64,
0x75, 0x62, 0x62, 0x6f, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x2e,
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00,
0x52, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x07,
0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x2b, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4f, 0x77,
0x6e, 0x65, 0x72, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x22, 0x60, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72,
0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46,
0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e,
0x62, 0x75, 0x66, 0x6d, 0x61, 0x6e, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x2e, 0x61, 0x70, 0x61,
0x63, 0x68, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52,
0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x32, 0xab, 0x01, 0x0a, 0x0c, 0x4f, 0x77, 0x6e, 0x65, 0x72,
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x9a, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4f,
0x77, 0x6e, 0x65, 0x72, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x2e, 0x62, 0x75, 0x66,
0x6d, 0x61, 0x6e, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65,
0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31,
0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x42,
0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e, 0x62,
0x75, 0x66, 0x6d, 0x61, 0x6e, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x2e, 0x61, 0x70, 0x61, 0x63,
0x68, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e,
0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65,
0x72, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x03, 0x90, 0x02, 0x01, 0x42, 0xe5, 0x02, 0x0a, 0x2d, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66,
0x6d, 0x61, 0x6e, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65,
0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31,
0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2f, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x2d, 0x6b, 0x75,
0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x62, 0x75, 0x66,
0x6d, 0x61, 0x6e, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68,
0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70,
0x68, 0x61, 0x31, 0xa2, 0x02, 0x05, 0x42, 0x44, 0x41, 0x4f, 0x52, 0xaa, 0x02, 0x29, 0x42, 0x75,
0x66, 0x6d, 0x61, 0x6e, 0x2e, 0x44, 0x75, 0x62, 0x62, 0x6f, 0x2e, 0x41, 0x70, 0x61, 0x63, 0x68,
0x65, 0x2e, 0x4f, 0x72, 0x67, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56,
0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x29, 0x42, 0x75, 0x66, 0x6d, 0x61, 0x6e,
0x5c, 0x44, 0x75, 0x62, 0x62, 0x6f, 0x5c, 0x41, 0x70, 0x61, 0x63, 0x68, 0x65, 0x5c, 0x4f, 0x72,
0x67, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70,
0x68, 0x61, 0x31, 0xe2, 0x02, 0x35, 0x42, 0x75, 0x66, 0x6d, 0x61, 0x6e, 0x5c, 0x44, 0x75, 0x62,
0x62, 0x6f, 0x5c, 0x41, 0x70, 0x61, 0x63, 0x68, 0x65, 0x5c, 0x4f, 0x72, 0x67, 0x5c, 0x52, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c,
0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x2e, 0x42, 0x75,
0x66, 0x6d, 0x61, 0x6e, 0x3a, 0x3a, 0x44, 0x75, 0x62, 0x62, 0x6f, 0x3a, 0x3a, 0x41, 0x70, 0x61,
0x63, 0x68, 0x65, 0x3a, 0x3a, 0x4f, 0x72, 0x67, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_registry_v1alpha1_owner_proto_rawDescOnce sync.Once
file_registry_v1alpha1_owner_proto_rawDescData = file_registry_v1alpha1_owner_proto_rawDesc
)
func file_registry_v1alpha1_owner_proto_rawDescGZIP() []byte {
file_registry_v1alpha1_owner_proto_rawDescOnce.Do(func() {
file_registry_v1alpha1_owner_proto_rawDescData = protoimpl.X.CompressGZIP(file_registry_v1alpha1_owner_proto_rawDescData)
})
return file_registry_v1alpha1_owner_proto_rawDescData
}
var file_registry_v1alpha1_owner_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_registry_v1alpha1_owner_proto_goTypes = []interface{}{
(*Owner)(nil), // 0: bufman.dubbo.apache.org.registry.v1alpha1.Owner
(*GetOwnerByNameRequest)(nil), // 1: bufman.dubbo.apache.org.registry.v1alpha1.GetOwnerByNameRequest
(*GetOwnerByNameResponse)(nil), // 2: bufman.dubbo.apache.org.registry.v1alpha1.GetOwnerByNameResponse
(*User)(nil), // 3: bufman.dubbo.apache.org.registry.v1alpha1.User
(*Organization)(nil), // 4: bufman.dubbo.apache.org.registry.v1alpha1.Organization
}
var file_registry_v1alpha1_owner_proto_depIdxs = []int32{
3, // 0: bufman.dubbo.apache.org.registry.v1alpha1.Owner.user:type_name -> bufman.dubbo.apache.org.registry.v1alpha1.User
4, // 1: bufman.dubbo.apache.org.registry.v1alpha1.Owner.organization:type_name -> bufman.dubbo.apache.org.registry.v1alpha1.Organization
0, // 2: bufman.dubbo.apache.org.registry.v1alpha1.GetOwnerByNameResponse.owner:type_name -> bufman.dubbo.apache.org.registry.v1alpha1.Owner
1, // 3: bufman.dubbo.apache.org.registry.v1alpha1.OwnerService.GetOwnerByName:input_type -> bufman.dubbo.apache.org.registry.v1alpha1.GetOwnerByNameRequest
2, // 4: bufman.dubbo.apache.org.registry.v1alpha1.OwnerService.GetOwnerByName:output_type -> bufman.dubbo.apache.org.registry.v1alpha1.GetOwnerByNameResponse
4, // [4:5] is the sub-list for method output_type
3, // [3:4] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_registry_v1alpha1_owner_proto_init() }
func file_registry_v1alpha1_owner_proto_init() {
if File_registry_v1alpha1_owner_proto != nil {
return
}
file_registry_v1alpha1_organization_proto_init()
file_registry_v1alpha1_user_proto_init()
if !protoimpl.UnsafeEnabled {
file_registry_v1alpha1_owner_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Owner); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_registry_v1alpha1_owner_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetOwnerByNameRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_registry_v1alpha1_owner_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetOwnerByNameResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_registry_v1alpha1_owner_proto_msgTypes[0].OneofWrappers = []interface{}{
(*Owner_User)(nil),
(*Owner_Organization)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_registry_v1alpha1_owner_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_registry_v1alpha1_owner_proto_goTypes,
DependencyIndexes: file_registry_v1alpha1_owner_proto_depIdxs,
MessageInfos: file_registry_v1alpha1_owner_proto_msgTypes,
}.Build()
File_registry_v1alpha1_owner_proto = out.File
file_registry_v1alpha1_owner_proto_rawDesc = nil
file_registry_v1alpha1_owner_proto_goTypes = nil
file_registry_v1alpha1_owner_proto_depIdxs = nil
}