2026-08-09 10:43:45 +08:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
2026-08-09 15:10:19 +08:00
// - protoc-gen-go-grpc v1.6.2
// - protoc v7.35.0
// source: module/social/feed/proto/setting.proto
2026-08-09 10:43:45 +08:00
package feed
import (
2026-08-09 15:10:19 +08:00
protobuf "bsm/full/protobuf"
2026-08-09 10:43:45 +08:00
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.
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc . SupportPackageIsVersion9
const (
Setting_Info_FullMethodName = "/feed.Setting/Info"
Setting_Rights_FullMethodName = "/feed.Setting/Rights"
)
// SettingClient is the client API for Setting service.
//
// 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.
type SettingClient interface {
// 修改个人信息
2026-08-09 15:10:19 +08:00
Info ( ctx context . Context , in * protobuf . Empty , opts ... grpc . CallOption ) ( * protobuf . Empty , error )
2026-08-09 10:43:45 +08:00
// 修改权限信息
2026-08-09 15:10:19 +08:00
Rights ( ctx context . Context , in * protobuf . Empty , opts ... grpc . CallOption ) ( * protobuf . Empty , error )
2026-08-09 10:43:45 +08:00
}
type settingClient struct {
cc grpc . ClientConnInterface
}
func NewSettingClient ( cc grpc . ClientConnInterface ) SettingClient {
return & settingClient { cc }
}
2026-08-09 15:10:19 +08:00
func ( c * settingClient ) Info ( ctx context . Context , in * protobuf . Empty , opts ... grpc . CallOption ) ( * protobuf . Empty , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 15:10:19 +08:00
out := new ( protobuf . Empty )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Setting_Info_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * settingClient ) Rights ( ctx context . Context , in * protobuf . Empty , opts ... grpc . CallOption ) ( * protobuf . Empty , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 15:10:19 +08:00
out := new ( protobuf . Empty )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Setting_Rights_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
// SettingServer is the server API for Setting service.
2026-08-09 15:10:19 +08:00
// All implementations should embed UnimplementedSettingServer
2026-08-09 10:43:45 +08:00
// for forward compatibility.
type SettingServer interface {
// 修改个人信息
2026-08-09 15:10:19 +08:00
Info ( context . Context , * protobuf . Empty ) ( * protobuf . Empty , error )
2026-08-09 10:43:45 +08:00
// 修改权限信息
2026-08-09 15:10:19 +08:00
Rights ( context . Context , * protobuf . Empty ) ( * protobuf . Empty , error )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
// UnimplementedSettingServer should be embedded to have
2026-08-09 10:43:45 +08:00
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedSettingServer struct { }
2026-08-09 15:10:19 +08:00
func ( UnimplementedSettingServer ) Info ( context . Context , * protobuf . Empty ) ( * protobuf . Empty , error ) {
return nil , status . Error ( codes . Unimplemented , "method Info not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedSettingServer ) Rights ( context . Context , * protobuf . Empty ) ( * protobuf . Empty , error ) {
return nil , status . Error ( codes . Unimplemented , "method Rights not implemented" )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedSettingServer ) testEmbeddedByValue ( ) { }
2026-08-09 10:43:45 +08:00
// UnsafeSettingServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to SettingServer will
// result in compilation errors.
type UnsafeSettingServer interface {
mustEmbedUnimplementedSettingServer ( )
}
func RegisterSettingServer ( s grpc . ServiceRegistrar , srv SettingServer ) {
2026-08-09 15:10:19 +08:00
// If the following call panics, it indicates UnimplementedSettingServer was
2026-08-09 10:43:45 +08:00
// 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 ( )
}
s . RegisterService ( & Setting_ServiceDesc , srv )
}
func _Setting_Info_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
in := new ( protobuf . Empty )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SettingServer ) . Info ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Setting_Info_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
return srv . ( SettingServer ) . Info ( ctx , req . ( * protobuf . Empty ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
func _Setting_Rights_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
in := new ( protobuf . Empty )
2026-08-09 10:43:45 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SettingServer ) . Rights ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Setting_Rights_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2026-08-09 15:10:19 +08:00
return srv . ( SettingServer ) . Rights ( ctx , req . ( * protobuf . Empty ) )
2026-08-09 10:43:45 +08:00
}
return interceptor ( ctx , in , info , handler )
}
// Setting_ServiceDesc is the grpc.ServiceDesc for Setting service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Setting_ServiceDesc = grpc . ServiceDesc {
ServiceName : "feed.Setting" ,
HandlerType : ( * SettingServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "Info" ,
Handler : _Setting_Info_Handler ,
} ,
{
MethodName : "Rights" ,
Handler : _Setting_Rights_Handler ,
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
2026-08-09 15:10:19 +08:00
Metadata : "module/social/feed/proto/setting.proto" ,
2026-08-09 10:43:45 +08:00
}