# 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 . import sys_mon_agent_api_pb2 as sys__mon__agent__api__pb2 class AgentStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.Configure = channel.unary_unary( '/sys_mon_agent_api.Agent/Configure', request_serializer=sys__mon__agent__api__pb2.AgentConfiguration.SerializeToString, response_deserializer=sys__mon__agent__api__pb2.AgentConfigurationResponse.FromString, ) self.Poll = channel.unary_unary( '/sys_mon_agent_api.Agent/Poll', request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, response_deserializer=sys__mon__agent__api__pb2.MonitoringStats.FromString, ) class AgentServicer(object): """Missing associated documentation comment in .proto file.""" def Configure(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 Poll(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_AgentServicer_to_server(servicer, server): rpc_method_handlers = { 'Configure': grpc.unary_unary_rpc_method_handler( servicer.Configure, request_deserializer=sys__mon__agent__api__pb2.AgentConfiguration.FromString, response_serializer=sys__mon__agent__api__pb2.AgentConfigurationResponse.SerializeToString, ), 'Poll': grpc.unary_unary_rpc_method_handler( servicer.Poll, request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, response_serializer=sys__mon__agent__api__pb2.MonitoringStats.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( 'sys_mon_agent_api.Agent', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) # This class is part of an EXPERIMENTAL API. class Agent(object): """Missing associated documentation comment in .proto file.""" @staticmethod def Configure(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, '/sys_mon_agent_api.Agent/Configure', sys__mon__agent__api__pb2.AgentConfiguration.SerializeToString, sys__mon__agent__api__pb2.AgentConfigurationResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def Poll(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, '/sys_mon_agent_api.Agent/Poll', google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, sys__mon__agent__api__pb2.MonitoringStats.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata)