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

from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
from spaceone.api.provisioning.v1 import resource_tag_pb2 as spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2


class ResourceTagStub(object):
    """Missing associated documentation comment in .proto file."""

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

        Args:
            channel: A grpc.Channel.
        """
        self.create_resource_tag = channel.unary_unary(
                '/spaceone.api.provisioning.v1.ResourceTag/create_resource_tag',
                request_serializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.CreateResourceTagRequest.SerializeToString,
                response_deserializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagInfo.FromString,
                )
        self.get_resource_tags = channel.unary_unary(
                '/spaceone.api.provisioning.v1.ResourceTag/get_resource_tags',
                request_serializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagQuery.SerializeToString,
                response_deserializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagsInfo.FromString,
                )
        self.get_resource_tag = channel.unary_unary(
                '/spaceone.api.provisioning.v1.ResourceTag/get_resource_tag',
                request_serializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagRequest.SerializeToString,
                response_deserializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagInfo.FromString,
                )
        self.update_resource_tag = channel.unary_unary(
                '/spaceone.api.provisioning.v1.ResourceTag/update_resource_tag',
                request_serializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.UpdateResourceTagRequest.SerializeToString,
                response_deserializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagInfo.FromString,
                )
        self.delete_resource_tag = channel.unary_unary(
                '/spaceone.api.provisioning.v1.ResourceTag/delete_resource_tag',
                request_serializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagRequest.SerializeToString,
                response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
                )
        self.stat = channel.unary_unary(
                '/spaceone.api.provisioning.v1.ResourceTag/stat',
                request_serializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagStatQuery.SerializeToString,
                response_deserializer=google_dot_protobuf_dot_struct__pb2.Struct.FromString,
                )


class ResourceTagServicer(object):
    """Missing associated documentation comment in .proto file."""

    def create_resource_tag(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def get_resource_tags(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def get_resource_tag(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def update_resource_tag(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def delete_resource_tag(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def stat(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_ResourceTagServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'create_resource_tag': grpc.unary_unary_rpc_method_handler(
                    servicer.create_resource_tag,
                    request_deserializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.CreateResourceTagRequest.FromString,
                    response_serializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagInfo.SerializeToString,
            ),
            'get_resource_tags': grpc.unary_unary_rpc_method_handler(
                    servicer.get_resource_tags,
                    request_deserializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagQuery.FromString,
                    response_serializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagsInfo.SerializeToString,
            ),
            'get_resource_tag': grpc.unary_unary_rpc_method_handler(
                    servicer.get_resource_tag,
                    request_deserializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagRequest.FromString,
                    response_serializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagInfo.SerializeToString,
            ),
            'update_resource_tag': grpc.unary_unary_rpc_method_handler(
                    servicer.update_resource_tag,
                    request_deserializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.UpdateResourceTagRequest.FromString,
                    response_serializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagInfo.SerializeToString,
            ),
            'delete_resource_tag': grpc.unary_unary_rpc_method_handler(
                    servicer.delete_resource_tag,
                    request_deserializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagRequest.FromString,
                    response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
            ),
            'stat': grpc.unary_unary_rpc_method_handler(
                    servicer.stat,
                    request_deserializer=spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagStatQuery.FromString,
                    response_serializer=google_dot_protobuf_dot_struct__pb2.Struct.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'spaceone.api.provisioning.v1.ResourceTag', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class ResourceTag(object):
    """Missing associated documentation comment in .proto file."""

    @staticmethod
    def create_resource_tag(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, '/spaceone.api.provisioning.v1.ResourceTag/create_resource_tag',
            spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.CreateResourceTagRequest.SerializeToString,
            spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagInfo.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def get_resource_tags(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, '/spaceone.api.provisioning.v1.ResourceTag/get_resource_tags',
            spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagQuery.SerializeToString,
            spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagsInfo.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def get_resource_tag(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, '/spaceone.api.provisioning.v1.ResourceTag/get_resource_tag',
            spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagRequest.SerializeToString,
            spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagInfo.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def update_resource_tag(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, '/spaceone.api.provisioning.v1.ResourceTag/update_resource_tag',
            spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.UpdateResourceTagRequest.SerializeToString,
            spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagInfo.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def delete_resource_tag(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, '/spaceone.api.provisioning.v1.ResourceTag/delete_resource_tag',
            spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagRequest.SerializeToString,
            google_dot_protobuf_dot_empty__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def stat(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, '/spaceone.api.provisioning.v1.ResourceTag/stat',
            spaceone_dot_api_dot_provisioning_dot_v1_dot_resource__tag__pb2.ResourceTagStatQuery.SerializeToString,
            google_dot_protobuf_dot_struct__pb2.Struct.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
