Skip to content
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

Add username to ProcessConfig proto #580

Merged
Merged
Show file tree
Hide file tree
Changes from 4 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
660 changes: 335 additions & 325 deletions app/v1/robot.pb.go

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions component/board/v1/board.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.

4 changes: 4 additions & 0 deletions gen/js/app/v1/robot_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ export class ProcessConfig extends jspb.Message {

getEnvMap(): jspb.Map<string, string>;
clearEnvMap(): void;
getUsername(): string;
setUsername(value: string): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ProcessConfig.AsObject;
static toObject(includeInstance: boolean, msg: ProcessConfig): ProcessConfig.AsObject;
Expand All @@ -393,6 +396,7 @@ export namespace ProcessConfig {
stopSignal: number,
stopTimeout?: google_protobuf_duration_pb.Duration.AsObject,
envMap: Array<[string, string]>,
username: string,
}
}

Expand Down
32 changes: 31 additions & 1 deletion gen/js/app/v1/robot_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -3476,7 +3476,8 @@ proto.viam.app.v1.ProcessConfig.toObject = function(includeInstance, msg) {
log: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
stopSignal: jspb.Message.getFieldWithDefault(msg, 7, 0),
stopTimeout: (f = msg.getStopTimeout()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
envMap: (f = msg.getEnvMap()) ? f.toObject(includeInstance, undefined) : []
envMap: (f = msg.getEnvMap()) ? f.toObject(includeInstance, undefined) : [],
username: jspb.Message.getFieldWithDefault(msg, 10, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -3552,6 +3553,10 @@ proto.viam.app.v1.ProcessConfig.deserializeBinaryFromReader = function(msg, read
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
});
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.setUsername(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -3642,6 +3647,13 @@ proto.viam.app.v1.ProcessConfig.serializeBinaryToWriter = function(message, writ
if (f && f.getLength() > 0) {
f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
}
f = message.getUsername();
if (f.length > 0) {
writer.writeString(
10,
f
);
}
};


Expand Down Expand Up @@ -3849,6 +3861,24 @@ proto.viam.app.v1.ProcessConfig.prototype.clearEnvMap = function() {
return this;};


/**
* optional string username = 10;
* @return {string}
*/
proto.viam.app.v1.ProcessConfig.prototype.getUsername = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
};


/**
* @param {string} value
* @return {!proto.viam.app.v1.ProcessConfig} returns this
*/
proto.viam.app.v1.ProcessConfig.prototype.setUsername = function(value) {
return jspb.Message.setProto3StringField(this, 10, value);
};



/**
* List of repeated fields within this message type.
Expand Down
1 change: 1 addition & 0 deletions proto/viam/app/v1/robot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ message ProcessConfig {
google.protobuf.Duration stop_timeout = 8;
// additional environment variables passed to the process
map<string, string> env = 9;
string username = 10;
}

message ServiceConfig {
Expand Down
6 changes: 3 additions & 3 deletions service/shell/v1/shell.pb.gw.go

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

6 changes: 3 additions & 3 deletions service/vision/v1/vision.pb.gw.go

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

Loading