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

from . import bugs_pb2 as bugs__pb2
from .google.api import httpbody_pb2 as google_dot_api_dot_httpbody__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.Version = channel.unary_unary(
                '/org.couchers.bugs.Bugs/Version',
                request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
                response_deserializer=bugs__pb2.VersionInfo.FromString,
                )
        self.ReportBug = channel.unary_unary(
                '/org.couchers.bugs.Bugs/ReportBug',
                request_serializer=bugs__pb2.ReportBugReq.SerializeToString,
                response_deserializer=bugs__pb2.ReportBugRes.FromString,
                )
        self.Status = channel.unary_unary(
                '/org.couchers.bugs.Bugs/Status',
                request_serializer=bugs__pb2.StatusReq.SerializeToString,
                response_deserializer=bugs__pb2.StatusRes.FromString,
                )
        self.GetDescriptors = channel.unary_unary(
                '/org.couchers.bugs.Bugs/GetDescriptors',
                request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
                response_deserializer=google_dot_api_dot_httpbody__pb2.HttpBody.FromString,
                )
        self.GetNativeUpdateManifest = channel.unary_unary(
                '/org.couchers.bugs.Bugs/GetNativeUpdateManifest',
                request_serializer=google_dot_api_dot_httpbody__pb2.HttpBody.SerializeToString,
                response_deserializer=google_dot_api_dot_httpbody__pb2.HttpBody.FromString,
                )
        self.GeolocationSearchInfo = channel.unary_unary(
                '/org.couchers.bugs.Bugs/GeolocationSearchInfo',
                request_serializer=bugs__pb2.GeolocationSearchInfoReq.SerializeToString,
                response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
                )
        self.GeolocationClickInfo = channel.unary_unary(
                '/org.couchers.bugs.Bugs/GeolocationClickInfo',
                request_serializer=bugs__pb2.GeolocationClickInfoReq.SerializeToString,
                response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
                )
        self.ReportDiagnostics = channel.unary_unary(
                '/org.couchers.bugs.Bugs/ReportDiagnostics',
                request_serializer=bugs__pb2.ReportDiagnosticsReq.SerializeToString,
                response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
                )
        self.CheckNativeStatus = channel.unary_unary(
                '/org.couchers.bugs.Bugs/CheckNativeStatus',
                request_serializer=bugs__pb2.CheckNativeStatusReq.SerializeToString,
                response_deserializer=bugs__pb2.CheckNativeStatusRes.FromString,
                )
        self.EvaluateFeatureFlag = channel.unary_unary(
                '/org.couchers.bugs.Bugs/EvaluateFeatureFlag',
                request_serializer=bugs__pb2.EvaluateFeatureFlagReq.SerializeToString,
                response_deserializer=bugs__pb2.EvaluateFeatureFlagRes.FromString,
                )
        self.LogExperimentExposure = channel.unary_unary(
                '/org.couchers.bugs.Bugs/LogExperimentExposure',
                request_serializer=bugs__pb2.LogExperimentExposureReq.SerializeToString,
                response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
                )


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

    def Version(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 ReportBug(self, request, context):
        """Report a bug
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def Status(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 GetDescriptors(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 GetNativeUpdateManifest(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 GeolocationSearchInfo(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 GeolocationClickInfo(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 ReportDiagnostics(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 CheckNativeStatus(self, request, context):
        """Diagnostics ping from the native mobile apps.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def EvaluateFeatureFlag(self, request, context):
        """Remotely evaluate a single feature flag for the current session's user (anonymously when
        logged out) and return the resolved value. Evaluated one flag at a time, on demand, so the
        server only evaluates flags the client actually uses - which keeps exposure logging accurate.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def LogExperimentExposure(self, request, context):
        """Record a client-side experiment exposure, reported by the SDK as the user is bucketed.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_BugsServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'Version': grpc.unary_unary_rpc_method_handler(
                    servicer.Version,
                    request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
                    response_serializer=bugs__pb2.VersionInfo.SerializeToString,
            ),
            'ReportBug': grpc.unary_unary_rpc_method_handler(
                    servicer.ReportBug,
                    request_deserializer=bugs__pb2.ReportBugReq.FromString,
                    response_serializer=bugs__pb2.ReportBugRes.SerializeToString,
            ),
            'Status': grpc.unary_unary_rpc_method_handler(
                    servicer.Status,
                    request_deserializer=bugs__pb2.StatusReq.FromString,
                    response_serializer=bugs__pb2.StatusRes.SerializeToString,
            ),
            'GetDescriptors': grpc.unary_unary_rpc_method_handler(
                    servicer.GetDescriptors,
                    request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
                    response_serializer=google_dot_api_dot_httpbody__pb2.HttpBody.SerializeToString,
            ),
            'GetNativeUpdateManifest': grpc.unary_unary_rpc_method_handler(
                    servicer.GetNativeUpdateManifest,
                    request_deserializer=google_dot_api_dot_httpbody__pb2.HttpBody.FromString,
                    response_serializer=google_dot_api_dot_httpbody__pb2.HttpBody.SerializeToString,
            ),
            'GeolocationSearchInfo': grpc.unary_unary_rpc_method_handler(
                    servicer.GeolocationSearchInfo,
                    request_deserializer=bugs__pb2.GeolocationSearchInfoReq.FromString,
                    response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
            ),
            'GeolocationClickInfo': grpc.unary_unary_rpc_method_handler(
                    servicer.GeolocationClickInfo,
                    request_deserializer=bugs__pb2.GeolocationClickInfoReq.FromString,
                    response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
            ),
            'ReportDiagnostics': grpc.unary_unary_rpc_method_handler(
                    servicer.ReportDiagnostics,
                    request_deserializer=bugs__pb2.ReportDiagnosticsReq.FromString,
                    response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
            ),
            'CheckNativeStatus': grpc.unary_unary_rpc_method_handler(
                    servicer.CheckNativeStatus,
                    request_deserializer=bugs__pb2.CheckNativeStatusReq.FromString,
                    response_serializer=bugs__pb2.CheckNativeStatusRes.SerializeToString,
            ),
            'EvaluateFeatureFlag': grpc.unary_unary_rpc_method_handler(
                    servicer.EvaluateFeatureFlag,
                    request_deserializer=bugs__pb2.EvaluateFeatureFlagReq.FromString,
                    response_serializer=bugs__pb2.EvaluateFeatureFlagRes.SerializeToString,
            ),
            'LogExperimentExposure': grpc.unary_unary_rpc_method_handler(
                    servicer.LogExperimentExposure,
                    request_deserializer=bugs__pb2.LogExperimentExposureReq.FromString,
                    response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'org.couchers.bugs.Bugs', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def Version(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, '/org.couchers.bugs.Bugs/Version',
            google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
            bugs__pb2.VersionInfo.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ReportBug(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, '/org.couchers.bugs.Bugs/ReportBug',
            bugs__pb2.ReportBugReq.SerializeToString,
            bugs__pb2.ReportBugRes.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Status(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, '/org.couchers.bugs.Bugs/Status',
            bugs__pb2.StatusReq.SerializeToString,
            bugs__pb2.StatusRes.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetDescriptors(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, '/org.couchers.bugs.Bugs/GetDescriptors',
            google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
            google_dot_api_dot_httpbody__pb2.HttpBody.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetNativeUpdateManifest(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, '/org.couchers.bugs.Bugs/GetNativeUpdateManifest',
            google_dot_api_dot_httpbody__pb2.HttpBody.SerializeToString,
            google_dot_api_dot_httpbody__pb2.HttpBody.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GeolocationSearchInfo(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, '/org.couchers.bugs.Bugs/GeolocationSearchInfo',
            bugs__pb2.GeolocationSearchInfoReq.SerializeToString,
            google_dot_protobuf_dot_empty__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GeolocationClickInfo(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, '/org.couchers.bugs.Bugs/GeolocationClickInfo',
            bugs__pb2.GeolocationClickInfoReq.SerializeToString,
            google_dot_protobuf_dot_empty__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ReportDiagnostics(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, '/org.couchers.bugs.Bugs/ReportDiagnostics',
            bugs__pb2.ReportDiagnosticsReq.SerializeToString,
            google_dot_protobuf_dot_empty__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CheckNativeStatus(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, '/org.couchers.bugs.Bugs/CheckNativeStatus',
            bugs__pb2.CheckNativeStatusReq.SerializeToString,
            bugs__pb2.CheckNativeStatusRes.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def EvaluateFeatureFlag(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, '/org.couchers.bugs.Bugs/EvaluateFeatureFlag',
            bugs__pb2.EvaluateFeatureFlagReq.SerializeToString,
            bugs__pb2.EvaluateFeatureFlagRes.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def LogExperimentExposure(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, '/org.couchers.bugs.Bugs/LogExperimentExposure',
            bugs__pb2.LogExperimentExposureReq.SerializeToString,
            google_dot_protobuf_dot_empty__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
