Skip to content

Commit d189960

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

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
@@ -58,6 +58,7 @@ message Init {
5858
message Request {
5959
bytes spec = 1; // Internal plugin-specific spec
6060
bool no_connection = 2; // A flag to indicate plugins should skip establishing a connection
61+
string invocation_id = 3; // unique execution_id that will identify the invocation (sync, migrate etc)
6162
}
6263
message Response {}
6364
}

protos/plugin/v3/plugin.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ export namespace cloudquery.plugin.v3 {
512512
constructor(data?: any[] | {
513513
spec?: Uint8Array;
514514
no_connection?: boolean;
515+
invocation_id?: string;
515516
}) {
516517
super();
517518
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
@@ -522,6 +523,9 @@ export namespace cloudquery.plugin.v3 {
522523
if ("no_connection" in data && data.no_connection != undefined) {
523524
this.no_connection = data.no_connection;
524525
}
526+
if ("invocation_id" in data && data.invocation_id != undefined) {
527+
this.invocation_id = data.invocation_id;
528+
}
525529
}
526530
}
527531
get spec() {
@@ -536,9 +540,16 @@ export namespace cloudquery.plugin.v3 {
536540
set no_connection(value: boolean) {
537541
pb_1.Message.setField(this, 2, value);
538542
}
543+
get invocation_id() {
544+
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
545+
}
546+
set invocation_id(value: string) {
547+
pb_1.Message.setField(this, 3, value);
548+
}
539549
static fromObject(data: {
540550
spec?: Uint8Array;
541551
no_connection?: boolean;
552+
invocation_id?: string;
542553
}): Request {
543554
const message = new Request({});
544555
if (data.spec != null) {
@@ -547,19 +558,26 @@ export namespace cloudquery.plugin.v3 {
547558
if (data.no_connection != null) {
548559
message.no_connection = data.no_connection;
549560
}
561+
if (data.invocation_id != null) {
562+
message.invocation_id = data.invocation_id;
563+
}
550564
return message;
551565
}
552566
toObject() {
553567
const data: {
554568
spec?: Uint8Array;
555569
no_connection?: boolean;
570+
invocation_id?: string;
556571
} = {};
557572
if (this.spec != null) {
558573
data.spec = this.spec;
559574
}
560575
if (this.no_connection != null) {
561576
data.no_connection = this.no_connection;
562577
}
578+
if (this.invocation_id != null) {
579+
data.invocation_id = this.invocation_id;
580+
}
563581
return data;
564582
}
565583
serialize(): Uint8Array;
@@ -570,6 +588,8 @@ export namespace cloudquery.plugin.v3 {
570588
writer.writeBytes(1, this.spec);
571589
if (this.no_connection != false)
572590
writer.writeBool(2, this.no_connection);
591+
if (this.invocation_id.length)
592+
writer.writeString(3, this.invocation_id);
573593
if (!w)
574594
return writer.getResultBuffer();
575595
}
@@ -585,6 +605,9 @@ export namespace cloudquery.plugin.v3 {
585605
case 2:
586606
message.no_connection = reader.readBool();
587607
break;
608+
case 3:
609+
message.invocation_id = reader.readString();
610+
break;
588611
default: reader.skipField();
589612
}
590613
}

0 commit comments

Comments
 (0)