|
5 | 5 | /** |
6 | 6 | */ |
7 | 7 | @javax.annotation.Generated( |
8 | | - value = "by gRPC proto compiler (version 1.69.0)", |
| 8 | + value = "by gRPC proto compiler (version 1.70.0)", |
9 | 9 | comments = "Source: cloudquery/plugin/v3/plugin.proto") |
10 | 10 | @io.grpc.stub.annotations.GrpcGenerated |
11 | 11 | public final class PluginGrpc { |
@@ -401,6 +401,21 @@ public PluginStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptio |
401 | 401 | return PluginStub.newStub(factory, channel); |
402 | 402 | } |
403 | 403 |
|
| 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 | + |
404 | 419 | /** |
405 | 420 | * Creates a new blocking-style stub that supports unary and streaming output calls on the service |
406 | 421 | */ |
@@ -725,6 +740,154 @@ public void testConnection(io.cloudquery.plugin.v3.TestConnection.Request reques |
725 | 740 | /** |
726 | 741 | * A stub to allow clients to do synchronous rpc calls to service Plugin. |
727 | 742 | */ |
| 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 | + */ |
728 | 891 | public static final class PluginBlockingStub |
729 | 892 | extends io.grpc.stub.AbstractBlockingStub<PluginBlockingStub> { |
730 | 893 | private PluginBlockingStub( |
|
0 commit comments