Package com.viam.robot.v1
Class Robot.PackageStatus
java.lang.Object
com.google.protobuf.AbstractMessageLite<Robot.PackageStatus,Robot.PackageStatus.Builder>
com.google.protobuf.GeneratedMessageLite<Robot.PackageStatus,Robot.PackageStatus.Builder>
com.viam.robot.v1.Robot.PackageStatus
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Robot.PackageStatusOrBuilder
- Enclosing class:
Robot
public static final class Robot.PackageStatus
extends com.google.protobuf.GeneratedMessageLite<Robot.PackageStatus,Robot.PackageStatus.Builder>
implements Robot.PackageStatusOrBuilder
Protobuf type
viam.robot.v1.PackageStatus-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeviam.robot.v1.PackageStatusstatic enumProtobuf enumviam.robot.v1.PackageStatus.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) longnumber of bytes of the package tarball downloaded so far.static Robot.PackageStatusgetError()human-readable error detail when state == STATE_FAILEDcom.google.protobuf.ByteStringhuman-readable error detail when state == STATE_FAILEDcom.google.protobuf.Timestampwhen this status was last updatedgetName()the package name as declared in the robot config (PackageConfig.Name)com.google.protobuf.ByteStringthe package name as declared in the robot config (PackageConfig.Name)getState()current lifecycle stateintcurrent lifecycle statelongtotal size of the package tarball in bytes.getType()the package type (module, ml_model, slam_map, etc.)intthe package type (module, ml_model, slam_map, etc.)the version string from PackageConfigcom.google.protobuf.ByteStringthe version string from PackageConfigbooleanwhen this status was last updatedstatic Robot.PackageStatus.Builderstatic Robot.PackageStatus.BuildernewBuilder(Robot.PackageStatus prototype) static Robot.PackageStatusparseDelimitedFrom(InputStream input) static Robot.PackageStatusparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.PackageStatusparseFrom(byte[] data) static Robot.PackageStatusparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.PackageStatusparseFrom(com.google.protobuf.ByteString data) static Robot.PackageStatusparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.PackageStatusparseFrom(com.google.protobuf.CodedInputStream input) static Robot.PackageStatusparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.PackageStatusparseFrom(InputStream input) static Robot.PackageStatusparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.PackageStatusparseFrom(ByteBuffer data) static Robot.PackageStatusparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Robot.PackageStatus> 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:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER- See Also:
-
LAST_UPDATED_FIELD_NUMBER
public static final int LAST_UPDATED_FIELD_NUMBER- See Also:
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER- See Also:
-
BYTES_DOWNLOADED_FIELD_NUMBER
public static final int BYTES_DOWNLOADED_FIELD_NUMBER- See Also:
-
TOTAL_BYTES_FIELD_NUMBER
public static final int TOTAL_BYTES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getName
the package name as declared in the robot config (PackageConfig.Name)
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceRobot.PackageStatusOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()the package name as declared in the robot config (PackageConfig.Name)
string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceRobot.PackageStatusOrBuilder- Returns:
- The bytes for name.
-
getTypeValue
public int getTypeValue()the package type (module, ml_model, slam_map, etc.)
.viam.app.packages.v1.PackageType type = 2 [json_name = "type"];- Specified by:
getTypeValuein interfaceRobot.PackageStatusOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
the package type (module, ml_model, slam_map, etc.)
.viam.app.packages.v1.PackageType type = 2 [json_name = "type"];- Specified by:
getTypein interfaceRobot.PackageStatusOrBuilder- Returns:
- The type.
-
getStateValue
public int getStateValue()current lifecycle state
.viam.robot.v1.PackageStatus.State state = 3 [json_name = "state"];- Specified by:
getStateValuein interfaceRobot.PackageStatusOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
current lifecycle state
.viam.robot.v1.PackageStatus.State state = 3 [json_name = "state"];- Specified by:
getStatein interfaceRobot.PackageStatusOrBuilder- Returns:
- The state.
-
getError
human-readable error detail when state == STATE_FAILED
string error = 4 [json_name = "error"];- Specified by:
getErrorin interfaceRobot.PackageStatusOrBuilder- Returns:
- The error.
-
getErrorBytes
public com.google.protobuf.ByteString getErrorBytes()human-readable error detail when state == STATE_FAILED
string error = 4 [json_name = "error"];- Specified by:
getErrorBytesin interfaceRobot.PackageStatusOrBuilder- Returns:
- The bytes for error.
-
hasLastUpdated
public boolean hasLastUpdated()when this status was last updated
.google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];- Specified by:
hasLastUpdatedin interfaceRobot.PackageStatusOrBuilder- Returns:
- Whether the lastUpdated field is set.
-
getLastUpdated
public com.google.protobuf.Timestamp getLastUpdated()when this status was last updated
.google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];- Specified by:
getLastUpdatedin interfaceRobot.PackageStatusOrBuilder- Returns:
- The lastUpdated.
-
getVersion
the version string from PackageConfig
string version = 6 [json_name = "version"];- Specified by:
getVersionin interfaceRobot.PackageStatusOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()the version string from PackageConfig
string version = 6 [json_name = "version"];- Specified by:
getVersionBytesin interfaceRobot.PackageStatusOrBuilder- Returns:
- The bytes for version.
-
getBytesDownloaded
public long getBytesDownloaded()number of bytes of the package tarball downloaded so far. Only populated while state == STATE_DOWNLOADING; equals total_bytes once the download completes.
uint64 bytes_downloaded = 7 [json_name = "bytesDownloaded"];- Specified by:
getBytesDownloadedin interfaceRobot.PackageStatusOrBuilder- Returns:
- The bytesDownloaded.
-
getTotalBytes
public long getTotalBytes()total size of the package tarball in bytes. Zero if the size is unknown.
uint64 total_bytes = 8 [json_name = "totalBytes"];- Specified by:
getTotalBytesin interfaceRobot.PackageStatusOrBuilder- Returns:
- The totalBytes.
-
parseFrom
public static Robot.PackageStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.PackageStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.PackageStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.PackageStatus 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.PackageStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.PackageStatus 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.PackageStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Robot.PackageStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Robot.PackageStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Robot.PackageStatus 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.PackageStatus,Robot.PackageStatus.Builder>
-
getDefaultInstance
-
parser
-