Class Powersensor.GetVoltageResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Powersensor.GetVoltageResponse,Powersensor.GetVoltageResponse.Builder>
com.viam.component.powersensor.v1.Powersensor.GetVoltageResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Powersensor.GetVoltageResponseOrBuilder
,Cloneable
- Enclosing class:
- Powersensor.GetVoltageResponse
public static final class Powersensor.GetVoltageResponse.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Powersensor.GetVoltageResponse,Powersensor.GetVoltageResponse.Builder>
implements Powersensor.GetVoltageResponseOrBuilder
Protobuf type
viam.component.powersensor.v1.GetVoltageResponse
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionBool describing whether the voltage is DC or ACVoltage in voltsboolean
getIsAc()
Bool describing whether the voltage is DC or ACdouble
getVolts()
Voltage in voltssetIsAc
(boolean value) Bool describing whether the voltage is DC or ACsetVolts
(double value) Voltage in voltsMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getVolts
public double getVolts()Voltage in volts
double volts = 1 [json_name = "volts"];
- Specified by:
getVolts
in interfacePowersensor.GetVoltageResponseOrBuilder
- Returns:
- The volts.
-
setVolts
Voltage in volts
double volts = 1 [json_name = "volts"];
- Parameters:
value
- The volts to set.- Returns:
- This builder for chaining.
-
clearVolts
Voltage in volts
double volts = 1 [json_name = "volts"];
- Returns:
- This builder for chaining.
-
getIsAc
public boolean getIsAc()Bool describing whether the voltage is DC or AC
bool is_ac = 2 [json_name = "isAc"];
- Specified by:
getIsAc
in interfacePowersensor.GetVoltageResponseOrBuilder
- Returns:
- The isAc.
-
setIsAc
Bool describing whether the voltage is DC or AC
bool is_ac = 2 [json_name = "isAc"];
- Parameters:
value
- The isAc to set.- Returns:
- This builder for chaining.
-
clearIsAc
Bool describing whether the voltage is DC or AC
bool is_ac = 2 [json_name = "isAc"];
- Returns:
- This builder for chaining.
-