Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
bosdyn-api / api / local_grid_service_pb2_grpc.py
Size: Mime:
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

from bosdyn.api import local_grid_pb2 as bosdyn_dot_api_dot_local__grid__pb2


class LocalGridServiceStub(object):
    """The map service provides access multiple kinds of cell-based map data.
    It supports querying for the list of available types of local grids provided by the service,
    and supports requesting a set of the latest local grids by map type name.
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.GetLocalGridTypes = channel.unary_unary(
                '/bosdyn.api.LocalGridService/GetLocalGridTypes',
                request_serializer=bosdyn_dot_api_dot_local__grid__pb2.GetLocalGridTypesRequest.SerializeToString,
                response_deserializer=bosdyn_dot_api_dot_local__grid__pb2.GetLocalGridTypesResponse.FromString,
                )
        self.GetLocalGrids = channel.unary_unary(
                '/bosdyn.api.LocalGridService/GetLocalGrids',
                request_serializer=bosdyn_dot_api_dot_local__grid__pb2.GetLocalGridsRequest.SerializeToString,
                response_deserializer=bosdyn_dot_api_dot_local__grid__pb2.GetLocalGridsResponse.FromString,
                )


class LocalGridServiceServicer(object):
    """The map service provides access multiple kinds of cell-based map data.
    It supports querying for the list of available types of local grids provided by the service,
    and supports requesting a set of the latest local grids by map type name.
    """

    def GetLocalGridTypes(self, request, context):
        """Obtain the list of available map types.
        The name field keys access to individual local grids when calling GetLocalGrids.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def GetLocalGrids(self, request, context):
        """Request a set of local grids by type name.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_LocalGridServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetLocalGridTypes': grpc.unary_unary_rpc_method_handler(
                    servicer.GetLocalGridTypes,
                    request_deserializer=bosdyn_dot_api_dot_local__grid__pb2.GetLocalGridTypesRequest.FromString,
                    response_serializer=bosdyn_dot_api_dot_local__grid__pb2.GetLocalGridTypesResponse.SerializeToString,
            ),
            'GetLocalGrids': grpc.unary_unary_rpc_method_handler(
                    servicer.GetLocalGrids,
                    request_deserializer=bosdyn_dot_api_dot_local__grid__pb2.GetLocalGridsRequest.FromString,
                    response_serializer=bosdyn_dot_api_dot_local__grid__pb2.GetLocalGridsResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'bosdyn.api.LocalGridService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class LocalGridService(object):
    """The map service provides access multiple kinds of cell-based map data.
    It supports querying for the list of available types of local grids provided by the service,
    and supports requesting a set of the latest local grids by map type name.
    """

    @staticmethod
    def GetLocalGridTypes(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, '/bosdyn.api.LocalGridService/GetLocalGridTypes',
            bosdyn_dot_api_dot_local__grid__pb2.GetLocalGridTypesRequest.SerializeToString,
            bosdyn_dot_api_dot_local__grid__pb2.GetLocalGridTypesResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetLocalGrids(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, '/bosdyn.api.LocalGridService/GetLocalGrids',
            bosdyn_dot_api_dot_local__grid__pb2.GetLocalGridsRequest.SerializeToString,
            bosdyn_dot_api_dot_local__grid__pb2.GetLocalGridsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)