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 Type
    Method
    Description
    Current in amperes
    Bool descibing whether the current is DC or AC
    double
    Current in amperes
    boolean
    Bool descibing whether the current is DC or AC
    setAmperes(double value)
    Current in amperes
    setIsAc(boolean value)
    Bool descibing whether the current is DC or AC

    Methods 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 interface Powersensor.GetCurrentResponseOrBuilder
      Returns:
      The amperes.
    • setAmperes

      public Powersensor.GetCurrentResponse.Builder setAmperes(double value)
       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 interface Powersensor.GetCurrentResponseOrBuilder
      Returns:
      The isAc.
    • setIsAc

      public Powersensor.GetCurrentResponse.Builder setIsAc(boolean value)
       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.