diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml new file mode 100644 index 00000000..1a23ea42 --- /dev/null +++ b/.github/blunderbuss.yml @@ -0,0 +1,7 @@ +# Configuration for the Blunderbuss GitHub app. For more info see +# https://github.com/googleapis/repo-automation-bots/tree/master/packages/blunderbuss +assign_prs_by: +- labels: + - samples + to: + - googleapis/java-samples-reviewers \ No newline at end of file diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 5331d02d..e4b80df8 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-bigquerydatatransfer.git", - "sha": "caac326028df9ff51e3f68c4159e2fff5828c6cd" + "sha": "18e069fd0dc437ba5254a6b412bad91bfc9b7a5f" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "68742c6016bf0d16948a572633d17955a8737414" + "sha": "91b34d7ffc37581e03eec8b16d08b84e46b82bbe" } } ] diff --git a/CHANGELOG.md b/CHANGELOG.md index bc349a46..e8a18a44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +### [1.0.21](https://www.github.com/googleapis/java-bigquerydatatransfer/compare/v1.0.20...v1.0.21) (2020-12-02) + + +### Documentation + +* **samples:** add create youtube channel transfer config ([#537](https://www.github.com/googleapis/java-bigquerydatatransfer/issues/537)) ([fddd0a9](https://www.github.com/googleapis/java-bigquerydatatransfer/commit/fddd0a9acddfbc309f949db247f7279a280fb53d)) +* **samples:** add create youtube owner channel transfer config ([#538](https://www.github.com/googleapis/java-bigquerydatatransfer/issues/538)) ([18e069f](https://www.github.com/googleapis/java-bigquerydatatransfer/commit/18e069fd0dc437ba5254a6b412bad91bfc9b7a5f)) +* **samples:** create play transfer ([#536](https://www.github.com/googleapis/java-bigquerydatatransfer/issues/536)) ([52dc122](https://www.github.com/googleapis/java-bigquerydatatransfer/commit/52dc122f472b530f8702cc74f84c2224939e6a4e)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-pubsub to v1.110.0 ([#547](https://www.github.com/googleapis/java-bigquerydatatransfer/issues/547)) ([c42c3aa](https://www.github.com/googleapis/java-bigquerydatatransfer/commit/c42c3aa06bafeaf6d57440ce6a32b1542cb28a0e)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#548](https://www.github.com/googleapis/java-bigquerydatatransfer/issues/548)) ([137c2f3](https://www.github.com/googleapis/java-bigquerydatatransfer/commit/137c2f3bd15dfe9986c73f9ee4a4e5d0a5cb850d)) + ### [1.0.20](https://www.github.com/googleapis/java-bigquerydatatransfer/compare/v1.0.19...v1.0.20) (2020-11-20) diff --git a/README.md b/README.md index fde90f06..331a1fda 100644 --- a/README.md +++ b/README.md @@ -38,18 +38,18 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 1.0.19 + 1.0.20 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquerydatatransfer:1.0.19' +compile 'com.google.cloud:google-cloud-bigquerydatatransfer:1.0.20' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "1.0.19" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "1.0.20" ``` ## Authentication @@ -96,10 +96,13 @@ has instructions for running the samples. | Create Amazon S3 Transfer | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateAmazonS3Transfer.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateAmazonS3Transfer.java) | | Create Campaignmanager Transfer | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateCampaignmanagerTransfer.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateCampaignmanagerTransfer.java) | | Create Cloud Storage Transfer | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateCloudStorageTransfer.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateCloudStorageTransfer.java) | +| Create Play Transfer | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreatePlayTransfer.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreatePlayTransfer.java) | | Create Redshift Transfer | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateRedshiftTransfer.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateRedshiftTransfer.java) | | Create Scheduled Query | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateScheduledQuery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateScheduledQuery.java) | | Create Scheduled Query With Service Account | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateScheduledQueryWithServiceAccount.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateScheduledQueryWithServiceAccount.java) | | Create Teradata Transfer | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateTeradataTransfer.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateTeradataTransfer.java) | +| Create Youtube Channel Transfer | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateYoutubeChannelTransfer.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateYoutubeChannelTransfer.java) | +| Create Youtube Content Owner Transfer | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateYoutubeContentOwnerTransfer.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateYoutubeContentOwnerTransfer.java) | | Delete Scheduled Query | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/DeleteScheduledQuery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/DeleteScheduledQuery.java) | | Delete Transfer Config | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/DeleteTransferConfig.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/DeleteTransferConfig.java) | | Disable Transfer Config | [source code](https://github.com/googleapis/java-bigquerydatatransfer/blob/master/samples/snippets/src/main/java/com/example/bigquerydatatransfer/DisableTransferConfig.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-bigquerydatatransfer&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/bigquerydatatransfer/DisableTransferConfig.java) | diff --git a/google-cloud-bigquerydatatransfer-bom/pom.xml b/google-cloud-bigquerydatatransfer-bom/pom.xml index cf0b6611..6221ffd8 100644 --- a/google-cloud-bigquerydatatransfer-bom/pom.xml +++ b/google-cloud-bigquerydatatransfer-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer-bom - 1.0.20 + 1.0.21 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.cloud google-cloud-bigquerydatatransfer - 1.0.20 + 1.0.21 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 1.0.20 + 1.0.21 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 1.0.20 + 1.0.21 diff --git a/google-cloud-bigquerydatatransfer/pom.xml b/google-cloud-bigquerydatatransfer/pom.xml index f54303a8..74003d0d 100644 --- a/google-cloud-bigquerydatatransfer/pom.xml +++ b/google-cloud-bigquerydatatransfer/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer - 1.0.20 + 1.0.21 jar BigQuery DataTransfer https://github.com/googleapis/java-bigquerydatatransfer @@ -11,7 +11,7 @@ com.google.cloud google-cloud-bigquerydatatransfer-parent - 1.0.20 + 1.0.21 google-cloud-bigquerydatatransfer diff --git a/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index ba527f94..b6845611 100644 --- a/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 1.0.20 + 1.0.21 grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 1.0.20 + 1.0.21 diff --git a/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java b/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java index e89834f0..fff762cd 100644 --- a/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java +++ b/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java @@ -22,16 +22,7 @@ import static io.grpc.stub.ServerCalls.asyncUnaryCall; import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; -/** - * - * - *
- * The Google BigQuery Data Transfer Service API enables BigQuery users to
- * configure the transfer of their data from other Google Products into
- * BigQuery. This service contains methods that are end user exposed. It backs
- * up the frontend.
- * 
- */ +/** */ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto") @@ -766,26 +757,10 @@ public DataTransferServiceFutureStub newStub( return DataTransferServiceFutureStub.newStub(factory, channel); } - /** - * - * - *
-   * The Google BigQuery Data Transfer Service API enables BigQuery users to
-   * configure the transfer of their data from other Google Products into
-   * BigQuery. This service contains methods that are end user exposed. It backs
-   * up the frontend.
-   * 
- */ + /** */ public abstract static class DataTransferServiceImplBase implements io.grpc.BindableService { - /** - * - * - *
-     * Retrieves a supported data source and returns its settings,
-     * which can be used for UI rendering.
-     * 
- */ + /** */ public void getDataSource( com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request, io.grpc.stub.StreamObserver @@ -793,14 +768,7 @@ public void getDataSource( asyncUnimplementedUnaryCall(getGetDataSourceMethod(), responseObserver); } - /** - * - * - *
-     * Lists supported data sources and returns their settings,
-     * which can be used for UI rendering.
-     * 
- */ + /** */ public void listDataSources( com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request, io.grpc.stub.StreamObserver< @@ -809,13 +777,7 @@ public void listDataSources( asyncUnimplementedUnaryCall(getListDataSourcesMethod(), responseObserver); } - /** - * - * - *
-     * Creates a new data transfer configuration.
-     * 
- */ + /** */ public void createTransferConfig( com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request, io.grpc.stub.StreamObserver @@ -823,14 +785,7 @@ public void createTransferConfig( asyncUnimplementedUnaryCall(getCreateTransferConfigMethod(), responseObserver); } - /** - * - * - *
-     * Updates a data transfer configuration.
-     * All fields must be set, even if they are not updated.
-     * 
- */ + /** */ public void updateTransferConfig( com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request, io.grpc.stub.StreamObserver @@ -838,27 +793,14 @@ public void updateTransferConfig( asyncUnimplementedUnaryCall(getUpdateTransferConfigMethod(), responseObserver); } - /** - * - * - *
-     * Deletes a data transfer configuration,
-     * including any associated transfer runs and logs.
-     * 
- */ + /** */ public void deleteTransferConfig( com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getDeleteTransferConfigMethod(), responseObserver); } - /** - * - * - *
-     * Returns information about a data transfer config.
-     * 
- */ + /** */ public void getTransferConfig( com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request, io.grpc.stub.StreamObserver @@ -866,13 +808,7 @@ public void getTransferConfig( asyncUnimplementedUnaryCall(getGetTransferConfigMethod(), responseObserver); } - /** - * - * - *
-     * Returns information about all data transfers in the project.
-     * 
- */ + /** */ public void listTransferConfigs( com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request, io.grpc.stub.StreamObserver< @@ -881,17 +817,7 @@ public void listTransferConfigs( asyncUnimplementedUnaryCall(getListTransferConfigsMethod(), responseObserver); } - /** - * - * - *
-     * 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.
-     * 
- */ + /** */ @java.lang.Deprecated public void scheduleTransferRuns( com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request, @@ -901,16 +827,7 @@ public void scheduleTransferRuns( asyncUnimplementedUnaryCall(getScheduleTransferRunsMethod(), 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.
-     * 
- */ + /** */ public void startManualTransferRuns( com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request, io.grpc.stub.StreamObserver< @@ -919,13 +836,7 @@ public void startManualTransferRuns( asyncUnimplementedUnaryCall(getStartManualTransferRunsMethod(), responseObserver); } - /** - * - * - *
-     * Returns information about the particular transfer run.
-     * 
- */ + /** */ public void getTransferRun( com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request, io.grpc.stub.StreamObserver @@ -933,26 +844,14 @@ public void getTransferRun( asyncUnimplementedUnaryCall(getGetTransferRunMethod(), responseObserver); } - /** - * - * - *
-     * Deletes the specified transfer run.
-     * 
- */ + /** */ public void deleteTransferRun( com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getDeleteTransferRunMethod(), responseObserver); } - /** - * - * - *
-     * Returns information about running and completed jobs.
-     * 
- */ + /** */ public void listTransferRuns( com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request, io.grpc.stub.StreamObserver< @@ -961,13 +860,7 @@ public void listTransferRuns( asyncUnimplementedUnaryCall(getListTransferRunsMethod(), responseObserver); } - /** - * - * - *
-     * Returns user facing log messages for the data transfer run.
-     * 
- */ + /** */ public void listTransferLogs( com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request, io.grpc.stub.StreamObserver< @@ -976,18 +869,7 @@ public void listTransferLogs( asyncUnimplementedUnaryCall(getListTransferLogsMethod(), responseObserver); } - /** - * - * - *
-     * Returns true if valid credentials exist for the given data source and
-     * requesting user.
-     * Some data sources doesn't support service account, so we need to talk to
-     * them on behalf of the end user. This API just checks whether we have OAuth
-     * token for the particular user, which is a pre-requisite before user can
-     * create a transfer config.
-     * 
- */ + /** */ public void checkValidCreds( com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request, io.grpc.stub.StreamObserver< @@ -1099,16 +981,7 @@ public final io.grpc.ServerServiceDefinition bindService() { } } - /** - * - * - *
-   * The Google BigQuery Data Transfer Service API enables BigQuery users to
-   * configure the transfer of their data from other Google Products into
-   * BigQuery. This service contains methods that are end user exposed. It backs
-   * up the frontend.
-   * 
- */ + /** */ public static final class DataTransferServiceStub extends io.grpc.stub.AbstractAsyncStub { private DataTransferServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -1121,14 +994,7 @@ protected DataTransferServiceStub build( return new DataTransferServiceStub(channel, callOptions); } - /** - * - * - *
-     * Retrieves a supported data source and returns its settings,
-     * which can be used for UI rendering.
-     * 
- */ + /** */ public void getDataSource( com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request, io.grpc.stub.StreamObserver @@ -1139,14 +1005,7 @@ public void getDataSource( responseObserver); } - /** - * - * - *
-     * Lists supported data sources and returns their settings,
-     * which can be used for UI rendering.
-     * 
- */ + /** */ public void listDataSources( com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request, io.grpc.stub.StreamObserver< @@ -1158,13 +1017,7 @@ public void listDataSources( responseObserver); } - /** - * - * - *
-     * Creates a new data transfer configuration.
-     * 
- */ + /** */ public void createTransferConfig( com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request, io.grpc.stub.StreamObserver @@ -1175,14 +1028,7 @@ public void createTransferConfig( responseObserver); } - /** - * - * - *
-     * Updates a data transfer configuration.
-     * All fields must be set, even if they are not updated.
-     * 
- */ + /** */ public void updateTransferConfig( com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request, io.grpc.stub.StreamObserver @@ -1193,14 +1039,7 @@ public void updateTransferConfig( responseObserver); } - /** - * - * - *
-     * Deletes a data transfer configuration,
-     * including any associated transfer runs and logs.
-     * 
- */ + /** */ public void deleteTransferConfig( com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1210,13 +1049,7 @@ public void deleteTransferConfig( responseObserver); } - /** - * - * - *
-     * Returns information about a data transfer config.
-     * 
- */ + /** */ public void getTransferConfig( com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request, io.grpc.stub.StreamObserver @@ -1227,13 +1060,7 @@ public void getTransferConfig( responseObserver); } - /** - * - * - *
-     * Returns information about all data transfers in the project.
-     * 
- */ + /** */ public void listTransferConfigs( com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request, io.grpc.stub.StreamObserver< @@ -1245,17 +1072,7 @@ public void listTransferConfigs( responseObserver); } - /** - * - * - *
-     * 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.
-     * 
- */ + /** */ @java.lang.Deprecated public void scheduleTransferRuns( com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest request, @@ -1268,16 +1085,7 @@ public void scheduleTransferRuns( 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.
-     * 
- */ + /** */ public void startManualTransferRuns( com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request, io.grpc.stub.StreamObserver< @@ -1289,13 +1097,7 @@ public void startManualTransferRuns( responseObserver); } - /** - * - * - *
-     * Returns information about the particular transfer run.
-     * 
- */ + /** */ public void getTransferRun( com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request, io.grpc.stub.StreamObserver @@ -1306,13 +1108,7 @@ public void getTransferRun( responseObserver); } - /** - * - * - *
-     * Deletes the specified transfer run.
-     * 
- */ + /** */ public void deleteTransferRun( com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1322,13 +1118,7 @@ public void deleteTransferRun( responseObserver); } - /** - * - * - *
-     * Returns information about running and completed jobs.
-     * 
- */ + /** */ public void listTransferRuns( com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request, io.grpc.stub.StreamObserver< @@ -1340,13 +1130,7 @@ public void listTransferRuns( responseObserver); } - /** - * - * - *
-     * Returns user facing log messages for the data transfer run.
-     * 
- */ + /** */ public void listTransferLogs( com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request, io.grpc.stub.StreamObserver< @@ -1358,18 +1142,7 @@ public void listTransferLogs( responseObserver); } - /** - * - * - *
-     * Returns true if valid credentials exist for the given data source and
-     * requesting user.
-     * Some data sources doesn't support service account, so we need to talk to
-     * them on behalf of the end user. This API just checks whether we have OAuth
-     * token for the particular user, which is a pre-requisite before user can
-     * create a transfer config.
-     * 
- */ + /** */ public void checkValidCreds( com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request, io.grpc.stub.StreamObserver< @@ -1382,16 +1155,7 @@ public void checkValidCreds( } } - /** - * - * - *
-   * The Google BigQuery Data Transfer Service API enables BigQuery users to
-   * configure the transfer of their data from other Google Products into
-   * BigQuery. This service contains methods that are end user exposed. It backs
-   * up the frontend.
-   * 
- */ + /** */ public static final class DataTransferServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private DataTransferServiceBlockingStub( @@ -1405,93 +1169,47 @@ protected DataTransferServiceBlockingStub build( return new DataTransferServiceBlockingStub(channel, callOptions); } - /** - * - * - *
-     * Retrieves a supported data source and returns its settings,
-     * which can be used for UI rendering.
-     * 
- */ + /** */ public com.google.cloud.bigquery.datatransfer.v1.DataSource getDataSource( com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request) { return blockingUnaryCall(getChannel(), getGetDataSourceMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Lists supported data sources and returns their settings,
-     * which can be used for UI rendering.
-     * 
- */ + /** */ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse listDataSources( com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request) { return blockingUnaryCall(getChannel(), getListDataSourcesMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Creates a new data transfer configuration.
-     * 
- */ + /** */ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig createTransferConfig( com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest request) { return blockingUnaryCall( getChannel(), getCreateTransferConfigMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Updates a data transfer configuration.
-     * All fields must be set, even if they are not updated.
-     * 
- */ + /** */ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig updateTransferConfig( com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest request) { return blockingUnaryCall( getChannel(), getUpdateTransferConfigMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Deletes a data transfer configuration,
-     * including any associated transfer runs and logs.
-     * 
- */ + /** */ public com.google.protobuf.Empty deleteTransferConfig( com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request) { return blockingUnaryCall( getChannel(), getDeleteTransferConfigMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Returns information about a data transfer config.
-     * 
- */ + /** */ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfig( com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest request) { return blockingUnaryCall( getChannel(), getGetTransferConfigMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Returns information about all data transfers in the project.
-     * 
- */ + /** */ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse listTransferConfigs( com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest request) { @@ -1499,17 +1217,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfi getChannel(), getListTransferConfigsMethod(), getCallOptions(), request); } - /** - * - * - *
-     * 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.
-     * 
- */ + /** */ @java.lang.Deprecated public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse scheduleTransferRuns( @@ -1518,16 +1226,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfi getChannel(), getScheduleTransferRunsMethod(), getCallOptions(), request); } - /** - * - * - *
-     * 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.
-     * 
- */ + /** */ public com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse startManualTransferRuns( com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest request) { @@ -1535,85 +1234,41 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getTransferConfi getChannel(), getStartManualTransferRunsMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Returns information about the particular transfer run.
-     * 
- */ + /** */ public com.google.cloud.bigquery.datatransfer.v1.TransferRun getTransferRun( com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request) { return blockingUnaryCall(getChannel(), getGetTransferRunMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Deletes the specified transfer run.
-     * 
- */ + /** */ public com.google.protobuf.Empty deleteTransferRun( com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request) { return blockingUnaryCall( getChannel(), getDeleteTransferRunMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Returns information about running and completed jobs.
-     * 
- */ + /** */ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse listTransferRuns( com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest request) { return blockingUnaryCall( getChannel(), getListTransferRunsMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Returns user facing log messages for the data transfer run.
-     * 
- */ + /** */ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse listTransferLogs( com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest request) { return blockingUnaryCall( getChannel(), getListTransferLogsMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Returns true if valid credentials exist for the given data source and
-     * requesting user.
-     * Some data sources doesn't support service account, so we need to talk to
-     * them on behalf of the end user. This API just checks whether we have OAuth
-     * token for the particular user, which is a pre-requisite before user can
-     * create a transfer config.
-     * 
- */ + /** */ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse checkValidCreds( com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request) { return blockingUnaryCall(getChannel(), getCheckValidCredsMethod(), getCallOptions(), request); } } - /** - * - * - *
-   * The Google BigQuery Data Transfer Service API enables BigQuery users to
-   * configure the transfer of their data from other Google Products into
-   * BigQuery. This service contains methods that are end user exposed. It backs
-   * up the frontend.
-   * 
- */ + /** */ public static final class DataTransferServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private DataTransferServiceFutureStub( @@ -1627,14 +1282,7 @@ protected DataTransferServiceFutureStub build( return new DataTransferServiceFutureStub(channel, callOptions); } - /** - * - * - *
-     * Retrieves a supported data source and returns its settings,
-     * which can be used for UI rendering.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.bigquery.datatransfer.v1.DataSource> getDataSource(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest request) { @@ -1642,14 +1290,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getGetDataSourceMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Lists supported data sources and returns their settings,
-     * which can be used for UI rendering.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse> listDataSources(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest request) { @@ -1657,13 +1298,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getListDataSourcesMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Creates a new data transfer configuration.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.bigquery.datatransfer.v1.TransferConfig> createTransferConfig( @@ -1672,14 +1307,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getCreateTransferConfigMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Updates a data transfer configuration.
-     * All fields must be set, even if they are not updated.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.bigquery.datatransfer.v1.TransferConfig> updateTransferConfig( @@ -1688,14 +1316,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getUpdateTransferConfigMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Deletes a data transfer configuration,
-     * including any associated transfer runs and logs.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture deleteTransferConfig( com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest request) { @@ -1703,13 +1324,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getDeleteTransferConfigMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Returns information about a data transfer config.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.bigquery.datatransfer.v1.TransferConfig> getTransferConfig( @@ -1718,13 +1333,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getGetTransferConfigMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Returns information about all data transfers in the project.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse> listTransferConfigs( @@ -1733,17 +1342,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getListTransferConfigsMethod(), getCallOptions()), request); } - /** - * - * - *
-     * 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.
-     * 
- */ + /** */ @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse> @@ -1753,16 +1352,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getScheduleTransferRunsMethod(), getCallOptions()), request); } - /** - * - * - *
-     * 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.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse> startManualTransferRuns( @@ -1771,13 +1361,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getStartManualTransferRunsMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Returns information about the particular transfer run.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.bigquery.datatransfer.v1.TransferRun> getTransferRun(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest request) { @@ -1785,13 +1369,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getGetTransferRunMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Deletes the specified transfer run.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture deleteTransferRun( com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest request) { @@ -1799,13 +1377,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getDeleteTransferRunMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Returns information about running and completed jobs.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse> listTransferRuns( @@ -1814,13 +1386,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getListTransferRunsMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Returns user facing log messages for the data transfer run.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse> listTransferLogs( @@ -1829,18 +1395,7 @@ protected DataTransferServiceFutureStub build( getChannel().newCall(getListTransferLogsMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Returns true if valid credentials exist for the given data source and
-     * requesting user.
-     * Some data sources doesn't support service account, so we need to talk to
-     * them on behalf of the end user. This API just checks whether we have OAuth
-     * token for the particular user, which is a pre-requisite before user can
-     * create a transfer config.
-     * 
- */ + /** */ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse> checkValidCreds(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest request) { diff --git a/pom.xml b/pom.xml index bb682cdd..6ba10602 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatatransfer-parent pom - 1.0.20 + 1.0.21 BigQuery DataTransfer Parent https://github.com/googleapis/java-bigquerydatatransfer @@ -70,24 +70,24 @@ com.google.cloud google-cloud-shared-dependencies - 0.15.0 + 0.16.0 pom import com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 1.0.20 + 1.0.21 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 1.0.20 + 1.0.21 com.google.cloud google-cloud-bigquerydatatransfer - 1.0.20 + 1.0.21 diff --git a/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index b0fea5c1..733014a5 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 1.0.20 + 1.0.21 proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 1.0.20 + 1.0.21 diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 71a8d4ae..77dcb152 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-bigquerydatatransfer - 1.0.19 + 1.0.20 @@ -59,7 +59,7 @@ com.google.cloud google-cloud-pubsub - 1.109.0 + 1.110.0 test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index cd298588..45f54e45 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-bigquerydatatransfer - 1.0.20 + 1.0.21 @@ -59,7 +59,7 @@ com.google.cloud google-cloud-pubsub - 1.109.0 + 1.110.0 test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 1319df62..06730c42 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -71,7 +71,7 @@ com.google.cloud google-cloud-pubsub - 1.109.0 + 1.110.0 test diff --git a/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateAdManagerTransfer.java b/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateAdManagerTransfer.java index ef46c4b1..e4bbd2bd 100644 --- a/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateAdManagerTransfer.java +++ b/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateAdManagerTransfer.java @@ -36,7 +36,8 @@ public static void main(String[] args) throws IOException { final String projectId = "MY_PROJECT_ID"; String datasetId = "MY_DATASET_ID"; String bucket = "gs://cloud-sample-data"; - String networkCode = "MY_NETWORK_CODE"; + // the network_code can only be digits with length 1 to 15 + String networkCode = "12345678"; Map params = new HashMap<>(); params.put("bucket", Value.newBuilder().setStringValue(bucket).build()); params.put("network_code", Value.newBuilder().setStringValue(networkCode).build()); @@ -46,7 +47,6 @@ public static void main(String[] args) throws IOException { .setDisplayName("Your Ad Manager Config Name") .setDataSourceId("dfp_dt") .setParams(Struct.newBuilder().putAllFields(params).build()) - .setSchedule("every 24 hours") .build(); createAdManagerTransfer(projectId, transferConfig); } diff --git a/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateAdsTransfer.java b/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateAdsTransfer.java index 02ed0971..af8a7364 100644 --- a/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateAdsTransfer.java +++ b/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateAdsTransfer.java @@ -35,8 +35,9 @@ public static void main(String[] args) throws IOException { // TODO(developer): Replace these variables before running the sample. final String projectId = "MY_PROJECT_ID"; String datasetId = "MY_DATASET_ID"; - String customerId = "MY_CUSTOMER_ID"; - String refreshWindow = "MY_REFRESH_WINDOW"; + // the customer_id only allows digits and hyphen ('-'). + String customerId = "012-345-6789"; + String refreshWindow = "100"; Map params = new HashMap<>(); params.put("customer_id", Value.newBuilder().setStringValue(customerId).build()); params.put("refreshWindow", Value.newBuilder().setStringValue(refreshWindow).build()); @@ -46,7 +47,6 @@ public static void main(String[] args) throws IOException { .setDisplayName("Your Ads Transfer Config Name") .setDataSourceId("adwords") .setParams(Struct.newBuilder().putAllFields(params).build()) - .setSchedule("every 24 hours") .build(); createAdsTransfer(projectId, transferConfig); } diff --git a/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateCampaignmanagerTransfer.java b/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateCampaignmanagerTransfer.java index 5c6da22e..9aa617ff 100644 --- a/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateCampaignmanagerTransfer.java +++ b/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateCampaignmanagerTransfer.java @@ -36,7 +36,8 @@ public static void main(String[] args) throws IOException { final String projectId = "MY_PROJECT_ID"; String datasetId = "MY_DATASET_ID"; String bucket = "gs://cloud-sample-data"; - String networkId = "MY_DOUBLE_CLICK_ID"; + // the network_id only allows digits + String networkId = "7878"; String fileNamePrefix = "test_"; Map params = new HashMap<>(); params.put("bucket", Value.newBuilder().setStringValue(bucket).build()); @@ -48,7 +49,6 @@ public static void main(String[] args) throws IOException { .setDisplayName("Your Campaignmanager Config Name") .setDataSourceId("dcm_dt") .setParams(Struct.newBuilder().putAllFields(params).build()) - .setSchedule("every 24 hours") .build(); createCampaignmanagerTransfer(projectId, transferConfig); } diff --git a/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreatePlayTransfer.java b/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreatePlayTransfer.java new file mode 100644 index 00000000..51783130 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreatePlayTransfer.java @@ -0,0 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.bigquerydatatransfer; + +// [START bigquerydatatransfer_create_play_transfer] +import com.google.api.gax.rpc.ApiException; +import com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest; +import com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient; +import com.google.cloud.bigquery.datatransfer.v1.ProjectName; +import com.google.cloud.bigquery.datatransfer.v1.TransferConfig; +import com.google.protobuf.Struct; +import com.google.protobuf.Value; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +// Sample to create a play transfer config. +public class CreatePlayTransfer { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + final String projectId = "MY_PROJECT_ID"; + String datasetId = "MY_DATASET_ID"; + String bucket = "gs://cloud-sample-data"; + String tableSuffix = "_test"; + Map params = new HashMap<>(); + params.put("bucket", Value.newBuilder().setStringValue(bucket).build()); + params.put("table_suffix", Value.newBuilder().setStringValue(tableSuffix).build()); + TransferConfig transferConfig = + TransferConfig.newBuilder() + .setDestinationDatasetId(datasetId) + .setDisplayName("Your Play Config Name") + .setDataSourceId("play") + .setParams(Struct.newBuilder().putAllFields(params).build()) + .build(); + createPlayTransfer(projectId, transferConfig); + } + + public static void createPlayTransfer(String projectId, TransferConfig transferConfig) + throws IOException { + try (DataTransferServiceClient client = DataTransferServiceClient.create()) { + ProjectName parent = ProjectName.of(projectId); + CreateTransferConfigRequest request = + CreateTransferConfigRequest.newBuilder() + .setParent(parent.toString()) + .setTransferConfig(transferConfig) + .build(); + TransferConfig config = client.createTransferConfig(request); + System.out.println("play transfer created successfully :" + config.getName()); + } catch (ApiException ex) { + System.out.print("play transfer was not created." + ex.toString()); + } + } +} +// [END bigquerydatatransfer_create_play_transfer] diff --git a/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateYoutubeChannelTransfer.java b/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateYoutubeChannelTransfer.java new file mode 100644 index 00000000..8dcb26bb --- /dev/null +++ b/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateYoutubeChannelTransfer.java @@ -0,0 +1,67 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.bigquerydatatransfer; + +// [START bigquerydatatransfer_create_youtubechannel_transfer] +import com.google.api.gax.rpc.ApiException; +import com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest; +import com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient; +import com.google.cloud.bigquery.datatransfer.v1.ProjectName; +import com.google.cloud.bigquery.datatransfer.v1.TransferConfig; +import com.google.protobuf.Struct; +import com.google.protobuf.Value; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +// Sample to create youtube channel transfer config. +public class CreateYoutubeChannelTransfer { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + final String projectId = "MY_PROJECT_ID"; + String datasetId = "MY_DATASET_ID"; + String tableSuffix = "_test"; + Map params = new HashMap<>(); + params.put("table_suffix", Value.newBuilder().setStringValue(tableSuffix).build()); + TransferConfig transferConfig = + TransferConfig.newBuilder() + .setDestinationDatasetId(datasetId) + .setDisplayName("Your Youtube Channel Config Name") + .setDataSourceId("youtube_channel") + .setParams(Struct.newBuilder().putAllFields(params).build()) + .build(); + createYoutubeChannelTransfer(projectId, transferConfig); + } + + public static void createYoutubeChannelTransfer(String projectId, TransferConfig transferConfig) + throws IOException { + try (DataTransferServiceClient client = DataTransferServiceClient.create()) { + ProjectName parent = ProjectName.of(projectId); + CreateTransferConfigRequest request = + CreateTransferConfigRequest.newBuilder() + .setParent(parent.toString()) + .setTransferConfig(transferConfig) + .build(); + TransferConfig config = client.createTransferConfig(request); + System.out.println("Youtube channel transfer created successfully :" + config.getName()); + } catch (ApiException ex) { + System.out.print("Youtube channel transfer was not created." + ex.toString()); + } + } +} +// [END bigquerydatatransfer_create_youtubechannel_transfer] diff --git a/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateYoutubeContentOwnerTransfer.java b/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateYoutubeContentOwnerTransfer.java new file mode 100644 index 00000000..d99ffa52 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/bigquerydatatransfer/CreateYoutubeContentOwnerTransfer.java @@ -0,0 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.bigquerydatatransfer; + +// [START bigquerydatatransfer_create_youtubecontentowner_transfer] +import com.google.api.gax.rpc.ApiException; +import com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest; +import com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient; +import com.google.cloud.bigquery.datatransfer.v1.ProjectName; +import com.google.cloud.bigquery.datatransfer.v1.TransferConfig; +import com.google.protobuf.Struct; +import com.google.protobuf.Value; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +// Sample to create youtube content owner channel transfer config +public class CreateYoutubeContentOwnerTransfer { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + final String projectId = "MY_PROJECT_ID"; + String datasetId = "MY_DATASET_ID"; + String contentOwnerId = "MY_CONTENT_OWNER_ID"; + String tableSuffix = "_test"; + Map params = new HashMap<>(); + params.put("content_owner_id", Value.newBuilder().setStringValue(contentOwnerId).build()); + params.put("table_suffix", Value.newBuilder().setStringValue(tableSuffix).build()); + TransferConfig transferConfig = + TransferConfig.newBuilder() + .setDestinationDatasetId(datasetId) + .setDisplayName("Your Youtube Owner Channel Config Name") + .setDataSourceId("youtube_content_owner") + .setParams(Struct.newBuilder().putAllFields(params).build()) + .build(); + createYoutubeContentOwnerTransfer(projectId, transferConfig); + } + + public static void createYoutubeContentOwnerTransfer( + String projectId, TransferConfig transferConfig) throws IOException { + try (DataTransferServiceClient client = DataTransferServiceClient.create()) { + ProjectName parent = ProjectName.of(projectId); + CreateTransferConfigRequest request = + CreateTransferConfigRequest.newBuilder() + .setParent(parent.toString()) + .setTransferConfig(transferConfig) + .build(); + TransferConfig config = client.createTransferConfig(request); + System.out.println( + "Youtube content owner channel transfer created successfully :" + config.getName()); + } catch (ApiException ex) { + System.out.print("Youtube content owner channel transfer was not created." + ex.toString()); + } + } +} +// [END bigquerydatatransfer_create_youtubecontentowner_transfer] diff --git a/synth.metadata b/synth.metadata index 678b9bab..5df9590f 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,22 +11,22 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-bigquerydatatransfer.git", - "sha": "5a7e2a6cb9e9e3b8f961e2bad3df01ca5e55d8a0" + "sha": "10ca24cea52ba52f7e3f22282eb0014b1300fe98" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "96ef637adf148d54236ad83fefa30c7f75f29737", - "internalRef": "325052820" + "sha": "b11a87f3b54be3a5e42c15020ee1e0781f86da90", + "internalRef": "344134135" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "68742c6016bf0d16948a572633d17955a8737414" + "sha": "943bb78606d035001123030067dffcc34f4645f2" } } ], @@ -47,6 +47,7 @@ ".github/ISSUE_TEMPLATE/feature_request.md", ".github/ISSUE_TEMPLATE/support_request.md", ".github/PULL_REQUEST_TEMPLATE.md", + ".github/blunderbuss.yml", ".github/generated-files-bot.yml", ".github/readme/synth.py", ".github/release-please.yml", diff --git a/versions.txt b/versions.txt index 708867c0..7af30fff 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-bigquerydatatransfer-v1:1.0.20:1.0.20 -grpc-google-cloud-bigquerydatatransfer-v1:1.0.20:1.0.20 -google-cloud-bigquerydatatransfer:1.0.20:1.0.20 +proto-google-cloud-bigquerydatatransfer-v1:1.0.21:1.0.21 +grpc-google-cloud-bigquerydatatransfer-v1:1.0.21:1.0.21 +google-cloud-bigquerydatatransfer:1.0.21:1.0.21