Package com.viam.component.board.v1
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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionRequested duration to stay in `power_mode`Additional arguments to the methodname of boardRequested power modecom.google.protobuf.Duration
Requested duration to stay in `power_mode`com.google.protobuf.Struct
getExtra()
Additional arguments to the methodgetName()
name of boardcom.google.protobuf.ByteString
name of boardRequested power modeint
Requested power modeboolean
Requested duration to stay in `power_mode`boolean
hasExtra()
Additional arguments to the methodmergeDuration
(com.google.protobuf.Duration value) Requested duration to stay in `power_mode`mergeExtra
(com.google.protobuf.Struct value) Additional arguments to the methodsetDuration
(com.google.protobuf.Duration value) Requested duration to stay in `power_mode`setDuration
(com.google.protobuf.Duration.Builder builderForValue) Requested duration to stay in `power_mode`setExtra
(com.google.protobuf.Struct value) Additional arguments to the methodsetExtra
(com.google.protobuf.Struct.Builder builderForValue) Additional arguments to the methodname of boardsetNameBytes
(com.google.protobuf.ByteString value) name of boardsetPowerMode
(Board.PowerMode value) Requested power modesetPowerModeValue
(int value) Requested power modeMethods 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
-
getName
name of board
string name = 1 [json_name = "name"];
- Specified by:
getName
in interfaceBoard.SetPowerModeRequestOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()name of board
string name = 1 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceBoard.SetPowerModeRequestOrBuilder
- Returns:
- The bytes for name.
-
setName
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
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 interfaceBoard.SetPowerModeRequestOrBuilder
- Returns:
- The enum numeric value on the wire for powerMode.
-
setPowerModeValue
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
Requested power mode
.viam.component.board.v1.PowerMode power_mode = 2 [json_name = "powerMode"];
- Specified by:
getPowerMode
in interfaceBoard.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
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 interfaceBoard.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 interfaceBoard.SetPowerModeRequestOrBuilder
- Returns:
- The duration.
-
setDuration
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
Requested duration to stay in `power_mode`
optional .google.protobuf.Duration duration = 3 [json_name = "duration"];
-
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 interfaceBoard.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 interfaceBoard.SetPowerModeRequestOrBuilder
- Returns:
- The extra.
-
setExtra
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
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"];
-