Skip to content

Commit 274901d

Browse files
cheuktabe-wintergithub-actions[bot]
authored
Revert machine part id (#482)
Co-authored-by: abe-winter <[email protected]> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent c9e5314 commit 274901d

File tree

13 files changed

+272
-340
lines changed

13 files changed

+272
-340
lines changed

common/v1/common.pb.go

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

component/camera/v1/camera.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/gripper/v1/gripper.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/powersensor/v1/powersensor.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/sensor/v1/sensor.pb.gw.go

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

component/servo/v1/servo.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/common/v1/common_pb.d.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ export class ResourceName extends jspb.Message {
1919
getName(): string;
2020
setName(value: string): void;
2121

22-
hasMachinePartId(): boolean;
23-
clearMachinePartId(): void;
24-
getMachinePartId(): string;
25-
setMachinePartId(value: string): void;
26-
2722
serializeBinary(): Uint8Array;
2823
toObject(includeInstance?: boolean): ResourceName.AsObject;
2924
static toObject(includeInstance: boolean, msg: ResourceName): ResourceName.AsObject;
@@ -40,7 +35,6 @@ export namespace ResourceName {
4035
type: string,
4136
subtype: string,
4237
name: string,
43-
machinePartId: string,
4438
}
4539
}
4640

gen/js/common/v1/common_pb.js

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -697,8 +697,7 @@ proto.viam.common.v1.ResourceName.toObject = function(includeInstance, msg) {
697697
namespace: jspb.Message.getFieldWithDefault(msg, 1, ""),
698698
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
699699
subtype: jspb.Message.getFieldWithDefault(msg, 3, ""),
700-
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
701-
machinePartId: jspb.Message.getFieldWithDefault(msg, 5, "")
700+
name: jspb.Message.getFieldWithDefault(msg, 4, "")
702701
};
703702

704703
if (includeInstance) {
@@ -751,10 +750,6 @@ proto.viam.common.v1.ResourceName.deserializeBinaryFromReader = function(msg, re
751750
var value = /** @type {string} */ (reader.readString());
752751
msg.setName(value);
753752
break;
754-
case 5:
755-
var value = /** @type {string} */ (reader.readString());
756-
msg.setMachinePartId(value);
757-
break;
758753
default:
759754
reader.skipField();
760755
break;
@@ -812,13 +807,6 @@ proto.viam.common.v1.ResourceName.serializeBinaryToWriter = function(message, wr
812807
f
813808
);
814809
}
815-
f = /** @type {string} */ (jspb.Message.getField(message, 5));
816-
if (f != null) {
817-
writer.writeString(
818-
5,
819-
f
820-
);
821-
}
822810
};
823811

824812

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

896884

897-
/**
898-
* optional string machine_part_id = 5;
899-
* @return {string}
900-
*/
901-
proto.viam.common.v1.ResourceName.prototype.getMachinePartId = function() {
902-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
903-
};
904-
905-
906-
/**
907-
* @param {string} value
908-
* @return {!proto.viam.common.v1.ResourceName} returns this
909-
*/
910-
proto.viam.common.v1.ResourceName.prototype.setMachinePartId = function(value) {
911-
return jspb.Message.setField(this, 5, value);
912-
};
913-
914-
915-
/**
916-
* Clears the field making it undefined.
917-
* @return {!proto.viam.common.v1.ResourceName} returns this
918-
*/
919-
proto.viam.common.v1.ResourceName.prototype.clearMachinePartId = function() {
920-
return jspb.Message.setField(this, 5, undefined);
921-
};
922-
923-
924-
/**
925-
* Returns whether this field is set.
926-
* @return {boolean}
927-
*/
928-
proto.viam.common.v1.ResourceName.prototype.hasMachinePartId = function() {
929-
return jspb.Message.getField(this, 5) != null;
930-
};
931-
932-
933885

934886

935887

proto/viam/common/v1/common.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ message ResourceName {
1515
string type = 2;
1616
string subtype = 3;
1717
string name = 4;
18-
optional string machine_part_id = 5;
1918
}
2019

2120
message BoardStatus {

service/datamanager/v1/data_manager.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)