// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc             v3.21.7
// source: comscore/comscore.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

// ComScoreManagerClient is the client API for ComScoreManager 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 ComScoreManagerClient interface {
	// GetComScoreForClip (Unary)
	GetComScoreForClip(ctx context.Context, in *GetComScoreForClipRequest, opts ...grpc.CallOption) (*GetComScoreForClipResponse, error)
	// GetComScoreForClips (Unary)
	GetComScoreForClips(ctx context.Context, in *GetComScoreForClipsRequest, opts ...grpc.CallOption) (*GetComScoreForClipsResponse, error)
}

type comScoreManagerClient struct {
	cc grpc.ClientConnInterface
}

func NewComScoreManagerClient(cc grpc.ClientConnInterface) ComScoreManagerClient {
	return &comScoreManagerClient{cc}
}

func (c *comScoreManagerClient) GetComScoreForClip(ctx context.Context, in *GetComScoreForClipRequest, opts ...grpc.CallOption) (*GetComScoreForClipResponse, error) {
	out := new(GetComScoreForClipResponse)
	err := c.cc.Invoke(ctx, "/comscorepackage.ComScoreManager/GetComScoreForClip", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *comScoreManagerClient) GetComScoreForClips(ctx context.Context, in *GetComScoreForClipsRequest, opts ...grpc.CallOption) (*GetComScoreForClipsResponse, error) {
	out := new(GetComScoreForClipsResponse)
	err := c.cc.Invoke(ctx, "/comscorepackage.ComScoreManager/GetComScoreForClips", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// ComScoreManagerServer is the server API for ComScoreManager service.
// All implementations must embed UnimplementedComScoreManagerServer
// for forward compatibility
type ComScoreManagerServer interface {
	// GetComScoreForClip (Unary)
	GetComScoreForClip(context.Context, *GetComScoreForClipRequest) (*GetComScoreForClipResponse, error)
	// GetComScoreForClips (Unary)
	GetComScoreForClips(context.Context, *GetComScoreForClipsRequest) (*GetComScoreForClipsResponse, error)
	mustEmbedUnimplementedComScoreManagerServer()
}

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

func (UnimplementedComScoreManagerServer) GetComScoreForClip(context.Context, *GetComScoreForClipRequest) (*GetComScoreForClipResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetComScoreForClip not implemented")
}
func (UnimplementedComScoreManagerServer) GetComScoreForClips(context.Context, *GetComScoreForClipsRequest) (*GetComScoreForClipsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetComScoreForClips not implemented")
}
func (UnimplementedComScoreManagerServer) mustEmbedUnimplementedComScoreManagerServer() {}

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

func RegisterComScoreManagerServer(s grpc.ServiceRegistrar, srv ComScoreManagerServer) {
	s.RegisterService(&ComScoreManager_ServiceDesc, srv)
}

func _ComScoreManager_GetComScoreForClip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetComScoreForClipRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ComScoreManagerServer).GetComScoreForClip(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/comscorepackage.ComScoreManager/GetComScoreForClip",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ComScoreManagerServer).GetComScoreForClip(ctx, req.(*GetComScoreForClipRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _ComScoreManager_GetComScoreForClips_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetComScoreForClipsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ComScoreManagerServer).GetComScoreForClips(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/comscorepackage.ComScoreManager/GetComScoreForClips",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ComScoreManagerServer).GetComScoreForClips(ctx, req.(*GetComScoreForClipsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// ComScoreManager_ServiceDesc is the grpc.ServiceDesc for ComScoreManager service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ComScoreManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "comscorepackage.ComScoreManager",
	HandlerType: (*ComScoreManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetComScoreForClip",
			Handler:    _ComScoreManager_GetComScoreForClip_Handler,
		},
		{
			MethodName: "GetComScoreForClips",
			Handler:    _ComScoreManager_GetComScoreForClips_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "comscore/comscore.proto",
}
