Class Powersensor.GetCurrentRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Powersensor.GetCurrentRequest,Powersensor.GetCurrentRequest.Builder>
com.viam.component.powersensor.v1.Powersensor.GetCurrentRequest.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Powersensor.GetCurrentRequestOrBuilder, Cloneable
Enclosing class:
Powersensor.GetCurrentRequest

public static final class Powersensor.GetCurrentRequest.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Powersensor.GetCurrentRequest,Powersensor.GetCurrentRequest.Builder> implements Powersensor.GetCurrentRequestOrBuilder
Protobuf type viam.component.powersensor.v1.GetCurrentRequest
  • Method Details

    • getName

      public String getName()
       Name of a power sensor
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Powersensor.GetCurrentRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of a power sensor
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface Powersensor.GetCurrentRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

       Name of a power sensor
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Name of a power sensor
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Powersensor.GetCurrentRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of a power sensor
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasExtra

      public boolean hasExtra()
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
      Specified by:
      hasExtra in interface Powersensor.GetCurrentRequestOrBuilder
      Returns:
      Whether the extra field is set.
    • getExtra

      public com.google.protobuf.Struct getExtra()
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
      Specified by:
      getExtra in interface Powersensor.GetCurrentRequestOrBuilder
      Returns:
      The extra.
    • setExtra

      public Powersensor.GetCurrentRequest.Builder setExtra(com.google.protobuf.Struct value)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • setExtra

      public Powersensor.GetCurrentRequest.Builder setExtra(com.google.protobuf.Struct.Builder builderForValue)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • mergeExtra

      public Powersensor.GetCurrentRequest.Builder mergeExtra(com.google.protobuf.Struct value)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • clearExtra

       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];