Class Board.SetPowerModeRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Board.SetPowerModeRequest,Board.SetPowerModeRequest.Builder>
com.viam.component.board.v1.Board.SetPowerModeRequest.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Board.SetPowerModeRequestOrBuilder, Cloneable
Enclosing class:
Board.SetPowerModeRequest

public static final class Board.SetPowerModeRequest.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Board.SetPowerModeRequest,Board.SetPowerModeRequest.Builder> implements Board.SetPowerModeRequestOrBuilder
Protobuf type viam.component.board.v1.SetPowerModeRequest
  • Method Details

    • getName

      public String getName()
       name of board
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Board.SetPowerModeRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       name of board
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface Board.SetPowerModeRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Board.SetPowerModeRequest.Builder setName(String value)
       name of board
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       name of board
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Board.SetPowerModeRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       name of board
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getPowerModeValue

      public int getPowerModeValue()
       Requested power mode
       
      .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"];
      Specified by:
      getPowerModeValue in interface Board.SetPowerModeRequestOrBuilder
      Returns:
      The enum numeric value on the wire for powerMode.
    • setPowerModeValue

      public Board.SetPowerModeRequest.Builder setPowerModeValue(int value)
       Requested power mode
       
      .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"];
      Parameters:
      value - The powerMode to set.
      Returns:
      This builder for chaining.
    • getPowerMode

      public Board.PowerMode getPowerMode()
       Requested power mode
       
      .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"];
      Specified by:
      getPowerMode in interface Board.SetPowerModeRequestOrBuilder
      Returns:
      The powerMode.
    • setPowerMode

       Requested power mode
       
      .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"];
      Parameters:
      value - The enum numeric value on the wire for powerMode to set.
      Returns:
      This builder for chaining.
    • clearPowerMode

      public Board.SetPowerModeRequest.Builder clearPowerMode()
       Requested power mode
       
      .viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"];
      Returns:
      This builder for chaining.
    • hasDuration

      public boolean hasDuration()
       Requested duration to stay in `power_mode`
       
      optional .google.protobuf.Duration duration = 3 [json_name = "duration"];
      Specified by:
      hasDuration in interface Board.SetPowerModeRequestOrBuilder
      Returns:
      Whether the duration field is set.
    • getDuration

      public com.google.protobuf.Duration getDuration()
       Requested duration to stay in `power_mode`
       
      optional .google.protobuf.Duration duration = 3 [json_name = "duration"];
      Specified by:
      getDuration in interface Board.SetPowerModeRequestOrBuilder
      Returns:
      The duration.
    • setDuration

      public Board.SetPowerModeRequest.Builder setDuration(com.google.protobuf.Duration value)
       Requested duration to stay in `power_mode`
       
      optional .google.protobuf.Duration duration = 3 [json_name = "duration"];
    • setDuration

      public Board.SetPowerModeRequest.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
       Requested duration to stay in `power_mode`
       
      optional .google.protobuf.Duration duration = 3 [json_name = "duration"];
    • mergeDuration

      public Board.SetPowerModeRequest.Builder mergeDuration(com.google.protobuf.Duration value)
       Requested duration to stay in `power_mode`
       
      optional .google.protobuf.Duration duration = 3 [json_name = "duration"];
    • clearDuration

      public Board.SetPowerModeRequest.Builder clearDuration()
       Requested duration to stay in `power_mode`
       
      optional .google.protobuf.Duration duration = 3 [json_name = "duration"];
    • hasExtra

      public boolean hasExtra()
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
      Specified by:
      hasExtra in interface Board.SetPowerModeRequestOrBuilder
      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 Board.SetPowerModeRequestOrBuilder
      Returns:
      The extra.
    • setExtra

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

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

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

      public Board.SetPowerModeRequest.Builder clearExtra()
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];