Skip to content

Commit 5da8cc7

Browse files
authored
fix: Generate Java Code from plugin-pb (#99)
This PR was created by a scheduled workflow to regenerate the Java code from `plugin-pb`.
1 parent 6efbbef commit 5da8cc7

File tree

6 files changed

+1721
-30
lines changed

6 files changed

+1721
-30
lines changed

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

Lines changed: 87 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,37 @@ io.cloudquery.plugin.v3.Close.Response> getCloseMethod() {
294294
return getCloseMethod;
295295
}
296296

297+
private static volatile io.grpc.MethodDescriptor<io.cloudquery.plugin.v3.TestConnection.Request,
298+
io.cloudquery.plugin.v3.TestConnection.Response> getTestConnectionMethod;
299+
300+
@io.grpc.stub.annotations.RpcMethod(
301+
fullMethodName = SERVICE_NAME + '/' + "TestConnection",
302+
requestType = io.cloudquery.plugin.v3.TestConnection.Request.class,
303+
responseType = io.cloudquery.plugin.v3.TestConnection.Response.class,
304+
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
305+
public static io.grpc.MethodDescriptor<io.cloudquery.plugin.v3.TestConnection.Request,
306+
io.cloudquery.plugin.v3.TestConnection.Response> getTestConnectionMethod() {
307+
io.grpc.MethodDescriptor<io.cloudquery.plugin.v3.TestConnection.Request, io.cloudquery.plugin.v3.TestConnection.Response> getTestConnectionMethod;
308+
if ((getTestConnectionMethod = PluginGrpc.getTestConnectionMethod) == null) {
309+
synchronized (PluginGrpc.class) {
310+
if ((getTestConnectionMethod = PluginGrpc.getTestConnectionMethod) == null) {
311+
PluginGrpc.getTestConnectionMethod = getTestConnectionMethod =
312+
io.grpc.MethodDescriptor.<io.cloudquery.plugin.v3.TestConnection.Request, io.cloudquery.plugin.v3.TestConnection.Response>newBuilder()
313+
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
314+
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestConnection"))
315+
.setSampledToLocalTracing(true)
316+
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
317+
io.cloudquery.plugin.v3.TestConnection.Request.getDefaultInstance()))
318+
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
319+
io.cloudquery.plugin.v3.TestConnection.Response.getDefaultInstance()))
320+
.setSchemaDescriptor(new PluginMethodDescriptorSupplier("TestConnection"))
321+
.build();
322+
}
323+
}
324+
}
325+
return getTestConnectionMethod;
326+
}
327+
297328
/**
298329
* Creates a new async stub that supports all call types for the service
299330
*/
@@ -434,6 +465,16 @@ default void close(io.cloudquery.plugin.v3.Close.Request request,
434465
io.grpc.stub.StreamObserver<io.cloudquery.plugin.v3.Close.Response> responseObserver) {
435466
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCloseMethod(), responseObserver);
436467
}
468+
469+
/**
470+
* <pre>
471+
* Validate and test the connections used by the plugin
472+
* </pre>
473+
*/
474+
default void testConnection(io.cloudquery.plugin.v3.TestConnection.Request request,
475+
io.grpc.stub.StreamObserver<io.cloudquery.plugin.v3.TestConnection.Response> responseObserver) {
476+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestConnectionMethod(), responseObserver);
477+
}
437478
}
438479

439480
/**
@@ -564,6 +605,17 @@ public void close(io.cloudquery.plugin.v3.Close.Request request,
564605
io.grpc.stub.ClientCalls.asyncUnaryCall(
565606
getChannel().newCall(getCloseMethod(), getCallOptions()), request, responseObserver);
566607
}
608+
609+
/**
610+
* <pre>
611+
* Validate and test the connections used by the plugin
612+
* </pre>
613+
*/
614+
public void testConnection(io.cloudquery.plugin.v3.TestConnection.Request request,
615+
io.grpc.stub.StreamObserver<io.cloudquery.plugin.v3.TestConnection.Response> responseObserver) {
616+
io.grpc.stub.ClientCalls.asyncUnaryCall(
617+
getChannel().newCall(getTestConnectionMethod(), getCallOptions()), request, responseObserver);
618+
}
567619
}
568620

