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

APP-7267 APP-7269 Add version support to GetFragment #610

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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,806 changes: 2,492 additions & 2,314 deletions app/v1/app.pb.go

Large diffs are not rendered by default.

48 changes: 28 additions & 20 deletions gen/js/app/agent/v1/agent_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@

var jspb = require('google-protobuf');
var goog = jspb;
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof window !== 'undefined' && window) ||
(typeof global !== 'undefined' && global) ||
(typeof self !== 'undefined' && self) ||
(function () { return this; }).call(null) ||
Function('return this')();

var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
goog.object.extend(proto, google_protobuf_duration_pb);
Expand Down Expand Up @@ -162,9 +168,9 @@ proto.viam.app.agent.v1.DeviceAgentConfigRequest.prototype.toObject = function(o
*/
proto.viam.app.agent.v1.DeviceAgentConfigRequest.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
hostInfo: (f = msg.getHostInfo()) && proto.viam.app.agent.v1.HostInfo.toObject(includeInstance, f),
subsystemVersionsMap: (f = msg.getSubsystemVersionsMap()) ? f.toObject(includeInstance, undefined) : []
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
hostInfo: (f = msg.getHostInfo()) && proto.viam.app.agent.v1.HostInfo.toObject(includeInstance, f),
subsystemVersionsMap: (f = msg.getSubsystemVersionsMap()) ? f.toObject(includeInstance, undefined) : []
};

if (includeInstance) {
Expand Down Expand Up @@ -341,7 +347,8 @@ proto.viam.app.agent.v1.DeviceAgentConfigRequest.prototype.getSubsystemVersionsM
*/
proto.viam.app.agent.v1.DeviceAgentConfigRequest.prototype.clearSubsystemVersionsMap = function() {
this.getSubsystemVersionsMap().clear();
return this;};
return this;
};



