Skip to content

APP-8055 add optional field to verify last known update for updating robot parts and fragments #670

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

Merged
merged 2 commits into from
Apr 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,601 changes: 2,316 additions & 2,285 deletions app/v1/app.pb.go

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions gen/js/app/v1/app_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2429,6 +2429,11 @@ export class UpdateRobotPartRequest extends jspb.Message {
getRobotConfig(): google_protobuf_struct_pb.Struct | undefined;
setRobotConfig(value?: google_protobuf_struct_pb.Struct): void;

hasLastKnownUpdate(): boolean;
clearLastKnownUpdate(): void;
getLastKnownUpdate(): google_protobuf_timestamp_pb.Timestamp | undefined;
setLastKnownUpdate(value?: google_protobuf_timestamp_pb.Timestamp): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateRobotPartRequest.AsObject;
static toObject(includeInstance: boolean, msg: UpdateRobotPartRequest): UpdateRobotPartRequest.AsObject;
Expand All @@ -2444,6 +2449,7 @@ export namespace UpdateRobotPartRequest {
id: string,
name: string,
robotConfig?: google_protobuf_struct_pb.Struct.AsObject,
lastKnownUpdate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}

Expand Down Expand Up @@ -3191,6 +3197,11 @@ export class UpdateFragmentRequest extends jspb.Message {
getVisibility(): FragmentVisibilityMap[keyof FragmentVisibilityMap];
setVisibility(value: FragmentVisibilityMap[keyof FragmentVisibilityMap]): void;

hasLastKnownUpdate(): boolean;
clearLastKnownUpdate(): void;
getLastKnownUpdate(): google_protobuf_timestamp_pb.Timestamp | undefined;
setLastKnownUpdate(value?: google_protobuf_timestamp_pb.Timestamp): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateFragmentRequest.AsObject;
static toObject(includeInstance: boolean, msg: UpdateFragmentRequest): UpdateFragmentRequest.AsObject;
Expand All @@ -3208,6 +3219,7 @@ export namespace UpdateFragmentRequest {
config?: google_protobuf_struct_pb.Struct.AsObject,
pb_public: boolean,
visibility: FragmentVisibilityMap[keyof FragmentVisibilityMap],
lastKnownUpdate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}

Expand Down
106 changes: 104 additions & 2 deletions gen/js/app/v1/app_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -22454,7 +22454,8 @@ proto.viam.app.v1.UpdateRobotPartRequest.toObject = function(includeInstance, ms
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
robotConfig: (f = msg.getRobotConfig()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
robotConfig: (f = msg.getRobotConfig()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
lastKnownUpdate: (f = msg.getLastKnownUpdate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
};

if (includeInstance) {
Expand Down Expand Up @@ -22504,6 +22505,11 @@ proto.viam.app.v1.UpdateRobotPartRequest.deserializeBinaryFromReader = function(
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setRobotConfig(value);
break;
case 4:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setLastKnownUpdate(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -22555,6 +22561,14 @@ proto.viam.app.v1.UpdateRobotPartRequest.serializeBinaryToWriter = function(mess
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
f = message.getLastKnownUpdate();
if (f != null) {
writer.writeMessage(
4,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
};


Expand Down Expand Up @@ -22631,6 +22645,43 @@ proto.viam.app.v1.UpdateRobotPartRequest.prototype.hasRobotConfig = function() {
};


/**
* optional google.protobuf.Timestamp last_known_update = 4;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.viam.app.v1.UpdateRobotPartRequest.prototype.getLastKnownUpdate = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
};


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


/**
* Clears the message field making it undefined.
* @return {!proto.viam.app.v1.UpdateRobotPartRequest} returns this
*/
proto.viam.app.v1.UpdateRobotPartRequest.prototype.clearLastKnownUpdate = function() {
return this.setLastKnownUpdate(undefined);
};


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





Expand Down Expand Up @@ -27775,7 +27826,8 @@ proto.viam.app.v1.UpdateFragmentRequest.toObject = function(includeInstance, msg
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
config: (f = msg.getConfig()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
pb_public: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
visibility: jspb.Message.getFieldWithDefault(msg, 5, 0)
visibility: jspb.Message.getFieldWithDefault(msg, 5, 0),
lastKnownUpdate: (f = msg.getLastKnownUpdate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
};

if (includeInstance) {
Expand Down Expand Up @@ -27833,6 +27885,11 @@ proto.viam.app.v1.UpdateFragmentRequest.deserializeBinaryFromReader = function(m
var value = /** @type {!proto.viam.app.v1.FragmentVisibility} */ (reader.readEnum());
msg.setVisibility(value);
break;
case 6:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setLastKnownUpdate(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -27898,6 +27955,14 @@ proto.viam.app.v1.UpdateFragmentRequest.serializeBinaryToWriter = function(messa
f
);
}
f = message.getLastKnownUpdate();
if (f != null) {
writer.writeMessage(
6,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
};


Expand Down Expand Up @@ -28046,6 +28111,43 @@ proto.viam.app.v1.UpdateFragmentRequest.prototype.hasVisibility = function() {
};


/**
* optional google.protobuf.Timestamp last_known_update = 6;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.viam.app.v1.UpdateFragmentRequest.prototype.getLastKnownUpdate = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
};


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


/**
* Clears the message field making it undefined.
* @return {!proto.viam.app.v1.UpdateFragmentRequest} returns this
*/
proto.viam.app.v1.UpdateFragmentRequest.prototype.clearLastKnownUpdate = function() {
return this.setLastKnownUpdate(undefined);
};


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





Expand Down
25 changes: 25 additions & 0 deletions gen/js/google/rpc/error_details_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,25 @@ export namespace QuotaFailure {
getDescription(): string;
setDescription(value: string): void;

getApiService(): string;
setApiService(value: string): void;

getQuotaMetric(): string;
setQuotaMetric(value: string): void;

getQuotaId(): string;
setQuotaId(value: string): void;

getQuotaDimensionsMap(): jspb.Map<string, string>;
clearQuotaDimensionsMap(): void;
getQuotaValue(): number;
setQuotaValue(value: number): void;

hasFutureQuotaValue(): boolean;
clearFutureQuotaValue(): void;
getFutureQuotaValue(): number;
setFutureQuotaValue(value: number): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Violation.AsObject;
static toObject(includeInstance: boolean, msg: Violation): Violation.AsObject;
Expand All @@ -121,6 +140,12 @@ export namespace QuotaFailure {
export type AsObject = {
subject: string,
description: string,
apiService: string,
quotaMetric: string,
quotaId: string,
quotaDimensionsMap: Array<[string, string]>,
quotaValue: number,
futureQuotaValue: number,
}
}
}
Expand Down
Loading
Loading