Package com.viam.robot.v1
Class Robot.GetMachineStatusResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Robot.GetMachineStatusResponse,Robot.GetMachineStatusResponse.Builder>
com.viam.robot.v1.Robot.GetMachineStatusResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Robot.GetMachineStatusResponseOrBuilder
,Cloneable
- Enclosing class:
- Robot.GetMachineStatusResponse
public static final class Robot.GetMachineStatusResponse.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.GetMachineStatusResponse,Robot.GetMachineStatusResponse.Builder>
implements Robot.GetMachineStatusResponseOrBuilder
Protobuf type
viam.robot.v1.GetMachineStatusResponse
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllResources
(Iterable<? extends Robot.ResourceStatus> values) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
addResources
(int index, Robot.ResourceStatus value) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
addResources
(int index, Robot.ResourceStatus.Builder builderForValue) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
addResources
(Robot.ResourceStatus value) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
addResources
(Robot.ResourceStatus.Builder builderForValue) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
.viam.robot.v1.ConfigStatus config = 2 [json_name = "config"];
repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
.viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"];
.viam.robot.v1.ConfigStatus config = 2 [json_name = "config"];
getResources
(int index) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
int
repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
getState()
.viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"];
int
.viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"];
boolean
.viam.robot.v1.ConfigStatus config = 2 [json_name = "config"];
mergeConfig
(Robot.ConfigStatus value) .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"];
removeResources
(int index) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
setConfig
(Robot.ConfigStatus value) .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"];
setConfig
(Robot.ConfigStatus.Builder builderForValue) .viam.robot.v1.ConfigStatus config = 2 [json_name = "config"];
setResources
(int index, Robot.ResourceStatus value) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
setResources
(int index, Robot.ResourceStatus.Builder builderForValue) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
.viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"];
setStateValue
(int value) .viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"];
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
-
getResourcesList
repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
- Specified by:
getResourcesList
in interfaceRobot.GetMachineStatusResponseOrBuilder
-
getResourcesCount
public int getResourcesCount()repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
- Specified by:
getResourcesCount
in interfaceRobot.GetMachineStatusResponseOrBuilder
-
getResources
repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
- Specified by:
getResources
in interfaceRobot.GetMachineStatusResponseOrBuilder
-
setResources
repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
-
setResources
public Robot.GetMachineStatusResponse.Builder setResources(int index, Robot.ResourceStatus.Builder builderForValue) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
-
addResources
repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
-
addResources
repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
-
addResources
public Robot.GetMachineStatusResponse.Builder addResources(Robot.ResourceStatus.Builder builderForValue) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
-
addResources
public Robot.GetMachineStatusResponse.Builder addResources(int index, Robot.ResourceStatus.Builder builderForValue) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
-
addAllResources
public Robot.GetMachineStatusResponse.Builder addAllResources(Iterable<? extends Robot.ResourceStatus> values) repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
-
clearResources
repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
-
removeResources
repeated .viam.robot.v1.ResourceStatus resources = 1 [json_name = "resources"];
-
hasConfig
public boolean hasConfig().viam.robot.v1.ConfigStatus config = 2 [json_name = "config"];
- Specified by:
hasConfig
in interfaceRobot.GetMachineStatusResponseOrBuilder
- Returns:
- Whether the config field is set.
-
getConfig
.viam.robot.v1.ConfigStatus config = 2 [json_name = "config"];
- Specified by:
getConfig
in interfaceRobot.GetMachineStatusResponseOrBuilder
- Returns:
- The config.
-
setConfig
.viam.robot.v1.ConfigStatus config = 2 [json_name = "config"];
-
setConfig
.viam.robot.v1.ConfigStatus config = 2 [json_name = "config"];
-
mergeConfig
.viam.robot.v1.ConfigStatus config = 2 [json_name = "config"];
-
clearConfig
.viam.robot.v1.ConfigStatus config = 2 [json_name = "config"];
-
getStateValue
public int getStateValue().viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"];
- Specified by:
getStateValue
in interfaceRobot.GetMachineStatusResponseOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
.viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"];
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
getState
.viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"];
- Specified by:
getState
in interfaceRobot.GetMachineStatusResponseOrBuilder
- Returns:
- The state.
-
setState
.viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"];
- Parameters:
value
- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
clearState
.viam.robot.v1.GetMachineStatusResponse.State state = 3 [json_name = "state"];
- Returns:
- This builder for chaining.
-