1- // Copyright 2020 Google LLC
1+ // Copyright 2021 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@ package google.cloud.bigquery.datatransfer.v1;
1818
1919import "google/api/field_behavior.proto" ;
2020import "google/api/resource.proto" ;
21+ import "google/protobuf/duration.proto" ;
2122import "google/protobuf/struct.proto" ;
2223import "google/protobuf/timestamp.proto" ;
2324import "google/rpc/status.proto" ;
@@ -48,23 +49,23 @@ enum TransferType {
4849
4950// Represents data transfer run state.
5051enum TransferState {
51- // State placeholder.
52+ // State placeholder (0) .
5253 TRANSFER_STATE_UNSPECIFIED = 0 ;
5354
5455 // Data transfer is scheduled and is waiting to be picked up by
55- // data transfer backend.
56+ // data transfer backend (2) .
5657 PENDING = 2 ;
5758
58- // Data transfer is in progress.
59+ // Data transfer is in progress (3) .
5960 RUNNING = 3 ;
6061
61- // Data transfer completed successfully.
62+ // Data transfer completed successfully (4) .
6263 SUCCEEDED = 4 ;
6364
64- // Data transfer failed.
65+ // Data transfer failed (5) .
6566 FAILED = 5 ;
6667
67- // Data transfer is cancelled.
68+ // Data transfer is cancelled (6) .
6869 CANCELLED = 6 ;
6970}
7071
@@ -111,12 +112,11 @@ message TransferConfig {
111112 };
112113
113114 // The resource name of the transfer config.
114- // Transfer config names have the form of
115+ // Transfer config names have the form
115116 // `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
116- // The name is automatically generated based on the config_id specified in
117- // CreateTransferConfigRequest along with project_id and region. If config_id
118- // is not provided, usually a uuid, even though it is not guaranteed or
119- // required, will be generated for config_id.
117+ // Where `config_id` is usually a uuid, even though it is not
118+ // guaranteed or required. The name is ignored when creating a transfer
119+ // config.
120120 string name = 1 ;
121121
122122 // The desination of the transfer config.
@@ -131,7 +131,10 @@ message TransferConfig {
131131 // Data source id. Cannot be changed once data transfer is created.
132132 string data_source_id = 5 ;
133133
134- // Data transfer specific parameters.
134+ // Parameters specific to each data source. For more information see the
135+ // bq tab in the 'Setting up a data transfer' section for each data source.
136+ // For example the parameters for Cloud Storage transfers are listed here:
137+ // https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq
135138 google.protobuf.Struct params = 9 ;
136139
137140 // Data transfer schedule.
@@ -180,6 +183,9 @@ message TransferConfig {
180183
181184 // Pub/Sub topic where notifications will be sent after transfer runs
182185 // associated with this transfer config finish.
186+ //
187+ // The format for specifying a pubsub topic is:
188+ // `projects/{project}/topics/{topic}`
183189 string notification_pubsub_topic = 15 ;
184190
185191 // Email notifications will be sent according to these preferences
@@ -222,7 +228,10 @@ message TransferRun {
222228 // Output only. Last time the data transfer run state was updated.
223229 google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior ) = OUTPUT_ONLY ];
224230
225- // Output only. Data transfer specific parameters.
231+ // Output only. Parameters specific to each data source. For more information see the
232+ // bq tab in the 'Setting up a data transfer' section for each data source.
233+ // For example the parameters for Cloud Storage transfers are listed here:
234+ // https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq
226235 google.protobuf.Struct params = 9 [(google.api.field_behavior ) = OUTPUT_ONLY ];
227236
228237 // Data transfer destination.
@@ -248,7 +257,10 @@ message TransferRun {
248257 string schedule = 12 [(google.api.field_behavior ) = OUTPUT_ONLY ];
249258
250259 // Output only. Pub/Sub topic where a notification will be sent after this
251- // transfer run finishes
260+ // transfer run finishes.
261+ //
262+ // The format for specifying a pubsub topic is:
263+ // `projects/{project}/topics/{topic}`
252264 string notification_pubsub_topic = 23 [(google.api.field_behavior ) = OUTPUT_ONLY ];
253265
254266 // Output only. Email notifications will be sent according to these
0 commit comments