Class Powersensor.GetCurrentResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Powersensor.GetCurrentResponse,Powersensor.GetCurrentResponse.Builder>
com.viam.component.powersensor.v1.Powersensor.GetCurrentResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Powersensor.GetCurrentResponseOrBuilder
,Cloneable
- Enclosing class:
- Powersensor.GetCurrentResponse
public static final class Powersensor.GetCurrentResponse.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Powersensor.GetCurrentResponse,Powersensor.GetCurrentResponse.Builder>
implements Powersensor.GetCurrentResponseOrBuilder
Protobuf type
viam.component.powersensor.v1.GetCurrentResponse
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionCurrent in amperesBool descibing whether the current is DC or ACdouble
Current in amperesboolean
getIsAc()
Bool descibing whether the current is DC or ACsetAmperes
(double value) Current in amperessetIsAc
(boolean value) Bool descibing whether the current is DC or ACMethods 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
-
getAmperes
public double getAmperes()Current in amperes
double amperes = 1 [json_name = "amperes"];
- Specified by:
getAmperes
in interfacePowersensor.GetCurrentResponseOrBuilder
- Returns:
- The amperes.
-
setAmperes
Current in amperes
double amperes = 1 [json_name = "amperes"];
- Parameters:
value
- The amperes to set.- Returns:
- This builder for chaining.
-
clearAmperes
Current in amperes
double amperes = 1 [json_name = "amperes"];
- Returns:
- This builder for chaining.
-
getIsAc
public boolean getIsAc()Bool descibing whether the current is DC or AC
bool is_ac = 2 [json_name = "isAc"];
- Specified by:
getIsAc
in interfacePowersensor.GetCurrentResponseOrBuilder
- Returns:
- The isAc.
-
setIsAc
Bool descibing whether the current is DC or AC
bool is_ac = 2 [json_name = "isAc"];
- Parameters:
value
- The isAc to set.- Returns:
- This builder for chaining.
-
clearIsAc
Bool descibing whether the current is DC or AC
bool is_ac = 2 [json_name = "isAc"];
- Returns:
- This builder for chaining.
-