@@ -132,6 +132,8 @@ public class DataTransferServiceStubSettings extends StubSettings<DataTransferSe
132
132
listTransferConfigsSettings ;
133
133
private final UnaryCallSettings <ScheduleTransferRunsRequest , ScheduleTransferRunsResponse >
134
134
scheduleTransferRunsSettings ;
135
+ private final UnaryCallSettings <StartManualTransferRunsRequest , StartManualTransferRunsResponse >
136
+ startManualTransferRunsSettings ;
135
137
private final UnaryCallSettings <GetTransferRunRequest , TransferRun > getTransferRunSettings ;
136
138
private final UnaryCallSettings <DeleteTransferRunRequest , Empty > deleteTransferRunSettings ;
137
139
private final PagedCallSettings <
@@ -142,8 +144,6 @@ public class DataTransferServiceStubSettings extends StubSettings<DataTransferSe
142
144
listTransferLogsSettings ;
143
145
private final UnaryCallSettings <CheckValidCredsRequest , CheckValidCredsResponse >
144
146
checkValidCredsSettings ;
145
- private final UnaryCallSettings <StartManualTransferRunsRequest , StartManualTransferRunsResponse >
146
- startManualTransferRunsSettings ;
147
147
148
148
/** Returns the object with the settings used for calls to getDataSource. */
149
149
public UnaryCallSettings <GetDataSourceRequest , DataSource > getDataSourceSettings () {
@@ -192,6 +192,12 @@ public UnaryCallSettings<GetTransferConfigRequest, TransferConfig> getTransferCo
192
192
return scheduleTransferRunsSettings ;
193
193
}
194
194
195
+ /** Returns the object with the settings used for calls to startManualTransferRuns. */
196
+ public UnaryCallSettings <StartManualTransferRunsRequest , StartManualTransferRunsResponse >
197
+ startManualTransferRunsSettings () {
198
+ return startManualTransferRunsSettings ;
199
+ }
200
+
195
201
/** Returns the object with the settings used for calls to getTransferRun. */
196
202
public UnaryCallSettings <GetTransferRunRequest , TransferRun > getTransferRunSettings () {
197
203
return getTransferRunSettings ;
@@ -222,12 +228,6 @@ public UnaryCallSettings<DeleteTransferRunRequest, Empty> deleteTransferRunSetti
222
228
return checkValidCredsSettings ;
223
229
}
224
230
225
- /** Returns the object with the settings used for calls to startManualTransferRuns. */
226
- public UnaryCallSettings <StartManualTransferRunsRequest , StartManualTransferRunsResponse >
227
- startManualTransferRunsSettings () {
228
- return startManualTransferRunsSettings ;
229
- }
230
-
231
231
@ BetaApi ("A restructuring of stub classes is planned, so this may break in the future" )
232
232
public DataTransferServiceStub createStub () throws IOException {
233
233
if (getTransportChannelProvider ()
@@ -305,12 +305,12 @@ protected DataTransferServiceStubSettings(Builder settingsBuilder) throws IOExce
305
305
getTransferConfigSettings = settingsBuilder .getTransferConfigSettings ().build ();
306
306
listTransferConfigsSettings = settingsBuilder .listTransferConfigsSettings ().build ();
307
307
scheduleTransferRunsSettings = settingsBuilder .scheduleTransferRunsSettings ().build ();
308
+ startManualTransferRunsSettings = settingsBuilder .startManualTransferRunsSettings ().build ();
308
309
getTransferRunSettings = settingsBuilder .getTransferRunSettings ().build ();
309
310
deleteTransferRunSettings = settingsBuilder .deleteTransferRunSettings ().build ();
310
311
listTransferRunsSettings = settingsBuilder .listTransferRunsSettings ().build ();
311
312
listTransferLogsSettings = settingsBuilder .listTransferLogsSettings ().build ();
312
313
checkValidCredsSettings = settingsBuilder .checkValidCredsSettings ().build ();
313
- startManualTransferRunsSettings = settingsBuilder .startManualTransferRunsSettings ().build ();
314
314
}
315
315
316
316
private static final PagedListDescriptor <
@@ -573,6 +573,9 @@ public static class Builder
573
573
private final UnaryCallSettings .Builder <
574
574
ScheduleTransferRunsRequest , ScheduleTransferRunsResponse >
575
575
scheduleTransferRunsSettings ;
576
+ private final UnaryCallSettings .Builder <
577
+ StartManualTransferRunsRequest , StartManualTransferRunsResponse >
578
+ startManualTransferRunsSettings ;
576
579
private final UnaryCallSettings .Builder <GetTransferRunRequest , TransferRun >
577
580
getTransferRunSettings ;
578
581
private final UnaryCallSettings .Builder <DeleteTransferRunRequest , Empty >
@@ -585,9 +588,6 @@ public static class Builder
585
588
listTransferLogsSettings ;
586
589
private final UnaryCallSettings .Builder <CheckValidCredsRequest , CheckValidCredsResponse >
587
590
checkValidCredsSettings ;
588
- private final UnaryCallSettings .Builder <
589
- StartManualTransferRunsRequest , StartManualTransferRunsResponse >
590
- startManualTransferRunsSettings ;
591
591
592
592
private static final ImmutableMap <String , ImmutableSet <StatusCode .Code >>
593
593
RETRYABLE_CODE_DEFINITIONS ;
@@ -647,6 +647,8 @@ protected Builder(ClientContext clientContext) {
647
647
648
648
scheduleTransferRunsSettings = UnaryCallSettings .newUnaryCallSettingsBuilder ();
649
649
650
+ startManualTransferRunsSettings = UnaryCallSettings .newUnaryCallSettingsBuilder ();
651
+
650
652
getTransferRunSettings = UnaryCallSettings .newUnaryCallSettingsBuilder ();
651
653
652
654
deleteTransferRunSettings = UnaryCallSettings .newUnaryCallSettingsBuilder ();
@@ -657,8 +659,6 @@ protected Builder(ClientContext clientContext) {
657
659
658
660
checkValidCredsSettings = UnaryCallSettings .newUnaryCallSettingsBuilder ();
659
661
660
- startManualTransferRunsSettings = UnaryCallSettings .newUnaryCallSettingsBuilder ();
661
-
662
662
unaryMethodSettingsBuilders =
663
663
ImmutableList .<UnaryCallSettings .Builder <?, ?>>of (
664
664
getDataSourceSettings ,
@@ -669,12 +669,12 @@ protected Builder(ClientContext clientContext) {
669
669
getTransferConfigSettings ,
670
670
listTransferConfigsSettings ,
671
671
scheduleTransferRunsSettings ,
672
+ startManualTransferRunsSettings ,
672
673
getTransferRunSettings ,
673
674
deleteTransferRunSettings ,
674
675
listTransferRunsSettings ,
675
676
listTransferLogsSettings ,
676
- checkValidCredsSettings ,
677
- startManualTransferRunsSettings );
677
+ checkValidCredsSettings );
678
678
679
679
initDefaults (this );
680
680
}
@@ -712,7 +712,7 @@ private static Builder initDefaults(Builder builder) {
712
712
713
713
builder
714
714
.deleteTransferConfigSettings ()
715
- .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("idempotent " ))
715
+ .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("non_idempotent " ))
716
716
.setRetrySettings (RETRY_PARAM_DEFINITIONS .get ("default" ));
717
717
718
718
builder
@@ -730,14 +730,19 @@ private static Builder initDefaults(Builder builder) {
730
730
.setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("non_idempotent" ))
731
731
.setRetrySettings (RETRY_PARAM_DEFINITIONS .get ("default" ));
732
732
733
+ builder
734
+ .startManualTransferRunsSettings ()
735
+ .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("non_idempotent" ))
736
+ .setRetrySettings (RETRY_PARAM_DEFINITIONS .get ("default" ));
737
+
733
738
builder
734
739
.getTransferRunSettings ()
735
740
.setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("idempotent" ))
736
741
.setRetrySettings (RETRY_PARAM_DEFINITIONS .get ("default" ));
737
742
738
743
builder
739
744
.deleteTransferRunSettings ()
740
- .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("idempotent " ))
745
+ .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("non_idempotent " ))
741
746
.setRetrySettings (RETRY_PARAM_DEFINITIONS .get ("default" ));
742
747
743
748
builder
@@ -752,11 +757,6 @@ private static Builder initDefaults(Builder builder) {
752
757
753
758
builder
754
759
.checkValidCredsSettings ()
755
- .setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("idempotent" ))
756
- .setRetrySettings (RETRY_PARAM_DEFINITIONS .get ("default" ));
757
-
758
- builder
759
- .startManualTransferRunsSettings ()
760
760
.setRetryableCodes (RETRYABLE_CODE_DEFINITIONS .get ("non_idempotent" ))
761
761
.setRetrySettings (RETRY_PARAM_DEFINITIONS .get ("default" ));
762
762
@@ -774,12 +774,12 @@ protected Builder(DataTransferServiceStubSettings settings) {
774
774
getTransferConfigSettings = settings .getTransferConfigSettings .toBuilder ();
775
775
listTransferConfigsSettings = settings .listTransferConfigsSettings .toBuilder ();
776
776
scheduleTransferRunsSettings = settings .scheduleTransferRunsSettings .toBuilder ();
777
+ startManualTransferRunsSettings = settings .startManualTransferRunsSettings .toBuilder ();
777
778
getTransferRunSettings = settings .getTransferRunSettings .toBuilder ();
778
779
deleteTransferRunSettings = settings .deleteTransferRunSettings .toBuilder ();
779
780
listTransferRunsSettings = settings .listTransferRunsSettings .toBuilder ();
780
781
listTransferLogsSettings = settings .listTransferLogsSettings .toBuilder ();
781
782
checkValidCredsSettings = settings .checkValidCredsSettings .toBuilder ();
782
- startManualTransferRunsSettings = settings .startManualTransferRunsSettings .toBuilder ();
783
783
784
784
unaryMethodSettingsBuilders =
785
785
ImmutableList .<UnaryCallSettings .Builder <?, ?>>of (
@@ -791,12 +791,12 @@ protected Builder(DataTransferServiceStubSettings settings) {
791
791
getTransferConfigSettings ,
792
792
listTransferConfigsSettings ,
793
793
scheduleTransferRunsSettings ,
794
+ startManualTransferRunsSettings ,
794
795
getTransferRunSettings ,
795
796
deleteTransferRunSettings ,
796
797
listTransferRunsSettings ,
797
798
listTransferLogsSettings ,
798
- checkValidCredsSettings ,
799
- startManualTransferRunsSettings );
799
+ checkValidCredsSettings );
800
800
}
801
801
802
802
// NEXT_MAJOR_VER: remove 'throws Exception'
@@ -866,6 +866,13 @@ public UnaryCallSettings.Builder<GetDataSourceRequest, DataSource> getDataSource
866
866
return scheduleTransferRunsSettings ;
867
867
}
868
868
869
+ /** Returns the builder for the settings used for calls to startManualTransferRuns. */
870
+ public UnaryCallSettings .Builder <
871
+ StartManualTransferRunsRequest , StartManualTransferRunsResponse >
872
+ startManualTransferRunsSettings () {
873
+ return startManualTransferRunsSettings ;
874
+ }
875
+
869
876
/** Returns the builder for the settings used for calls to getTransferRun. */
870
877
public UnaryCallSettings .Builder <GetTransferRunRequest , TransferRun > getTransferRunSettings () {
871
878
return getTransferRunSettings ;
@@ -896,13 +903,6 @@ public UnaryCallSettings.Builder<DeleteTransferRunRequest, Empty> deleteTransfer
896
903
return checkValidCredsSettings ;
897
904
}
898
905
899
- /** Returns the builder for the settings used for calls to startManualTransferRuns. */
900
- public UnaryCallSettings .Builder <
901
- StartManualTransferRunsRequest , StartManualTransferRunsResponse >
902
- startManualTransferRunsSettings () {
903
- return startManualTransferRunsSettings ;
904
- }
905
-
906
906
@ Override
907
907
public DataTransferServiceStubSettings build () throws IOException {
908
908
return new DataTransferServiceStubSettings (this );
0 commit comments