// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc             v3.12.4
// source: sentiment-analysis.proto

package protobuf

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

// SentimentAnalyzerClient is the client API for SentimentAnalyzer 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 SentimentAnalyzerClient interface {
	AnalyzeSentiment(ctx context.Context, in *AnalyzeSentimentRequest, opts ...grpc.CallOption) (*AnalyzeSentimentResponse, error)
}

type sentimentAnalyzerClient struct {
	cc grpc.ClientConnInterface
}

func NewSentimentAnalyzerClient(cc grpc.ClientConnInterface) SentimentAnalyzerClient {
	return &sentimentAnalyzerClient{cc}
}

func (c *sentimentAnalyzerClient) AnalyzeSentiment(ctx context.Context, in *AnalyzeSentimentRequest, opts ...grpc.CallOption) (*AnalyzeSentimentResponse, error) {
	out := new(AnalyzeSentimentResponse)
	err := c.cc.Invoke(ctx, "/sentimentanalysis.SentimentAnalyzer/AnalyzeSentiment", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// SentimentAnalyzerServer is the server API for SentimentAnalyzer service.
// All implementations must embed UnimplementedSentimentAnalyzerServer
// for forward compatibility
type SentimentAnalyzerServer interface {
	AnalyzeSentiment(context.Context, *AnalyzeSentimentRequest) (*AnalyzeSentimentResponse, error)
	mustEmbedUnimplementedSentimentAnalyzerServer()
}

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

func (UnimplementedSentimentAnalyzerServer) AnalyzeSentiment(context.Context, *AnalyzeSentimentRequest) (*AnalyzeSentimentResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method AnalyzeSentiment not implemented")
}
func (UnimplementedSentimentAnalyzerServer) mustEmbedUnimplementedSentimentAnalyzerServer() {}

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

func RegisterSentimentAnalyzerServer(s grpc.ServiceRegistrar, srv SentimentAnalyzerServer) {
	s.RegisterService(&SentimentAnalyzer_ServiceDesc, srv)
}

func _SentimentAnalyzer_AnalyzeSentiment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(AnalyzeSentimentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(SentimentAnalyzerServer).AnalyzeSentiment(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/sentimentanalysis.SentimentAnalyzer/AnalyzeSentiment",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(SentimentAnalyzerServer).AnalyzeSentiment(ctx, req.(*AnalyzeSentimentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// SentimentAnalyzer_ServiceDesc is the grpc.ServiceDesc for SentimentAnalyzer service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var SentimentAnalyzer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sentimentanalysis.SentimentAnalyzer",
	HandlerType: (*SentimentAnalyzerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AnalyzeSentiment",
			Handler:    _SentimentAnalyzer_AnalyzeSentiment_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sentiment-analysis.proto",
}
