// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc             v3.21.7
// source: sub-clips/sub_clips.proto

package golang_client

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

// SubClipManagerClient is the client API for SubClipManager 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 SubClipManagerClient interface {
	// GetById (Unary)
	GetById(ctx context.Context, in *GetByIdRequest, opts ...grpc.CallOption) (*GetByIdResponse, error)
	// GetByIds (Unary)
	GetByIds(ctx context.Context, in *GetByIdsRequest, opts ...grpc.CallOption) (*GetByIdsResponse, error)
	// Create (Unary)
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
}

type subClipManagerClient struct {
	cc grpc.ClientConnInterface
}

func NewSubClipManagerClient(cc grpc.ClientConnInterface) SubClipManagerClient {
	return &subClipManagerClient{cc}
}

func (c *subClipManagerClient) GetById(ctx context.Context, in *GetByIdRequest, opts ...grpc.CallOption) (*GetByIdResponse, error) {
	out := new(GetByIdResponse)
	err := c.cc.Invoke(ctx, "/subclippackage.SubClipManager/GetById", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *subClipManagerClient) GetByIds(ctx context.Context, in *GetByIdsRequest, opts ...grpc.CallOption) (*GetByIdsResponse, error) {
	out := new(GetByIdsResponse)
	err := c.cc.Invoke(ctx, "/subclippackage.SubClipManager/GetByIds", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *subClipManagerClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) {
	out := new(CreateResponse)
	err := c.cc.Invoke(ctx, "/subclippackage.SubClipManager/Create", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// SubClipManagerServer is the server API for SubClipManager service.
// All implementations must embed UnimplementedSubClipManagerServer
// for forward compatibility
type SubClipManagerServer interface {
	// GetById (Unary)
	GetById(context.Context, *GetByIdRequest) (*GetByIdResponse, error)
	// GetByIds (Unary)
	GetByIds(context.Context, *GetByIdsRequest) (*GetByIdsResponse, error)
	// Create (Unary)
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	mustEmbedUnimplementedSubClipManagerServer()
}

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

func (UnimplementedSubClipManagerServer) GetById(context.Context, *GetByIdRequest) (*GetByIdResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetById not implemented")
}
func (UnimplementedSubClipManagerServer) GetByIds(context.Context, *GetByIdsRequest) (*GetByIdsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetByIds not implemented")
}
func (UnimplementedSubClipManagerServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
func (UnimplementedSubClipManagerServer) mustEmbedUnimplementedSubClipManagerServer() {}

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

func RegisterSubClipManagerServer(s grpc.ServiceRegistrar, srv SubClipManagerServer) {
	s.RegisterService(&SubClipManager_ServiceDesc, srv)
}

func _SubClipManager_GetById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetByIdRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(SubClipManagerServer).GetById(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/subclippackage.SubClipManager/GetById",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(SubClipManagerServer).GetById(ctx, req.(*GetByIdRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _SubClipManager_GetByIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetByIdsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(SubClipManagerServer).GetByIds(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/subclippackage.SubClipManager/GetByIds",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(SubClipManagerServer).GetByIds(ctx, req.(*GetByIdsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _SubClipManager_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreateRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(SubClipManagerServer).Create(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/subclippackage.SubClipManager/Create",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(SubClipManagerServer).Create(ctx, req.(*CreateRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// SubClipManager_ServiceDesc is the grpc.ServiceDesc for SubClipManager service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var SubClipManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "subclippackage.SubClipManager",
	HandlerType: (*SubClipManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetById",
			Handler:    _SubClipManager_GetById_Handler,
		},
		{
			MethodName: "GetByIds",
			Handler:    _SubClipManager_GetByIds_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _SubClipManager_Create_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sub-clips/sub_clips.proto",
}
