Skip to content

Commit 7c4729b

Browse files
RSDK-10642 - add tcp-mode to module configs (#708)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7e3df51 commit 7c4729b

File tree

4 files changed

+106
-60
lines changed

4 files changed

+106
-60
lines changed

app/v1/robot.pb.go

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

gen/js/app/v1/robot_pb.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,9 @@ export class ModuleConfig extends jspb.Message {
13671367
getFirstRunTimeout(): google_protobuf_duration_pb.Duration | undefined;
13681368
setFirstRunTimeout(value?: google_protobuf_duration_pb.Duration): void;
13691369

1370+
getTcpMode(): boolean;
1371+
setTcpMode(value: boolean): void;
1372+
13701373
serializeBinary(): Uint8Array;
13711374
toObject(includeInstance?: boolean): ModuleConfig.AsObject;
13721375
static toObject(includeInstance: boolean, msg: ModuleConfig): ModuleConfig.AsObject;
@@ -1387,6 +1390,7 @@ export namespace ModuleConfig {
13871390
envMap: Array<[string, string]>,
13881391
status?: AppValidationStatus.AsObject,
13891392
firstRunTimeout?: google_protobuf_duration_pb.Duration.AsObject,
1393+
tcpMode: boolean,
13901394
}
13911395
}
13921396

gen/js/app/v1/robot_pb.js

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10589,7 +10589,8 @@ proto.viam.app.v1.ModuleConfig.toObject = function(includeInstance, msg) {
1058910589
moduleId: jspb.Message.getFieldWithDefault(msg, 5, ""),
1059010590
envMap: (f = msg.getEnvMap()) ? f.toObject(includeInstance, undefined) : [],
1059110591
status: (f = msg.getStatus()) && proto.viam.app.v1.AppValidationStatus.toObject(includeInstance, f),
10592-
firstRunTimeout: (f = msg.getFirstRunTimeout()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
10592+
firstRunTimeout: (f = msg.getFirstRunTimeout()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
10593+
tcpMode: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
1059310594
};
1059410595

1059510596
if (includeInstance) {
@@ -10662,6 +10663,10 @@ proto.viam.app.v1.ModuleConfig.deserializeBinaryFromReader = function(msg, reade
1066210663
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
1066310664
msg.setFirstRunTimeout(value);
1066410665
break;
10666+
case 9:
10667+
var value = /** @type {boolean} */ (reader.readBool());
10668+
msg.setTcpMode(value);
10669+
break;
1066510670
default:
1066610671
reader.skipField();
1066710672
break;
@@ -10746,6 +10751,13 @@ proto.viam.app.v1.ModuleConfig.serializeBinaryToWriter = function(message, write
1074610751
google_protobuf_duration_pb.Duration.serializeBinaryToWriter
1074710752
);
1074810753
}
10754+
f = message.getTcpMode();
10755+
if (f) {
10756+
writer.writeBool(
10757+
9,
10758+
f
10759+
);
10760+
}
1074910761
};
1075010762

1075110763

@@ -10935,6 +10947,24 @@ proto.viam.app.v1.ModuleConfig.prototype.hasFirstRunTimeout = function() {
1093510947
};
1093610948

1093710949

10950+
/**
10951+
* optional bool tcp_mode = 9;
10952+
* @return {boolean}
10953+
*/
10954+
proto.viam.app.v1.ModuleConfig.prototype.getTcpMode = function() {
10955+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
10956+
};
10957+
10958+
10959+
/**
10960+
* @param {boolean} value
10961+
* @return {!proto.viam.app.v1.ModuleConfig} returns this
10962+
*/
10963+
proto.viam.app.v1.ModuleConfig.prototype.setTcpMode = function(value) {
10964+
return jspb.Message.setProto3BooleanField(this, 9, value);
10965+
};
10966+
10967+
1093810968

1093910969

1094010970

proto/viam/app/v1/robot.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ message ModuleConfig {
377377
AppValidationStatus status = 7;
378378
// timeout for first_run script
379379
google.protobuf.Duration first_run_timeout = 8;
380+
// whether we are starting a module in TCP mode
381+
bool tcp_mode = 9;
380382
}
381383

382384
// PackageConfig is the configration for deployed Packages.

0 commit comments

Comments
 (0)