Skip to content

Commit 020985a

Browse files
DATA-1109 - Add training start time to metadata (#394)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 825c128 commit 020985a

File tree

9 files changed

+268
-119
lines changed

9 files changed

+268
-119
lines changed

app/mltraining/v1/ml_training.pb.go

Lines changed: 130 additions & 97 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

component/audioinput/v1/audioinput.pb.gw.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

component/encoder/v1/encoder.pb.gw.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

component/posetracker/v1/pose_tracker.pb.gw.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/js/app/mltraining/v1/ml_training_pb.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,16 @@ export class TrainingJobMetadata extends jspb.Message {
193193
getErrorStatus(): google_rpc_status_pb.Status | undefined;
194194
setErrorStatus(value?: google_rpc_status_pb.Status): void;
195195

196+
hasTrainingStarted(): boolean;
197+
clearTrainingStarted(): void;
198+
getTrainingStarted(): google_protobuf_timestamp_pb.Timestamp | undefined;
199+
setTrainingStarted(value?: google_protobuf_timestamp_pb.Timestamp): void;
200+
201+
hasTrainingEnded(): boolean;
202+
clearTrainingEnded(): void;
203+
getTrainingEnded(): google_protobuf_timestamp_pb.Timestamp | undefined;
204+
setTrainingEnded(value?: google_protobuf_timestamp_pb.Timestamp): void;
205+
196206
serializeBinary(): Uint8Array;
197207
toObject(includeInstance?: boolean): TrainingJobMetadata.AsObject;
198208
static toObject(includeInstance: boolean, msg: TrainingJobMetadata): TrainingJobMetadata.AsObject;
@@ -212,6 +222,8 @@ export namespace TrainingJobMetadata {
212222
syncedModelId: string,
213223
id: string,
214224
errorStatus?: google_rpc_status_pb.Status.AsObject,
225+
trainingStarted?: google_protobuf_timestamp_pb.Timestamp.AsObject,
226+
trainingEnded?: google_protobuf_timestamp_pb.Timestamp.AsObject,
215227
}
216228
}
217229

gen/js/app/mltraining/v1/ml_training_pb.js

Lines changed: 103 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,9 @@ proto.viam.app.mltraining.v1.TrainingJobMetadata.toObject = function(includeInst
13931393
lastModified: (f = msg.getLastModified()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
13941394
syncedModelId: jspb.Message.getFieldWithDefault(msg, 5, ""),
13951395
id: jspb.Message.getFieldWithDefault(msg, 7, ""),
1396-
errorStatus: (f = msg.getErrorStatus()) && google_rpc_status_pb.Status.toObject(includeInstance, f)
1396+
errorStatus: (f = msg.getErrorStatus()) && google_rpc_status_pb.Status.toObject(includeInstance, f),
1397+
trainingStarted: (f = msg.getTrainingStarted()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1398+
trainingEnded: (f = msg.getTrainingEnded()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
13971399
};
13981400

13991401
if (includeInstance) {
@@ -1462,6 +1464,16 @@ proto.viam.app.mltraining.v1.TrainingJobMetadata.deserializeBinaryFromReader = f
14621464
reader.readMessage(value,google_rpc_status_pb.Status.deserializeBinaryFromReader);
14631465
msg.setErrorStatus(value);
14641466
break;
1467+
case 9:
1468+
var value = new google_protobuf_timestamp_pb.Timestamp;
1469+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1470+
msg.setTrainingStarted(value);
1471+
break;
1472+
case 10:
1473+
var value = new google_protobuf_timestamp_pb.Timestamp;
1474+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1475+
msg.setTrainingEnded(value);
1476+
break;
14651477
default:
14661478
reader.skipField();
14671479
break;
@@ -1544,6 +1556,22 @@ proto.viam.app.mltraining.v1.TrainingJobMetadata.serializeBinaryToWriter = funct
15441556
google_rpc_status_pb.Status.serializeBinaryToWriter
15451557
);
15461558
}
1559+
f = message.getTrainingStarted();
1560+
if (f != null) {
1561+
writer.writeMessage(
1562+
9,
1563+
f,
1564+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1565+
);
1566+
}
1567+
f = message.getTrainingEnded();
1568+
if (f != null) {
1569+
writer.writeMessage(
1570+
10,
1571+
f,
1572+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1573+
);
1574+
}
15471575
};
15481576

15491577

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

17511779

1780+
/**
1781+
* optional google.protobuf.Timestamp training_started = 9;
1782+
* @return {?proto.google.protobuf.Timestamp}
1783+
*/
1784+
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.getTrainingStarted = function() {
1785+
return /** @type{?proto.google.protobuf.Timestamp} */ (
1786+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
1787+
};
1788+
1789+
1790+
/**
1791+
* @param {?proto.google.protobuf.Timestamp|undefined} value
1792+
* @return {!proto.viam.app.mltraining.v1.TrainingJobMetadata} returns this
1793+
*/
1794+
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.setTrainingStarted = function(value) {
1795+
return jspb.Message.setWrapperField(this, 9, value);
1796+
};
1797+
1798+
1799+
/**
1800+
* Clears the message field making it undefined.
1801+
* @return {!proto.viam.app.mltraining.v1.TrainingJobMetadata} returns this
1802+
*/
1803+
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.clearTrainingStarted = function() {
1804+
return this.setTrainingStarted(undefined);
1805+
};
1806+
1807+
1808+
/**
1809+
* Returns whether this field is set.
1810+
* @return {boolean}
1811+
*/
1812+
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.hasTrainingStarted = function() {
1813+
return jspb.Message.getField(this, 9) != null;
1814+
};
1815+
1816+
1817+
/**
1818+
* optional google.protobuf.Timestamp training_ended = 10;
1819+
* @return {?proto.google.protobuf.Timestamp}
1820+
*/
1821+
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.getTrainingEnded = function() {
1822+
return /** @type{?proto.google.protobuf.Timestamp} */ (
1823+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
1824+
};
1825+
1826+
1827+
/**
1828+
* @param {?proto.google.protobuf.Timestamp|undefined} value
1829+
* @return {!proto.viam.app.mltraining.v1.TrainingJobMetadata} returns this
1830+
*/
1831+
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.setTrainingEnded = function(value) {
1832+
return jspb.Message.setWrapperField(this, 10, value);
1833+
};
1834+
1835+
1836+
/**
1837+
* Clears the message field making it undefined.
1838+
* @return {!proto.viam.app.mltraining.v1.TrainingJobMetadata} returns this
1839+
*/
1840+
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.clearTrainingEnded = function() {
1841+
return this.setTrainingEnded(undefined);
1842+
};
1843+
1844+
1845+
/**
1846+
* Returns whether this field is set.
1847+
* @return {boolean}
1848+
*/
1849+
proto.viam.app.mltraining.v1.TrainingJobMetadata.prototype.hasTrainingEnded = function() {
1850+
return jspb.Message.getField(this, 10) != null;
1851+
};
1852+
1853+
17521854

17531855

17541856

proto/viam/app/mltraining/v1/ml_training.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ message TrainingJobMetadata {
8282
string synced_model_id = 5 [(tagger.v1.tags) = "bson:\"synced_model_id\" json:\"synced_model_id\""];
8383
string id = 7 [(tagger.v1.tags) = "bson:\"_id\" json:\"id,omitempty\""];
8484
google.rpc.Status error_status = 8 [(tagger.v1.tags) = "bson:\"error_status\" json:\"error_status\""];
85+
google.protobuf.Timestamp training_started = 9 [(tagger.v1.tags) = "bson:\"training_started\" json:\"training_started\""];
86+
google.protobuf.Timestamp training_ended = 10 [(tagger.v1.tags) = "bson:\"training_ended\" json:\"training_ended\""];
8587

8688
reserved 6;
8789
reserved "user_email";

service/motion/v1/motion.pb.gw.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

service/navigation/v1/navigation.pb.gw.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)