Skip to content

Commit 8a6e8b7

Browse files
authored
fix: Generate JavaScript Code from plugin-pb (#101)
This PR was created by a scheduled workflow to regenerate the JavaScript code from `plugin-pb`.
1 parent bf0e5d6 commit 8a6e8b7

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

protos/plugin/v3/plugin.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ message Sync {
118118
bool deterministic_cq_id = 4;
119119
BackendOptions backend = 5;
120120
optional Shard shard = 6;
121+
bool withErrorMessages = 7; // If true, the plugin will send error messages in the response stream
121122
}
122123
message Response {
123124
oneof message {

protos/plugin/v3/plugin.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,7 @@ export namespace cloudquery.plugin.v3 {
13591359
skip_dependent_tables?: boolean;
13601360
deterministic_cq_id?: boolean;
13611361
backend?: Sync.BackendOptions;
1362+
withErrorMessages?: boolean;
13621363
} & (({
13631364
shard?: Sync.Request.Shard;
13641365
})))) {
@@ -1383,6 +1384,9 @@ export namespace cloudquery.plugin.v3 {
13831384
if ("shard" in data && data.shard != undefined) {
13841385
this.shard = data.shard;
13851386
}
1387+
if ("withErrorMessages" in data && data.withErrorMessages != undefined) {
1388+
this.withErrorMessages = data.withErrorMessages;
1389+
}
13861390
}
13871391
}
13881392
get tables() {
@@ -1427,6 +1431,12 @@ export namespace cloudquery.plugin.v3 {
14271431
get has_shard() {
14281432
return pb_1.Message.getField(this, 6) != null;
14291433
}
1434+
get withErrorMessages() {
1435+
return pb_1.Message.getFieldWithDefault(this, 7, false) as boolean;
1436+
}
1437+
set withErrorMessages(value: boolean) {
1438+
pb_1.Message.setField(this, 7, value);
1439+
}
14301440
get _shard() {
14311441
const cases: {
14321442
[index: number]: "none" | "shard";
@@ -1443,6 +1453,7 @@ export namespace cloudquery.plugin.v3 {
14431453
deterministic_cq_id?: boolean;
14441454
backend?: ReturnType<typeof Sync.BackendOptions.prototype.toObject>;
14451455
shard?: ReturnType<typeof Sync.Request.Shard.prototype.toObject>;
1456+
withErrorMessages?: boolean;
14461457
}): Request {
14471458
const message = new Request({});
14481459
if (data.tables != null) {
@@ -1463,6 +1474,9 @@ export namespace cloudquery.plugin.v3 {
14631474
if (data.shard != null) {
14641475
message.shard = Sync.Request.Shard.fromObject(data.shard);
14651476
}
1477+
if (data.withErrorMessages != null) {
1478+
message.withErrorMessages = data.withErrorMessages;
1479+
}
14661480
return message;
14671481
}
14681482
toObject() {
@@ -1473,6 +1487,7 @@ export namespace cloudquery.plugin.v3 {
14731487
deterministic_cq_id?: boolean;
14741488
backend?: ReturnType<typeof Sync.BackendOptions.prototype.toObject>;
14751489
shard?: ReturnType<typeof Sync.Request.Shard.prototype.toObject>;
1490+
withErrorMessages?: boolean;
14761491
} = {};
14771492
if (this.tables != null) {
14781493
data.tables = this.tables;
@@ -1492,6 +1507,9 @@ export namespace cloudquery.plugin.v3 {
14921507
if (this.shard != null) {
14931508
data.shard = this.shard.toObject();
14941509
}
1510+
if (this.withErrorMessages != null) {
1511+
data.withErrorMessages = this.withErrorMessages;
1512+
}
14951513
return data;
14961514
}
14971515
serialize(): Uint8Array;
@@ -1510,6 +1528,8 @@ export namespace cloudquery.plugin.v3 {
15101528
writer.writeMessage(5, this.backend, () => this.backend.serialize(writer));
15111529
if (this.has_shard)
15121530
writer.writeMessage(6, this.shard, () => this.shard.serialize(writer));
1531+
if (this.withErrorMessages != false)
1532+
writer.writeBool(7, this.withErrorMessages);
15131533
if (!w)
15141534
return writer.getResultBuffer();
15151535
}
@@ -1537,6 +1557,9 @@ export namespace cloudquery.plugin.v3 {
15371557
case 6:
15381558
reader.readMessage(message.shard, () => message.shard = Sync.Request.Shard.deserialize(reader));
15391559
break;
1560+
case 7:
1561+
message.withErrorMessages = reader.readBool();
1562+
break;
15401563
default: reader.skipField();
15411564
}
15421565
}

0 commit comments

Comments
 (0)