Class DataTransferServiceGrpc.DataTransferServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<DataTransferServiceGrpc.DataTransferServiceStub>
-
- com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceGrpc.DataTransferServiceStub
-
- Enclosing class:
- DataTransferServiceGrpc
public static final class DataTransferServiceGrpc.DataTransferServiceStub extends io.grpc.stub.AbstractAsyncStub<DataTransferServiceGrpc.DataTransferServiceStub>
A stub to allow clients to do asynchronous rpc calls to service DataTransferService.This API allows users to manage their data transfers into BigQuery.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected DataTransferServiceGrpc.DataTransferServiceStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
checkValidCreds(CheckValidCredsRequest request, io.grpc.stub.StreamObserver<CheckValidCredsResponse> responseObserver)
Returns true if valid credentials exist for the given data source and requesting user.void
createTransferConfig(CreateTransferConfigRequest request, io.grpc.stub.StreamObserver<TransferConfig> responseObserver)
Creates a new data transfer configuration.void
deleteTransferConfig(DeleteTransferConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a data transfer configuration, including any associated transfer runs and logs.void
deleteTransferRun(DeleteTransferRunRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the specified transfer run.void
enrollDataSources(EnrollDataSourcesRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Enroll data sources in a user project.void
getDataSource(GetDataSourceRequest request, io.grpc.stub.StreamObserver<DataSource> responseObserver)
Retrieves a supported data source and returns its settings.void
getTransferConfig(GetTransferConfigRequest request, io.grpc.stub.StreamObserver<TransferConfig> responseObserver)
Returns information about a data transfer config.void
getTransferRun(GetTransferRunRequest request, io.grpc.stub.StreamObserver<TransferRun> responseObserver)
Returns information about the particular transfer run.void
listDataSources(ListDataSourcesRequest request, io.grpc.stub.StreamObserver<ListDataSourcesResponse> responseObserver)
Lists supported data sources and returns their settings.void
listTransferConfigs(ListTransferConfigsRequest request, io.grpc.stub.StreamObserver<ListTransferConfigsResponse> responseObserver)
Returns information about all transfer configs owned by a project in the specified location.void
listTransferLogs(ListTransferLogsRequest request, io.grpc.stub.StreamObserver<ListTransferLogsResponse> responseObserver)
Returns log messages for the transfer run.void
listTransferRuns(ListTransferRunsRequest request, io.grpc.stub.StreamObserver<ListTransferRunsResponse> responseObserver)
Returns information about running and completed transfer runs.void
scheduleTransferRuns(ScheduleTransferRunsRequest request, io.grpc.stub.StreamObserver<ScheduleTransferRunsResponse> responseObserver)
Deprecated.void
startManualTransferRuns(StartManualTransferRunsRequest request, io.grpc.stub.StreamObserver<StartManualTransferRunsResponse> responseObserver)
Start manual transfer runs to be executed now with schedule_time equal to current time.void
updateTransferConfig(UpdateTransferConfigRequest request, io.grpc.stub.StreamObserver<TransferConfig> responseObserver)
Updates a data transfer configuration.
-
-
-
Method Detail
-
build
protected DataTransferServiceGrpc.DataTransferServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<DataTransferServiceGrpc.DataTransferServiceStub>
-
getDataSource
public void getDataSource(GetDataSourceRequest request, io.grpc.stub.StreamObserver<DataSource> responseObserver)
Retrieves a supported data source and returns its settings.
-
listDataSources
public void listDataSources(ListDataSourcesRequest request, io.grpc.stub.StreamObserver<ListDataSourcesResponse> responseObserver)
Lists supported data sources and returns their settings.
-
createTransferConfig
public void createTransferConfig(CreateTransferConfigRequest request, io.grpc.stub.StreamObserver<TransferConfig> responseObserver)
Creates a new data transfer configuration.
-
updateTransferConfig
public void updateTransferConfig(UpdateTransferConfigRequest request, io.grpc.stub.StreamObserver<TransferConfig> responseObserver)
Updates a data transfer configuration. All fields must be set, even if they are not updated.
-
deleteTransferConfig
public void deleteTransferConfig(DeleteTransferConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a data transfer configuration, including any associated transfer runs and logs.
-
getTransferConfig
public void getTransferConfig(GetTransferConfigRequest request, io.grpc.stub.StreamObserver<TransferConfig> responseObserver)
Returns information about a data transfer config.
-
listTransferConfigs
public void listTransferConfigs(ListTransferConfigsRequest request, io.grpc.stub.StreamObserver<ListTransferConfigsResponse> responseObserver)
Returns information about all transfer configs owned by a project in the specified location.
-
scheduleTransferRuns
@Deprecated public void scheduleTransferRuns(ScheduleTransferRunsRequest request, io.grpc.stub.StreamObserver<ScheduleTransferRunsResponse> responseObserver)
Deprecated.Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead.
-
startManualTransferRuns
public void startManualTransferRuns(StartManualTransferRunsRequest request, io.grpc.stub.StreamObserver<StartManualTransferRunsResponse> responseObserver)
Start manual transfer runs to be executed now with schedule_time equal to current time. The transfer runs can be created for a time range where the run_time is between start_time (inclusive) and end_time (exclusive), or for a specific run_time.
-
getTransferRun
public void getTransferRun(GetTransferRunRequest request, io.grpc.stub.StreamObserver<TransferRun> responseObserver)
Returns information about the particular transfer run.
-
deleteTransferRun
public void deleteTransferRun(DeleteTransferRunRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the specified transfer run.
-
listTransferRuns
public void listTransferRuns(ListTransferRunsRequest request, io.grpc.stub.StreamObserver<ListTransferRunsResponse> responseObserver)
Returns information about running and completed transfer runs.
-
listTransferLogs
public void listTransferLogs(ListTransferLogsRequest request, io.grpc.stub.StreamObserver<ListTransferLogsResponse> responseObserver)
Returns log messages for the transfer run.
-
checkValidCreds
public void checkValidCreds(CheckValidCredsRequest request, io.grpc.stub.StreamObserver<CheckValidCredsResponse> responseObserver)
Returns true if valid credentials exist for the given data source and requesting user.
-
enrollDataSources
public void enrollDataSources(EnrollDataSourcesRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will appear in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found in the public guide for [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
-
-