Class SqlTranslationServiceGrpc.SqlTranslationServiceStub (0.46.0)

public static final class SqlTranslationServiceGrpc.SqlTranslationServiceStub extends AbstractAsyncStub<SqlTranslationServiceGrpc.SqlTranslationServiceStub>

A stub to allow clients to do asynchronous rpc calls to service SqlTranslationService.

Provides other SQL dialects to GoogleSQL translation operations.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > SqlTranslationServiceGrpc.SqlTranslationServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected SqlTranslationServiceGrpc.SqlTranslationServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
SqlTranslationServiceGrpc.SqlTranslationServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

translateQuery(TranslateQueryRequest request, StreamObserver<TranslateQueryResponse> responseObserver)

public void translateQuery(TranslateQueryRequest request, StreamObserver<TranslateQueryResponse> responseObserver)

Translates input queries from source dialects to GoogleSQL.

Parameters
Name Description
request TranslateQueryRequest
responseObserver io.grpc.stub.StreamObserver<TranslateQueryResponse>