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

from google.ads.google_ads.v5.proto.services import user_data_service_pb2 as google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2


class UserDataServiceStub(object):
    """Proto file describing the UserDataService.

    Service to manage user data uploads.
    Accessible only to customers on the allow-list.
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.UploadUserData = channel.unary_unary(
                '/google.ads.googleads.v5.services.UserDataService/UploadUserData',
                request_serializer=google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataRequest.SerializeToString,
                response_deserializer=google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataResponse.FromString,
                )


class UserDataServiceServicer(object):
    """Proto file describing the UserDataService.

    Service to manage user data uploads.
    Accessible only to customers on the allow-list.
    """

    def UploadUserData(self, request, context):
        """Uploads the given user data.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_UserDataServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'UploadUserData': grpc.unary_unary_rpc_method_handler(
                    servicer.UploadUserData,
                    request_deserializer=google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataRequest.FromString,
                    response_serializer=google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'google.ads.googleads.v5.services.UserDataService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class UserDataService(object):
    """Proto file describing the UserDataService.

    Service to manage user data uploads.
    Accessible only to customers on the allow-list.
    """

    @staticmethod
    def UploadUserData(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/google.ads.googleads.v5.services.UserDataService/UploadUserData',
            google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataRequest.SerializeToString,
            google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataResponse.FromString,
            options, channel_credentials,
            call_credentials, compression, wait_for_ready, timeout, metadata)

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

from google.ads.google_ads.v5.proto.services import user_data_service_pb2 as google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2


class UserDataServiceStub(object):
    """Proto file describing the UserDataService.

    Service to manage user data uploads.
    Accessible only to customers on the allow-list.
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.UploadUserData = channel.unary_unary(
                '/google.ads.googleads.v5.services.UserDataService/UploadUserData',
                request_serializer=google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataRequest.SerializeToString,
                response_deserializer=google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataResponse.FromString,
                )


class UserDataServiceServicer(object):
    """Proto file describing the UserDataService.

    Service to manage user data uploads.
    Accessible only to customers on the allow-list.
    """

    def UploadUserData(self, request, context):
        """Uploads the given user data.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_UserDataServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'UploadUserData': grpc.unary_unary_rpc_method_handler(
                    servicer.UploadUserData,
                    request_deserializer=google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataRequest.FromString,
                    response_serializer=google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'google.ads.googleads.v5.services.UserDataService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class UserDataService(object):
    """Proto file describing the UserDataService.

    Service to manage user data uploads.
    Accessible only to customers on the allow-list.
    """

    @staticmethod
    def UploadUserData(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/google.ads.googleads.v5.services.UserDataService/UploadUserData',
            google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataRequest.SerializeToString,
            google_dot_ads_dot_googleads__v5_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataResponse.FromString,
            options, channel_credentials,
            call_credentials, compression, wait_for_ready, timeout, metadata)

# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! Client and server classes corresponding to protobuf-defined services. Proto file describing the UserDataService.      Service to manage user data uploads.     Accessible only to customers on the allow-list. Constructor.          Args:             channel: A grpc.Channel. Proto file describing the UserDataService.      Service to manage user data uploads.     Accessible only to customers on the allow-list. Uploads the given user data. # This class is part of an EXPERIMENTAL API. Proto file describing the UserDataService.      Service to manage user data uploads.     Accessible only to customers on the allow-list.