Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
feat: re-generated to pick up changes in the API or client library ge…
Browse files Browse the repository at this point in the history
…nerator. (#10)

* feat: re-generated  to pick up changes in the API or client library generator.

* Add clirr-ignored-differences to handle dependencies test
  • Loading branch information
yoshi-automation authored and stephaniewang526 committed Dec 13, 2019
1 parent ce68b4c commit e0a6beb
Show file tree
Hide file tree
Showing 42 changed files with 2,764 additions and 445 deletions.
Expand Up @@ -173,7 +173,8 @@ public DataTransferServiceStub getStub() {
* </code></pre>
*
* @param name Required. The field will contain name of the resource requested, for example:
* `projects/{project_id}/dataSources/{data_source_id}`
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final DataSource getDataSource(DataSourceName name) {
Expand All @@ -197,7 +198,8 @@ public final DataSource getDataSource(DataSourceName name) {
* </code></pre>
*
* @param name Required. The field will contain name of the resource requested, for example:
* `projects/{project_id}/dataSources/{data_source_id}`
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final DataSource getDataSource(String name) {
Expand Down Expand Up @@ -267,7 +269,7 @@ public final UnaryCallable<GetDataSourceRequest, DataSource> getDataSourceCallab
* </code></pre>
*
* @param parent Required. The BigQuery project id for which data sources should be returned. Must
* be in the form: `projects/{project_id}`
* be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListDataSourcesPagedResponse listDataSources(ParentName parent) {
Expand All @@ -294,7 +296,7 @@ public final ListDataSourcesPagedResponse listDataSources(ParentName parent) {
* </code></pre>
*
* @param parent Required. The BigQuery project id for which data sources should be returned. Must
* be in the form: `projects/{project_id}`
* be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id}
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListDataSourcesPagedResponse listDataSources(String parent) {
Expand Down Expand Up @@ -399,9 +401,9 @@ public final ListDataSourcesPagedResponse listDataSources(ListDataSourcesRequest
* </code></pre>
*
* @param parent Required. The BigQuery project id where the transfer configuration should be
* created. Must be in the format projects/{project_id}/locations/{location_id} If specified
* location and location of the destination bigquery dataset do not match - the request will
* fail.
* created. Must be in the format projects/{project_id}/locations/{location_id} or
* projects/{project_id}. If specified location and location of the destination bigquery
* dataset do not match - the request will fail.
* @param transferConfig Required. Data transfer configuration to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -431,9 +433,9 @@ public final TransferConfig createTransferConfig(
* </code></pre>
*
* @param parent Required. The BigQuery project id where the transfer configuration should be
* created. Must be in the format projects/{project_id}/locations/{location_id} If specified
* location and location of the destination bigquery dataset do not match - the request will
* fail.
* created. Must be in the format projects/{project_id}/locations/{location_id} or
* projects/{project_id}. If specified location and location of the destination bigquery
* dataset do not match - the request will fail.
* @param transferConfig Required. Data transfer configuration to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -590,7 +592,8 @@ public final TransferConfig updateTransferConfig(UpdateTransferConfigRequest req
* </code></pre>
*
* @param name Required. The field will contain name of the resource requested, for example:
* `projects/{project_id}/transferConfigs/{config_id}`
* `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteTransferConfig(TransferConfigName name) {
Expand All @@ -616,7 +619,8 @@ public final void deleteTransferConfig(TransferConfigName name) {
* </code></pre>
*
* @param name Required. The field will contain name of the resource requested, for example:
* `projects/{project_id}/transferConfigs/{config_id}`
* `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteTransferConfig(String name) {
Expand Down Expand Up @@ -685,7 +689,8 @@ public final UnaryCallable<DeleteTransferConfigRequest, Empty> deleteTransferCon
* </code></pre>
*
* @param name Required. The field will contain name of the resource requested, for example:
* `projects/{project_id}/transferConfigs/{config_id}`
* `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final TransferConfig getTransferConfig(TransferConfigName name) {
Expand All @@ -711,7 +716,8 @@ public final TransferConfig getTransferConfig(TransferConfigName name) {
* </code></pre>
*
* @param name Required. The field will contain name of the resource requested, for example:
* `projects/{project_id}/transferConfigs/{config_id}`
* `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final TransferConfig getTransferConfig(String name) {
Expand Down Expand Up @@ -781,7 +787,7 @@ public final UnaryCallable<GetTransferConfigRequest, TransferConfig> getTransfer
* </code></pre>
*
* @param parent Required. The BigQuery project id for which data sources should be returned:
* `projects/{project_id}`.
* `projects/{project_id}` or `projects/{project_id}/locations/{location_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTransferConfigsPagedResponse listTransferConfigs(ParentName parent) {
Expand All @@ -808,7 +814,7 @@ public final ListTransferConfigsPagedResponse listTransferConfigs(ParentName par
* </code></pre>
*
* @param parent Required. The BigQuery project id for which data sources should be returned:
* `projects/{project_id}`.
* `projects/{project_id}` or `projects/{project_id}/locations/{location_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTransferConfigsPagedResponse listTransferConfigs(String parent) {
Expand Down Expand Up @@ -919,7 +925,8 @@ public final ListTransferConfigsPagedResponse listTransferConfigs(
* </code></pre>
*
* @param parent Required. Transfer configuration name in the form:
* `projects/{project_id}/transferConfigs/{config_id}`.
* `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
* @param startTime Required. Start time of the range of transfer runs. For example,
* `"2017-05-25T00:00:00+00:00"`.
* @param endTime Required. End time of the range of transfer runs. For example,
Expand Down Expand Up @@ -957,7 +964,8 @@ public final ScheduleTransferRunsResponse scheduleTransferRuns(
* </code></pre>
*
* @param parent Required. Transfer configuration name in the form:
* `projects/{project_id}/transferConfigs/{config_id}`.
* `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
* @param startTime Required. Start time of the range of transfer runs. For example,
* `"2017-05-25T00:00:00+00:00"`.
* @param endTime Required. End time of the range of transfer runs. For example,
Expand Down Expand Up @@ -1051,7 +1059,8 @@ public final ScheduleTransferRunsResponse scheduleTransferRuns(
* </code></pre>
*
* @param name Required. The field will contain name of the resource requested, for example:
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final TransferRun getTransferRun(RunName name) {
Expand All @@ -1075,7 +1084,8 @@ public final TransferRun getTransferRun(RunName name) {
* </code></pre>
*
* @param name Required. The field will contain name of the resource requested, for example:
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final TransferRun getTransferRun(String name) {
Expand Down Expand Up @@ -1143,7 +1153,8 @@ public final UnaryCallable<GetTransferRunRequest, TransferRun> getTransferRunCal
* </code></pre>
*
* @param name Required. The field will contain name of the resource requested, for example:
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteTransferRun(RunName name) {
Expand All @@ -1169,7 +1180,8 @@ public final void deleteTransferRun(RunName name) {
* </code></pre>
*
* @param name Required. The field will contain name of the resource requested, for example:
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteTransferRun(String name) {
Expand Down Expand Up @@ -1240,7 +1252,8 @@ public final UnaryCallable<DeleteTransferRunRequest, Empty> deleteTransferRunCal
*
* @param parent Required. Name of transfer configuration for which transfer runs should be
* retrieved. Format of transfer configuration resource name is:
* `projects/{project_id}/transferConfigs/{config_id}`.
* `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTransferRunsPagedResponse listTransferRuns(TransferConfigName parent) {
Expand Down Expand Up @@ -1268,7 +1281,8 @@ public final ListTransferRunsPagedResponse listTransferRuns(TransferConfigName p
*
* @param parent Required. Name of transfer configuration for which transfer runs should be
* retrieved. Format of transfer configuration resource name is:
* `projects/{project_id}/transferConfigs/{config_id}`.
* `projects/{project_id}/transferConfigs/{config_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTransferRunsPagedResponse listTransferRuns(String parent) {
Expand Down Expand Up @@ -1375,7 +1389,8 @@ public final ListTransferRunsPagedResponse listTransferRuns(ListTransferRunsRequ
* </code></pre>
*
* @param parent Required. Transfer run name in the form:
* `projects/{project_id}/transferConfigs/{config_Id}/runs/{run_id}`.
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTransferLogsPagedResponse listTransferLogs(RunName parent) {
Expand All @@ -1402,7 +1417,8 @@ public final ListTransferLogsPagedResponse listTransferLogs(RunName parent) {
* </code></pre>
*
* @param parent Required. Transfer run name in the form:
* `projects/{project_id}/transferConfigs/{config_Id}/runs/{run_id}`.
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTransferLogsPagedResponse listTransferLogs(String parent) {
Expand Down Expand Up @@ -1510,7 +1526,8 @@ public final ListTransferLogsPagedResponse listTransferLogs(ListTransferLogsRequ
* </code></pre>
*
* @param name Required. The data source in the form:
* `projects/{project_id}/dataSources/{data_source_id}`
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CheckValidCredsResponse checkValidCreds(DataSourceName name) {
Expand All @@ -1537,7 +1554,8 @@ public final CheckValidCredsResponse checkValidCreds(DataSourceName name) {
* </code></pre>
*
* @param name Required. The data source in the form:
* `projects/{project_id}/dataSources/{data_source_id}`
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CheckValidCredsResponse checkValidCreds(String name) {
Expand Down
Expand Up @@ -207,6 +207,7 @@ public void createTransferConfigTest() {
boolean disabled = true;
long userId = 147132913L;
String datasetRegion = "datasetRegion959248539";
String notificationPubsubTopic = "notificationPubsubTopic1794281191";
TransferConfig expectedResponse =
TransferConfig.newBuilder()
.setName(name.toString())
Expand All @@ -218,6 +219,7 @@ public void createTransferConfigTest() {
.setDisabled(disabled)
.setUserId(userId)
.setDatasetRegion(datasetRegion)
.setNotificationPubsubTopic(notificationPubsubTopic)
.build();
mockDataTransferService.addResponse(expectedResponse);

Expand Down Expand Up @@ -268,6 +270,7 @@ public void updateTransferConfigTest() {
boolean disabled = true;
long userId = 147132913L;
String datasetRegion = "datasetRegion959248539";
String notificationPubsubTopic = "notificationPubsubTopic1794281191";
TransferConfig expectedResponse =
TransferConfig.newBuilder()
.setName(name.toString())
Expand All @@ -279,6 +282,7 @@ public void updateTransferConfigTest() {
.setDisabled(disabled)
.setUserId(userId)
.setDatasetRegion(datasetRegion)
.setNotificationPubsubTopic(notificationPubsubTopic)
.build();
mockDataTransferService.addResponse(expectedResponse);

Expand Down Expand Up @@ -366,6 +370,7 @@ public void getTransferConfigTest() {
boolean disabled = true;
long userId = 147132913L;
String datasetRegion = "datasetRegion959248539";
String notificationPubsubTopic = "notificationPubsubTopic1794281191";
TransferConfig expectedResponse =
TransferConfig.newBuilder()
.setName(name2.toString())
Expand All @@ -377,6 +382,7 @@ public void getTransferConfigTest() {
.setDisabled(disabled)
.setUserId(userId)
.setDatasetRegion(datasetRegion)
.setNotificationPubsubTopic(notificationPubsubTopic)
.build();
mockDataTransferService.addResponse(expectedResponse);

Expand Down Expand Up @@ -514,13 +520,15 @@ public void getTransferRunTest() {
String dataSourceId = "dataSourceId-1015796374";
long userId = 147132913L;
String schedule = "schedule-697920873";
String notificationPubsubTopic = "notificationPubsubTopic1794281191";
TransferRun expectedResponse =
TransferRun.newBuilder()
.setName(name2.toString())
.setDestinationDatasetId(destinationDatasetId)
.setDataSourceId(dataSourceId)
.setUserId(userId)
.setSchedule(schedule)
.setNotificationPubsubTopic(notificationPubsubTopic)
.build();
mockDataTransferService.addResponse(expectedResponse);

Expand Down
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
<differences>
<!--TODO: To be removed-->
<difference>
<differenceType>7012</differenceType>
<className>com/google/cloud/bigquery/datatransfer/v1/*OrBuilder</className>
<method>* get*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/cloud/bigquery/datatransfer/v1/*OrBuilder</className>
<method>boolean has*(*)</method>
</difference>
</differences>
Expand Up @@ -118,7 +118,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* <pre>
* Required. The data source in the form:
* `projects/{project_id}/dataSources/{data_source_id}`
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
* </pre>
*
* <code>
Expand All @@ -141,7 +142,8 @@ public java.lang.String getName() {
*
* <pre>
* Required. The data source in the form:
* `projects/{project_id}/dataSources/{data_source_id}`
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
* </pre>
*
* <code>
Expand Down Expand Up @@ -494,7 +496,8 @@ public Builder mergeFrom(
*
* <pre>
* Required. The data source in the form:
* `projects/{project_id}/dataSources/{data_source_id}`
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
* </pre>
*
* <code>
Expand All @@ -517,7 +520,8 @@ public java.lang.String getName() {
*
* <pre>
* Required. The data source in the form:
* `projects/{project_id}/dataSources/{data_source_id}`
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
* </pre>
*
* <code>
Expand All @@ -540,7 +544,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* <pre>
* Required. The data source in the form:
* `projects/{project_id}/dataSources/{data_source_id}`
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
* </pre>
*
* <code>
Expand All @@ -561,7 +566,8 @@ public Builder setName(java.lang.String value) {
*
* <pre>
* Required. The data source in the form:
* `projects/{project_id}/dataSources/{data_source_id}`
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
* </pre>
*
* <code>
Expand All @@ -579,7 +585,8 @@ public Builder clearName() {
*
* <pre>
* Required. The data source in the form:
* `projects/{project_id}/dataSources/{data_source_id}`
* `projects/{project_id}/dataSources/{data_source_id}` or
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
* </pre>
*
* <code>
Expand Down

0 comments on commit e0a6beb

Please sign in to comment.