Skip to content

Commit

Permalink
Revert machine part id (#482)
Browse files Browse the repository at this point in the history
Co-authored-by: abe-winter <[email protected]>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 18, 2024
1 parent c9e5314 commit 274901d
Show file tree
Hide file tree
Showing 13 changed files with 272 additions and 340 deletions.
477 changes: 232 additions & 245 deletions common/v1/common.pb.go

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions component/camera/v1/camera.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/gripper/v1/gripper.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/powersensor/v1/powersensor.pb.gw.go

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

14 changes: 7 additions & 7 deletions component/sensor/v1/sensor.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/servo/v1/servo.pb.gw.go

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

6 changes: 0 additions & 6 deletions gen/js/common/v1/common_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ export class ResourceName extends jspb.Message {
getName(): string;
setName(value: string): void;

hasMachinePartId(): boolean;
clearMachinePartId(): void;
getMachinePartId(): string;
setMachinePartId(value: string): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ResourceName.AsObject;
static toObject(includeInstance: boolean, msg: ResourceName): ResourceName.AsObject;
Expand All @@ -40,7 +35,6 @@ export namespace ResourceName {
type: string,
subtype: string,
name: string,
machinePartId: string,
}
}

Expand Down
50 changes: 1 addition & 49 deletions gen/js/common/v1/common_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,7 @@ proto.viam.common.v1.ResourceName.toObject = function(includeInstance, msg) {
namespace: jspb.Message.getFieldWithDefault(msg, 1, ""),
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
subtype: jspb.Message.getFieldWithDefault(msg, 3, ""),
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
machinePartId: jspb.Message.getFieldWithDefault(msg, 5, "")
name: jspb.Message.getFieldWithDefault(msg, 4, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -751,10 +750,6 @@ proto.viam.common.v1.ResourceName.deserializeBinaryFromReader = function(msg, re
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setMachinePartId(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -812,13 +807,6 @@ proto.viam.common.v1.ResourceName.serializeBinaryToWriter = function(message, wr
f
);
}
f = /** @type {string} */ (jspb.Message.getField(message, 5));
if (f != null) {
writer.writeString(
5,
f
);
}
};


Expand Down Expand Up @@ -894,42 +882,6 @@ proto.viam.common.v1.ResourceName.prototype.setName = function(value) {
};


/**
* optional string machine_part_id = 5;
* @return {string}
*/
proto.viam.common.v1.ResourceName.prototype.getMachinePartId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};


/**
* @param {string} value
* @return {!proto.viam.common.v1.ResourceName} returns this
*/
proto.viam.common.v1.ResourceName.prototype.setMachinePartId = function(value) {
return jspb.Message.setField(this, 5, value);
};


/**
* Clears the field making it undefined.
* @return {!proto.viam.common.v1.ResourceName} returns this
*/
proto.viam.common.v1.ResourceName.prototype.clearMachinePartId = function() {
return jspb.Message.setField(this, 5, undefined);
};


/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.viam.common.v1.ResourceName.prototype.hasMachinePartId = function() {
return jspb.Message.getField(this, 5) != null;
};





Expand Down
1 change: 0 additions & 1 deletion proto/viam/common/v1/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ message ResourceName {
string type = 2;
string subtype = 3;
string name = 4;
optional string machine_part_id = 5;
}

message BoardStatus {
Expand Down
6 changes: 3 additions & 3 deletions service/datamanager/v1/data_manager.pb.gw.go

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

Loading

0 comments on commit 274901d

Please sign in to comment.