Class PowerSensorServiceGrpc.PowerSensorServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<PowerSensorServiceGrpc.PowerSensorServiceFutureStub>
com.viam.component.powersensor.v1.PowerSensorServiceGrpc.PowerSensorServiceFutureStub
- Enclosing class:
- PowerSensorServiceGrpc
public static final class PowerSensorServiceGrpc.PowerSensorServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<PowerSensorServiceGrpc.PowerSensorServiceFutureStub>
A stub to allow clients to do ListenableFuture-style 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) com.google.common.util.concurrent.ListenableFuture<Common.DoCommandResponse>
doCommand
(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commandscom.google.common.util.concurrent.ListenableFuture<Powersensor.GetCurrentResponse>
getCurrent
(Powersensor.GetCurrentRequest request) GetCurrent returns the current reading of a power sensor in amperescom.google.common.util.concurrent.ListenableFuture<Powersensor.GetPowerResponse>
getPower
(Powersensor.GetPowerRequest request) GetPower returns the power reading of a power sensor in wattscom.google.common.util.concurrent.ListenableFuture<Common.GetReadingsResponse>
getReadings
(Common.GetReadingsRequest request) GetReadings returns the readings of a sensor of the underlying robot.com.google.common.util.concurrent.ListenableFuture<Powersensor.GetVoltageResponse>
getVoltage
(Powersensor.GetVoltageRequest request) GetVoltage returns the voltage reading of a power sensor in voltsMethods inherited from class io.grpc.stub.AbstractFutureStub
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.PowerSensorServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<PowerSensorServiceGrpc.PowerSensorServiceFutureStub>
-
getVoltage
public com.google.common.util.concurrent.ListenableFuture<Powersensor.GetVoltageResponse> getVoltage(Powersensor.GetVoltageRequest request) GetVoltage returns the voltage reading of a power sensor in volts
-
getCurrent
public com.google.common.util.concurrent.ListenableFuture<Powersensor.GetCurrentResponse> getCurrent(Powersensor.GetCurrentRequest request) GetCurrent returns the current reading of a power sensor in amperes
-
getPower
public com.google.common.util.concurrent.ListenableFuture<Powersensor.GetPowerResponse> getPower(Powersensor.GetPowerRequest request) GetPower returns the power reading of a power sensor in watts
-
getReadings
public com.google.common.util.concurrent.ListenableFuture<Common.GetReadingsResponse> getReadings(Common.GetReadingsRequest request) GetReadings returns the readings of a sensor of the underlying robot.
-
doCommand
public com.google.common.util.concurrent.ListenableFuture<Common.DoCommandResponse> doCommand(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commands
-