// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc             v6.30.0
// source: profile_v1.proto

package profile_v1

import (
	context "context"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
)

// 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 (
	ProfileV1_CreateProfile_FullMethodName = "/profile_v1.ProfileV1/CreateProfile"
	ProfileV1_GetProfile_FullMethodName    = "/profile_v1.ProfileV1/GetProfile"
	ProfileV1_UpdateProfile_FullMethodName = "/profile_v1.ProfileV1/UpdateProfile"
	ProfileV1_DeleteProfile_FullMethodName = "/profile_v1.ProfileV1/DeleteProfile"
	ProfileV1_GetProfiles_FullMethodName   = "/profile_v1.ProfileV1/GetProfiles"
)

// ProfileV1Client is the client API for ProfileV1 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 ProfileV1Client interface {
	CreateProfile(ctx context.Context, in *CreateProfileInput, opts ...grpc.CallOption) (*CreateProfileOutput, error)
	GetProfile(ctx context.Context, in *GetProfileInput, opts ...grpc.CallOption) (*GetProfileOutput, error)
	UpdateProfile(ctx context.Context, in *UpdateProfileInput, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteProfile(ctx context.Context, in *DeleteProfileInput, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetProfiles(ctx context.Context, in *GetProfilesInput, opts ...grpc.CallOption) (*GetProfilesOutput, error)
}

type profileV1Client struct {
	cc grpc.ClientConnInterface
}

func NewProfileV1Client(cc grpc.ClientConnInterface) ProfileV1Client {
	return &profileV1Client{cc}
}

func (c *profileV1Client) CreateProfile(ctx context.Context, in *CreateProfileInput, opts ...grpc.CallOption) (*CreateProfileOutput, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(CreateProfileOutput)
	err := c.cc.Invoke(ctx, ProfileV1_CreateProfile_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *profileV1Client) GetProfile(ctx context.Context, in *GetProfileInput, opts ...grpc.CallOption) (*GetProfileOutput, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(GetProfileOutput)
	err := c.cc.Invoke(ctx, ProfileV1_GetProfile_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *profileV1Client) UpdateProfile(ctx context.Context, in *UpdateProfileInput, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, ProfileV1_UpdateProfile_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *profileV1Client) DeleteProfile(ctx context.Context, in *DeleteProfileInput, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, ProfileV1_DeleteProfile_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *profileV1Client) GetProfiles(ctx context.Context, in *GetProfilesInput, opts ...grpc.CallOption) (*GetProfilesOutput, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(GetProfilesOutput)
	err := c.cc.Invoke(ctx, ProfileV1_GetProfiles_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// ProfileV1Server is the server API for ProfileV1 service.
// All implementations must embed UnimplementedProfileV1Server
// for forward compatibility.
type ProfileV1Server interface {
	CreateProfile(context.Context, *CreateProfileInput) (*CreateProfileOutput, error)
	GetProfile(context.Context, *GetProfileInput) (*GetProfileOutput, error)
	UpdateProfile(context.Context, *UpdateProfileInput) (*emptypb.Empty, error)
	DeleteProfile(context.Context, *DeleteProfileInput) (*emptypb.Empty, error)
	GetProfiles(context.Context, *GetProfilesInput) (*GetProfilesOutput, error)
	mustEmbedUnimplementedProfileV1Server()
}

// UnimplementedProfileV1Server 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 UnimplementedProfileV1Server struct{}

func (UnimplementedProfileV1Server) CreateProfile(context.Context, *CreateProfileInput) (*CreateProfileOutput, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateProfile not implemented")
}
func (UnimplementedProfileV1Server) GetProfile(context.Context, *GetProfileInput) (*GetProfileOutput, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetProfile not implemented")
}
func (UnimplementedProfileV1Server) UpdateProfile(context.Context, *UpdateProfileInput) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateProfile not implemented")
}
func (UnimplementedProfileV1Server) DeleteProfile(context.Context, *DeleteProfileInput) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteProfile not implemented")
}
func (UnimplementedProfileV1Server) GetProfiles(context.Context, *GetProfilesInput) (*GetProfilesOutput, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetProfiles not implemented")
}
func (UnimplementedProfileV1Server) mustEmbedUnimplementedProfileV1Server() {}
func (UnimplementedProfileV1Server) testEmbeddedByValue()                   {}

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

func RegisterProfileV1Server(s grpc.ServiceRegistrar, srv ProfileV1Server) {
	// If the following call pancis, it indicates UnimplementedProfileV1Server 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(&ProfileV1_ServiceDesc, srv)
}

func _ProfileV1_CreateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreateProfileInput)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ProfileV1Server).CreateProfile(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ProfileV1_CreateProfile_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ProfileV1Server).CreateProfile(ctx, req.(*CreateProfileInput))
	}
	return interceptor(ctx, in, info, handler)
}

func _ProfileV1_GetProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetProfileInput)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ProfileV1Server).GetProfile(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ProfileV1_GetProfile_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ProfileV1Server).GetProfile(ctx, req.(*GetProfileInput))
	}
	return interceptor(ctx, in, info, handler)
}

func _ProfileV1_UpdateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdateProfileInput)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ProfileV1Server).UpdateProfile(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ProfileV1_UpdateProfile_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ProfileV1Server).UpdateProfile(ctx, req.(*UpdateProfileInput))
	}
	return interceptor(ctx, in, info, handler)
}

func _ProfileV1_DeleteProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeleteProfileInput)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ProfileV1Server).DeleteProfile(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ProfileV1_DeleteProfile_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ProfileV1Server).DeleteProfile(ctx, req.(*DeleteProfileInput))
	}
	return interceptor(ctx, in, info, handler)
}

func _ProfileV1_GetProfiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetProfilesInput)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ProfileV1Server).GetProfiles(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ProfileV1_GetProfiles_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ProfileV1Server).GetProfiles(ctx, req.(*GetProfilesInput))
	}
	return interceptor(ctx, in, info, handler)
}

// ProfileV1_ServiceDesc is the grpc.ServiceDesc for ProfileV1 service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ProfileV1_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "profile_v1.ProfileV1",
	HandlerType: (*ProfileV1Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateProfile",
			Handler:    _ProfileV1_CreateProfile_Handler,
		},
		{
			MethodName: "GetProfile",
			Handler:    _ProfileV1_GetProfile_Handler,
		},
		{
			MethodName: "UpdateProfile",
			Handler:    _ProfileV1_UpdateProfile_Handler,
		},
		{
			MethodName: "DeleteProfile",
			Handler:    _ProfileV1_DeleteProfile_Handler,
		},
		{
			MethodName: "GetProfiles",
			Handler:    _ProfileV1_GetProfiles_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "profile_v1.proto",
}
