// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.1
// - protoc             (unknown)
// source: runtime/v1/application_navigation.proto

package runtimev1

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.64.0 or later.
const _ = grpc.SupportPackageIsVersion9

const (
	ApplicationNavigationService_Read_FullMethodName    = "/nexuscrm.runtime.v1.ApplicationNavigationService/Read"
	ApplicationNavigationService_Resolve_FullMethodName = "/nexuscrm.runtime.v1.ApplicationNavigationService/Resolve"
	ApplicationNavigationService_Save_FullMethodName    = "/nexuscrm.runtime.v1.ApplicationNavigationService/Save"
)

// ApplicationNavigationServiceClient is the client API for ApplicationNavigationService 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.
//
// Synchronous tenant-current configuration. No publication/status lifecycle.
type ApplicationNavigationServiceClient interface {
	Read(ctx context.Context, in *ApplicationNavigationServiceReadRequest, opts ...grpc.CallOption) (*ApplicationNavigationServiceReadResponse, error)
	Resolve(ctx context.Context, in *ApplicationNavigationServiceResolveRequest, opts ...grpc.CallOption) (*ApplicationNavigationServiceResolveResponse, error)
	Save(ctx context.Context, in *ApplicationNavigationServiceSaveRequest, opts ...grpc.CallOption) (*ApplicationNavigationServiceSaveResponse, error)
}

type applicationNavigationServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewApplicationNavigationServiceClient(cc grpc.ClientConnInterface) ApplicationNavigationServiceClient {
	return &applicationNavigationServiceClient{cc}
}

func (c *applicationNavigationServiceClient) Read(ctx context.Context, in *ApplicationNavigationServiceReadRequest, opts ...grpc.CallOption) (*ApplicationNavigationServiceReadResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ApplicationNavigationServiceReadResponse)
	err := c.cc.Invoke(ctx, ApplicationNavigationService_Read_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *applicationNavigationServiceClient) Resolve(ctx context.Context, in *ApplicationNavigationServiceResolveRequest, opts ...grpc.CallOption) (*ApplicationNavigationServiceResolveResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ApplicationNavigationServiceResolveResponse)
	err := c.cc.Invoke(ctx, ApplicationNavigationService_Resolve_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *applicationNavigationServiceClient) Save(ctx context.Context, in *ApplicationNavigationServiceSaveRequest, opts ...grpc.CallOption) (*ApplicationNavigationServiceSaveResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ApplicationNavigationServiceSaveResponse)
	err := c.cc.Invoke(ctx, ApplicationNavigationService_Save_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// ApplicationNavigationServiceServer is the server API for ApplicationNavigationService service.
// All implementations must embed UnimplementedApplicationNavigationServiceServer
// for forward compatibility.
//
// Synchronous tenant-current configuration. No publication/status lifecycle.
type ApplicationNavigationServiceServer interface {
	Read(context.Context, *ApplicationNavigationServiceReadRequest) (*ApplicationNavigationServiceReadResponse, error)
	Resolve(context.Context, *ApplicationNavigationServiceResolveRequest) (*ApplicationNavigationServiceResolveResponse, error)
	Save(context.Context, *ApplicationNavigationServiceSaveRequest) (*ApplicationNavigationServiceSaveResponse, error)
	mustEmbedUnimplementedApplicationNavigationServiceServer()
}

// UnimplementedApplicationNavigationServiceServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedApplicationNavigationServiceServer struct{}

func (UnimplementedApplicationNavigationServiceServer) Read(context.Context, *ApplicationNavigationServiceReadRequest) (*ApplicationNavigationServiceReadResponse, error) {
	return nil, status.Error(codes.Unimplemented, "method Read not implemented")
}
func (UnimplementedApplicationNavigationServiceServer) Resolve(context.Context, *ApplicationNavigationServiceResolveRequest) (*ApplicationNavigationServiceResolveResponse, error) {
	return nil, status.Error(codes.Unimplemented, "method Resolve not implemented")
}
func (UnimplementedApplicationNavigationServiceServer) Save(context.Context, *ApplicationNavigationServiceSaveRequest) (*ApplicationNavigationServiceSaveResponse, error) {
	return nil, status.Error(codes.Unimplemented, "method Save not implemented")
}
func (UnimplementedApplicationNavigationServiceServer) mustEmbedUnimplementedApplicationNavigationServiceServer() {
}
func (UnimplementedApplicationNavigationServiceServer) testEmbeddedByValue() {}

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

func RegisterApplicationNavigationServiceServer(s grpc.ServiceRegistrar, srv ApplicationNavigationServiceServer) {
	// If the following call panics, it indicates UnimplementedApplicationNavigationServiceServer was
	// embedded by pointer and is nil.  This will cause panics if an
	// unimplemented method is ever invoked, so we test this at initialization
	// time to prevent it from happening at runtime later due to I/O.
	if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
		t.testEmbeddedByValue()
	}
	s.RegisterService(&ApplicationNavigationService_ServiceDesc, srv)
}

func _ApplicationNavigationService_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ApplicationNavigationServiceReadRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ApplicationNavigationServiceServer).Read(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ApplicationNavigationService_Read_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ApplicationNavigationServiceServer).Read(ctx, req.(*ApplicationNavigationServiceReadRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _ApplicationNavigationService_Resolve_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ApplicationNavigationServiceResolveRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ApplicationNavigationServiceServer).Resolve(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ApplicationNavigationService_Resolve_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ApplicationNavigationServiceServer).Resolve(ctx, req.(*ApplicationNavigationServiceResolveRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _ApplicationNavigationService_Save_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ApplicationNavigationServiceSaveRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ApplicationNavigationServiceServer).Save(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ApplicationNavigationService_Save_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ApplicationNavigationServiceServer).Save(ctx, req.(*ApplicationNavigationServiceSaveRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// ApplicationNavigationService_ServiceDesc is the grpc.ServiceDesc for ApplicationNavigationService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ApplicationNavigationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nexuscrm.runtime.v1.ApplicationNavigationService",
	HandlerType: (*ApplicationNavigationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Read",
			Handler:    _ApplicationNavigationService_Read_Handler,
		},
		{
			MethodName: "Resolve",
			Handler:    _ApplicationNavigationService_Resolve_Handler,
		},
		{
			MethodName: "Save",
			Handler:    _ApplicationNavigationService_Save_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "runtime/v1/application_navigation.proto",
}
