Package com.viam.robot.v1
Class Robot.ResourceStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Robot.ResourceStatus,Robot.ResourceStatus.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Robot.ResourceStatus,Robot.ResourceStatus.Builder>
com.viam.robot.v1.Robot.ResourceStatus.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Robot.ResourceStatusOrBuilder,Cloneable
- Enclosing class:
Robot.ResourceStatus
public static final class Robot.ResourceStatus.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.ResourceStatus,Robot.ResourceStatus.Builder>
implements Robot.ResourceStatusOrBuilder
Protobuf type
viam.robot.v1.ResourceStatus-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptioninfomation about resource orgID, locationID and partIDerror details for a resource.state transition timestamp.resource name.whether calls to this resource by name can be routed through this machine.name of the remote, as configured on this machine, that this resource is reached through; for a resource on a remote's remote, this is the first hop.revision of the last config that successfully updated this resource.current state.infomation about resource orgID, locationID and partIDgetError()error details for a resource.com.google.protobuf.ByteStringerror details for a resource.com.google.protobuf.Timestampstate transition timestamp.getName()resource name.whether calls to this resource by name can be routed through this machine.intwhether calls to this resource by name can be routed through this machine.name of the remote, as configured on this machine, that this resource is reached through; for a resource on a remote's remote, this is the first hop.com.google.protobuf.ByteStringname of the remote, as configured on this machine, that this resource is reached through; for a resource on a remote's remote, this is the first hop.revision of the last config that successfully updated this resource.com.google.protobuf.ByteStringrevision of the last config that successfully updated this resource.getState()current state.intcurrent state.booleaninfomation about resource orgID, locationID and partIDbooleanstate transition timestamp.booleanhasName()resource name.booleanname of the remote, as configured on this machine, that this resource is reached through; for a resource on a remote's remote, this is the first hop.infomation about resource orgID, locationID and partIDmergeLastUpdated(com.google.protobuf.Timestamp value) state transition timestamp.mergeName(Common.ResourceName value) resource name.infomation about resource orgID, locationID and partIDsetCloudMetadata(Robot.GetCloudMetadataResponse.Builder builderForValue) infomation about resource orgID, locationID and partIDerror details for a resource.setErrorBytes(com.google.protobuf.ByteString value) error details for a resource.setLastUpdated(com.google.protobuf.Timestamp value) state transition timestamp.setLastUpdated(com.google.protobuf.Timestamp.Builder builderForValue) state transition timestamp.setName(Common.ResourceName value) resource name.setName(Common.ResourceName.Builder builderForValue) resource name.whether calls to this resource by name can be routed through this machine.setReachabilityValue(int value) whether calls to this resource by name can be routed through this machine.name of the remote, as configured on this machine, that this resource is reached through; for a resource on a remote's remote, this is the first hop.setRemoteBytes(com.google.protobuf.ByteString value) name of the remote, as configured on this machine, that this resource is reached through; for a resource on a remote's remote, this is the first hop.setRevision(String value) revision of the last config that successfully updated this resource.setRevisionBytes(com.google.protobuf.ByteString value) revision of the last config that successfully updated this resource.current state.setStateValue(int value) current 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
-
hasName
public boolean hasName()resource name.
.viam.common.v1.ResourceName name = 1 [json_name = "name"];- Specified by:
hasNamein interfaceRobot.ResourceStatusOrBuilder- Returns:
- Whether the name field is set.
-
getName
resource name.
.viam.common.v1.ResourceName name = 1 [json_name = "name"];- Specified by:
getNamein interfaceRobot.ResourceStatusOrBuilder- Returns:
- The name.
-
setName
resource name.
.viam.common.v1.ResourceName name = 1 [json_name = "name"]; -
setName
resource name.
.viam.common.v1.ResourceName name = 1 [json_name = "name"]; -
mergeName
resource name.
.viam.common.v1.ResourceName name = 1 [json_name = "name"]; -
clearName
resource name.
.viam.common.v1.ResourceName name = 1 [json_name = "name"]; -
getStateValue
public int getStateValue()current state.
.viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"];- Specified by:
getStateValuein interfaceRobot.ResourceStatusOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
current state.
.viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
getState
current state.
.viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"];- Specified by:
getStatein interfaceRobot.ResourceStatusOrBuilder- Returns:
- The state.
-
setState
current state.
.viam.robot.v1.ResourceStatus.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
current state.
.viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"];- Returns:
- This builder for chaining.
-
hasLastUpdated
public boolean hasLastUpdated()state transition timestamp.
.google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"];- Specified by:
hasLastUpdatedin interfaceRobot.ResourceStatusOrBuilder- Returns:
- Whether the lastUpdated field is set.
-
getLastUpdated
public com.google.protobuf.Timestamp getLastUpdated()state transition timestamp.
.google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"];- Specified by:
getLastUpdatedin interfaceRobot.ResourceStatusOrBuilder- Returns:
- The lastUpdated.
-
setLastUpdated
state transition timestamp.
.google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; -
setLastUpdated
public Robot.ResourceStatus.Builder setLastUpdated(com.google.protobuf.Timestamp.Builder builderForValue) state transition timestamp.
.google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; -
mergeLastUpdated
state transition timestamp.
.google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; -
clearLastUpdated
state transition timestamp.
.google.protobuf.Timestamp last_updated = 3 [json_name = "lastUpdated"]; -
getRevision
revision of the last config that successfully updated this resource.
string revision = 4 [json_name = "revision"];- Specified by:
getRevisionin interfaceRobot.ResourceStatusOrBuilder- Returns:
- The revision.
-
getRevisionBytes
public com.google.protobuf.ByteString getRevisionBytes()revision of the last config that successfully updated this resource.
string revision = 4 [json_name = "revision"];- Specified by:
getRevisionBytesin interfaceRobot.ResourceStatusOrBuilder- Returns:
- The bytes for revision.
-
setRevision
revision of the last config that successfully updated this resource.
string revision = 4 [json_name = "revision"];- Parameters:
value- The revision to set.- Returns:
- This builder for chaining.
-
clearRevision
revision of the last config that successfully updated this resource.
string revision = 4 [json_name = "revision"];- Returns:
- This builder for chaining.
-
setRevisionBytes
revision of the last config that successfully updated this resource.
string revision = 4 [json_name = "revision"];- Parameters:
value- The bytes for revision to set.- Returns:
- This builder for chaining.
-
getError
error details for a resource. This is guaranteed to be null if the resource is ready and non-null if the resource unhealthy.
string error = 5 [json_name = "error"];- Specified by:
getErrorin interfaceRobot.ResourceStatusOrBuilder- Returns:
- The error.
-
getErrorBytes
public com.google.protobuf.ByteString getErrorBytes()error details for a resource. This is guaranteed to be null if the resource is ready and non-null if the resource unhealthy.
string error = 5 [json_name = "error"];- Specified by:
getErrorBytesin interfaceRobot.ResourceStatusOrBuilder- Returns:
- The bytes for error.
-
setError
error details for a resource. This is guaranteed to be null if the resource is ready and non-null if the resource unhealthy.
string error = 5 [json_name = "error"];- Parameters:
value- The error to set.- Returns:
- This builder for chaining.
-
clearError
error details for a resource. This is guaranteed to be null if the resource is ready and non-null if the resource unhealthy.
string error = 5 [json_name = "error"];- Returns:
- This builder for chaining.
-
setErrorBytes
error details for a resource. This is guaranteed to be null if the resource is ready and non-null if the resource unhealthy.
string error = 5 [json_name = "error"];- Parameters:
value- The bytes for error to set.- Returns:
- This builder for chaining.
-
hasCloudMetadata
public boolean hasCloudMetadata()infomation about resource orgID, locationID and partID
optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"];- Specified by:
hasCloudMetadatain interfaceRobot.ResourceStatusOrBuilder- Returns:
- Whether the cloudMetadata field is set.
-
getCloudMetadata
infomation about resource orgID, locationID and partID
optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"];- Specified by:
getCloudMetadatain interfaceRobot.ResourceStatusOrBuilder- Returns:
- The cloudMetadata.
-
setCloudMetadata
infomation about resource orgID, locationID and partID
optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; -
setCloudMetadata
public Robot.ResourceStatus.Builder setCloudMetadata(Robot.GetCloudMetadataResponse.Builder builderForValue) infomation about resource orgID, locationID and partID
optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; -
mergeCloudMetadata
infomation about resource orgID, locationID and partID
optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; -
clearCloudMetadata
infomation about resource orgID, locationID and partID
optional .viam.robot.v1.GetCloudMetadataResponse cloud_metadata = 6 [json_name = "cloudMetadata"]; -
getReachabilityValue
public int getReachabilityValue()whether calls to this resource by name can be routed through this machine.
.viam.robot.v1.ResourceStatus.Reachability reachability = 7 [json_name = "reachability"];- Specified by:
getReachabilityValuein interfaceRobot.ResourceStatusOrBuilder- Returns:
- The enum numeric value on the wire for reachability.
-
setReachabilityValue
whether calls to this resource by name can be routed through this machine.
.viam.robot.v1.ResourceStatus.Reachability reachability = 7 [json_name = "reachability"];- Parameters:
value- The reachability to set.- Returns:
- This builder for chaining.
-
getReachability
whether calls to this resource by name can be routed through this machine.
.viam.robot.v1.ResourceStatus.Reachability reachability = 7 [json_name = "reachability"];- Specified by:
getReachabilityin interfaceRobot.ResourceStatusOrBuilder- Returns:
- The reachability.
-
setReachability
whether calls to this resource by name can be routed through this machine.
.viam.robot.v1.ResourceStatus.Reachability reachability = 7 [json_name = "reachability"];- Parameters:
value- The enum numeric value on the wire for reachability to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
clearReachability
whether calls to this resource by name can be routed through this machine.
.viam.robot.v1.ResourceStatus.Reachability reachability = 7 [json_name = "reachability"];- Returns:
- This builder for chaining.
-
hasRemote
public boolean hasRemote()name of the remote, as configured on this machine, that this resource is reached through; for a resource on a remote's remote, this is the first hop. Unset for local resources.
optional string remote = 8 [json_name = "remote"];- Specified by:
hasRemotein interfaceRobot.ResourceStatusOrBuilder- Returns:
- Whether the remote field is set.
-
getRemote
name of the remote, as configured on this machine, that this resource is reached through; for a resource on a remote's remote, this is the first hop. Unset for local resources.
optional string remote = 8 [json_name = "remote"];- Specified by:
getRemotein interfaceRobot.ResourceStatusOrBuilder- Returns:
- The remote.
-
getRemoteBytes
public com.google.protobuf.ByteString getRemoteBytes()name of the remote, as configured on this machine, that this resource is reached through; for a resource on a remote's remote, this is the first hop. Unset for local resources.
optional string remote = 8 [json_name = "remote"];- Specified by:
getRemoteBytesin interfaceRobot.ResourceStatusOrBuilder- Returns:
- The bytes for remote.
-
setRemote
name of the remote, as configured on this machine, that this resource is reached through; for a resource on a remote's remote, this is the first hop. Unset for local resources.
optional string remote = 8 [json_name = "remote"];- Parameters:
value- The remote to set.- Returns:
- This builder for chaining.
-
clearRemote
name of the remote, as configured on this machine, that this resource is reached through; for a resource on a remote's remote, this is the first hop. Unset for local resources.
optional string remote = 8 [json_name = "remote"];- Returns:
- This builder for chaining.
-
setRemoteBytes
name of the remote, as configured on this machine, that this resource is reached through; for a resource on a remote's remote, this is the first hop. Unset for local resources.
optional string remote = 8 [json_name = "remote"];- Parameters:
value- The bytes for remote to set.- Returns:
- This builder for chaining.
-