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

Commit e0a6beb

Browse files
yoshi-automationstephaniewang526
authored andcommitted
feat: re-generated to pick up changes in the API or client library generator. (#10)
* feat: re-generated to pick up changes in the API or client library generator. * Add clirr-ignored-differences to handle dependencies test
1 parent ce68b4c commit e0a6beb

File tree

42 files changed

+2764
-445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2764
-445
lines changed

google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java

Lines changed: 46 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ public DataTransferServiceStub getStub() {
173173
* </code></pre>
174174
*
175175
* @param name Required. The field will contain name of the resource requested, for example:
176-
* `projects/{project_id}/dataSources/{data_source_id}`
176+
* `projects/{project_id}/dataSources/{data_source_id}` or
177+
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
177178
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
178179
*/
179180
public final DataSource getDataSource(DataSourceName name) {
@@ -197,7 +198,8 @@ public final DataSource getDataSource(DataSourceName name) {
197198
* </code></pre>
198199
*
199200
* @param name Required. The field will contain name of the resource requested, for example:
200-
* `projects/{project_id}/dataSources/{data_source_id}`
201+
* `projects/{project_id}/dataSources/{data_source_id}` or
202+
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
201203
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
202204
*/
203205
public final DataSource getDataSource(String name) {
@@ -267,7 +269,7 @@ public final UnaryCallable<GetDataSourceRequest, DataSource> getDataSourceCallab
267269
* </code></pre>
268270
*
269271
* @param parent Required. The BigQuery project id for which data sources should be returned. Must
270-
* be in the form: `projects/{project_id}`
272+
* be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id}
271273
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
272274
*/
273275
public final ListDataSourcesPagedResponse listDataSources(ParentName parent) {
@@ -294,7 +296,7 @@ public final ListDataSourcesPagedResponse listDataSources(ParentName parent) {
294296
* </code></pre>
295297
*
296298
* @param parent Required. The BigQuery project id for which data sources should be returned. Must
297-
* be in the form: `projects/{project_id}`
299+
* be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id}
298300
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
299301
*/
300302
public final ListDataSourcesPagedResponse listDataSources(String parent) {
@@ -399,9 +401,9 @@ public final ListDataSourcesPagedResponse listDataSources(ListDataSourcesRequest
399401
* </code></pre>
400402
*
401403
* @param parent Required. The BigQuery project id where the transfer configuration should be
402-
* created. Must be in the format projects/{project_id}/locations/{location_id} If specified
403-
* location and location of the destination bigquery dataset do not match - the request will
404-
* fail.
404+
* created. Must be in the format projects/{project_id}/locations/{location_id} or
405+
* projects/{project_id}. If specified location and location of the destination bigquery
406+
* dataset do not match - the request will fail.
405407
* @param transferConfig Required. Data transfer configuration to create.
406408
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
407409
*/
@@ -431,9 +433,9 @@ public final TransferConfig createTransferConfig(
431433
* </code></pre>
432434
*
433435
* @param parent Required. The BigQuery project id where the transfer configuration should be
434-
* created. Must be in the format projects/{project_id}/locations/{location_id} If specified
435-
* location and location of the destination bigquery dataset do not match - the request will
436-
* fail.
436+
* created. Must be in the format projects/{project_id}/locations/{location_id} or
437+
* projects/{project_id}. If specified location and location of the destination bigquery
438+
* dataset do not match - the request will fail.
437439
* @param transferConfig Required. Data transfer configuration to create.
438440
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
439441
*/
@@ -590,7 +592,8 @@ public final TransferConfig updateTransferConfig(UpdateTransferConfigRequest req
590592
* </code></pre>
591593
*
592594
* @param name Required. The field will contain name of the resource requested, for example:
593-
* `projects/{project_id}/transferConfigs/{config_id}`
595+
* `projects/{project_id}/transferConfigs/{config_id}` or
596+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
594597
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
595598
*/
596599
public final void deleteTransferConfig(TransferConfigName name) {
@@ -616,7 +619,8 @@ public final void deleteTransferConfig(TransferConfigName name) {
616619
* </code></pre>
617620
*
618621
* @param name Required. The field will contain name of the resource requested, for example:
619-
* `projects/{project_id}/transferConfigs/{config_id}`
622+
* `projects/{project_id}/transferConfigs/{config_id}` or
623+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
620624
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
621625
*/
622626
public final void deleteTransferConfig(String name) {
@@ -685,7 +689,8 @@ public final UnaryCallable<DeleteTransferConfigRequest, Empty> deleteTransferCon
685689
* </code></pre>
686690
*
687691
* @param name Required. The field will contain name of the resource requested, for example:
688-
* `projects/{project_id}/transferConfigs/{config_id}`
692+
* `projects/{project_id}/transferConfigs/{config_id}` or
693+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
689694
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
690695
*/
691696
public final TransferConfig getTransferConfig(TransferConfigName name) {
@@ -711,7 +716,8 @@ public final TransferConfig getTransferConfig(TransferConfigName name) {
711716
* </code></pre>
712717
*
713718
* @param name Required. The field will contain name of the resource requested, for example:
714-
* `projects/{project_id}/transferConfigs/{config_id}`
719+
* `projects/{project_id}/transferConfigs/{config_id}` or
720+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`
715721
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
716722
*/
717723
public final TransferConfig getTransferConfig(String name) {
@@ -781,7 +787,7 @@ public final UnaryCallable<GetTransferConfigRequest, TransferConfig> getTransfer
781787
* </code></pre>
782788
*
783789
* @param parent Required. The BigQuery project id for which data sources should be returned:
784-
* `projects/{project_id}`.
790+
* `projects/{project_id}` or `projects/{project_id}/locations/{location_id}`
785791
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
786792
*/
787793
public final ListTransferConfigsPagedResponse listTransferConfigs(ParentName parent) {
@@ -808,7 +814,7 @@ public final ListTransferConfigsPagedResponse listTransferConfigs(ParentName par
808814
* </code></pre>
809815
*
810816
* @param parent Required. The BigQuery project id for which data sources should be returned:
811-
* `projects/{project_id}`.
817+
* `projects/{project_id}` or `projects/{project_id}/locations/{location_id}`
812818
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
813819
*/
814820
public final ListTransferConfigsPagedResponse listTransferConfigs(String parent) {
@@ -919,7 +925,8 @@ public final ListTransferConfigsPagedResponse listTransferConfigs(
919925
* </code></pre>
920926
*
921927
* @param parent Required. Transfer configuration name in the form:
922-
* `projects/{project_id}/transferConfigs/{config_id}`.
928+
* `projects/{project_id}/transferConfigs/{config_id}` or
929+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
923930
* @param startTime Required. Start time of the range of transfer runs. For example,
924931
* `"2017-05-25T00:00:00+00:00"`.
925932
* @param endTime Required. End time of the range of transfer runs. For example,
@@ -957,7 +964,8 @@ public final ScheduleTransferRunsResponse scheduleTransferRuns(
957964
* </code></pre>
958965
*
959966
* @param parent Required. Transfer configuration name in the form:
960-
* `projects/{project_id}/transferConfigs/{config_id}`.
967+
* `projects/{project_id}/transferConfigs/{config_id}` or
968+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
961969
* @param startTime Required. Start time of the range of transfer runs. For example,
962970
* `"2017-05-25T00:00:00+00:00"`.
963971
* @param endTime Required. End time of the range of transfer runs. For example,
@@ -1051,7 +1059,8 @@ public final ScheduleTransferRunsResponse scheduleTransferRuns(
10511059
* </code></pre>
10521060
*
10531061
* @param name Required. The field will contain name of the resource requested, for example:
1054-
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
1062+
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
1063+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
10551064
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
10561065
*/
10571066
public final TransferRun getTransferRun(RunName name) {
@@ -1075,7 +1084,8 @@ public final TransferRun getTransferRun(RunName name) {
10751084
* </code></pre>
10761085
*
10771086
* @param name Required. The field will contain name of the resource requested, for example:
1078-
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
1087+
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
1088+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
10791089
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
10801090
*/
10811091
public final TransferRun getTransferRun(String name) {
@@ -1143,7 +1153,8 @@ public final UnaryCallable<GetTransferRunRequest, TransferRun> getTransferRunCal
11431153
* </code></pre>
11441154
*
11451155
* @param name Required. The field will contain name of the resource requested, for example:
1146-
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
1156+
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
1157+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
11471158
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
11481159
*/
11491160
public final void deleteTransferRun(RunName name) {
@@ -1169,7 +1180,8 @@ public final void deleteTransferRun(RunName name) {
11691180
* </code></pre>
11701181
*
11711182
* @param name Required. The field will contain name of the resource requested, for example:
1172-
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}`
1183+
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
1184+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
11731185
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
11741186
*/
11751187
public final void deleteTransferRun(String name) {
@@ -1240,7 +1252,8 @@ public final UnaryCallable<DeleteTransferRunRequest, Empty> deleteTransferRunCal
12401252
*
12411253
* @param parent Required. Name of transfer configuration for which transfer runs should be
12421254
* retrieved. Format of transfer configuration resource name is:
1243-
* `projects/{project_id}/transferConfigs/{config_id}`.
1255+
* `projects/{project_id}/transferConfigs/{config_id}` or
1256+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
12441257
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
12451258
*/
12461259
public final ListTransferRunsPagedResponse listTransferRuns(TransferConfigName parent) {
@@ -1268,7 +1281,8 @@ public final ListTransferRunsPagedResponse listTransferRuns(TransferConfigName p
12681281
*
12691282
* @param parent Required. Name of transfer configuration for which transfer runs should be
12701283
* retrieved. Format of transfer configuration resource name is:
1271-
* `projects/{project_id}/transferConfigs/{config_id}`.
1284+
* `projects/{project_id}/transferConfigs/{config_id}` or
1285+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`.
12721286
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
12731287
*/
12741288
public final ListTransferRunsPagedResponse listTransferRuns(String parent) {
@@ -1375,7 +1389,8 @@ public final ListTransferRunsPagedResponse listTransferRuns(ListTransferRunsRequ
13751389
* </code></pre>
13761390
*
13771391
* @param parent Required. Transfer run name in the form:
1378-
* `projects/{project_id}/transferConfigs/{config_Id}/runs/{run_id}`.
1392+
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
1393+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
13791394
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
13801395
*/
13811396
public final ListTransferLogsPagedResponse listTransferLogs(RunName parent) {
@@ -1402,7 +1417,8 @@ public final ListTransferLogsPagedResponse listTransferLogs(RunName parent) {
14021417
* </code></pre>
14031418
*
14041419
* @param parent Required. Transfer run name in the form:
1405-
* `projects/{project_id}/transferConfigs/{config_Id}/runs/{run_id}`.
1420+
* `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or
1421+
* `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}`
14061422
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
14071423
*/
14081424
public final ListTransferLogsPagedResponse listTransferLogs(String parent) {
@@ -1510,7 +1526,8 @@ public final ListTransferLogsPagedResponse listTransferLogs(ListTransferLogsRequ
15101526
* </code></pre>
15111527
*
15121528
* @param name Required. The data source in the form:
1513-
* `projects/{project_id}/dataSources/{data_source_id}`
1529+
* `projects/{project_id}/dataSources/{data_source_id}` or
1530+
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
15141531
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
15151532
*/
15161533
public final CheckValidCredsResponse checkValidCreds(DataSourceName name) {
@@ -1537,7 +1554,8 @@ public final CheckValidCredsResponse checkValidCreds(DataSourceName name) {
15371554
* </code></pre>
15381555
*
15391556
* @param name Required. The data source in the form:
1540-
* `projects/{project_id}/dataSources/{data_source_id}`
1557+
* `projects/{project_id}/dataSources/{data_source_id}` or
1558+
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
15411559
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
15421560
*/
15431561
public final CheckValidCredsResponse checkValidCreds(String name) {

google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ public void createTransferConfigTest() {
207207
boolean disabled = true;
208208
long userId = 147132913L;
209209
String datasetRegion = "datasetRegion959248539";
210+
String notificationPubsubTopic = "notificationPubsubTopic1794281191";
210211
TransferConfig expectedResponse =
211212
TransferConfig.newBuilder()
212213
.setName(name.toString())
@@ -218,6 +219,7 @@ public void createTransferConfigTest() {
218219
.setDisabled(disabled)
219220
.setUserId(userId)
220221
.setDatasetRegion(datasetRegion)
222+
.setNotificationPubsubTopic(notificationPubsubTopic)
221223
.build();
222224
mockDataTransferService.addResponse(expectedResponse);
223225

@@ -268,6 +270,7 @@ public void updateTransferConfigTest() {
268270
boolean disabled = true;
269271
long userId = 147132913L;
270272
String datasetRegion = "datasetRegion959248539";
273+
String notificationPubsubTopic = "notificationPubsubTopic1794281191";
271274
TransferConfig expectedResponse =
272275
TransferConfig.newBuilder()
273276
.setName(name.toString())
@@ -279,6 +282,7 @@ public void updateTransferConfigTest() {
279282
.setDisabled(disabled)
280283
.setUserId(userId)
281284
.setDatasetRegion(datasetRegion)
285+
.setNotificationPubsubTopic(notificationPubsubTopic)
282286
.build();
283287
mockDataTransferService.addResponse(expectedResponse);
284288

@@ -366,6 +370,7 @@ public void getTransferConfigTest() {
366370
boolean disabled = true;
367371
long userId = 147132913L;
368372
String datasetRegion = "datasetRegion959248539";
373+
String notificationPubsubTopic = "notificationPubsubTopic1794281191";
369374
TransferConfig expectedResponse =
370375
TransferConfig.newBuilder()
371376
.setName(name2.toString())
@@ -377,6 +382,7 @@ public void getTransferConfigTest() {
377382
.setDisabled(disabled)
378383
.setUserId(userId)
379384
.setDatasetRegion(datasetRegion)
385+
.setNotificationPubsubTopic(notificationPubsubTopic)
380386
.build();
381387
mockDataTransferService.addResponse(expectedResponse);
382388

@@ -514,13 +520,15 @@ public void getTransferRunTest() {
514520
String dataSourceId = "dataSourceId-1015796374";
515521
long userId = 147132913L;
516522
String schedule = "schedule-697920873";
523+
String notificationPubsubTopic = "notificationPubsubTopic1794281191";
517524
TransferRun expectedResponse =
518525
TransferRun.newBuilder()
519526
.setName(name2.toString())
520527
.setDestinationDatasetId(destinationDatasetId)
521528
.setDataSourceId(dataSourceId)
522529
.setUserId(userId)
523530
.setSchedule(schedule)
531+
.setNotificationPubsubTopic(notificationPubsubTopic)
524532
.build();
525533
mockDataTransferService.addResponse(expectedResponse);
526534

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
3+
<differences>
4+
<!--TODO: To be removed-->
5+
<difference>
6+
<differenceType>7012</differenceType>
7+
<className>com/google/cloud/bigquery/datatransfer/v1/*OrBuilder</className>
8+
<method>* get*(*)</method>
9+
</difference>
10+
<difference>
11+
<differenceType>7012</differenceType>
12+
<className>com/google/cloud/bigquery/datatransfer/v1/*OrBuilder</className>
13+
<method>boolean has*(*)</method>
14+
</difference>
15+
</differences>

proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
118118
*
119119
* <pre>
120120
* Required. The data source in the form:
121-
* `projects/{project_id}/dataSources/{data_source_id}`
121+
* `projects/{project_id}/dataSources/{data_source_id}` or
122+
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
122123
* </pre>
123124
*
124125
* <code>
@@ -141,7 +142,8 @@ public java.lang.String getName() {
141142
*
142143
* <pre>
143144
* Required. The data source in the form:
144-
* `projects/{project_id}/dataSources/{data_source_id}`
145+
* `projects/{project_id}/dataSources/{data_source_id}` or
146+
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
145147
* </pre>
146148
*
147149
* <code>
@@ -494,7 +496,8 @@ public Builder mergeFrom(
494496
*
495497
* <pre>
496498
* Required. The data source in the form:
497-
* `projects/{project_id}/dataSources/{data_source_id}`
499+
* `projects/{project_id}/dataSources/{data_source_id}` or
500+
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
498501
* </pre>
499502
*
500503
* <code>
@@ -517,7 +520,8 @@ public java.lang.String getName() {
517520
*
518521
* <pre>
519522
* Required. The data source in the form:
520-
* `projects/{project_id}/dataSources/{data_source_id}`
523+
* `projects/{project_id}/dataSources/{data_source_id}` or
524+
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
521525
* </pre>
522526
*
523527
* <code>
@@ -540,7 +544,8 @@ public com.google.protobuf.ByteString getNameBytes() {
540544
*
541545
* <pre>
542546
* Required. The data source in the form:
543-
* `projects/{project_id}/dataSources/{data_source_id}`
547+
* `projects/{project_id}/dataSources/{data_source_id}` or
548+
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
544549
* </pre>
545550
*
546551
* <code>
@@ -561,7 +566,8 @@ public Builder setName(java.lang.String value) {
561566
*
562567
* <pre>
563568
* Required. The data source in the form:
564-
* `projects/{project_id}/dataSources/{data_source_id}`
569+
* `projects/{project_id}/dataSources/{data_source_id}` or
570+
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
565571
* </pre>
566572
*
567573
* <code>
@@ -579,7 +585,8 @@ public Builder clearName() {
579585
*
580586
* <pre>
581587
* Required. The data source in the form:
582-
* `projects/{project_id}/dataSources/{data_source_id}`
588+
* `projects/{project_id}/dataSources/{data_source_id}` or
589+
* `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`.
583590
* </pre>
584591
*
585592
* <code>

0 commit comments

Comments
 (0)