// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc             (unknown)
// source: sqleditor/service.proto

package sqleditor

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.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7

// SqlEditorServiceClient is the client API for SqlEditorService 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 SqlEditorServiceClient interface {
	CreateOpLog(ctx context.Context, in *CreateOpLogReq, opts ...grpc.CallOption) (*CreateOpLogResp, error)
}

type sqlEditorServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewSqlEditorServiceClient(cc grpc.ClientConnInterface) SqlEditorServiceClient {
	return &sqlEditorServiceClient{cc}
}

func (c *sqlEditorServiceClient) CreateOpLog(ctx context.Context, in *CreateOpLogReq, opts ...grpc.CallOption) (*CreateOpLogResp, error) {
	out := new(CreateOpLogResp)
	err := c.cc.Invoke(ctx, "/sqleditor.SqlEditorService/CreateOpLog", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// SqlEditorServiceServer is the server API for SqlEditorService service.
// All implementations must embed UnimplementedSqlEditorServiceServer
// for forward compatibility
type SqlEditorServiceServer interface {
	CreateOpLog(context.Context, *CreateOpLogReq) (*CreateOpLogResp, error)
	mustEmbedUnimplementedSqlEditorServiceServer()
}

// UnimplementedSqlEditorServiceServer must be embedded to have forward compatible implementations.
type UnimplementedSqlEditorServiceServer struct {
}

func (UnimplementedSqlEditorServiceServer) CreateOpLog(context.Context, *CreateOpLogReq) (*CreateOpLogResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateOpLog not implemented")
}
func (UnimplementedSqlEditorServiceServer) mustEmbedUnimplementedSqlEditorServiceServer() {}

// UnsafeSqlEditorServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to SqlEditorServiceServer will
// result in compilation errors.
type UnsafeSqlEditorServiceServer interface {
	mustEmbedUnimplementedSqlEditorServiceServer()
}

func RegisterSqlEditorServiceServer(s grpc.ServiceRegistrar, srv SqlEditorServiceServer) {
	s.RegisterService(&SqlEditorService_ServiceDesc, srv)
}

func _SqlEditorService_CreateOpLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreateOpLogReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(SqlEditorServiceServer).CreateOpLog(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/sqleditor.SqlEditorService/CreateOpLog",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(SqlEditorServiceServer).CreateOpLog(ctx, req.(*CreateOpLogReq))
	}
	return interceptor(ctx, in, info, handler)
}

// SqlEditorService_ServiceDesc is the grpc.ServiceDesc for SqlEditorService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var SqlEditorService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sqleditor.SqlEditorService",
	HandlerType: (*SqlEditorServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOpLog",
			Handler:    _SqlEditorService_CreateOpLog_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sqleditor/service.proto",
}
