Skip to content

Commit aa501d5

Browse files
cq-botgithub-actions[bot]
authored andcommitted
fix: Generate Java Code from plugin-pb
1 parent 1d806a0 commit aa501d5

36 files changed

+296
-91
lines changed

build/generated/source/proto/main/grpc/io/cloudquery/discovery/v1/DiscoveryGrpc.java

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
*/
77
@javax.annotation.Generated(
8-
value = "by gRPC proto compiler (version 1.69.0)",
8+
value = "by gRPC proto compiler (version 1.70.0)",
99
comments = "Source: cloudquery/discovery/v1/discovery.proto")
1010
@io.grpc.stub.annotations.GrpcGenerated
1111
public final class DiscoveryGrpc {
@@ -60,6 +60,21 @@ public DiscoveryStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOp
6060
return DiscoveryStub.newStub(factory, channel);
6161
}
6262

63+
/**
64+
* Creates a new blocking-style stub that supports all types of calls on the service
65+
*/
66+
public static DiscoveryBlockingV2Stub newBlockingV2Stub(
67+
io.grpc.Channel channel) {
68+
io.grpc.stub.AbstractStub.StubFactory<DiscoveryBlockingV2Stub> factory =
69+
new io.grpc.stub.AbstractStub.StubFactory<DiscoveryBlockingV2Stub>() {
70+
@java.lang.Override
71+
public DiscoveryBlockingV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
72+
return new DiscoveryBlockingV2Stub(channel, callOptions);
73+
}
74+
};
75+
return DiscoveryBlockingV2Stub.newStub(factory, channel);
76+
}
77+
6378
/**
6479
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
6580
*/
@@ -147,6 +162,33 @@ public void getVersions(io.cloudquery.discovery.v1.GetVersions.Request request,
147162
/**
148163
* A stub to allow clients to do synchronous rpc calls to service Discovery.
149164
*/
165+
public static final class DiscoveryBlockingV2Stub
166+
extends io.grpc.stub.AbstractBlockingStub<DiscoveryBlockingV2Stub> {
167+
private DiscoveryBlockingV2Stub(
168+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
169+
super(channel, callOptions);
170+
}
171+
172+
@java.lang.Override
173+
protected DiscoveryBlockingV2Stub build(
174+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
175+
return new DiscoveryBlockingV2Stub(channel, callOptions);
176+
}
177+
178+
/**
179+
* <pre>
180+
* Get the name of the plugin
181+
* </pre>
182+
*/
183+
public io.cloudquery.discovery.v1.GetVersions.Response getVersions(io.cloudquery.discovery.v1.GetVersions.Request request) {
184+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
185+
getChannel(), getGetVersionsMethod(), getCallOptions(), request);
186+
}
187+
}
188+
189+
/**
190+
* A stub to allow clients to do limited synchronous rpc calls to service Discovery.
191+
*/
150192
public static final class DiscoveryBlockingStub
151193
extends io.grpc.stub.AbstractBlockingStub<DiscoveryBlockingStub> {
152194
private DiscoveryBlockingStub(

build/generated/source/proto/main/grpc/io/cloudquery/plugin/v3/PluginGrpc.java

Lines changed: 164 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
*/
77
@javax.annotation.Generated(
8-
value = "by gRPC proto compiler (version 1.69.0)",
8+
value = "by gRPC proto compiler (version 1.70.0)",
99
comments = "Source: cloudquery/plugin/v3/plugin.proto")
1010
@io.grpc.stub.annotations.GrpcGenerated
1111
public final class PluginGrpc {
@@ -401,6 +401,21 @@ public PluginStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptio
401401
return PluginStub.newStub(factory, channel);
402402
}
403403

404+
/**
405+
* Creates a new blocking-style stub that supports all types of calls on the service
406+
*/
407+
public static PluginBlockingV2Stub newBlockingV2Stub(
408+
io.grpc.Channel channel) {
409+
io.grpc.stub.AbstractStub.StubFactory<PluginBlockingV2Stub> factory =
410+
new io.grpc.stub.AbstractStub.StubFactory<PluginBlockingV2Stub>() {
411+
@java.lang.Override
412+
public PluginBlockingV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
413+
return new PluginBlockingV2Stub(channel, callOptions);
414+
}
415+
};
416+
return PluginBlockingV2Stub.newStub(factory, channel);
417+
}
418+
404419
/**
405420
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
406421
*/
@@ -725,6 +740,154 @@ public void testConnection(io.cloudquery.plugin.v3.TestConnection.Request reques
725740
/**
726741
* A stub to allow clients to do synchronous rpc calls to service Plugin.
727742
*/
743+
public static final class PluginBlockingV2Stub
744+
extends io.grpc.stub.AbstractBlockingStub<PluginBlockingV2Stub> {
745+
private PluginBlockingV2Stub(
746+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
747+
super(channel, callOptions);
748+
}
749+
750+
@java.lang.Override
751+
protected PluginBlockingV2Stub build(
752+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
753+
return new PluginBlockingV2Stub(channel, callOptions);
754+
}
755+
756+
/**
757+
* <pre>
758+
* Get the name of the plugin
759+
* </pre>
760+
*/
761+
public io.cloudquery.plugin.v3.GetName.Response getName(io.cloudquery.plugin.v3.GetName.Request request) {
762+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
763+
getChannel(), getGetNameMethod(), getCallOptions(), request);
764+
}
765+
766+
/**
767+
* <pre>
768+
* Get the current version of the plugin
769+
* </pre>
770+
*/
771+
public io.cloudquery.plugin.v3.GetVersion.Response getVersion(io.cloudquery.plugin.v3.GetVersion.Request request) {
772+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
773+
getChannel(), getGetVersionMethod(), getCallOptions(), request);
774+
}
775+
776+
/**
777+
* <pre>
778+
* Get plugin spec schema.
779+
* This will allow validating the input even before calling Init.
780+
* Should be called before Init.
781+
* </pre>
782+
*/
783+
public io.cloudquery.plugin.v3.GetSpecSchema.Response getSpecSchema(io.cloudquery.plugin.v3.GetSpecSchema.Request request) {
784+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
785+
getChannel(), getGetSpecSchemaMethod(), getCallOptions(), request);
786+
}
787+
788+
/**
789+
* <pre>
790+
* Configure the plugin with the given credentials and mode
791+
* </pre>
792+
*/
793+
public io.cloudquery.plugin.v3.Init.Response init(io.cloudquery.plugin.v3.Init.Request request) {
794+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
795+
getChannel(), getInitMethod(), getCallOptions(), request);
796+
}
797+
798+
/**
799+
* <pre>
800+
* Get all tables the source plugin supports. Must be called after Init
801+
* </pre>
802+
*/
803+
public io.cloudquery.plugin.v3.GetTables.Response getTables(io.cloudquery.plugin.v3.GetTables.Request request) {
804+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
805+
getChannel(), getGetTablesMethod(), getCallOptions(), request);
806+
}
807+
808+
/**
809+
* <pre>
810+
* Start a sync on the source plugin. It streams messages as output.
811+
* </pre>
812+
*/
813+
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918")
814+
public io.grpc.stub.BlockingClientCall<?, io.cloudquery.plugin.v3.Sync.Response>
815+
sync(io.cloudquery.plugin.v3.Sync.Request request) {
816+
return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall(
817+
getChannel(), getSyncMethod(), getCallOptions(), request);
818+
}
819+
820+
/**
821+
* <pre>
822+
* Start a Read on the source plugin for a given table and schema. It streams messages as output.
823+
* The plugin assume that that schema was used to also write the data beforehand
824+
* </pre>
825+
*/
826+
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918")
827+
public io.grpc.stub.BlockingClientCall<?, io.cloudquery.plugin.v3.Read.Response>
828+
read(io.cloudquery.plugin.v3.Read.Request request) {
829+
return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall(
830+
getChannel(), getReadMethod(), getCallOptions(), request);
831+
}
832+
833+
/**
834+
* <pre>
835+
* Write resources. Write is the mirror of Sync, expecting a stream of messages as input.
836+
* </pre>
837+
*/
838+
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918")
839+
public io.grpc.stub.BlockingClientCall<io.cloudquery.plugin.v3.Write.Request, io.cloudquery.plugin.v3.Write.Response>
840+
write() {
841+
return io.grpc.stub.ClientCalls.blockingClientStreamingCall(
842+
getChannel(), getWriteMethod(), getCallOptions());
843+
}
844+
845+
/**
846+
* <pre>
847+
* Transform resources.
848+
* </pre>
849+
*/
850+
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918")
851+
public io.grpc.stub.BlockingClientCall<io.cloudquery.plugin.v3.Transform.Request, io.cloudquery.plugin.v3.Transform.Response>
852+
transform() {
853+
return io.grpc.stub.ClientCalls.blockingBidiStreamingCall(
854+
getChannel(), getTransformMethod(), getCallOptions());
855+
}
856+
857+
/**
858+
* <pre>
859+
* Transform schemas.
860+
* </pre>
861+
*/
862+
public io.cloudquery.plugin.v3.TransformSchema.Response transformSchema(io.cloudquery.plugin.v3.TransformSchema.Request request) {
863+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
864+
getChannel(), getTransformSchemaMethod(), getCallOptions(), request);
865+
}
866+
867+
/**
868+
* <pre>
869+
* Send signal to flush and close open connections
870+
* </pre>
871+
*/
872+
public io.cloudquery.plugin.v3.Close.Response close(io.cloudquery.plugin.v3.Close.Request request) {
873+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
874+
getChannel(), getCloseMethod(), getCallOptions(), request);
875+
}
876+
877+
/**
878+
* <pre>
879+
* Validate and test the connections used by the plugin
880+
* </pre>
881+
*/
882+
public io.cloudquery.plugin.v3.TestConnection.Response testConnection(io.cloudquery.plugin.v3.TestConnection.Request request) {
883+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
884+
getChannel(), getTestConnectionMethod(), getCallOptions(), request);
885+
}
886+
}
887+
888+
/**
889+
* A stub to allow clients to do limited synchronous rpc calls to service Plugin.
890+
*/
728891
public static final class PluginBlockingStub
729892
extends io.grpc.stub.AbstractBlockingStub<PluginBlockingStub> {
730893
private PluginBlockingStub(

build/generated/source/proto/main/java/io/cloudquery/discovery/v1/DiscoveryOuterClass.java

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/generated/source/proto/main/java/io/cloudquery/discovery/v1/GetVersions.java

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/generated/source/proto/main/java/io/cloudquery/discovery/v1/GetVersionsOrBuilder.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/generated/source/proto/main/java/io/cloudquery/plugin/v3/Close.java

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/generated/source/proto/main/java/io/cloudquery/plugin/v3/CloseOrBuilder.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/generated/source/proto/main/java/io/cloudquery/plugin/v3/GetName.java

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)