blob: 67408170e9d94bc2eb3973f08866fb863975c688 [file] [log] [blame]
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package settings
import (
context "context"
grpc ""
codes ""
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.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// SettingsServiceClient is the client API for SettingsService service.
// For semantics around ctx use and closing/ending streaming RPCs, please refer to
type SettingsServiceClient interface {
Get(ctx context.Context, in *SettingsReq, opts ...grpc.CallOption) (*SettingsResp, error)
type settingsServiceClient struct {
cc grpc.ClientConnInterface
func NewSettingsServiceClient(cc grpc.ClientConnInterface) SettingsServiceClient {
return &settingsServiceClient{cc}
func (c *settingsServiceClient) Get(ctx context.Context, in *SettingsReq, opts ...grpc.CallOption) (*SettingsResp, error) {
out := new(SettingsResp)
err :=, "/settings.SettingsService/Get", in, out, opts...)
if err != nil {
return nil, err
return out, nil
// SettingsServiceServer is the server API for SettingsService service.
// All implementations must embed UnimplementedSettingsServiceServer
// for forward compatibility
type SettingsServiceServer interface {
Get(context.Context, *SettingsReq) (*SettingsResp, error)
// UnimplementedSettingsServiceServer must be embedded to have forward compatible implementations.
type UnimplementedSettingsServiceServer struct {
func (UnimplementedSettingsServiceServer) Get(context.Context, *SettingsReq) (*SettingsResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
func (UnimplementedSettingsServiceServer) mustEmbedUnimplementedSettingsServiceServer() {}
// UnsafeSettingsServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to SettingsServiceServer will
// result in compilation errors.
type UnsafeSettingsServiceServer interface {
func RegisterSettingsServiceServer(s grpc.ServiceRegistrar, srv SettingsServiceServer) {
s.RegisterService(&SettingsService_ServiceDesc, srv)
func _SettingsService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SettingsReq)
if err := dec(in); err != nil {
return nil, err
if interceptor == nil {
return srv.(SettingsServiceServer).Get(ctx, in)
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/settings.SettingsService/Get",
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SettingsServiceServer).Get(ctx, req.(*SettingsReq))
return interceptor(ctx, in, info, handler)
// SettingsService_ServiceDesc is the grpc.ServiceDesc for SettingsService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var SettingsService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "settings.SettingsService",
HandlerType: (*SettingsServiceServer)(nil),
Methods: []grpc.MethodDesc{
MethodName: "Get",
Handler: _SettingsService_Get_Handler,
Streams: []grpc.StreamDesc{},
Metadata: "settings/settings_service.proto",