() {
+ @java.lang.Override
+ public State findValueByNumber(int number) {
+ return State.forNumber(number);
+ }
+ };
+
+ public static com.google.protobuf.Internal.EnumVerifier
+ internalGetVerifier() {
+ return StateVerifier.INSTANCE;
+ }
+
+ private static final class StateVerifier implements
+ com.google.protobuf.Internal.EnumVerifier {
+ static final com.google.protobuf.Internal.EnumVerifier
+ INSTANCE = new StateVerifier();
+ @java.lang.Override
+ public boolean isInRange(int number) {
+ return State.forNumber(number) != null;
+ }
+ };
+
+ private final int value;
+
+ private State(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:viam.robot.v1.PackageStatus.State)
+ }
+
+ private int bitField0_;
+ public static final int NAME_FIELD_NUMBER = 1;
+ private java.lang.String name_;
+ /**
+ *
+ * the package name as declared in the robot config (PackageConfig.Name)
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ return name_;
+ }
+ /**
+ *
+ * the package name as declared in the robot config (PackageConfig.Name)
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(name_);
+ }
+ /**
+ *
+ * the package name as declared in the robot config (PackageConfig.Name)
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @param value The name to set.
+ */
+ @java.lang.SuppressWarnings("ReturnValueIgnored")
+ private void setName(
+ java.lang.String value) {
+ value.getClass(); // minimal bytecode null check
+
+ name_ = value;
+ }
+ /**
+ *
+ * the package name as declared in the robot config (PackageConfig.Name)
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ */
+ private void clearName() {
+
+ name_ = getDefaultInstance().getName();
+ }
+ /**
+ *
+ * the package name as declared in the robot config (PackageConfig.Name)
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @param value The bytes for name to set.
+ */
+ private void setNameBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ name_ = value.toStringUtf8();
+
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 2;
+ private int type_;
+ /**
+ *
+ * the package type (module, ml_model, slam_map, etc.)
+ *
+ *
+ * .viam.app.packages.v1.PackageType type = 2 [json_name = "type"];
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ * the package type (module, ml_model, slam_map, etc.)
+ *
+ *
+ * .viam.app.packages.v1.PackageType type = 2 [json_name = "type"];
+ * @return The type.
+ */
+ @java.lang.Override
+ public viam.app.packages.v1.Packages.PackageType getType() {
+ viam.app.packages.v1.Packages.PackageType result = viam.app.packages.v1.Packages.PackageType.forNumber(type_);
+ return result == null ? viam.app.packages.v1.Packages.PackageType.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ * the package type (module, ml_model, slam_map, etc.)
+ *
+ *
+ * .viam.app.packages.v1.PackageType type = 2 [json_name = "type"];
+ * @param value The enum numeric value on the wire for type to set.
+ * @throws IllegalArgumentException if UNRECOGNIZED is provided.
+ */
+ private void setTypeValue(int value) {
+ type_ = value;
+ }
+ /**
+ *
+ * the package type (module, ml_model, slam_map, etc.)
+ *
+ *
+ * .viam.app.packages.v1.PackageType type = 2 [json_name = "type"];
+ * @param value The type to set.
+ */
+ private void setType(viam.app.packages.v1.Packages.PackageType value) {
+ type_ = value.getNumber();
+
+ }
+ /**
+ *
+ * the package type (module, ml_model, slam_map, etc.)
+ *
+ *
+ * .viam.app.packages.v1.PackageType type = 2 [json_name = "type"];
+ */
+ private void clearType() {
+
+ type_ = 0;
+ }
+
+ public static final int STATE_FIELD_NUMBER = 3;
+ private int state_;
+ /**
+ *
+ * current lifecycle state
+ *
+ *
+ * .viam.robot.v1.PackageStatus.State state = 3 [json_name = "state"];
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ * current lifecycle state
+ *
+ *
+ * .viam.robot.v1.PackageStatus.State state = 3 [json_name = "state"];
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.viam.robot.v1.Robot.PackageStatus.State getState() {
+ com.viam.robot.v1.Robot.PackageStatus.State result = com.viam.robot.v1.Robot.PackageStatus.State.forNumber(state_);
+ return result == null ? com.viam.robot.v1.Robot.PackageStatus.State.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ * current lifecycle state
+ *
+ *
+ * .viam.robot.v1.PackageStatus.State state = 3 [json_name = "state"];
+ * @param value The enum numeric value on the wire for state to set.
+ * @throws IllegalArgumentException if UNRECOGNIZED is provided.
+ */
+ private void setStateValue(int value) {
+ state_ = value;
+ }
+ /**
+ *
+ * current lifecycle state
+ *
+ *
+ * .viam.robot.v1.PackageStatus.State state = 3 [json_name = "state"];
+ * @param value The state to set.
+ */
+ private void setState(com.viam.robot.v1.Robot.PackageStatus.State value) {
+ state_ = value.getNumber();
+
+ }
+ /**
+ *
+ * current lifecycle state
+ *
+ *
+ * .viam.robot.v1.PackageStatus.State state = 3 [json_name = "state"];
+ */
+ private void clearState() {
+
+ state_ = 0;
+ }
+
+ public static final int ERROR_FIELD_NUMBER = 4;
+ private java.lang.String error_;
+ /**
+ *
+ * human-readable error detail when state == STATE_FAILED
+ *
+ *
+ * string error = 4 [json_name = "error"];
+ * @return The error.
+ */
+ @java.lang.Override
+ public java.lang.String getError() {
+ return error_;
+ }
+ /**
+ *
+ * human-readable error detail when state == STATE_FAILED
+ *
+ *
+ * string error = 4 [json_name = "error"];
+ * @return The bytes for error.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getErrorBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(error_);
+ }
+ /**
+ *
+ * human-readable error detail when state == STATE_FAILED
+ *
+ *
+ * string error = 4 [json_name = "error"];
+ * @param value The error to set.
+ */
+ @java.lang.SuppressWarnings("ReturnValueIgnored")
+ private void setError(
+ java.lang.String value) {
+ value.getClass(); // minimal bytecode null check
+
+ error_ = value;
+ }
+ /**
+ *
+ * human-readable error detail when state == STATE_FAILED
+ *
+ *
+ * string error = 4 [json_name = "error"];
+ */
+ private void clearError() {
+
+ error_ = getDefaultInstance().getError();
+ }
+ /**
+ *
+ * human-readable error detail when state == STATE_FAILED
+ *
+ *
+ * string error = 4 [json_name = "error"];
+ * @param value The bytes for error to set.
+ */
+ private void setErrorBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ error_ = value.toStringUtf8();
+
+ }
+
+ public static final int LAST_UPDATED_FIELD_NUMBER = 5;
+ private com.google.protobuf.Timestamp lastUpdated_;
+ /**
+ *
+ * when this status was last updated
+ *
+ *
+ * .google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];
+ */
+ @java.lang.Override
+ public boolean hasLastUpdated() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ * when this status was last updated
+ *
+ *
+ * .google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getLastUpdated() {
+ return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
+ }
+ /**
+ *
+ * when this status was last updated
+ *
+ *
+ * .google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];
+ */
+ @java.lang.SuppressWarnings("ReturnValueIgnored")
+ private void setLastUpdated(com.google.protobuf.Timestamp value) {
+ value.getClass(); // minimal bytecode null check
+ lastUpdated_ = value;
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ *
+ * when this status was last updated
+ *
+ *
+ * .google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];
+ */
+ @java.lang.SuppressWarnings({"ReferenceEquality", "ReturnValueIgnored"})
+ private void mergeLastUpdated(com.google.protobuf.Timestamp value) {
+ value.getClass(); // minimal bytecode null check
+ if (lastUpdated_ != null &&
+ lastUpdated_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ lastUpdated_ =
+ com.google.protobuf.Timestamp.newBuilder(lastUpdated_).mergeFrom(value).buildPartial();
+ } else {
+ lastUpdated_ = value;
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ *
+ * when this status was last updated
+ *
+ *
+ * .google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];
+ */
+ private void clearLastUpdated() {
+ lastUpdated_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 6;
+ private java.lang.String version_;
+ /**
+ *
+ * the version string from PackageConfig
+ *
+ *
+ * string version = 6 [json_name = "version"];
+ * @return The version.
+ */
+ @java.lang.Override
+ public java.lang.String getVersion() {
+ return version_;
+ }
+ /**
+ *
+ * the version string from PackageConfig
+ *
+ *
+ * string version = 6 [json_name = "version"];
+ * @return The bytes for version.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(version_);
+ }
+ /**
+ *
+ * the version string from PackageConfig
+ *
+ *
+ * string version = 6 [json_name = "version"];
+ * @param value The version to set.
+ */
+ @java.lang.SuppressWarnings("ReturnValueIgnored")
+ private void setVersion(
+ java.lang.String value) {
+ value.getClass(); // minimal bytecode null check
+
+ version_ = value;
+ }
+ /**
+ *
+ * the version string from PackageConfig
+ *
+ *
+ * string version = 6 [json_name = "version"];
+ */
+ private void clearVersion() {
+
+ version_ = getDefaultInstance().getVersion();
+ }
+ /**
+ *
+ * the version string from PackageConfig
+ *
+ *
+ * string version = 6 [json_name = "version"];
+ * @param value The bytes for version to set.
+ */
+ private void setVersionBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ version_ = value.toStringUtf8();
+
+ }
+
+ public static final int BYTES_DOWNLOADED_FIELD_NUMBER = 7;
+ private long bytesDownloaded_;
+ /**
+ *
+ * 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"];
+ * @return The bytesDownloaded.
+ */
+ @java.lang.Override
+ public long getBytesDownloaded() {
+ return bytesDownloaded_;
+ }
+ /**
+ *
+ * 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"];
+ * @param value The bytesDownloaded to set.
+ */
+ private void setBytesDownloaded(long value) {
+
+ bytesDownloaded_ = value;
+ }
+ /**
+ *
+ * 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"];
+ */
+ private void clearBytesDownloaded() {
+
+ bytesDownloaded_ = 0L;
+ }
+
+ public static final int TOTAL_BYTES_FIELD_NUMBER = 8;
+ private long totalBytes_;
+ /**
+ *
+ * total size of the package tarball in bytes. Zero if the size is unknown.
+ *
+ *
+ * uint64 total_bytes = 8 [json_name = "totalBytes"];
+ * @return The totalBytes.
+ */
+ @java.lang.Override
+ public long getTotalBytes() {
+ return totalBytes_;
+ }
+ /**
+ *
+ * total size of the package tarball in bytes. Zero if the size is unknown.
+ *
+ *
+ * uint64 total_bytes = 8 [json_name = "totalBytes"];
+ * @param value The totalBytes to set.
+ */
+ private void setTotalBytes(long value) {
+
+ totalBytes_ = value;
+ }
+ /**
+ *
+ * total size of the package tarball in bytes. Zero if the size is unknown.
+ *
+ *
+ * uint64 total_bytes = 8 [json_name = "totalBytes"];
+ */
+ private void clearTotalBytes() {
+
+ totalBytes_ = 0L;
+ }
+
+ public static com.viam.robot.v1.Robot.PackageStatus parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static com.viam.robot.v1.Robot.PackageStatus parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static com.viam.robot.v1.Robot.PackageStatus parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static com.viam.robot.v1.Robot.PackageStatus parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static com.viam.robot.v1.Robot.PackageStatus parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data);
+ }
+ public static com.viam.robot.v1.Robot.PackageStatus parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, data, extensionRegistry);
+ }
+ public static com.viam.robot.v1.Robot.PackageStatus parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static com.viam.robot.v1.Robot.PackageStatus parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static com.viam.robot.v1.Robot.PackageStatus parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input);
+ }
+
+ public static com.viam.robot.v1.Robot.PackageStatus parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+ public static com.viam.robot.v1.Robot.PackageStatus parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input);
+ }
+ public static com.viam.robot.v1.Robot.PackageStatus parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageLite.parseFrom(
+ DEFAULT_INSTANCE, input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return (Builder) DEFAULT_INSTANCE.createBuilder();
+ }
+ public static Builder newBuilder(com.viam.robot.v1.Robot.PackageStatus prototype) {
+ return DEFAULT_INSTANCE.createBuilder(prototype);
+ }
+
+ /**
+ * Protobuf type {@code viam.robot.v1.PackageStatus}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageLite.Builder<
+ com.viam.robot.v1.Robot.PackageStatus, Builder> implements
+ // @@protoc_insertion_point(builder_implements:viam.robot.v1.PackageStatus)
+ com.viam.robot.v1.Robot.PackageStatusOrBuilder {
+ // Construct using com.viam.robot.v1.Robot.PackageStatus.newBuilder()
+ private Builder() {
+ super(DEFAULT_INSTANCE);
+ }
+
+
+ /**
+ *
+ * the package name as declared in the robot config (PackageConfig.Name)
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ return instance.getName();
+ }
+ /**
+ *
+ * the package name as declared in the robot config (PackageConfig.Name)
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ return instance.getNameBytes();
+ }
+ /**
+ *
+ * the package name as declared in the robot config (PackageConfig.Name)
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setName(value);
+ return this;
+ }
+ /**
+ *
+ * the package name as declared in the robot config (PackageConfig.Name)
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ copyOnWrite();
+ instance.clearName();
+ return this;
+ }
+ /**
+ *
+ * the package name as declared in the robot config (PackageConfig.Name)
+ *
+ *
+ * string name = 1 [json_name = "name"];
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setNameBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ * the package type (module, ml_model, slam_map, etc.)
+ *
+ *
+ * .viam.app.packages.v1.PackageType type = 2 [json_name = "type"];
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return instance.getTypeValue();
+ }
+ /**
+ *
+ * the package type (module, ml_model, slam_map, etc.)
+ *
+ *
+ * .viam.app.packages.v1.PackageType type = 2 [json_name = "type"];
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeValue(int value) {
+ copyOnWrite();
+ instance.setTypeValue(value);
+ return this;
+ }
+ /**
+ *
+ * the package type (module, ml_model, slam_map, etc.)
+ *
+ *
+ * .viam.app.packages.v1.PackageType type = 2 [json_name = "type"];
+ * @return The type.
+ */
+ @java.lang.Override
+ public viam.app.packages.v1.Packages.PackageType getType() {
+ return instance.getType();
+ }
+ /**
+ *
+ * the package type (module, ml_model, slam_map, etc.)
+ *
+ *
+ * .viam.app.packages.v1.PackageType type = 2 [json_name = "type"];
+ * @param value The enum numeric value on the wire for type to set.
+ * @throws IllegalArgumentException if UNRECOGNIZED is provided.
+ * @return This builder for chaining.
+ */
+ public Builder setType(viam.app.packages.v1.Packages.PackageType value) {
+ copyOnWrite();
+ instance.setType(value);
+ return this;
+ }
+ /**
+ *
+ * the package type (module, ml_model, slam_map, etc.)
+ *
+ *
+ * .viam.app.packages.v1.PackageType type = 2 [json_name = "type"];
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ copyOnWrite();
+ instance.clearType();
+ return this;
+ }
+
+ /**
+ *
+ * current lifecycle state
+ *
+ *
+ * .viam.robot.v1.PackageStatus.State state = 3 [json_name = "state"];
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return instance.getStateValue();
+ }
+ /**
+ *
+ * current lifecycle state
+ *
+ *
+ * .viam.robot.v1.PackageStatus.State state = 3 [json_name = "state"];
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ copyOnWrite();
+ instance.setStateValue(value);
+ return this;
+ }
+ /**
+ *
+ * current lifecycle state
+ *
+ *
+ * .viam.robot.v1.PackageStatus.State state = 3 [json_name = "state"];
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.viam.robot.v1.Robot.PackageStatus.State getState() {
+ return instance.getState();
+ }
+ /**
+ *
+ * current lifecycle state
+ *
+ *
+ * .viam.robot.v1.PackageStatus.State state = 3 [json_name = "state"];
+ * @param value The enum numeric value on the wire for state to set.
+ * @throws IllegalArgumentException if UNRECOGNIZED is provided.
+ * @return This builder for chaining.
+ */
+ public Builder setState(com.viam.robot.v1.Robot.PackageStatus.State value) {
+ copyOnWrite();
+ instance.setState(value);
+ return this;
+ }
+ /**
+ *
+ * current lifecycle state
+ *
+ *
+ * .viam.robot.v1.PackageStatus.State state = 3 [json_name = "state"];
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ copyOnWrite();
+ instance.clearState();
+ return this;
+ }
+
+ /**
+ *
+ * human-readable error detail when state == STATE_FAILED
+ *
+ *
+ * string error = 4 [json_name = "error"];
+ * @return The error.
+ */
+ @java.lang.Override
+ public java.lang.String getError() {
+ return instance.getError();
+ }
+ /**
+ *
+ * human-readable error detail when state == STATE_FAILED
+ *
+ *
+ * string error = 4 [json_name = "error"];
+ * @return The bytes for error.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getErrorBytes() {
+ return instance.getErrorBytes();
+ }
+ /**
+ *
+ * human-readable error detail when state == STATE_FAILED
+ *
+ *
+ * string error = 4 [json_name = "error"];
+ * @param value The error to set.
+ * @return This builder for chaining.
+ */
+ public Builder setError(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setError(value);
+ return this;
+ }
+ /**
+ *
+ * human-readable error detail when state == STATE_FAILED
+ *
+ *
+ * string error = 4 [json_name = "error"];
+ * @return This builder for chaining.
+ */
+ public Builder clearError() {
+ copyOnWrite();
+ instance.clearError();
+ return this;
+ }
+ /**
+ *
+ * human-readable error detail when state == STATE_FAILED
+ *
+ *
+ * string error = 4 [json_name = "error"];
+ * @param value The bytes for error to set.
+ * @return This builder for chaining.
+ */
+ public Builder setErrorBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setErrorBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ * when this status was last updated
+ *
+ *
+ * .google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];
+ */
+ @java.lang.Override
+ public boolean hasLastUpdated() {
+ return instance.hasLastUpdated();
+ }
+ /**
+ *
+ * when this status was last updated
+ *
+ *
+ * .google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getLastUpdated() {
+ return instance.getLastUpdated();
+ }
+ /**
+ *
+ * when this status was last updated
+ *
+ *
+ * .google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];
+ */
+ public Builder setLastUpdated(com.google.protobuf.Timestamp value) {
+ copyOnWrite();
+ instance.setLastUpdated(value);
+ return this;
+ }
+ /**
+ *
+ * when this status was last updated
+ *
+ *
+ * .google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];
+ */
+ public Builder setLastUpdated(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ copyOnWrite();
+ instance.setLastUpdated(builderForValue.build());
+ return this;
+ }
+ /**
+ *
+ * when this status was last updated
+ *
+ *
+ * .google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];
+ */
+ public Builder mergeLastUpdated(com.google.protobuf.Timestamp value) {
+ copyOnWrite();
+ instance.mergeLastUpdated(value);
+ return this;
+ }
+ /**
+ *
+ * when this status was last updated
+ *
+ *
+ * .google.protobuf.Timestamp last_updated = 5 [json_name = "lastUpdated"];
+ */
+ public Builder clearLastUpdated() { copyOnWrite();
+ instance.clearLastUpdated();
+ return this;
+ }
+
+ /**
+ *
+ * the version string from PackageConfig
+ *
+ *
+ * string version = 6 [json_name = "version"];
+ * @return The version.
+ */
+ @java.lang.Override
+ public java.lang.String getVersion() {
+ return instance.getVersion();
+ }
+ /**
+ *
+ * the version string from PackageConfig
+ *
+ *
+ * string version = 6 [json_name = "version"];
+ * @return The bytes for version.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ return instance.getVersionBytes();
+ }
+ /**
+ *
+ * the version string from PackageConfig
+ *
+ *
+ * string version = 6 [json_name = "version"];
+ * @param value The version to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVersion(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setVersion(value);
+ return this;
+ }
+ /**
+ *
+ * the version string from PackageConfig
+ *
+ *
+ * string version = 6 [json_name = "version"];
+ * @return This builder for chaining.
+ */
+ public Builder clearVersion() {
+ copyOnWrite();
+ instance.clearVersion();
+ return this;
+ }
+ /**
+ *
+ * the version string from PackageConfig
+ *
+ *
+ * string version = 6 [json_name = "version"];
+ * @param value The bytes for version to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVersionBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setVersionBytes(value);
+ return this;
+ }
+
+ /**
+ *
+ * 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"];
+ * @return The bytesDownloaded.
+ */
+ @java.lang.Override
+ public long getBytesDownloaded() {
+ return instance.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"];
+ * @param value The bytesDownloaded to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBytesDownloaded(long value) {
+ copyOnWrite();
+ instance.setBytesDownloaded(value);
+ return this;
+ }
+ /**
+ *
+ * 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"];
+ * @return This builder for chaining.
+ */
+ public Builder clearBytesDownloaded() {
+ copyOnWrite();
+ instance.clearBytesDownloaded();
+ return this;
+ }
+
+ /**
+ *
+ * total size of the package tarball in bytes. Zero if the size is unknown.
+ *
+ *
+ * uint64 total_bytes = 8 [json_name = "totalBytes"];
+ * @return The totalBytes.
+ */
+ @java.lang.Override
+ public long getTotalBytes() {
+ return instance.getTotalBytes();
+ }
+ /**
+ *
+ * total size of the package tarball in bytes. Zero if the size is unknown.
+ *
+ *
+ * uint64 total_bytes = 8 [json_name = "totalBytes"];
+ * @param value The totalBytes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalBytes(long value) {
+ copyOnWrite();
+ instance.setTotalBytes(value);
+ return this;
+ }
+ /**
+ *
+ * total size of the package tarball in bytes. Zero if the size is unknown.
+ *
+ *
+ * uint64 total_bytes = 8 [json_name = "totalBytes"];
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalBytes() {
+ copyOnWrite();
+ instance.clearTotalBytes();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:viam.robot.v1.PackageStatus)
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings({"ThrowNull"})
+ protected final java.lang.Object dynamicMethod(
+ com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
+ java.lang.Object arg0, java.lang.Object arg1) {
+ switch (method) {
+ case NEW_MUTABLE_INSTANCE: {
+ return new com.viam.robot.v1.Robot.PackageStatus();
+ }
+ case NEW_BUILDER: {
+ return new Builder();
+ }
+ case BUILD_MESSAGE_INFO: {
+ java.lang.Object[] objects = new java.lang.Object[] {
+ "bitField0_",
+ "name_",
+ "type_",
+ "state_",
+ "error_",
+ "lastUpdated_",
+ "version_",
+ "bytesDownloaded_",
+ "totalBytes_",
+ };
+ java.lang.String info =
+ "\u0000\b\u0000\u0001\u0001\b\b\u0000\u0000\u0000\u0001\u0208\u0002\f\u0003\f\u0004" +
+ "\u0208\u0005\u1009\u0000\u0006\u0208\u0007\u0003\b\u0003";
+ return newMessageInfo(DEFAULT_INSTANCE, info, objects);
+ }
+ case GET_DEFAULT_INSTANCE: {
+ return DEFAULT_INSTANCE;
+ }
+ case GET_PARSER: {
+ com.google.protobuf.Parser parser = PARSER;
+ if (parser == null) {
+ synchronized (com.viam.robot.v1.Robot.PackageStatus.class) {
+ parser = PARSER;
+ if (parser == null) {
+ parser =
+ new DefaultInstanceBasedParser(
+ DEFAULT_INSTANCE);
+ PARSER = parser;
+ }
+ }
+ }
+ return parser;
+ }
+ case GET_MEMOIZED_IS_INITIALIZED: {
+ return (byte) 1;
+ }
+ // SET_MEMOIZED_IS_INITIALIZED is never called for this message.
+ // So it can do anything. Combine with default case for smaller codegen.
+ case SET_MEMOIZED_IS_INITIALIZED:
+ }
+ // Should never happen. Generates tight code to throw an exception.
+ throw null;
+ }
+
+
+ // @@protoc_insertion_point(class_scope:viam.robot.v1.PackageStatus)
+ private static final com.viam.robot.v1.Robot.PackageStatus DEFAULT_INSTANCE;
+ static {
+ PackageStatus defaultInstance = new PackageStatus();
+ // New instances are implicitly immutable so no need to make
+ // immutable.
+ DEFAULT_INSTANCE = defaultInstance;
+ com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
+ PackageStatus.class, defaultInstance);
+ }
+
+ public static com.viam.robot.v1.Robot.PackageStatus getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static volatile com.google.protobuf.Parser PARSER;
+
+ public static com.google.protobuf.Parser parser() {
+ return DEFAULT_INSTANCE.getParserForType();
+ }
+ }
+
public interface ConfigStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:viam.robot.v1.ConfigStatus)
com.google.protobuf.MessageLiteOrBuilder {
diff --git a/core/sdk/src/main/gen/viam/app/v1/AppOuterClass.java b/core/sdk/src/main/gen/viam/app/v1/AppOuterClass.java
index b8589a69f..b112961ba 100644
--- a/core/sdk/src/main/gen/viam/app/v1/AppOuterClass.java
+++ b/core/sdk/src/main/gen/viam/app/v1/AppOuterClass.java
@@ -89603,6 +89603,35 @@ public interface ModuleVersionOrBuilder extends
* @return The deprecatedStatus.
*/
viam.app.v1.AppOuterClass.DeprecatedStatus getDeprecatedStatus();
+
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return Whether the minViamServerVersion field is set.
+ */
+ boolean hasMinViamServerVersion();
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return The minViamServerVersion.
+ */
+ java.lang.String getMinViamServerVersion();
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return The bytes for minViamServerVersion.
+ */
+ com.google.protobuf.ByteString
+ getMinViamServerVersionBytes();
}
/**
* Protobuf type {@code viam.app.v1.ModuleVersion}
@@ -89620,6 +89649,7 @@ private ModuleVersion() {
firstRun_ = "";
markdownDescription_ = "";
apps_ = emptyProtobufList();
+ minViamServerVersion_ = "";
}
private int bitField0_;
public static final int VERSION_FIELD_NUMBER = 1;
@@ -90409,6 +90439,86 @@ private void clearDeprecatedStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
}
+ public static final int MIN_VIAM_SERVER_VERSION_FIELD_NUMBER = 9;
+ private java.lang.String minViamServerVersion_;
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return Whether the minViamServerVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasMinViamServerVersion() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return The minViamServerVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getMinViamServerVersion() {
+ return minViamServerVersion_;
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return The bytes for minViamServerVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMinViamServerVersionBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(minViamServerVersion_);
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @param value The minViamServerVersion to set.
+ */
+ @java.lang.SuppressWarnings("ReturnValueIgnored")
+ private void setMinViamServerVersion(
+ java.lang.String value) {
+ value.getClass(); // minimal bytecode null check
+ bitField0_ |= 0x00000008;
+ minViamServerVersion_ = value;
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ */
+ private void clearMinViamServerVersion() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ minViamServerVersion_ = getDefaultInstance().getMinViamServerVersion();
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @param value The bytes for minViamServerVersion to set.
+ */
+ private void setMinViamServerVersionBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ minViamServerVersion_ = value.toStringUtf8();
+ bitField0_ |= 0x00000008;
+ }
+
public static viam.app.v1.AppOuterClass.ModuleVersion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -91327,6 +91437,87 @@ public Builder mergeDeprecatedStatus(viam.app.v1.AppOuterClass.DeprecatedStatus
return this;
}
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return Whether the minViamServerVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasMinViamServerVersion() {
+ return instance.hasMinViamServerVersion();
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return The minViamServerVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getMinViamServerVersion() {
+ return instance.getMinViamServerVersion();
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return The bytes for minViamServerVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMinViamServerVersionBytes() {
+ return instance.getMinViamServerVersionBytes();
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @param value The minViamServerVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinViamServerVersion(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setMinViamServerVersion(value);
+ return this;
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return This builder for chaining.
+ */
+ public Builder clearMinViamServerVersion() {
+ copyOnWrite();
+ instance.clearMinViamServerVersion();
+ return this;
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run this version of the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @param value The bytes for minViamServerVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinViamServerVersionBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setMinViamServerVersionBytes(value);
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:viam.app.v1.ModuleVersion)
}
@java.lang.Override
@@ -91355,10 +91546,12 @@ protected final java.lang.Object dynamicMethod(
"apps_",
viam.app.v1.AppOuterClass.App.class,
"deprecatedStatus_",
+ "minViamServerVersion_",
};
java.lang.String info =
- "\u0000\b\u0000\u0001\u0001\b\b\u0000\u0003\u0000\u0001\u0208\u0002\u001b\u0003\u001b" +
- "\u0004\u0208\u0005\u1208\u0000\u0006\u1208\u0001\u0007\u001b\b\u1009\u0002";
+ "\u0000\t\u0000\u0001\u0001\t\t\u0000\u0003\u0000\u0001\u0208\u0002\u001b\u0003\u001b" +
+ "\u0004\u0208\u0005\u1208\u0000\u0006\u1208\u0001\u0007\u001b\b\u1009\u0002\t\u1208" +
+ "\u0003";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
case GET_DEFAULT_INSTANCE: {
@@ -91631,6 +91824,35 @@ public interface ModuleMetadataOrBuilder extends
* @return The language.
*/
viam.app.v1.AppOuterClass.ModuleLanguage getLanguage();
+
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return Whether the minViamServerVersion field is set.
+ */
+ boolean hasMinViamServerVersion();
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return The minViamServerVersion.
+ */
+ java.lang.String getMinViamServerVersion();
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return The bytes for minViamServerVersion.
+ */
+ com.google.protobuf.ByteString
+ getMinViamServerVersionBytes();
}
/**
* Protobuf type {@code viam.app.v1.ModuleMetadata}
@@ -91647,6 +91869,7 @@ private ModuleMetadata() {
firstRun_ = "";
markdownDescription_ = "";
apps_ = emptyProtobufList();
+ minViamServerVersion_ = "";
}
private int bitField0_;
public static final int MODELS_FIELD_NUMBER = 1;
@@ -92461,6 +92684,86 @@ private void clearLanguage() {
language_ = 0;
}
+ public static final int MIN_VIAM_SERVER_VERSION_FIELD_NUMBER = 9;
+ private java.lang.String minViamServerVersion_;
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return Whether the minViamServerVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasMinViamServerVersion() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return The minViamServerVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getMinViamServerVersion() {
+ return minViamServerVersion_;
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return The bytes for minViamServerVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMinViamServerVersionBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(minViamServerVersion_);
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @param value The minViamServerVersion to set.
+ */
+ @java.lang.SuppressWarnings("ReturnValueIgnored")
+ private void setMinViamServerVersion(
+ java.lang.String value) {
+ value.getClass(); // minimal bytecode null check
+ bitField0_ |= 0x00000010;
+ minViamServerVersion_ = value;
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ */
+ private void clearMinViamServerVersion() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ minViamServerVersion_ = getDefaultInstance().getMinViamServerVersion();
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @param value The bytes for minViamServerVersion to set.
+ */
+ private void setMinViamServerVersionBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ minViamServerVersion_ = value.toStringUtf8();
+ bitField0_ |= 0x00000010;
+ }
+
public static viam.app.v1.AppOuterClass.ModuleMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -93409,6 +93712,87 @@ public Builder clearLanguage() {
return this;
}
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return Whether the minViamServerVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasMinViamServerVersion() {
+ return instance.hasMinViamServerVersion();
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return The minViamServerVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getMinViamServerVersion() {
+ return instance.getMinViamServerVersion();
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return The bytes for minViamServerVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMinViamServerVersionBytes() {
+ return instance.getMinViamServerVersionBytes();
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @param value The minViamServerVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinViamServerVersion(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setMinViamServerVersion(value);
+ return this;
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @return This builder for chaining.
+ */
+ public Builder clearMinViamServerVersion() {
+ copyOnWrite();
+ instance.clearMinViamServerVersion();
+ return this;
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 9 [json_name = "minViamServerVersion"];
+ * @param value The bytes for minViamServerVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinViamServerVersionBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setMinViamServerVersionBytes(value);
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:viam.app.v1.ModuleMetadata)
}
@java.lang.Override
@@ -93437,11 +93821,12 @@ protected final java.lang.Object dynamicMethod(
viam.app.v1.AppOuterClass.App.class,
"sourceType_",
"language_",
+ "minViamServerVersion_",
};
java.lang.String info =
- "\u0000\b\u0000\u0001\u0001\b\b\u0000\u0003\u0000\u0001\u001b\u0002\u001b\u0003\u0208" +
+ "\u0000\t\u0000\u0001\u0001\t\t\u0000\u0003\u0000\u0001\u001b\u0002\u001b\u0003\u0208" +
"\u0004\u1208\u0000\u0005\u1208\u0001\u0006\u001b\u0007\u100c\u0002\b\u100c\u0003" +
- "";
+ "\t\u1208\u0004";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
case GET_DEFAULT_INSTANCE: {
@@ -93912,7 +94297,7 @@ public interface MLModelMetadataOrBuilder extends
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @return A list containing the versions.
*/
@java.lang.Deprecated java.util.List
@@ -93924,7 +94309,7 @@ public interface MLModelMetadataOrBuilder extends
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @return The count of versions.
*/
@java.lang.Deprecated int getVersionsCount();
@@ -93935,7 +94320,7 @@ public interface MLModelMetadataOrBuilder extends
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @param index The index of the element to return.
* @return The versions at the given index.
*/
@@ -93947,7 +94332,7 @@ public interface MLModelMetadataOrBuilder extends
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @param index The index of the element to return.
* @return The versions at the given index.
*/
@@ -94011,7 +94396,7 @@ private MLModelMetadata() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @return A list containing the versions.
*/
@java.lang.Override
@@ -94025,7 +94410,7 @@ private MLModelMetadata() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @return The count of versions.
*/
@java.lang.Override
@@ -94039,7 +94424,7 @@ private MLModelMetadata() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @param index The index of the element to return.
* @return The versions at the given index.
*/
@@ -94054,7 +94439,7 @@ private MLModelMetadata() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @param index The index of the value to return.
* @return The bytes of the versions at the given index.
*/
@@ -94428,7 +94813,7 @@ private Builder() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @return A list containing the versions.
*/
@java.lang.Override
@@ -94444,7 +94829,7 @@ private Builder() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @return The count of versions.
*/
@java.lang.Override
@@ -94458,7 +94843,7 @@ private Builder() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @param index The index of the element to return.
* @return The versions at the given index.
*/
@@ -94473,7 +94858,7 @@ private Builder() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @param index The index of the value to return.
* @return The bytes of the versions at the given index.
*/
@@ -94489,7 +94874,7 @@ private Builder() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @param index The index to set the value at.
* @param value The versions to set.
* @return This builder for chaining.
@@ -94507,7 +94892,7 @@ private Builder() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @param value The versions to add.
* @return This builder for chaining.
*/
@@ -94524,7 +94909,7 @@ private Builder() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @param values The versions to add.
* @return This builder for chaining.
*/
@@ -94541,7 +94926,7 @@ private Builder() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearVersions() {
@@ -94556,7 +94941,7 @@ private Builder() {
*
* repeated string versions = 1 [json_name = "versions", deprecated = true];
* @deprecated viam.app.v1.MLModelMetadata.versions is deprecated.
- * See app/v1/app.proto;l=1463
+ * See app/v1/app.proto;l=1467
* @param value The bytes of the versions to add.
* @return This builder for chaining.
*/
@@ -114831,6 +115216,35 @@ public interface UpdateModuleMetadataOrBuilder extends
* @return The language.
*/
viam.app.v1.AppOuterClass.ModuleLanguage getLanguage();
+
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @return Whether the minViamServerVersion field is set.
+ */
+ boolean hasMinViamServerVersion();
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @return The minViamServerVersion.
+ */
+ java.lang.String getMinViamServerVersion();
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @return The bytes for minViamServerVersion.
+ */
+ com.google.protobuf.ByteString
+ getMinViamServerVersionBytes();
}
/**
* Protobuf type {@code viam.app.v1.UpdateModuleMetadata}
@@ -114844,6 +115258,7 @@ private UpdateModuleMetadata() {
models_ = emptyProtobufList();
entrypoint_ = "";
apps_ = emptyProtobufList();
+ minViamServerVersion_ = "";
}
private int bitField0_;
public static final int MODELS_FIELD_NUMBER = 1;
@@ -115346,6 +115761,86 @@ private void clearLanguage() {
language_ = 0;
}
+ public static final int MIN_VIAM_SERVER_VERSION_FIELD_NUMBER = 6;
+ private java.lang.String minViamServerVersion_;
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @return Whether the minViamServerVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasMinViamServerVersion() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @return The minViamServerVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getMinViamServerVersion() {
+ return minViamServerVersion_;
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @return The bytes for minViamServerVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMinViamServerVersionBytes() {
+ return com.google.protobuf.ByteString.copyFromUtf8(minViamServerVersion_);
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @param value The minViamServerVersion to set.
+ */
+ @java.lang.SuppressWarnings("ReturnValueIgnored")
+ private void setMinViamServerVersion(
+ java.lang.String value) {
+ value.getClass(); // minimal bytecode null check
+ bitField0_ |= 0x00000004;
+ minViamServerVersion_ = value;
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ */
+ private void clearMinViamServerVersion() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ minViamServerVersion_ = getDefaultInstance().getMinViamServerVersion();
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @param value The bytes for minViamServerVersion to set.
+ */
+ private void setMinViamServerVersionBytes(
+ com.google.protobuf.ByteString value) {
+ checkByteStringIsUtf8(value);
+ minViamServerVersion_ = value.toStringUtf8();
+ bitField0_ |= 0x00000004;
+ }
+
public static viam.app.v1.AppOuterClass.UpdateModuleMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -115970,6 +116465,87 @@ public Builder clearLanguage() {
return this;
}
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @return Whether the minViamServerVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasMinViamServerVersion() {
+ return instance.hasMinViamServerVersion();
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @return The minViamServerVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getMinViamServerVersion() {
+ return instance.getMinViamServerVersion();
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @return The bytes for minViamServerVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMinViamServerVersionBytes() {
+ return instance.getMinViamServerVersionBytes();
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @param value The minViamServerVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinViamServerVersion(
+ java.lang.String value) {
+ copyOnWrite();
+ instance.setMinViamServerVersion(value);
+ return this;
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @return This builder for chaining.
+ */
+ public Builder clearMinViamServerVersion() {
+ copyOnWrite();
+ instance.clearMinViamServerVersion();
+ return this;
+ }
+ /**
+ *
+ * The minimum version of viam-server required to run the module.
+ *
+ *
+ * optional string min_viam_server_version = 6 [json_name = "minViamServerVersion"];
+ * @param value The bytes for minViamServerVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinViamServerVersionBytes(
+ com.google.protobuf.ByteString value) {
+ copyOnWrite();
+ instance.setMinViamServerVersionBytes(value);
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:viam.app.v1.UpdateModuleMetadata)
}
@java.lang.Override
@@ -115994,10 +116570,11 @@ protected final java.lang.Object dynamicMethod(
viam.app.v1.AppOuterClass.App.class,
"sourceType_",
"language_",
+ "minViamServerVersion_",
};
java.lang.String info =
- "\u0000\u0005\u0000\u0001\u0001\u0005\u0005\u0000\u0002\u0000\u0001\u001b\u0002\u0208" +
- "\u0003\u001b\u0004\u100c\u0000\u0005\u100c\u0001";
+ "\u0000\u0006\u0000\u0001\u0001\u0006\u0006\u0000\u0002\u0000\u0001\u001b\u0002\u0208" +
+ "\u0003\u001b\u0004\u100c\u0000\u0005\u100c\u0001\u0006\u1208\u0002";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
case GET_DEFAULT_INSTANCE: {
diff --git a/core/sdk/src/main/resources/protofds/viam.api b/core/sdk/src/main/resources/protofds/viam.api
index 3a4e6fa3e..221f8f20c 100644
Binary files a/core/sdk/src/main/resources/protofds/viam.api and b/core/sdk/src/main/resources/protofds/viam.api differ