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()));
}
Aggregations