Package com.viam.robot.v1
Class Robot.ResourceStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
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.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.ByteString
error details for a resource.com.google.protobuf.Timestamp
state transition timestamp.getName()
resource name.revision of the last config that successfully updated this resource.com.google.protobuf.ByteString
revision of the last config that successfully updated this resource.getState()
current state.int
current state.boolean
infomation about resource orgID, locationID and partIDboolean
state transition timestamp.boolean
hasName()
resource name.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.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, 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
-
hasName
public boolean hasName()resource name.
.viam.common.v1.ResourceName name = 1 [json_name = "name"];
- Specified by:
hasName
in interfaceRobot.ResourceStatusOrBuilder
- Returns:
- Whether the name field is set.
-
getName
resource name.
.viam.common.v1.ResourceName name = 1 [json_name = "name"];
- Specified by:
getName
in 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:
getStateValue
in 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:
getState
in 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.
-
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:
hasLastUpdated
in 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:
getLastUpdated
in 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:
getRevision
in 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:
getRevisionBytes
in 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:
getError
in 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:
getErrorBytes
in 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:
hasCloudMetadata
in 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:
getCloudMetadata
in 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"];
-