2024-10-23 16:13:16 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
2024-10-31 13:26:25 +00:00
// - protoc-gen-go-grpc v1.5.1
2024-10-23 16:13:16 +00:00
// - protoc v5.28.2
// source: realm.proto
package proto
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
2024-10-31 13:26:25 +00:00
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc . SupportPackageIsVersion9
const (
RealmService_ListCommunityRealm_FullMethodName = "/proto.RealmService/ListCommunityRealm"
RealmService_ListAvailableRealm_FullMethodName = "/proto.RealmService/ListAvailableRealm"
RealmService_ListOwnedRealm_FullMethodName = "/proto.RealmService/ListOwnedRealm"
RealmService_GetRealm_FullMethodName = "/proto.RealmService/GetRealm"
RealmService_ListRealmMember_FullMethodName = "/proto.RealmService/ListRealmMember"
RealmService_GetRealmMember_FullMethodName = "/proto.RealmService/GetRealmMember"
RealmService_CheckRealmMemberPerm_FullMethodName = "/proto.RealmService/CheckRealmMemberPerm"
)
2024-10-23 16:13:16 +00:00
2024-10-31 13:07:53 +00:00
// RealmServiceClient is the client API for RealmService service.
2024-10-23 16:13:16 +00:00
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
2024-10-31 13:07:53 +00:00
type RealmServiceClient interface {
2024-10-23 16:13:16 +00:00
ListCommunityRealm ( ctx context . Context , in * ListRealmRequest , opts ... grpc . CallOption ) ( * ListRealmResponse , error )
ListAvailableRealm ( ctx context . Context , in * LookupUserRealmRequest , opts ... grpc . CallOption ) ( * ListRealmResponse , error )
ListOwnedRealm ( ctx context . Context , in * LookupUserRealmRequest , opts ... grpc . CallOption ) ( * ListRealmResponse , error )
GetRealm ( ctx context . Context , in * LookupRealmRequest , opts ... grpc . CallOption ) ( * RealmInfo , error )
ListRealmMember ( ctx context . Context , in * RealmMemberLookupRequest , opts ... grpc . CallOption ) ( * ListRealmMemberResponse , error )
GetRealmMember ( ctx context . Context , in * RealmMemberLookupRequest , opts ... grpc . CallOption ) ( * RealmMemberInfo , error )
CheckRealmMemberPerm ( ctx context . Context , in * CheckRealmPermRequest , opts ... grpc . CallOption ) ( * CheckRealmPermResponse , error )
}
2024-10-31 13:07:53 +00:00
type realmServiceClient struct {
2024-10-23 16:13:16 +00:00
cc grpc . ClientConnInterface
}
2024-10-31 13:07:53 +00:00
func NewRealmServiceClient ( cc grpc . ClientConnInterface ) RealmServiceClient {
return & realmServiceClient { cc }
2024-10-23 16:13:16 +00:00
}
2024-10-31 13:07:53 +00:00
func ( c * realmServiceClient ) ListCommunityRealm ( ctx context . Context , in * ListRealmRequest , opts ... grpc . CallOption ) ( * ListRealmResponse , error ) {
2024-10-31 13:26:25 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2024-10-23 16:13:16 +00:00
out := new ( ListRealmResponse )
2024-10-31 13:26:25 +00:00
err := c . cc . Invoke ( ctx , RealmService_ListCommunityRealm_FullMethodName , in , out , cOpts ... )
2024-10-23 16:13:16 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-10-31 13:07:53 +00:00
func ( c * realmServiceClient ) ListAvailableRealm ( ctx context . Context , in * LookupUserRealmRequest , opts ... grpc . CallOption ) ( * ListRealmResponse , error ) {
2024-10-31 13:26:25 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2024-10-23 16:13:16 +00:00
out := new ( ListRealmResponse )
2024-10-31 13:26:25 +00:00
err := c . cc . Invoke ( ctx , RealmService_ListAvailableRealm_FullMethodName , in , out , cOpts ... )
2024-10-23 16:13:16 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-10-31 13:07:53 +00:00
func ( c * realmServiceClient ) ListOwnedRealm ( ctx context . Context , in * LookupUserRealmRequest , opts ... grpc . CallOption ) ( * ListRealmResponse , error ) {
2024-10-31 13:26:25 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2024-10-23 16:13:16 +00:00
out := new ( ListRealmResponse )
2024-10-31 13:26:25 +00:00
err := c . cc . Invoke ( ctx , RealmService_ListOwnedRealm_FullMethodName , in , out , cOpts ... )
2024-10-23 16:13:16 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-10-31 13:07:53 +00:00
func ( c * realmServiceClient ) GetRealm ( ctx context . Context , in * LookupRealmRequest , opts ... grpc . CallOption ) ( * RealmInfo , error ) {
2024-10-31 13:26:25 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2024-10-23 16:13:16 +00:00
out := new ( RealmInfo )
2024-10-31 13:26:25 +00:00
err := c . cc . Invoke ( ctx , RealmService_GetRealm_FullMethodName , in , out , cOpts ... )
2024-10-23 16:13:16 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-10-31 13:07:53 +00:00
func ( c * realmServiceClient ) ListRealmMember ( ctx context . Context , in * RealmMemberLookupRequest , opts ... grpc . CallOption ) ( * ListRealmMemberResponse , error ) {
2024-10-31 13:26:25 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2024-10-23 16:13:16 +00:00
out := new ( ListRealmMemberResponse )
2024-10-31 13:26:25 +00:00
err := c . cc . Invoke ( ctx , RealmService_ListRealmMember_FullMethodName , in , out , cOpts ... )
2024-10-23 16:13:16 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-10-31 13:07:53 +00:00
func ( c * realmServiceClient ) GetRealmMember ( ctx context . Context , in * RealmMemberLookupRequest , opts ... grpc . CallOption ) ( * RealmMemberInfo , error ) {
2024-10-31 13:26:25 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2024-10-23 16:13:16 +00:00
out := new ( RealmMemberInfo )
2024-10-31 13:26:25 +00:00
err := c . cc . Invoke ( ctx , RealmService_GetRealmMember_FullMethodName , in , out , cOpts ... )
2024-10-23 16:13:16 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-10-31 13:07:53 +00:00
func ( c * realmServiceClient ) CheckRealmMemberPerm ( ctx context . Context , in * CheckRealmPermRequest , opts ... grpc . CallOption ) ( * CheckRealmPermResponse , error ) {
2024-10-31 13:26:25 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2024-10-23 16:13:16 +00:00
out := new ( CheckRealmPermResponse )
2024-10-31 13:26:25 +00:00
err := c . cc . Invoke ( ctx , RealmService_CheckRealmMemberPerm_FullMethodName , in , out , cOpts ... )
2024-10-23 16:13:16 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-10-31 13:07:53 +00:00
// RealmServiceServer is the server API for RealmService service.
// All implementations must embed UnimplementedRealmServiceServer
2024-10-31 13:26:25 +00:00
// for forward compatibility.
2024-10-31 13:07:53 +00:00
type RealmServiceServer interface {
2024-10-23 16:13:16 +00:00
ListCommunityRealm ( context . Context , * ListRealmRequest ) ( * ListRealmResponse , error )
ListAvailableRealm ( context . Context , * LookupUserRealmRequest ) ( * ListRealmResponse , error )
ListOwnedRealm ( context . Context , * LookupUserRealmRequest ) ( * ListRealmResponse , error )
GetRealm ( context . Context , * LookupRealmRequest ) ( * RealmInfo , error )
ListRealmMember ( context . Context , * RealmMemberLookupRequest ) ( * ListRealmMemberResponse , error )
GetRealmMember ( context . Context , * RealmMemberLookupRequest ) ( * RealmMemberInfo , error )
CheckRealmMemberPerm ( context . Context , * CheckRealmPermRequest ) ( * CheckRealmPermResponse , error )
2024-10-31 13:07:53 +00:00
mustEmbedUnimplementedRealmServiceServer ( )
2024-10-23 16:13:16 +00:00
}
2024-10-31 13:26:25 +00:00
// UnimplementedRealmServiceServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedRealmServiceServer struct { }
2024-10-23 16:13:16 +00:00
2024-10-31 13:07:53 +00:00
func ( UnimplementedRealmServiceServer ) ListCommunityRealm ( context . Context , * ListRealmRequest ) ( * ListRealmResponse , error ) {
2024-10-23 16:13:16 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method ListCommunityRealm not implemented" )
}
2024-10-31 13:07:53 +00:00
func ( UnimplementedRealmServiceServer ) ListAvailableRealm ( context . Context , * LookupUserRealmRequest ) ( * ListRealmResponse , error ) {
2024-10-23 16:13:16 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method ListAvailableRealm not implemented" )
}
2024-10-31 13:07:53 +00:00
func ( UnimplementedRealmServiceServer ) ListOwnedRealm ( context . Context , * LookupUserRealmRequest ) ( * ListRealmResponse , error ) {
2024-10-23 16:13:16 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method ListOwnedRealm not implemented" )
}
2024-10-31 13:07:53 +00:00
func ( UnimplementedRealmServiceServer ) GetRealm ( context . Context , * LookupRealmRequest ) ( * RealmInfo , error ) {
2024-10-23 16:13:16 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method GetRealm not implemented" )
}
2024-10-31 13:07:53 +00:00
func ( UnimplementedRealmServiceServer ) ListRealmMember ( context . Context , * RealmMemberLookupRequest ) ( * ListRealmMemberResponse , error ) {
2024-10-23 16:13:16 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method ListRealmMember not implemented" )
}
2024-10-31 13:07:53 +00:00
func ( UnimplementedRealmServiceServer ) GetRealmMember ( context . Context , * RealmMemberLookupRequest ) ( * RealmMemberInfo , error ) {
2024-10-23 16:13:16 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method GetRealmMember not implemented" )
}
2024-10-31 13:07:53 +00:00
func ( UnimplementedRealmServiceServer ) CheckRealmMemberPerm ( context . Context , * CheckRealmPermRequest ) ( * CheckRealmPermResponse , error ) {
2024-10-23 16:13:16 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method CheckRealmMemberPerm not implemented" )
}
2024-10-31 13:07:53 +00:00
func ( UnimplementedRealmServiceServer ) mustEmbedUnimplementedRealmServiceServer ( ) { }
2024-10-31 13:26:25 +00:00
func ( UnimplementedRealmServiceServer ) testEmbeddedByValue ( ) { }
2024-10-23 16:13:16 +00:00
2024-10-31 13:07:53 +00:00
// UnsafeRealmServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to RealmServiceServer will
2024-10-23 16:13:16 +00:00
// result in compilation errors.
2024-10-31 13:07:53 +00:00
type UnsafeRealmServiceServer interface {
mustEmbedUnimplementedRealmServiceServer ( )
2024-10-23 16:13:16 +00:00
}
2024-10-31 13:07:53 +00:00
func RegisterRealmServiceServer ( s grpc . ServiceRegistrar , srv RealmServiceServer ) {
2024-10-31 13:26:25 +00:00
// If the following call pancis, it indicates UnimplementedRealmServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t , ok := srv . ( interface { testEmbeddedByValue ( ) } ) ; ok {
t . testEmbeddedByValue ( )
}
2024-10-31 13:07:53 +00:00
s . RegisterService ( & RealmService_ServiceDesc , srv )
2024-10-23 16:13:16 +00:00
}
2024-10-31 13:07:53 +00:00
func _RealmService_ListCommunityRealm_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2024-10-23 16:13:16 +00:00
in := new ( ListRealmRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . ListCommunityRealm ( ctx , in )
2024-10-23 16:13:16 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-10-31 13:26:25 +00:00
FullMethod : RealmService_ListCommunityRealm_FullMethodName ,
2024-10-23 16:13:16 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . ListCommunityRealm ( ctx , req . ( * ListRealmRequest ) )
2024-10-23 16:13:16 +00:00
}
return interceptor ( ctx , in , info , handler )
}
2024-10-31 13:07:53 +00:00
func _RealmService_ListAvailableRealm_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2024-10-23 16:13:16 +00:00
in := new ( LookupUserRealmRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . ListAvailableRealm ( ctx , in )
2024-10-23 16:13:16 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-10-31 13:26:25 +00:00
FullMethod : RealmService_ListAvailableRealm_FullMethodName ,
2024-10-23 16:13:16 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . ListAvailableRealm ( ctx , req . ( * LookupUserRealmRequest ) )
2024-10-23 16:13:16 +00:00
}
return interceptor ( ctx , in , info , handler )
}
2024-10-31 13:07:53 +00:00
func _RealmService_ListOwnedRealm_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2024-10-23 16:13:16 +00:00
in := new ( LookupUserRealmRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . ListOwnedRealm ( ctx , in )
2024-10-23 16:13:16 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-10-31 13:26:25 +00:00
FullMethod : RealmService_ListOwnedRealm_FullMethodName ,
2024-10-23 16:13:16 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . ListOwnedRealm ( ctx , req . ( * LookupUserRealmRequest ) )
2024-10-23 16:13:16 +00:00
}
return interceptor ( ctx , in , info , handler )
}
2024-10-31 13:07:53 +00:00
func _RealmService_GetRealm_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2024-10-23 16:13:16 +00:00
in := new ( LookupRealmRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . GetRealm ( ctx , in )
2024-10-23 16:13:16 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-10-31 13:26:25 +00:00
FullMethod : RealmService_GetRealm_FullMethodName ,
2024-10-23 16:13:16 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . GetRealm ( ctx , req . ( * LookupRealmRequest ) )
2024-10-23 16:13:16 +00:00
}
return interceptor ( ctx , in , info , handler )
}
2024-10-31 13:07:53 +00:00
func _RealmService_ListRealmMember_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2024-10-23 16:13:16 +00:00
in := new ( RealmMemberLookupRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . ListRealmMember ( ctx , in )
2024-10-23 16:13:16 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-10-31 13:26:25 +00:00
FullMethod : RealmService_ListRealmMember_FullMethodName ,
2024-10-23 16:13:16 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . ListRealmMember ( ctx , req . ( * RealmMemberLookupRequest ) )
2024-10-23 16:13:16 +00:00
}
return interceptor ( ctx , in , info , handler )
}
2024-10-31 13:07:53 +00:00
func _RealmService_GetRealmMember_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2024-10-23 16:13:16 +00:00
in := new ( RealmMemberLookupRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . GetRealmMember ( ctx , in )
2024-10-23 16:13:16 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-10-31 13:26:25 +00:00
FullMethod : RealmService_GetRealmMember_FullMethodName ,
2024-10-23 16:13:16 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . GetRealmMember ( ctx , req . ( * RealmMemberLookupRequest ) )
2024-10-23 16:13:16 +00:00
}
return interceptor ( ctx , in , info , handler )
}
2024-10-31 13:07:53 +00:00
func _RealmService_CheckRealmMemberPerm_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2024-10-23 16:13:16 +00:00
in := new ( CheckRealmPermRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . CheckRealmMemberPerm ( ctx , in )
2024-10-23 16:13:16 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-10-31 13:26:25 +00:00
FullMethod : RealmService_CheckRealmMemberPerm_FullMethodName ,
2024-10-23 16:13:16 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-10-31 13:07:53 +00:00
return srv . ( RealmServiceServer ) . CheckRealmMemberPerm ( ctx , req . ( * CheckRealmPermRequest ) )
2024-10-23 16:13:16 +00:00
}
return interceptor ( ctx , in , info , handler )
}
2024-10-31 13:07:53 +00:00
// RealmService_ServiceDesc is the grpc.ServiceDesc for RealmService service.
2024-10-23 16:13:16 +00:00
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
2024-10-31 13:07:53 +00:00
var RealmService_ServiceDesc = grpc . ServiceDesc {
ServiceName : "proto.RealmService" ,
HandlerType : ( * RealmServiceServer ) ( nil ) ,
2024-10-23 16:13:16 +00:00
Methods : [ ] grpc . MethodDesc {
{
MethodName : "ListCommunityRealm" ,
2024-10-31 13:07:53 +00:00
Handler : _RealmService_ListCommunityRealm_Handler ,
2024-10-23 16:13:16 +00:00
} ,
{
MethodName : "ListAvailableRealm" ,
2024-10-31 13:07:53 +00:00
Handler : _RealmService_ListAvailableRealm_Handler ,
2024-10-23 16:13:16 +00:00
} ,
{
MethodName : "ListOwnedRealm" ,
2024-10-31 13:07:53 +00:00
Handler : _RealmService_ListOwnedRealm_Handler ,
2024-10-23 16:13:16 +00:00
} ,
{
MethodName : "GetRealm" ,
2024-10-31 13:07:53 +00:00
Handler : _RealmService_GetRealm_Handler ,
2024-10-23 16:13:16 +00:00
} ,
{
MethodName : "ListRealmMember" ,
2024-10-31 13:07:53 +00:00
Handler : _RealmService_ListRealmMember_Handler ,
2024-10-23 16:13:16 +00:00
} ,
{
MethodName : "GetRealmMember" ,
2024-10-31 13:07:53 +00:00
Handler : _RealmService_GetRealmMember_Handler ,
2024-10-23 16:13:16 +00:00
} ,
{
MethodName : "CheckRealmMemberPerm" ,
2024-10-31 13:07:53 +00:00
Handler : _RealmService_CheckRealmMemberPerm_Handler ,
2024-10-23 16:13:16 +00:00
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
Metadata : "realm.proto" ,
}