Expand Down Expand Up @@ -376,8 +383,8 @@ proto.viam.app.agent.v1.DeviceAgentConfigResponse.prototype.toObject = function(
*/
proto.viam.app.agent.v1.DeviceAgentConfigResponse.toObject = function(includeInstance, msg) {
var f, obj = {
subsystemConfigsMap: (f = msg.getSubsystemConfigsMap()) ? f.toObject(includeInstance, proto.viam.app.agent.v1.DeviceSubsystemConfig.toObject) : [],
checkInterval: (f = msg.getCheckInterval()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
subsystemConfigsMap: (f = msg.getSubsystemConfigsMap()) ? f.toObject(includeInstance, proto.viam.app.agent.v1.DeviceSubsystemConfig.toObject) : [],
checkInterval: (f = msg.getCheckInterval()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
};

if (includeInstance) {
Expand Down Expand Up @@ -488,7 +495,8 @@ proto.viam.app.agent.v1.DeviceAgentConfigResponse.prototype.getSubsystemConfigsM
*/
proto.viam.app.agent.v1.DeviceAgentConfigResponse.prototype.clearSubsystemConfigsMap = function() {
this.getSubsystemConfigsMap().clear();
return this;};
return this;
};


/**
Expand Down Expand Up @@ -560,10 +568,10 @@ proto.viam.app.agent.v1.DeviceSubsystemConfig.prototype.toObject = function(opt_
*/
proto.viam.app.agent.v1.DeviceSubsystemConfig.toObject = function(includeInstance, msg) {
var f, obj = {
updateInfo: (f = msg.getUpdateInfo()) && proto.viam.app.agent.v1.SubsystemUpdateInfo.toObject(includeInstance, f),
disable: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
forceRestart: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
attributes: (f = msg.getAttributes()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
updateInfo: (f = msg.getUpdateInfo()) && proto.viam.app.agent.v1.SubsystemUpdateInfo.toObject(includeInstance, f),
disable: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
forceRestart: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
attributes: (f = msg.getAttributes()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
};

if (includeInstance) {
Expand Down Expand Up @@ -829,9 +837,9 @@ proto.viam.app.agent.v1.HostInfo.prototype.toObject = function(opt_includeInstan
*/
proto.viam.app.agent.v1.HostInfo.toObject = function(includeInstance, msg) {
var f, obj = {
platform: jspb.Message.getFieldWithDefault(msg, 1, ""),
distro: jspb.Message.getFieldWithDefault(msg, 2, ""),
tagsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
platform: jspb.Message.getFieldWithDefault(msg, 1, ""),
distro: jspb.Message.getFieldWithDefault(msg, 2, ""),
tagsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
};

if (includeInstance) {
Expand Down Expand Up @@ -1038,11 +1046,11 @@ proto.viam.app.agent.v1.SubsystemUpdateInfo.prototype.toObject = function(opt_in
*/
proto.viam.app.agent.v1.SubsystemUpdateInfo.toObject = function(includeInstance, msg) {
var f, obj = {
filename: jspb.Message.getFieldWithDefault(msg, 1, ""),
url: jspb.Message.getFieldWithDefault(msg, 2, ""),
version: jspb.Message.getFieldWithDefault(msg, 3, ""),
sha256: msg.getSha256_asB64(),
format: jspb.Message.getFieldWithDefault(msg, 5, 0)
filename: jspb.Message.getFieldWithDefault(msg, 1, ""),
url: jspb.Message.getFieldWithDefault(msg, 2, ""),
version: jspb.Message.getFieldWithDefault(msg, 3, ""),
sha256: msg.getSha256_asB64(),
format: jspb.Message.getFieldWithDefault(msg, 5, 0)
};

if (includeInstance) {
Expand Down
92 changes: 49 additions & 43 deletions gen/js/app/build/v1/build_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@

var jspb = require('google-protobuf');
var goog = jspb;
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof window !== 'undefined' && window) ||
(typeof global !== 'undefined' && global) ||
(typeof self !== 'undefined' && self) ||
(function () { return this; }).call(null) ||
Function('return this')();

var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
goog.object.extend(proto, google_protobuf_timestamp_pb);
Expand Down Expand Up @@ -563,13 +569,13 @@ proto.viam.app.build.v1.StartBuildRequest.prototype.toObject = function(opt_incl
*/
proto.viam.app.build.v1.StartBuildRequest.toObject = function(includeInstance, msg) {
var f, obj = {
repo: jspb.Message.getFieldWithDefault(msg, 1, ""),
ref: jspb.Message.getFieldWithDefault(msg, 2, ""),
platformsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
moduleId: jspb.Message.getFieldWithDefault(msg, 4, ""),
moduleVersion: jspb.Message.getFieldWithDefault(msg, 5, ""),
token: jspb.Message.getFieldWithDefault(msg, 6, ""),
workdir: jspb.Message.getFieldWithDefault(msg, 7, "")
repo: jspb.Message.getFieldWithDefault(msg, 1, ""),
ref: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
platformsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
moduleId: jspb.Message.getFieldWithDefault(msg, 4, ""),
moduleVersion: jspb.Message.getFieldWithDefault(msg, 5, ""),
token: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
workdir: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f
};

if (includeInstance) {
Expand Down Expand Up @@ -946,7 +952,7 @@ proto.viam.app.build.v1.StartBuildResponse.prototype.toObject = function(opt_inc
*/
proto.viam.app.build.v1.StartBuildResponse.toObject = function(includeInstance, msg) {
var f, obj = {
buildId: jspb.Message.getFieldWithDefault(msg, 1, "")
buildId: jspb.Message.getFieldWithDefault(msg, 1, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -1076,8 +1082,8 @@ proto.viam.app.build.v1.GetLogsRequest.prototype.toObject = function(opt_include
*/
proto.viam.app.build.v1.GetLogsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
platform: jspb.Message.getFieldWithDefault(msg, 2, "")
buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
platform: jspb.Message.getFieldWithDefault(msg, 2, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -1236,8 +1242,8 @@ proto.viam.app.build.v1.GetLogsResponse.prototype.toObject = function(opt_includ
*/
proto.viam.app.build.v1.GetLogsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
buildStep: jspb.Message.getFieldWithDefault(msg, 1, ""),
data: jspb.Message.getFieldWithDefault(msg, 2, "")
buildStep: jspb.Message.getFieldWithDefault(msg, 1, ""),
data: jspb.Message.getFieldWithDefault(msg, 2, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -1396,12 +1402,12 @@ proto.viam.app.build.v1.JobInfo.prototype.toObject = function(opt_includeInstanc
*/
proto.viam.app.build.v1.JobInfo.toObject = function(includeInstance, msg) {
var f, obj = {
buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
platform: jspb.Message.getFieldWithDefault(msg, 2, ""),
version: jspb.Message.getFieldWithDefault(msg, 3, ""),
status: jspb.Message.getFieldWithDefault(msg, 4, 0),
startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
platform: jspb.Message.getFieldWithDefault(msg, 2, ""),
version: jspb.Message.getFieldWithDefault(msg, 3, ""),
status: jspb.Message.getFieldWithDefault(msg, 4, 0),
startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
};

if (includeInstance) {
Expand Down Expand Up @@ -1718,9 +1724,9 @@ proto.viam.app.build.v1.ListJobsRequest.prototype.toObject = function(opt_includ
*/
proto.viam.app.build.v1.ListJobsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
moduleId: jspb.Message.getFieldWithDefault(msg, 1, ""),
maxJobsLength: jspb.Message.getFieldWithDefault(msg, 2, 0),
buildId: jspb.Message.getFieldWithDefault(msg, 3, "")
moduleId: jspb.Message.getFieldWithDefault(msg, 1, ""),
maxJobsLength: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
buildId: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
};

if (includeInstance) {
Expand Down Expand Up @@ -1951,7 +1957,7 @@ proto.viam.app.build.v1.ListJobsResponse.prototype.toObject = function(opt_inclu
*/
proto.viam.app.build.v1.ListJobsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
jobsList: jspb.Message.toObjectList(msg.getJobsList(),
jobsList: jspb.Message.toObjectList(msg.getJobsList(),
proto.viam.app.build.v1.JobInfo.toObject, includeInstance)
};

Expand Down Expand Up @@ -2104,12 +2110,12 @@ proto.viam.app.build.v1.RepoLink.prototype.toObject = function(opt_includeInstan
*/
proto.viam.app.build.v1.RepoLink.toObject = function(includeInstance, msg) {
var f, obj = {
oauthAppLinkId: jspb.Message.getFieldWithDefault(msg, 1, ""),
orgId: jspb.Message.getFieldWithDefault(msg, 2, ""),
namespace: jspb.Message.getFieldWithDefault(msg, 3, ""),
moduleName: jspb.Message.getFieldWithDefault(msg, 4, ""),
repo: jspb.Message.getFieldWithDefault(msg, 5, ""),
viamUser: jspb.Message.getFieldWithDefault(msg, 6, "")
oauthAppLinkId: jspb.Message.getFieldWithDefault(msg, 1, ""),
orgId: jspb.Message.getFieldWithDefault(msg, 2, ""),
namespace: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
moduleName: jspb.Message.getFieldWithDefault(msg, 4, ""),
repo: jspb.Message.getFieldWithDefault(msg, 5, ""),
viamUser: jspb.Message.getFieldWithDefault(msg, 6, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -2402,7 +2408,7 @@ proto.viam.app.build.v1.LinkRepoRequest.prototype.toObject = function(opt_includ
*/
proto.viam.app.build.v1.LinkRepoRequest.toObject = function(includeInstance, msg) {
var f, obj = {
link: (f = msg.getLink()) && proto.viam.app.build.v1.RepoLink.toObject(includeInstance, f)
link: (f = msg.getLink()) && proto.viam.app.build.v1.RepoLink.toObject(includeInstance, f)
};

if (includeInstance) {
Expand Down Expand Up @@ -2553,7 +2559,7 @@ proto.viam.app.build.v1.LinkRepoResponse.prototype.toObject = function(opt_inclu
*/
proto.viam.app.build.v1.LinkRepoResponse.toObject = function(includeInstance, msg) {
var f, obj = {
repoLinkId: jspb.Message.getFieldWithDefault(msg, 1, "")
repoLinkId: jspb.Message.getFieldWithDefault(msg, 1, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -2683,7 +2689,7 @@ proto.viam.app.build.v1.UnlinkRepoRequest.prototype.toObject = function(opt_incl
*/
proto.viam.app.build.v1.UnlinkRepoRequest.toObject = function(includeInstance, msg) {
var f, obj = {
repoLinkId: jspb.Message.getFieldWithDefault(msg, 1, "")
repoLinkId: jspb.Message.getFieldWithDefault(msg, 1, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -3022,7 +3028,7 @@ proto.viam.app.build.v1.ListRepoLinksResponse.prototype.toObject = function(opt_
*/
proto.viam.app.build.v1.ListRepoLinksResponse.toObject = function(includeInstance, msg) {
var f, obj = {
linksList: jspb.Message.toObjectList(msg.getLinksList(),
linksList: jspb.Message.toObjectList(msg.getLinksList(),
proto.viam.app.build.v1.RepoLink.toObject, includeInstance)
};

Expand Down Expand Up @@ -3283,10 +3289,10 @@ proto.viam.app.build.v1.AppLink.prototype.toObject = function(opt_includeInstanc
*/
proto.viam.app.build.v1.AppLink.toObject = function(includeInstance, msg) {
var f, obj = {
oauthAppLinkId: jspb.Message.getFieldWithDefault(msg, 1, ""),
viamUser: jspb.Message.getFieldWithDefault(msg, 2, ""),
externalUser: jspb.Message.getFieldWithDefault(msg, 3, ""),
orgIdOrNsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
oauthAppLinkId: jspb.Message.getFieldWithDefault(msg, 1, ""),
viamUser: jspb.Message.getFieldWithDefault(msg, 2, ""),
externalUser: jspb.Message.getFieldWithDefault(msg, 3, ""),
orgIdOrNsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
};

if (includeInstance) {
Expand Down Expand Up @@ -3529,7 +3535,7 @@ proto.viam.app.build.v1.ListAppLinksResponse.prototype.toObject = function(opt_i
*/
proto.viam.app.build.v1.ListAppLinksResponse.toObject = function(includeInstance, msg) {
var f, obj = {
linksList: jspb.Message.toObjectList(msg.getLinksList(),
linksList: jspb.Message.toObjectList(msg.getLinksList(),
proto.viam.app.build.v1.AppLink.toObject, includeInstance)
};

Expand Down Expand Up @@ -3682,7 +3688,7 @@ proto.viam.app.build.v1.RemoveAppLinkRequest.prototype.toObject = function(opt_i
*/
proto.viam.app.build.v1.RemoveAppLinkRequest.toObject = function(includeInstance, msg) {
var f, obj = {
oauthAppLinkId: jspb.Message.getFieldWithDefault(msg, 1, "")
oauthAppLinkId: jspb.Message.getFieldWithDefault(msg, 1, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -3913,8 +3919,8 @@ proto.viam.app.build.v1.LinkOrgRequest.prototype.toObject = function(opt_include
*/
proto.viam.app.build.v1.LinkOrgRequest.toObject = function(includeInstance, msg) {
var f, obj = {
oauthAppLinkId: jspb.Message.getFieldWithDefault(msg, 1, ""),
orgId: jspb.Message.getFieldWithDefault(msg, 2, "")
oauthAppLinkId: jspb.Message.getFieldWithDefault(msg, 1, ""),
orgId: jspb.Message.getFieldWithDefault(msg, 2, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -4174,8 +4180,8 @@ proto.viam.app.build.v1.UnlinkOrgRequest.prototype.toObject = function(opt_inclu
*/
proto.viam.app.build.v1.UnlinkOrgRequest.toObject = function(includeInstance, msg) {
var f, obj = {
oauthAppLinkId: jspb.Message.getFieldWithDefault(msg, 1, ""),
orgId: jspb.Message.getFieldWithDefault(msg, 2, "")
oauthAppLinkId: jspb.Message.getFieldWithDefault(msg, 1, ""),
orgId: jspb.Message.getFieldWithDefault(msg, 2, "")
};

if (includeInstance) {
Expand Down
Loading
Loading