Package com.viam.robot.v1
Class Robot.ResourceStatus
java.lang.Object
com.google.protobuf.AbstractMessageLite<Robot.ResourceStatus,Robot.ResourceStatus.Builder>
com.google.protobuf.GeneratedMessageLite<Robot.ResourceStatus,Robot.ResourceStatus.Builder>
com.viam.robot.v1.Robot.ResourceStatus
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Robot.ResourceStatusOrBuilder
- Enclosing class:
Robot
public static final class Robot.ResourceStatus
extends com.google.protobuf.GeneratedMessageLite<Robot.ResourceStatus,Robot.ResourceStatus.Builder>
implements Robot.ResourceStatusOrBuilder
Protobuf type
viam.robot.v1.ResourceStatus-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeviam.robot.v1.ResourceStatusstatic enumwhether calls to the resource by name can be routed through this machine.static enumProtobuf enumviam.robot.v1.ResourceStatus.StateNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) infomation about resource orgID, locationID and partIDstatic Robot.ResourceStatusgetError()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.static Robot.ResourceStatus.Builderstatic Robot.ResourceStatus.BuildernewBuilder(Robot.ResourceStatus prototype) static Robot.ResourceStatusparseDelimitedFrom(InputStream input) static Robot.ResourceStatusparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ResourceStatusparseFrom(byte[] data) static Robot.ResourceStatusparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ResourceStatusparseFrom(com.google.protobuf.ByteString data) static Robot.ResourceStatusparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ResourceStatusparseFrom(com.google.protobuf.CodedInputStream input) static Robot.ResourceStatusparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ResourceStatusparseFrom(InputStream input) static Robot.ResourceStatusparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ResourceStatusparseFrom(ByteBuffer data) static Robot.ResourceStatusparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Robot.ResourceStatus> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
LAST_UPDATED_FIELD_NUMBER
public static final int LAST_UPDATED_FIELD_NUMBER- See Also:
-
REVISION_FIELD_NUMBER
public static final int REVISION_FIELD_NUMBER- See Also:
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER- See Also:
-
CLOUD_METADATA_FIELD_NUMBER
public static final int CLOUD_METADATA_FIELD_NUMBER- See Also:
-
REACHABILITY_FIELD_NUMBER
public static final int REACHABILITY_FIELD_NUMBER- See Also:
-
REMOTE_FIELD_NUMBER
public static final int REMOTE_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
getState
current state.
.viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"];- Specified by:
getStatein interfaceRobot.ResourceStatusOrBuilder- Returns:
- The state.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
parseFrom
public static Robot.ResourceStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.ResourceStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.ResourceStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.ResourceStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.ResourceStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.ResourceStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Robot.ResourceStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Robot.ResourceStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Robot.ResourceStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Robot.ResourceStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Robot.ResourceStatus,Robot.ResourceStatus.Builder>
-
getDefaultInstance
-
parser
-