// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.4.0
// - protoc             (unknown)
// source: global/nextgen/v1/plan_replayer.proto

package nextgenv1

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.62.0 or later.
const _ = grpc.SupportPackageIsVersion8

const (
	PlanReplayerService_GetPlanReplayerStatus_FullMethodName    = "/global.nextgen.v1.PlanReplayerService/GetPlanReplayerStatus"
	PlanReplayerService_UpdatePlanReplayerStatus_FullMethodName = "/global.nextgen.v1.PlanReplayerService/UpdatePlanReplayerStatus"
)

// PlanReplayerServiceClient is the client API for PlanReplayerService 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 PlanReplayerServiceClient interface {
	GetPlanReplayerStatus(ctx context.Context, in *GetPlanReplayerStatusRequest, opts ...grpc.CallOption) (*PlanReplayerStatus, error)
	UpdatePlanReplayerStatus(ctx context.Context, in *UpdatePlanReplayerStatusRequest, opts ...grpc.CallOption) (*PlanReplayerStatus, error)
}

type planReplayerServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewPlanReplayerServiceClient(cc grpc.ClientConnInterface) PlanReplayerServiceClient {
	return &planReplayerServiceClient{cc}
}

func (c *planReplayerServiceClient) GetPlanReplayerStatus(ctx context.Context, in *GetPlanReplayerStatusRequest, opts ...grpc.CallOption) (*PlanReplayerStatus, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PlanReplayerStatus)
	err := c.cc.Invoke(ctx, PlanReplayerService_GetPlanReplayerStatus_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *planReplayerServiceClient) UpdatePlanReplayerStatus(ctx context.Context, in *UpdatePlanReplayerStatusRequest, opts ...grpc.CallOption) (*PlanReplayerStatus, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PlanReplayerStatus)
	err := c.cc.Invoke(ctx, PlanReplayerService_UpdatePlanReplayerStatus_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// PlanReplayerServiceServer is the server API for PlanReplayerService service.
// All implementations should embed UnimplementedPlanReplayerServiceServer
// for forward compatibility
type PlanReplayerServiceServer interface {
	GetPlanReplayerStatus(context.Context, *GetPlanReplayerStatusRequest) (*PlanReplayerStatus, error)
	UpdatePlanReplayerStatus(context.Context, *UpdatePlanReplayerStatusRequest) (*PlanReplayerStatus, error)
}

// UnimplementedPlanReplayerServiceServer should be embedded to have forward compatible implementations.
type UnimplementedPlanReplayerServiceServer struct {
}

func (UnimplementedPlanReplayerServiceServer) GetPlanReplayerStatus(context.Context, *GetPlanReplayerStatusRequest) (*PlanReplayerStatus, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetPlanReplayerStatus not implemented")
}
func (UnimplementedPlanReplayerServiceServer) UpdatePlanReplayerStatus(context.Context, *UpdatePlanReplayerStatusRequest) (*PlanReplayerStatus, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdatePlanReplayerStatus not implemented")
}

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

func RegisterPlanReplayerServiceServer(s grpc.ServiceRegistrar, srv PlanReplayerServiceServer) {
	s.RegisterService(&PlanReplayerService_ServiceDesc, srv)
}

func _PlanReplayerService_GetPlanReplayerStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetPlanReplayerStatusRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PlanReplayerServiceServer).GetPlanReplayerStatus(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PlanReplayerService_GetPlanReplayerStatus_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PlanReplayerServiceServer).GetPlanReplayerStatus(ctx, req.(*GetPlanReplayerStatusRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PlanReplayerService_UpdatePlanReplayerStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdatePlanReplayerStatusRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PlanReplayerServiceServer).UpdatePlanReplayerStatus(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PlanReplayerService_UpdatePlanReplayerStatus_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PlanReplayerServiceServer).UpdatePlanReplayerStatus(ctx, req.(*UpdatePlanReplayerStatusRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// PlanReplayerService_ServiceDesc is the grpc.ServiceDesc for PlanReplayerService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var PlanReplayerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "global.nextgen.v1.PlanReplayerService",
	HandlerType: (*PlanReplayerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPlanReplayerStatus",
			Handler:    _PlanReplayerService_GetPlanReplayerStatus_Handler,
		},
		{
			MethodName: "UpdatePlanReplayerStatus",
			Handler:    _PlanReplayerService_UpdatePlanReplayerStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "global/nextgen/v1/plan_replayer.proto",
}
