Class PowerSensorServiceGrpc.PowerSensorServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<PowerSensorServiceGrpc.PowerSensorServiceStub>
com.viam.component.powersensor.v1.PowerSensorServiceGrpc.PowerSensorServiceStub
- Enclosing class:
- PowerSensorServiceGrpc
public static final class PowerSensorServiceGrpc.PowerSensorServiceStub
extends io.grpc.stub.AbstractAsyncStub<PowerSensorServiceGrpc.PowerSensorServiceStub>
A stub to allow clients to do asynchronous rpc calls to service PowerSensorService.
PowerSensorService services all power sensors associated with a robot
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) void
doCommand
(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsvoid
getCurrent
(Powersensor.GetCurrentRequest request, io.grpc.stub.StreamObserver<Powersensor.GetCurrentResponse> responseObserver) GetCurrent returns the current reading of a power sensor in amperesvoid
getPower
(Powersensor.GetPowerRequest request, io.grpc.stub.StreamObserver<Powersensor.GetPowerResponse> responseObserver) GetPower returns the power reading of a power sensor in wattsvoid
getReadings
(Common.GetReadingsRequest request, io.grpc.stub.StreamObserver<Common.GetReadingsResponse> responseObserver) GetReadings returns the readings of a sensor of the underlying robot.void
getVoltage
(Powersensor.GetVoltageRequest request, io.grpc.stub.StreamObserver<Powersensor.GetVoltageResponse> responseObserver) GetVoltage returns the voltage reading of a power sensor in voltsMethods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected PowerSensorServiceGrpc.PowerSensorServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<PowerSensorServiceGrpc.PowerSensorServiceStub>
-
getVoltage
public void getVoltage(Powersensor.GetVoltageRequest request, io.grpc.stub.StreamObserver<Powersensor.GetVoltageResponse> responseObserver) GetVoltage returns the voltage reading of a power sensor in volts
-
getCurrent
public void getCurrent(Powersensor.GetCurrentRequest request, io.grpc.stub.StreamObserver<Powersensor.GetCurrentResponse> responseObserver) GetCurrent returns the current reading of a power sensor in amperes
-
getPower
public void getPower(Powersensor.GetPowerRequest request, io.grpc.stub.StreamObserver<Powersensor.GetPowerResponse> responseObserver) GetPower returns the power reading of a power sensor in watts
-
getReadings
public void getReadings(Common.GetReadingsRequest request, io.grpc.stub.StreamObserver<Common.GetReadingsResponse> responseObserver) GetReadings returns the readings of a sensor of the underlying robot.
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commands
-