Search in sources :

Example 1 with GetConsoleTypesResponse

use of io.deephaven.javascript.proto.dhinternal.io.deephaven.proto.console_pb.GetConsoleTypesResponse in project deephaven-core by deephaven.

the class QueryConnectable method getConsoleTypes.

@JsMethod
public Promise<JsArray<String>> getConsoleTypes() {
    Promise<GetConsoleTypesResponse> promise = Callbacks.grpcUnaryPromise(callback -> {
        GetConsoleTypesRequest request = new GetConsoleTypesRequest();
        connection.get().consoleServiceClient().getConsoleTypes(request, connection.get().metadata(), callback::apply);
    });
    return promise.then(result -> Promise.resolve(result.getConsoleTypesList()));
}
Also used : GetConsoleTypesResponse(io.deephaven.javascript.proto.dhinternal.io.deephaven.proto.console_pb.GetConsoleTypesResponse) GetConsoleTypesRequest(io.deephaven.javascript.proto.dhinternal.io.deephaven.proto.console_pb.GetConsoleTypesRequest) JsMethod(jsinterop.annotations.JsMethod)

Aggregations

GetConsoleTypesRequest (io.deephaven.javascript.proto.dhinternal.io.deephaven.proto.console_pb.GetConsoleTypesRequest)1 GetConsoleTypesResponse (io.deephaven.javascript.proto.dhinternal.io.deephaven.proto.console_pb.GetConsoleTypesResponse)1 JsMethod (jsinterop.annotations.JsMethod)1