Package com.viam.robot.v1
Class Robot.ModuleStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Robot.ModuleStatus,Robot.ModuleStatus.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Robot.ModuleStatus,Robot.ModuleStatus.Builder>
com.viam.robot.v1.Robot.ModuleStatus.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Robot.ModuleStatusOrBuilder,Cloneable
- Enclosing class:
Robot.ModuleStatus
public static final class Robot.ModuleStatus.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.ModuleStatus,Robot.ModuleStatus.Builder>
implements Robot.ModuleStatusOrBuilder
Protobuf type
viam.robot.v1.ModuleStatus-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionnumber of times this module has entered the unhealthy state since the last time this module was in the ready state this will increment if the module is in a restart loop (state transitioning between pending and starting repeatedly) Resets to zero when the module enters the ready state or is reconfigured.when a module transitions to unhealthy, this field is populated with the error that caused the transition.updated on every state transitionstring module_name = 1 [json_name = "moduleName"];.viam.robot.v1.ModuleStatus.State state = 2 [json_name = "state"];intnumber of times this module has entered the unhealthy state since the last time this module was in the ready state this will increment if the module is in a restart loop (state transitioning between pending and starting repeatedly) Resets to zero when the module enters the ready state or is reconfigured.getError()when a module transitions to unhealthy, this field is populated with the error that caused the transition.com.google.protobuf.ByteStringwhen a module transitions to unhealthy, this field is populated with the error that caused the transition.com.google.protobuf.Timestampupdated on every state transitionstring module_name = 1 [json_name = "moduleName"];com.google.protobuf.ByteStringstring module_name = 1 [json_name = "moduleName"];getState().viam.robot.v1.ModuleStatus.State state = 2 [json_name = "state"];int.viam.robot.v1.ModuleStatus.State state = 2 [json_name = "state"];booleanupdated on every state transitionmergeLastUpdated(com.google.protobuf.Timestamp value) updated on every state transitionsetConsecutiveFailures(int value) number of times this module has entered the unhealthy state since the last time this module was in the ready state this will increment if the module is in a restart loop (state transitioning between pending and starting repeatedly) Resets to zero when the module enters the ready state or is reconfigured.when a module transitions to unhealthy, this field is populated with the error that caused the transition.setErrorBytes(com.google.protobuf.ByteString value) when a module transitions to unhealthy, this field is populated with the error that caused the transition.setLastUpdated(com.google.protobuf.Timestamp value) updated on every state transitionsetLastUpdated(com.google.protobuf.Timestamp.Builder builderForValue) updated on every state transitionsetModuleName(String value) string module_name = 1 [json_name = "moduleName"];setModuleNameBytes(com.google.protobuf.ByteString value) string module_name = 1 [json_name = "moduleName"];setState(Robot.ModuleStatus.State value) .viam.robot.v1.ModuleStatus.State state = 2 [json_name = "state"];setStateValue(int value) .viam.robot.v1.ModuleStatus.State state = 2 [json_name = "state"];Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getModuleName
string module_name = 1 [json_name = "moduleName"];- Specified by:
getModuleNamein interfaceRobot.ModuleStatusOrBuilder- Returns:
- The moduleName.
-
getModuleNameBytes
public com.google.protobuf.ByteString getModuleNameBytes()string module_name = 1 [json_name = "moduleName"];- Specified by:
getModuleNameBytesin interfaceRobot.ModuleStatusOrBuilder- Returns:
- The bytes for moduleName.
-
setModuleName
string module_name = 1 [json_name = "moduleName"];- Parameters:
value- The moduleName to set.- Returns:
- This builder for chaining.
-
clearModuleName
string module_name = 1 [json_name = "moduleName"];- Returns:
- This builder for chaining.
-
setModuleNameBytes
string module_name = 1 [json_name = "moduleName"];- Parameters:
value- The bytes for moduleName to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue().viam.robot.v1.ModuleStatus.State state = 2 [json_name = "state"];- Specified by:
getStateValuein interfaceRobot.ModuleStatusOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
.viam.robot.v1.ModuleStatus.State state = 2 [json_name = "state"];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
getState
.viam.robot.v1.ModuleStatus.State state = 2 [json_name = "state"];- Specified by:
getStatein interfaceRobot.ModuleStatusOrBuilder- Returns:
- The state.
-
setState
.viam.robot.v1.ModuleStatus.State state = 2 [json_name = "state"];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
clearState
.viam.robot.v1.ModuleStatus.State state = 2 [json_name = "state"];- Returns:
- This builder for chaining.
-
hasLastUpdated
public boolean hasLastUpdated()updated on every state transition
.google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"];- Specified by:
hasLastUpdatedin interfaceRobot.ModuleStatusOrBuilder- Returns:
- Whether the lastUpdated field is set.
-
getLastUpdated
public com.google.protobuf.Timestamp getLastUpdated()updated on every state transition
.google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"];- Specified by:
getLastUpdatedin interfaceRobot.ModuleStatusOrBuilder- Returns:
- The lastUpdated.
-
setLastUpdated
updated on every state transition
.google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; -
setLastUpdated
public Robot.ModuleStatus.Builder setLastUpdated(com.google.protobuf.Timestamp.Builder builderForValue) updated on every state transition
.google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; -
mergeLastUpdated
updated on every state transition
.google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; -
clearLastUpdated
updated on every state transition
.google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; -
getError
when a module transitions to unhealthy, this field is populated with the error that caused the transition. the error persists until the module reenters the Ready state, guaranteed to be nil in the Ready state
string error = 4 [json_name = "error"];- Specified by:
getErrorin interfaceRobot.ModuleStatusOrBuilder- Returns:
- The error.
-
getErrorBytes
public com.google.protobuf.ByteString getErrorBytes()when a module transitions to unhealthy, this field is populated with the error that caused the transition. the error persists until the module reenters the Ready state, guaranteed to be nil in the Ready state
string error = 4 [json_name = "error"];- Specified by:
getErrorBytesin interfaceRobot.ModuleStatusOrBuilder- Returns:
- The bytes for error.
-
setError
when a module transitions to unhealthy, this field is populated with the error that caused the transition. the error persists until the module reenters the Ready state, guaranteed to be nil in the Ready state
string error = 4 [json_name = "error"];- Parameters:
value- The error to set.- Returns:
- This builder for chaining.
-
clearError
when a module transitions to unhealthy, this field is populated with the error that caused the transition. the error persists until the module reenters the Ready state, guaranteed to be nil in the Ready state
string error = 4 [json_name = "error"];- Returns:
- This builder for chaining.
-
setErrorBytes
when a module transitions to unhealthy, this field is populated with the error that caused the transition. the error persists until the module reenters the Ready state, guaranteed to be nil in the Ready state
string error = 4 [json_name = "error"];- Parameters:
value- The bytes for error to set.- Returns:
- This builder for chaining.
-
getConsecutiveFailures
public int getConsecutiveFailures()number of times this module has entered the unhealthy state since the last time this module was in the ready state this will increment if the module is in a restart loop (state transitioning between pending and starting repeatedly) Resets to zero when the module enters the ready state or is reconfigured. Useful for detecting modules stuck in a restart loop (like a python module with a syntax error)
uint32 consecutive_failures = 5 [json_name = "consecutiveFailures"];- Specified by:
getConsecutiveFailuresin interfaceRobot.ModuleStatusOrBuilder- Returns:
- The consecutiveFailures.
-
setConsecutiveFailures
number of times this module has entered the unhealthy state since the last time this module was in the ready state this will increment if the module is in a restart loop (state transitioning between pending and starting repeatedly) Resets to zero when the module enters the ready state or is reconfigured. Useful for detecting modules stuck in a restart loop (like a python module with a syntax error)
uint32 consecutive_failures = 5 [json_name = "consecutiveFailures"];- Parameters:
value- The consecutiveFailures to set.- Returns:
- This builder for chaining.
-
clearConsecutiveFailures
number of times this module has entered the unhealthy state since the last time this module was in the ready state this will increment if the module is in a restart loop (state transitioning between pending and starting repeatedly) Resets to zero when the module enters the ready state or is reconfigured. Useful for detecting modules stuck in a restart loop (like a python module with a syntax error)
uint32 consecutive_failures = 5 [json_name = "consecutiveFailures"];- Returns:
- This builder for chaining.
-