// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v3.19.6 // source: ability.proto package rpc import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) 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 AllowRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Permission string `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"` Resource string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AllowRequest) Reset() { *x = AllowRequest{} mi := &file_ability_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AllowRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*AllowRequest) ProtoMessage() {} func (x *AllowRequest) ProtoReflect() protoreflect.Message { mi := &file_ability_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AllowRequest.ProtoReflect.Descriptor instead. func (*AllowRequest) Descriptor() ([]byte, []int) { return file_ability_proto_rawDescGZIP(), []int{0} } func (x *AllowRequest) GetSubject() string { if x != nil { return x.Subject } return "" } func (x *AllowRequest) GetPermission() string { if x != nil { return x.Permission } return "" } func (x *AllowRequest) GetResource() string { if x != nil { return x.Resource } return "" } type AllowReply struct { state protoimpl.MessageState `protogen:"open.v1"` Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AllowReply) Reset() { *x = AllowReply{} mi := &file_ability_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AllowReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*AllowReply) ProtoMessage() {} func (x *AllowReply) ProtoReflect() protoreflect.Message { mi := &file_ability_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AllowReply.ProtoReflect.Descriptor instead. func (*AllowReply) Descriptor() ([]byte, []int) { return file_ability_proto_rawDescGZIP(), []int{1} } func (x *AllowReply) GetResult() bool { if x != nil { return x.Result } return false } var File_ability_proto protoreflect.FileDescriptor const file_ability_proto_rawDesc = "" + "\n" + "\rability.proto\x12\tauthx.rpc\"d\n" + "\fAllowRequest\x12\x18\n" + "\asubject\x18\x01 \x01(\tR\asubject\x12\x1e\n" + "\n" + "permission\x18\x02 \x01(\tR\n" + "permission\x12\x1a\n" + "\bresource\x18\x03 \x01(\tR\bresource\"$\n" + "\n" + "AllowReply\x12\x16\n" + "\x06result\x18\x01 \x01(\bR\x06result2F\n" + "\aAbility\x12;\n" + "\aAllowed\x12\x17.authx.rpc.AllowRequest\x1a\x15.authx.rpc.AllowReply\"\x00B!Z\x1fgitlab.com/mokhax/spike/pkg/rpcb\x06proto3" var ( file_ability_proto_rawDescOnce sync.Once file_ability_proto_rawDescData []byte ) func file_ability_proto_rawDescGZIP() []byte { file_ability_proto_rawDescOnce.Do(func() { file_ability_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ability_proto_rawDesc), len(file_ability_proto_rawDesc))) }) return file_ability_proto_rawDescData } var file_ability_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_ability_proto_goTypes = []any{ (*AllowRequest)(nil), // 0: authx.rpc.AllowRequest (*AllowReply)(nil), // 1: authx.rpc.AllowReply } var file_ability_proto_depIdxs = []int32{ 0, // 0: authx.rpc.Ability.Allowed:input_type -> authx.rpc.AllowRequest 1, // 1: authx.rpc.Ability.Allowed:output_type -> authx.rpc.AllowReply 1, // [1:2] is the sub-list for method output_type 0, // [0:1] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name } func init() { file_ability_proto_init() } func file_ability_proto_init() { if File_ability_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_ability_proto_rawDesc), len(file_ability_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 1, }, GoTypes: file_ability_proto_goTypes, DependencyIndexes: file_ability_proto_depIdxs, MessageInfos: file_ability_proto_msgTypes, }.Build() File_ability_proto = out.File file_ability_proto_goTypes = nil file_ability_proto_depIdxs = nil }