abstract class
MinknowApi::V2::Protocol::ProtocolsService::Service
- MinknowApi::V2::Protocol::ProtocolsService::Service
- GRPC::Service
- Reference
- Object
Overview
Service is the generated abstract base class for server implementations. Subclass it and implement each RPC method, then register with GRPC::Server#handle.
Defined in:
generated/minknow_api/v2/protocols.grpc.crInstance Method Summary
- #begin_protocols(request : BeginProtocolsRequest, ctx : GRPC::ServerContext) : BeginProtocolsResponse
- #clear_protocols_history_data(request : MinknowApi::Protocol::ClearProtocolHistoryDataRequest, ctx : GRPC::ServerContext) : MinknowApi::Protocol::ClearProtocolHistoryDataResponse
-
#dispatch(method : String, body : Bytes, ctx : GRPC::ServerContext) : Tuple(Bytes, GRPC::Status)
dispatch routes an incoming unary RPC call to the correct method implementation.
-
#dispatch_server_stream(method : String, body : Bytes, ctx : GRPC::ServerContext, writer : GRPC::RawResponseStream) : GRPC::Status
dispatch_server_stream dispatches a server-streaming RPC.
- #generate_run_report(request : MinknowApi::Protocol::GenerateRunReportRequest, writer : GRPC::ResponseStream(MinknowApi::Protocol::GenerateRunReportResponse), ctx : GRPC::ServerContext) : GRPC::Status
- #get_acquisition_info(request : MinknowApi::Acquisition::GetAcquisitionRunInfoRequest, ctx : GRPC::ServerContext) : MinknowApi::Acquisition::AcquisitionRunInfo
- #get_run_info(request : MinknowApi::Protocol::GetRunInfoRequest, ctx : GRPC::ServerContext) : MinknowApi::Protocol::ProtocolRunInfo
- #list_protocol_group_ids(request : ListGroupIdsRequest, ctx : GRPC::ServerContext) : MinknowApi::Protocol::ListProtocolGroupIdsResponse
- #list_protocol_runs(request : MinknowApi::Protocol::ListProtocolRunsRequest, ctx : GRPC::ServerContext) : MinknowApi::Protocol::ListProtocolRunsResponse
-
#server_streaming?(method : String) : Bool
server_streaming? returns true if method is a server-streaming RPC.
-
#service_full_name : String
service_full_name returns the full gRPC service name (e.g.
- #start_protocols(request : StartProtocolsRequest, ctx : GRPC::ServerContext) : StartProtocolsResponse
- #stop_protocols(request : StopProtocolsRequest, ctx : GRPC::ServerContext) : StopProtocolsResponse
Instance Method Detail
dispatch routes an incoming unary RPC call to the correct method implementation. Returns {response_body : Bytes, status : Status}.
dispatch_server_stream dispatches a server-streaming RPC. The transport passes a RawResponseStream; generated subclasses wrap it in a typed ResponseStream(T) before handing off to the user implementation.
server_streaming? returns true if method is a server-streaming RPC. Generated service base classes override this; the default is false (unary).
service_full_name returns the full gRPC service name (e.g. "helloworld.Greeter").