Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DATA-1109 - Add training start time to metadata #394

Merged
merged 10 commits into from
Nov 10, 2023
Merged
227 changes: 130 additions & 97 deletions app/mltraining/v1/ml_training.pb.go

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions component/audioinput/v1/audioinput.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions component/encoder/v1/encoder.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions component/posetracker/v1/pose_tracker.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions gen/js/app/mltraining/v1/ml_training_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,16 @@ export class TrainingJobMetadata extends jspb.Message {
getErrorStatus(): google_rpc_status_pb.Status | undefined;
setErrorStatus(value?: google_rpc_status_pb.Status): void;

hasTrainingStarted(): boolean;
clearTrainingStarted(): void;
getTrainingStarted(): google_protobuf_timestamp_pb.Timestamp | undefined;
setTrainingStarted(value?: google_protobuf_timestamp_pb.Timestamp): void;

hasTrainingEnded(): boolean;
clearTrainingEnded(): void;
getTrainingEnded(): google_protobuf_timestamp_pb.Timestamp | undefined;
setTrainingEnded(value?: google_protobuf_timestamp_pb.Timestamp): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): TrainingJobMetadata.AsObject;
static toObject(includeInstance: boolean, msg: TrainingJobMetadata): TrainingJobMetadata.AsObject;
Expand All @@ -212,6 +222,8 @@ export namespace TrainingJobMetadata {
syncedModelId: string,
id: string,
errorStatus?: google_rpc_status_pb.Status.AsObject,
trainingStarted?: google_protobuf_timestamp_pb.Timestamp.AsObject,
trainingEnded?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}

Expand Down
104 changes: 103 additions & 1 deletion gen/js/app/mltraining/v1/ml_training_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,9 @@ proto.viam.app.mltraining.v1.TrainingJobMetadata.toObject = function(includeInst
lastModified: (f = msg.getLastModified()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
syncedModelId: jspb.Message.getFieldWithDefault(msg, 5, ""),
id: jspb.Message.getFieldWithDefault(msg, 7, ""),
errorStatus: (f = msg.getErrorStatus()) && google_rpc_status_pb.Status.toObject(includeInstance, f)
errorStatus: (f = msg.getErrorStatus()) && google_rpc_status_pb.Status.toObject(includeInstance, f),
trainingStarted: (f = msg.getTrainingStarted()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
trainingEnded: (f = msg.getTrainingEnded()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
};

if (includeInstance) {
Expand Down Expand Up @@ -1462,6 +1464,16 @@ proto.viam.app.mltraining.v1.TrainingJobMetadata.deserializeBinaryFromReader = f
reader.readMessage(value,google_rpc_status_pb.Status.deserializeBinaryFromReader);
msg.setErrorStatus(value);
break;
case 9:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setTrainingStarted(value);
break;
case 10:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setTrainingEnded(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -1544,6 +1556,22 @@ proto.viam.app.mltraining.v1.TrainingJobMetadata.serializeBinaryToWriter = funct
google_rpc_status_pb.Status.serializeBinaryToWriter
);
}
f = message.getTrainingStarted();
if (f != null) {
writer.writeMessage(
9,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
f = message.getTrainingEnded();
if (f != null) {
writer.writeMessage(
10,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
};


Expand Down Expand Up @@ -1749,6 +1777,80 @@ proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.hasErrorStatus = func
};


/**
* optional google.protobuf.Timestamp training_started = 9;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.getTrainingStarted = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
};


/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.viam.app.mltraining.v1.TrainingJobMetadata} returns this
*/
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.setTrainingStarted = function(value) {
return jspb.Message.setWrapperField(this, 9, value);
};


/**
* Clears the message field making it undefined.
* @return {!proto.viam.app.mltraining.v1.TrainingJobMetadata} returns this
*/
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.clearTrainingStarted = function() {
return this.setTrainingStarted(undefined);
};


/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.hasTrainingStarted = function() {
return jspb.Message.getField(this, 9) != null;
};


/**
* optional google.protobuf.Timestamp training_ended = 10;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.getTrainingEnded = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
};


/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.viam.app.mltraining.v1.TrainingJobMetadata} returns this
*/
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.setTrainingEnded = function(value) {
return jspb.Message.setWrapperField(this, 10, value);
};


/**
* Clears the message field making it undefined.
* @return {!proto.viam.app.mltraining.v1.TrainingJobMetadata} returns this
*/
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.clearTrainingEnded = function() {
return this.setTrainingEnded(undefined);
};


/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.hasTrainingEnded = function() {
return jspb.Message.getField(this, 10) != null;
};





Expand Down
2 changes: 2 additions & 0 deletions proto/viam/app/mltraining/v1/ml_training.proto
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ message TrainingJobMetadata {
string synced_model_id = 5 [(tagger.v1.tags) = "bson:\"synced_model_id\" json:\"synced_model_id\""];
string id = 7 [(tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""];
google.rpc.Status error_status = 8 [(tagger.v1.tags) = "bson:\"error_status\" json:\"error_status\""];
google.protobuf.Timestamp training_started = 9 [(tagger.v1.tags) = "bson:\"training_started\" json:\"training_started\""];
google.protobuf.Timestamp training_ended = 10 [(tagger.v1.tags) = "bson:\"training_ended\" json:\"training_ended\""];

reserved 6;
reserved "user_email";
Expand Down
6 changes: 3 additions & 3 deletions service/motion/v1/motion.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions service/navigation/v1/navigation.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading