use of com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest in project java-bigquerydatatransfer by googleapis.
the class GetTransferConfigInfo method getTransferConfigInfo.
public static void getTransferConfigInfo(String configId) throws IOException {
try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
GetTransferConfigRequest request = GetTransferConfigRequest.newBuilder().setName(configId).build();
TransferConfig info = dataTransferServiceClient.getTransferConfig(request);
System.out.print("Config info retrieved successfully." + info.getName() + "\n");
} catch (ApiException ex) {
System.out.print("config not found." + ex.toString());
}
}
Aggregations