# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

from agentic_mesh_protocol.user_profile.v1 import user_profile_pb2 as agentic__mesh__protocol_dot_user__profile_dot_v1_dot_user__profile__pb2


class UserProfileServiceStub(object):
    """UserProfileService: Service to manage user profiles
    """

    def __init__(self, channel):
        """Constructor.

        Args:
            channel: A grpc.Channel.
        """
        self.GetUserProfile = channel.unary_unary(
                '/agentic_mesh_protocol.user_profile.v1.UserProfileService/GetUserProfile',
                request_serializer=agentic__mesh__protocol_dot_user__profile_dot_v1_dot_user__profile__pb2.GetUserProfileRequest.SerializeToString,
                response_deserializer=agentic__mesh__protocol_dot_user__profile_dot_v1_dot_user__profile__pb2.GetUserProfileResponse.FromString,
                _registered_method=True)


class UserProfileServiceServicer(object):
    """UserProfileService: Service to manage user profiles
    """

    def GetUserProfile(self, request, context):
        """GetUserProfile: Get a user profile by user ID
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_UserProfileServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetUserProfile': grpc.unary_unary_rpc_method_handler(
                    servicer.GetUserProfile,
                    request_deserializer=agentic__mesh__protocol_dot_user__profile_dot_v1_dot_user__profile__pb2.GetUserProfileRequest.FromString,
                    response_serializer=agentic__mesh__protocol_dot_user__profile_dot_v1_dot_user__profile__pb2.GetUserProfileResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'agentic_mesh_protocol.user_profile.v1.UserProfileService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
    server.add_registered_method_handlers('agentic_mesh_protocol.user_profile.v1.UserProfileService', rpc_method_handlers)


 # This class is part of an EXPERIMENTAL API.
class UserProfileService(object):
    """UserProfileService: Service to manage user profiles
    """

    @staticmethod
    def GetUserProfile(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(
            request,
            target,
            '/agentic_mesh_protocol.user_profile.v1.UserProfileService/GetUserProfile',
            agentic__mesh__protocol_dot_user__profile_dot_v1_dot_user__profile__pb2.GetUserProfileRequest.SerializeToString,
            agentic__mesh__protocol_dot_user__profile_dot_v1_dot_user__profile__pb2.GetUserProfileResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)
