@@ -31,36 +31,33 @@ option java_outer_classname = "DataTransferProto";
3131option java_package = "com.google.cloud.bigquery.datatransfer.v1" ;
3232option php_namespace = "Google\\Cloud\\BigQuery\\DataTransfer\\V1" ;
3333
34-
3534// The Google BigQuery Data Transfer Service API enables BigQuery users to
36- // configure the transfer of their data from other Google Products into BigQuery.
37- // This service contains methods that are end user exposed. It backs up the
38- // frontend.
35+ // configure the transfer of their data from other Google Products into
36+ // BigQuery. This service contains methods that are end user exposed. It backs
37+ // up the frontend.
3938service DataTransferService {
4039 // Retrieves a supported data source and returns its settings,
4140 // which can be used for UI rendering.
4241 rpc GetDataSource (GetDataSourceRequest ) returns (DataSource ) {
4342 option (google.api.http ) = {
4443 get : "/v1/{name=projects/*/locations/*/dataSources/*}"
45- additional_bindings {
46<
6D40
/td>- get : "/v1/{name=projects/*/dataSources/*}"
47- }
44+ additional_bindings { get : "/v1/{name=projects/*/dataSources/*}" }
4845 };
4946 }
5047
5148 // Lists supported data sources and returns their settings,
5249 // which can be used for UI rendering.
53- rpc ListDataSources (ListDataSourcesRequest ) returns (ListDataSourcesResponse ) {
50+ rpc ListDataSources (ListDataSourcesRequest )
51+ returns (ListDataSourcesResponse ) {
5452 option (google.api.http ) = {
5553 get : "/v1/{parent=projects/*/locations/*}/dataSources"
56- additional_bindings {
57- get : "/v1/{parent=projects/*}/dataSources"
58- }
54+ additional_bindings { get : "/v1/{parent=projects/*}/dataSources" }
5955 };
6056 }
6157
6258 // Creates a new data transfer configuration.
63- rpc CreateTransferConfig (CreateTransferConfigRequest ) returns (TransferConfig ) {
59+ rpc CreateTransferConfig (CreateTransferConfigRequest )
60+ returns (TransferConfig ) {
6461 option (google.api.http ) = {
6562 post : "/v1/{parent=projects/*/locations/*}/transferConfigs"
6663 body : "transfer_config"
@@ -73,7 +70,8 @@ service DataTransferService {
7370
7471 // Updates a data transfer configuration.
7572 // All fields must be set, even if they are not updated.
76- rpc UpdateTransferConfig (UpdateTransferConfigRequest ) returns (TransferConfig ) {
73+ rpc UpdateTransferConfig (UpdateTransferConfigRequest )
74+ returns (TransferConfig ) {
7775 option (google.api.http ) = {
7876 patch : "/v1/{transfer_config.name=projects/*/locations/*/transferConfigs/*}"
7977 body : "transfer_config"
@@ -86,40 +84,37 @@ service DataTransferService {
8684
8785 // Deletes a data transfer configuration,
8886 // including any associated transfer runs and logs.
89- rpc DeleteTransferConfig (DeleteTransferConfigRequest ) returns (google .protobuf .Empty ) {
87+ rpc DeleteTransferConfig (DeleteTransferConfigRequest )
88+ returns (google .protobuf .Empty ) {
9089 option (google.api.http ) = {
9190 delete : "/v1/{name=projects/*/locations/*/transferConfigs/*}"
92- additional_bindings {
93- delete : "/v1/{name=projects/*/transferConfigs/*}"
94- }
91+ additional_bindings { delete : "/v1/{name=projects/*/transferConfigs/*}" }
9592 };
9693 }
9794
9895 // Returns information about a data transfer config.
9996 rpc GetTransferConfig (GetTransferConfigRequest ) returns (TransferConfig ) {
10097 option (google.api.http ) = {
10198 get : "/v1/{name=projects/*/locations/*/transferConfigs/*}"
102- additional_bindings {
103- get : "/v1/{name=projects/*/transferConfigs/*}"
104- }
99+ additional_bindings { get : "/v1/{name=projects/*/transferConfigs/*}" }
105100 };
106101 }
107102
108103 // Returns information about all data transfers in the project.
109- rpc ListTransferConfigs (ListTransferConfigsRequest ) returns (ListTransferConfigsResponse ) {
104+ rpc ListTransferConfigs (ListTransferConfigsRequest )
105+ returns (ListTransferConfigsResponse ) {
110106 option (google.api.http ) = {
111107 get : "/v1/{parent=projects/*/locations/*}/transferConfigs"
112- additional_bindings {
113- get : "/v1/{parent=projects/*}/transferConfigs"
114- }
108+ additional_bindings { get : "/v1/{parent=projects/*}/transferConfigs" }
115109 };
116110 }
117111
118112 // Creates transfer runs for a time range [start_time, end_time].
119113 // For each date - or whatever granularity the data source supports - in the
120114 // range, one transfer run is created.
121115 // Note that runs are created per UTC time in the time range.
122- rpc ScheduleTransferRuns (ScheduleTransferRunsRequest ) returns (ScheduleTransferRunsResponse ) {
116+ rpc ScheduleTransferRuns (ScheduleTransferRunsRequest )
117+ returns (ScheduleTransferRunsResponse ) {
123118 option (google.api.http ) = {
124119 post : "/v1/{parent=projects/*/locations/*/transferConfigs/*}:scheduleRuns"
125120 body : "*"
@@ -141,7 +136,8 @@ service DataTransferService {
141136 }
142137
143138 // Deletes the specified transfer run.
144- rpc DeleteTransferRun (DeleteTransferRunRequest ) returns (google .protobuf .Empty ) {
139+ rpc DeleteTransferRun (DeleteTransferRunRequest )
140+ returns (google .protobuf .Empty ) {
145141 option (google.api.http ) = {
146142 delete : "/v1/{name=projects/*/locations/*/transferConfigs/*/runs/*}"
147143 additional_bindings {
@@ -151,7 +147,8 @@ service DataTransferService {
151147 }
152148
153149 // Returns information about running and completed jobs.
154- rpc ListTransferRuns (ListTransferRunsRequest ) returns (ListTransferRunsResponse ) {
150+ rpc ListTransferRuns (ListTransferRunsRequest )
151+ returns (ListTransferRunsResponse ) {
155152 option (google.api.http ) = {
156153 get : "/v1/{parent=projects/*/locations/*/transferConfigs/*}/runs"
157154 additional_bindings {
@@ -161,7 +158,8 @@ service DataTransferService {
161158 }
162159
163160 // Returns user facing log messages for the data transfer run.
164- rpc ListTransferLogs (ListTransferLogsRequest ) returns (ListTransferLogsResponse ) {
161+ rpc ListTransferLogs (ListTransferLogsRequest )
162+ returns (ListTransferLogsResponse ) {
165163 option (google.api.http ) = {
166164 get : "/v1/{parent=projects/*/locations/*/transferConfigs/*/runs/*}/transferLogs"
167165 additional_bindings {
@@ -176,7 +174,8 @@ service DataTransferSer
9E88
vice {
176174 // them on behalf of the end user. This API just checks whether we have OAuth
177175 // token for the particular user, which is a pre-requisite before user can
178176 // create a transfer config.
179- rpc CheckValidCreds (CheckValidCredsRequest ) returns (CheckValidCredsResponse ) {
177+ rpc CheckValidCreds (CheckValidCredsRequest )
178+ returns (CheckValidCredsResponse ) {
180179 option (google.api.http ) = {
181180 post : "/v1/{name=projects/*/locations/*/dataSources/*}:checkValidCreds"
182181 body : "*"
0 commit comments