Package com.viam.robot.v1
Class Robot.ResourceStatus
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
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 class
Protobuf typeviam.robot.v1.ResourceStatus
static enum
Protobuf enumviam.robot.v1.ResourceStatus.State
Nested 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 extends Object>, 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 int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) infomation about resource orgID, locationID and partIDstatic Robot.ResourceStatus
getError()
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.static Robot.ResourceStatus.Builder
static Robot.ResourceStatus.Builder
newBuilder
(Robot.ResourceStatus prototype) static Robot.ResourceStatus
parseDelimitedFrom
(InputStream input) static Robot.ResourceStatus
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ResourceStatus
parseFrom
(byte[] data) static Robot.ResourceStatus
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ResourceStatus
parseFrom
(com.google.protobuf.ByteString data) static Robot.ResourceStatus
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ResourceStatus
parseFrom
(com.google.protobuf.CodedInputStream input) static Robot.ResourceStatus
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ResourceStatus
parseFrom
(InputStream input) static Robot.ResourceStatus
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ResourceStatus
parseFrom
(ByteBuffer data) static Robot.ResourceStatus
parseFrom
(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, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, 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, writeTo
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
-
-
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.
-
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.
-
getState
current state.
.viam.robot.v1.ResourceStatus.State state = 2 [json_name = "state"];
- Specified by:
getState
in interfaceRobot.ResourceStatusOrBuilder
- Returns:
- The state.
-
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.
-
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.
-
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.
-
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.
-
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:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Robot.ResourceStatus,
Robot.ResourceStatus.Builder>
-
getDefaultInstance
-
parser
-