Skip to content

Agentuniverse service pb2 grpc

Client and server classes corresponding to protobuf-defined services.

AgentUniverseService

Bases: object

RPC 服务定义

Source code in agentuniverse/agent_serve/web/rpc/grpc/agentuniverse_service_pb2_grpc.py
Python
class AgentUniverseService(object):
    """RPC 服务定义
    """

    @staticmethod
    def service_run(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, '/agentuniverse.AgentUniverseService/service_run',
            agentuniverse__service__pb2.AgentServiceRequest.SerializeToString,
            agentuniverse__service__pb2.AgentServiceResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def service_run_async(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, '/agentuniverse.AgentUniverseService/service_run_async',
            agentuniverse__service__pb2.AgentServiceRequest.SerializeToString,
            agentuniverse__service__pb2.AgentServiceResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def service_run_result(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, '/agentuniverse.AgentUniverseService/service_run_result',
            agentuniverse__service__pb2.AgentResultRequest.SerializeToString,
            agentuniverse__service__pb2.AgentServiceResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

AgentUniverseServiceServicer

Bases: object

RPC 服务定义

Source code in agentuniverse/agent_serve/web/rpc/grpc/agentuniverse_service_pb2_grpc.py
Python
class AgentUniverseServiceServicer(object):
    """RPC 服务定义
    """

    def service_run(self, request, context):
        """方法定义
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def service_run_async(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 service_run_result(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!')

service_run(request, context)

方法定义

Source code in agentuniverse/agent_serve/web/rpc/grpc/agentuniverse_service_pb2_grpc.py
Python
def service_run(self, request, context):
    """方法定义
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

service_run_async(request, context)

Missing associated documentation comment in .proto file.

Source code in agentuniverse/agent_serve/web/rpc/grpc/agentuniverse_service_pb2_grpc.py
Python
def service_run_async(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!')

service_run_result(request, context)

Missing associated documentation comment in .proto file.

Source code in agentuniverse/agent_serve/web/rpc/grpc/agentuniverse_service_pb2_grpc.py
Python
def service_run_result(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!')

AgentUniverseServiceStub

Bases: object

RPC 服务定义

Source code in agentuniverse/agent_serve/web/rpc/grpc/agentuniverse_service_pb2_grpc.py
Python
class AgentUniverseServiceStub(object):
    """RPC 服务定义
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.service_run = channel.unary_unary(
                '/agentuniverse.AgentUniverseService/service_run',
                request_serializer=agentuniverse__service__pb2.AgentServiceRequest.SerializeToString,
                response_deserializer=agentuniverse__service__pb2.AgentServiceResponse.FromString,
                )
        self.service_run_async = channel.unary_unary(
                '/agentuniverse.AgentUniverseService/service_run_async',
                request_serializer=agentuniverse__service__pb2.AgentServiceRequest.SerializeToString,
                response_deserializer=agentuniverse__service__pb2.AgentServiceResponse.FromString,
                )
        self.service_run_result = channel.unary_unary(
                '/agentuniverse.AgentUniverseService/service_run_result',
                request_serializer=agentuniverse__service__pb2.AgentResultRequest.SerializeToString,
                response_deserializer=agentuniverse__service__pb2.AgentServiceResponse.FromString,
                )

__init__(channel)

Constructor.

Parameters:

Name Type Description Default
channel

A grpc.Channel.

required
Source code in agentuniverse/agent_serve/web/rpc/grpc/agentuniverse_service_pb2_grpc.py
Python
def __init__(self, channel):
    """Constructor.

    Args:
        channel: A grpc.Channel.
    """
    self.service_run = channel.unary_unary(
            '/agentuniverse.AgentUniverseService/service_run',
            request_serializer=agentuniverse__service__pb2.AgentServiceRequest.SerializeToString,
            response_deserializer=agentuniverse__service__pb2.AgentServiceResponse.FromString,
            )
    self.service_run_async = channel.unary_unary(
            '/agentuniverse.AgentUniverseService/service_run_async',
            request_serializer=agentuniverse__service__pb2.AgentServiceRequest.SerializeToString,
            response_deserializer=agentuniverse__service__pb2.AgentServiceResponse.FromString,
            )
    self.service_run_result = channel.unary_unary(
            '/agentuniverse.AgentUniverseService/service_run_result',
            request_serializer=agentuniverse__service__pb2.AgentResultRequest.SerializeToString,
            response_deserializer=agentuniverse__service__pb2.AgentServiceResponse.FromString,
            )