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

package proto

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

const (
	OpenGeocoding_Forward_FullMethodName = "/opengeocoding.OpenGeocoding/Forward"
)

// OpenGeocodingClient is the client API for OpenGeocoding 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 OpenGeocodingClient interface {
	Forward(ctx context.Context, in *ForwardRequest, opts ...grpc.CallOption) (*ForwardResult, error)
}

type openGeocodingClient struct {
	cc grpc.ClientConnInterface
}

func NewOpenGeocodingClient(cc grpc.ClientConnInterface) OpenGeocodingClient {
	return &openGeocodingClient{cc}
}

func (c *openGeocodingClient) Forward(ctx context.Context, in *ForwardRequest, opts ...grpc.CallOption) (*ForwardResult, error) {
	out := new(ForwardResult)
	err := c.cc.Invoke(ctx, OpenGeocoding_Forward_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// OpenGeocodingServer is the server API for OpenGeocoding service.
// All implementations must embed UnimplementedOpenGeocodingServer
// for forward compatibility
type OpenGeocodingServer interface {
	Forward(context.Context, *ForwardRequest) (*ForwardResult, error)
	mustEmbedUnimplementedOpenGeocodingServer()
}

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

func (UnimplementedOpenGeocodingServer) Forward(context.Context, *ForwardRequest) (*ForwardResult, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Forward not implemented")
}
func (UnimplementedOpenGeocodingServer) mustEmbedUnimplementedOpenGeocodingServer() {}

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

func RegisterOpenGeocodingServer(s grpc.ServiceRegistrar, srv OpenGeocodingServer) {
	s.RegisterService(&OpenGeocoding_ServiceDesc, srv)
}

func _OpenGeocoding_Forward_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ForwardRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OpenGeocodingServer).Forward(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: OpenGeocoding_Forward_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OpenGeocodingServer).Forward(ctx, req.(*ForwardRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// OpenGeocoding_ServiceDesc is the grpc.ServiceDesc for OpenGeocoding service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var OpenGeocoding_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "opengeocoding.OpenGeocoding",
	HandlerType: (*OpenGeocodingServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Forward",
			Handler:    _OpenGeocoding_Forward_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service.proto",
}

const (
	OpenGeocodingInternal_InsertLocations_FullMethodName = "/opengeocoding.OpenGeocodingInternal/InsertLocations"
)

// OpenGeocodingInternalClient is the client API for OpenGeocodingInternal 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 OpenGeocodingInternalClient interface {
	InsertLocations(ctx context.Context, in *InsertLocationsRequest, opts ...grpc.CallOption) (*InsertLocationsResponse, error)
}

type openGeocodingInternalClient struct {
	cc grpc.ClientConnInterface
}

func NewOpenGeocodingInternalClient(cc grpc.ClientConnInterface) OpenGeocodingInternalClient {
	return &openGeocodingInternalClient{cc}
}

func (c *openGeocodingInternalClient) InsertLocations(ctx context.Context, in *InsertLocationsRequest, opts ...grpc.CallOption) (*InsertLocationsResponse, error) {
	out := new(InsertLocationsResponse)
	err := c.cc.Invoke(ctx, OpenGeocodingInternal_InsertLocations_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// OpenGeocodingInternalServer is the server API for OpenGeocodingInternal service.
// All implementations must embed UnimplementedOpenGeocodingInternalServer
// for forward compatibility
type OpenGeocodingInternalServer interface {
	InsertLocations(context.Context, *InsertLocationsRequest) (*InsertLocationsResponse, error)
	mustEmbedUnimplementedOpenGeocodingInternalServer()
}

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

func (UnimplementedOpenGeocodingInternalServer) InsertLocations(context.Context, *InsertLocationsRequest) (*InsertLocationsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method InsertLocations not implemented")
}
func (UnimplementedOpenGeocodingInternalServer) mustEmbedUnimplementedOpenGeocodingInternalServer() {}

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

func RegisterOpenGeocodingInternalServer(s grpc.ServiceRegistrar, srv OpenGeocodingInternalServer) {
	s.RegisterService(&OpenGeocodingInternal_ServiceDesc, srv)
}

func _OpenGeocodingInternal_InsertLocations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(InsertLocationsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OpenGeocodingInternalServer).InsertLocations(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: OpenGeocodingInternal_InsertLocations_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OpenGeocodingInternalServer).InsertLocations(ctx, req.(*InsertLocationsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// OpenGeocodingInternal_ServiceDesc is the grpc.ServiceDesc for OpenGeocodingInternal service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var OpenGeocodingInternal_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "opengeocoding.OpenGeocodingInternal",
	HandlerType: (*OpenGeocodingInternalServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "InsertLocations",
			Handler:    _OpenGeocodingInternal_InsertLocations_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service.proto",
}
