From e01004c73690d05db81c0535bc2a742c982cc615 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Fri, 17 Nov 2023 15:35:56 -0600 Subject: [PATCH] More fields --- .../registry/v1beta1/attributes.proto | 5 +- .../vulcanize/registry/v1beta1/attributes.ts | 71 ++++++++++++++++++- 2 files changed, 74 insertions(+), 2 deletions(-) diff --git a/proto/vulcanize/registry/v1beta1/attributes.proto b/proto/vulcanize/registry/v1beta1/attributes.proto index a32aac1..62b7afc 100644 --- a/proto/vulcanize/registry/v1beta1/attributes.proto +++ b/proto/vulcanize/registry/v1beta1/attributes.proto @@ -44,6 +44,9 @@ message ApplicationRecord { string repository_tag = 9 [(gogoproto.moretags) = "json:\"repositoryTag\" yaml:\"repositoryTag\""]; string app_version = 10 [(gogoproto.moretags) = "json:\"appVersion\" yaml:\"appVersion\""]; string app_type = 11 [(gogoproto.moretags) = "json:\"appType\" yaml:\"appType\""]; + string engines = 12 [(gogoproto.moretags) = "json:\"engines\" yaml:\"engines\""]; + repeated string os = 13 [(gogoproto.moretags) = "json:\"os\" yaml:\"os\""]; + repeated string cpu = 14 [(gogoproto.moretags) = "json:\"cpu\" yaml:\"cpu\""]; string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; } @@ -54,7 +57,7 @@ message WebAppDeploymentRecord { string description = 3 [(gogoproto.moretags) = "json:\"description\" yaml:\"description\""]; string version = 4 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; string application = 5 [(gogoproto.moretags) = "json:\"application\" yaml:\"application\""]; - string url = 6 [(gogoproto.moretags) = "json:\"\" yaml:\"name\""]; + string url = 6 [(gogoproto.moretags) = "json:\"url\" yaml:\"url\""]; string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; } diff --git a/src/proto/vulcanize/registry/v1beta1/attributes.ts b/src/proto/vulcanize/registry/v1beta1/attributes.ts index 6a88761..4535947 100644 --- a/src/proto/vulcanize/registry/v1beta1/attributes.ts +++ b/src/proto/vulcanize/registry/v1beta1/attributes.ts @@ -548,11 +548,14 @@ export namespace vulcanize.registry.v1beta1 { repository_tag?: string; app_version?: string; app_type?: string; + engines?: string; + os?: string[]; + cpu?: string[]; meta?: string; tags?: string[]; }) { super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [21], this.#one_of_decls); + pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [13, 14, 21], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { if ("type" in data && data.type != undefined) { this.type = data.type; @@ -587,6 +590,15 @@ export namespace vulcanize.registry.v1beta1 { if ("app_type" in data && data.app_type != undefined) { this.app_type = data.app_type; } + if ("engines" in data && data.engines != undefined) { + this.engines = data.engines; + } + if ("os" in data && data.os != undefined) { + this.os = data.os; + } + if ("cpu" in data && data.cpu != undefined) { + this.cpu = data.cpu; + } if ("meta" in data && data.meta != undefined) { this.meta = data.meta; } @@ -661,6 +673,24 @@ export namespace vulcanize.registry.v1beta1 { set app_type(value: string) { pb_1.Message.setField(this, 11, value); } + get engines() { + return pb_1.Message.getFieldWithDefault(this, 12, "") as string; + } + set engines(value: string) { + pb_1.Message.setField(this, 12, value); + } + get os() { + return pb_1.Message.getFieldWithDefault(this, 13, []) as string[]; + } + set os(value: string[]) { + pb_1.Message.setField(this, 13, value); + } + get cpu() { + return pb_1.Message.getFieldWithDefault(this, 14, []) as string[]; + } + set cpu(value: string[]) { + pb_1.Message.setField(this, 14, value); + } get meta() { return pb_1.Message.getFieldWithDefault(this, 20, "") as string; } @@ -685,6 +715,9 @@ export namespace vulcanize.registry.v1beta1 { repository_tag?: string; app_version?: string; app_type?: string; + engines?: string; + os?: string[]; + cpu?: string[]; meta?: string; tags?: string[]; }): ApplicationRecord { @@ -722,6 +755,15 @@ export namespace vulcanize.registry.v1beta1 { if (data.app_type != null) { message.app_type = data.app_type; } + if (data.engines != null) { + message.engines = data.engines; + } + if (data.os != null) { + message.os = data.os; + } + if (data.cpu != null) { + message.cpu = data.cpu; + } if (data.meta != null) { message.meta = data.meta; } @@ -743,6 +785,9 @@ export namespace vulcanize.registry.v1beta1 { repository_tag?: string; app_version?: string; app_type?: string; + engines?: string; + os?: string[]; + cpu?: string[]; meta?: string; tags?: string[]; } = {}; @@ -779,6 +824,15 @@ export namespace vulcanize.registry.v1beta1 { if (this.app_type != null) { data.app_type = this.app_type; } + if (this.engines != null) { + data.engines = this.engines; + } + if (this.os != null) { + data.os = this.os; + } + if (this.cpu != null) { + data.cpu = this.cpu; + } if (this.meta != null) { data.meta = this.meta; } @@ -813,6 +867,12 @@ export namespace vulcanize.registry.v1beta1 { writer.writeString(10, this.app_version); if (this.app_type.length) writer.writeString(11, this.app_type); + if (this.engines.length) + writer.writeString(12, this.engines); + if (this.os.length) + writer.writeRepeatedString(13, this.os); + if (this.cpu.length) + writer.writeRepeatedString(14, this.cpu); if (this.meta.length) writer.writeString(20, this.meta); if (this.tags.length) @@ -859,6 +919,15 @@ export namespace vulcanize.registry.v1beta1 { case 11: message.app_type = reader.readString(); break; + case 12: + message.engines = reader.readString(); + break; + case 13: + pb_1.Message.addToRepeatedField(message, 13, reader.readString()); + break; + case 14: + pb_1.Message.addToRepeatedField(message, 14, reader.readString()); + break; case 20: message.meta = reader.readString(); break;