569621
/**
@@ -666,6 +718,16 @@ public io.cloudquery.plugin.v3.Close.Response close(io.cloudquery.plugin.v3.Clos
666718
return io.grpc.stub.ClientCalls.blockingUnaryCall(
667719
getChannel(), getCloseMethod(), getCallOptions(), request);
668720
}
721+
722+
/**
723+
* <pre>
724+
* Validate and test the connections used by the plugin
725+
* </pre>
726+
*/
727+
public io.cloudquery.plugin.v3.TestConnection.Response testConnection(io.cloudquery.plugin.v3.TestConnection.Request request) {
728+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
729+
getChannel(), getTestConnectionMethod(), getCallOptions(), request);
730+
}
669731
}
670732

671733
/**
@@ -751,6 +813,17 @@ public com.google.common.util.concurrent.ListenableFuture<io.cloudquery.plugin.v
751813
return io.grpc.stub.ClientCalls.futureUnaryCall(
752814
getChannel().newCall(getCloseMethod(), getCallOptions()), request);
753815
}
816+
817+
/**
818+
* <pre>
819+
* Validate and test the connections used by the plugin
820+
* </pre>
821+
*/
822+
public com.google.common.util.concurrent.ListenableFuture<io.cloudquery.plugin.v3.TestConnection.Response> testConnection(
823+
io.cloudquery.plugin.v3.TestConnection.Request request) {
824+
return io.grpc.stub.ClientCalls.futureUnaryCall(
825+
getChannel().newCall(getTestConnectionMethod(), getCallOptions()), request);
826+
}
754827
}
755828

756829
private static final int METHODID_GET_NAME = 0;
@@ -761,7 +834,8 @@ public com.google.common.util.concurrent.ListenableFuture<io.cloudquery.plugin.v
761834
private static final int METHODID_SYNC = 5;
762835
private static final int METHODID_READ = 6;
763836
private static final int METHODID_CLOSE = 7;
764-
private static final int METHODID_WRITE = 8;
837+
private static final int METHODID_TEST_CONNECTION = 8;
838+
private static final int METHODID_WRITE = 9;
765839

766840
private static final class MethodHandlers<Req, Resp> implements
767841
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
@@ -812,6 +886,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
812886
serviceImpl.close((io.cloudquery.plugin.v3.Close.Request) request,
813887
(io.grpc.stub.StreamObserver<io.cloudquery.plugin.v3.Close.Response>) responseObserver);
814888
break;
889+
case METHODID_TEST_CONNECTION:
890+
serviceImpl.testConnection((io.cloudquery.plugin.v3.TestConnection.Request) request,
891+
(io.grpc.stub.StreamObserver<io.cloudquery.plugin.v3.TestConnection.Response>) responseObserver);
892+
break;
815893
default:
816894
throw new AssertionError();
817895
}
@@ -896,6 +974,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
896974
io.cloudquery.plugin.v3.Close.Request,
897975
io.cloudquery.plugin.v3.Close.Response>(
898976
service, METHODID_CLOSE)))
977+
.addMethod(
978+
getTestConnectionMethod(),
979+
io.grpc.stub.ServerCalls.asyncUnaryCall(
980+
new MethodHandlers<
981+
io.cloudquery.plugin.v3.TestConnection.Request,
982+
io.cloudquery.plugin.v3.TestConnection.Response>(
983+
service, METHODID_TEST_CONNECTION)))
899984
.build();
900985
}
901986

@@ -953,6 +1038,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
9531038
.addMethod(getReadMethod())
9541039
.addMethod(getWriteMethod())
9551040
.addMethod(getCloseMethod())
1041+
.addMethod(getTestConnectionMethod())
9561042
.build();
9571043
}
9581044
}

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

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

0 commit comments

Comments
 (0)