More fields
All checks were successful
Tests / sdk_tests (pull_request) Successful in 21m17s

This commit is contained in:
Thomas E Lackey 2023-11-17 15:35:56 -06:00
parent 06e6919f10
commit e01004c736
2 changed files with 74 additions and 2 deletions

View File

@ -44,6 +44,9 @@ message ApplicationRecord {
string repository_tag = 9 [(gogoproto.moretags) = "json:\"repositoryTag\" yaml:\"repositoryTag\""]; string repository_tag = 9 [(gogoproto.moretags) = "json:\"repositoryTag\" yaml:\"repositoryTag\""];
string app_version = 10 [(gogoproto.moretags) = "json:\"appVersion\" yaml:\"appVersion\""]; string app_version = 10 [(gogoproto.moretags) = "json:\"appVersion\" yaml:\"appVersion\""];
string app_type = 11 [(gogoproto.moretags) = "json:\"appType\" yaml:\"appType\""]; 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\""]; string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""];
repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; 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 description = 3 [(gogoproto.moretags) = "json:\"description\" yaml:\"description\""];
string version = 4 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""]; string version = 4 [(gogoproto.moretags) = "json:\"version\" yaml:\"version\""];
string application = 5 [(gogoproto.moretags) = "json:\"application\" yaml:\"application\""]; 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\""]; string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""];
repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""];
} }

View File

@ -548,11 +548,14 @@ export namespace vulcanize.registry.v1beta1 {
repository_tag?: string; repository_tag?: string;
app_version?: string; app_version?: string;
app_type?: string; app_type?: string;
engines?: string;
os?: string[];
cpu?: string[];
meta?: string; meta?: string;
tags?: string[]; tags?: string[];
}) { }) {
super(); 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 (!Array.isArray(data) && typeof data == "object") {
if ("type" in data && data.type != undefined) { if ("type" in data && data.type != undefined) {
this.type = data.type; this.type = data.type;
@ -587,6 +590,15 @@ export namespace vulcanize.registry.v1beta1 {
if ("app_type" in data && data.app_type != undefined) { if ("app_type" in data && data.app_type != undefined) {
this.app_type = data.app_type; 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) { if ("meta" in data && data.meta != undefined) {
this.meta = data.meta; this.meta = data.meta;
} }
@ -661,6 +673,24 @@ export namespace vulcanize.registry.v1beta1 {
set app_type(value: string) { set app_type(value: string) {
pb_1.Message.setField(this, 11, value); 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() { get meta() {
return pb_1.Message.getFieldWithDefault(this, 20, "") as string; return pb_1.Message.getFieldWithDefault(this, 20, "") as string;
} }
@ -685,6 +715,9 @@ export namespace vulcanize.registry.v1beta1 {
repository_tag?: string; repository_tag?: string;
app_version?: string; app_version?: string;
app_type?: string; app_type?: string;
engines?: string;
os?: string[];
cpu?: string[];
meta?: string; meta?: string;
tags?: string[]; tags?: string[];
}): ApplicationRecord { }): ApplicationRecord {
@ -722,6 +755,15 @@ export namespace vulcanize.registry.v1beta1 {
if (data.app_type != null) { if (data.app_type != null) {
message.app_type = data.app_type; 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) { if (data.meta != null) {
message.meta = data.meta; message.meta = data.meta;
} }
@ -743,6 +785,9 @@ export namespace vulcanize.registry.v1beta1 {
repository_tag?: string; repository_tag?: string;
app_version?: string; app_version?: string;
app_type?: string; app_type?: string;
engines?: string;
os?: string[];
cpu?: string[];
meta?: string; meta?: string;
tags?: string[]; tags?: string[];
} = {}; } = {};
@ -779,6 +824,15 @@ export namespace vulcanize.registry.v1beta1 {
if (this.app_type != null) { if (this.app_type != null) {
data.app_type = this.app_type; 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) { if (this.meta != null) {
data.meta = this.meta; data.meta = this.meta;
} }
@ -813,6 +867,12 @@ export namespace vulcanize.registry.v1beta1 {
writer.writeString(10, this.app_version); writer.writeString(10, this.app_version);
if (this.app_type.length) if (this.app_type.length)
writer.writeString(11, this.app_type); 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) if (this.meta.length)
writer.writeString(20, this.meta); writer.writeString(20, this.meta);
if (this.tags.length) if (this.tags.length)
@ -859,6 +919,15 @@ export namespace vulcanize.registry.v1beta1 {
case 11: case 11:
message.app_type = reader.readString(); message.app_type = reader.readString();
break; 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: case 20:
message.meta = reader.readString(); message.meta = reader.readString();
break; break;