diff --git a/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java b/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java index 12e04ea6..fcd8d128 100644 --- a/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java +++ b/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java @@ -173,7 +173,8 @@ public DataTransferServiceStub getStub() { * * * @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) { @@ -197,7 +198,8 @@ public final DataSource getDataSource(DataSourceName name) { * * * @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) { @@ -267,7 +269,7 @@ public final UnaryCallable getDataSourceCallab * * * @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) { @@ -294,7 +296,7 @@ public final ListDataSourcesPagedResponse listDataSources(ParentName parent) { * * * @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) { @@ -399,9 +401,9 @@ public final ListDataSourcesPagedResponse listDataSources(ListDataSourcesRequest * * * @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 */ @@ -431,9 +433,9 @@ public final TransferConfig createTransferConfig( * * * @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 */ @@ -590,7 +592,8 @@ public final TransferConfig updateTransferConfig(UpdateTransferConfigRequest req * * * @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) { @@ -616,7 +619,8 @@ public final void deleteTransferConfig(TransferConfigName name) { * * * @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) { @@ -685,7 +689,8 @@ public final UnaryCallable deleteTransferCon * * * @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) { @@ -711,7 +716,8 @@ public final TransferConfig getTransferConfig(TransferConfigName name) { * * * @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) { @@ -781,7 +787,7 @@ public final UnaryCallable getTransfer * * * @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) { @@ -808,7 +814,7 @@ public final ListTransferConfigsPagedResponse listTransferConfigs(ParentName par * * * @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) { @@ -919,7 +925,8 @@ public final ListTransferConfigsPagedResponse listTransferConfigs( * * * @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, @@ -957,7 +964,8 @@ public final ScheduleTransferRunsResponse scheduleTransferRuns( * * * @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, @@ -1051,7 +1059,8 @@ public final ScheduleTransferRunsResponse scheduleTransferRuns( * * * @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) { @@ -1075,7 +1084,8 @@ public final TransferRun getTransferRun(RunName name) { * * * @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) { @@ -1143,7 +1153,8 @@ public final UnaryCallable getTransferRunCal * * * @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) { @@ -1169,7 +1180,8 @@ public final void deleteTransferRun(RunName name) { * * * @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) { @@ -1240,7 +1252,8 @@ public final UnaryCallable 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) { @@ -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) { @@ -1375,7 +1389,8 @@ public final ListTransferRunsPagedResponse listTransferRuns(ListTransferRunsRequ * * * @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) { @@ -1402,7 +1417,8 @@ public final ListTransferLogsPagedResponse listTransferLogs(RunName parent) { * * * @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) { @@ -1510,7 +1526,8 @@ public final ListTransferLogsPagedResponse listTransferLogs(ListTransferLogsRequ * * * @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) { @@ -1537,7 +1554,8 @@ public final CheckValidCredsResponse checkValidCreds(DataSourceName name) { * * * @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) { diff --git a/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java b/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java index bb0e77df..63d46d9f 100644 --- a/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java +++ b/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java @@ -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()) @@ -218,6 +219,7 @@ public void createTransferConfigTest() { .setDisabled(disabled) .setUserId(userId) .setDatasetRegion(datasetRegion) + .setNotificationPubsubTopic(notificationPubsubTopic) .build(); mockDataTransferService.addResponse(expectedResponse); @@ -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()) @@ -279,6 +282,7 @@ public void updateTransferConfigTest() { .setDisabled(disabled) .setUserId(userId) .setDatasetRegion(datasetRegion) + .setNotificationPubsubTopic(notificationPubsubTopic) .build(); mockDataTransferService.addResponse(expectedResponse); @@ -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()) @@ -377,6 +382,7 @@ public void getTransferConfigTest() { .setDisabled(disabled) .setUserId(userId) .setDatasetRegion(datasetRegion) + .setNotificationPubsubTopic(notificationPubsubTopic) .build(); mockDataTransferService.addResponse(expectedResponse); @@ -514,6 +520,7 @@ public void getTransferRunTest() { String dataSourceId = "dataSourceId-1015796374"; long userId = 147132913L; String schedule = "schedule-697920873"; + String notificationPubsubTopic = "notificationPubsubTopic1794281191"; TransferRun expectedResponse = TransferRun.newBuilder() .setName(name2.toString()) @@ -521,6 +528,7 @@ public void getTransferRunTest() { .setDataSourceId(dataSourceId) .setUserId(userId) .setSchedule(schedule) + .setNotificationPubsubTopic(notificationPubsubTopic) .build(); mockDataTransferService.addResponse(expectedResponse); diff --git a/proto-google-cloud-bigquerydatatransfer-v1/clirr-ignored-differences.xml b/proto-google-cloud-bigquerydatatransfer-v1/clirr-ignored-differences.xml new file mode 100644 index 00000000..e944adaa --- /dev/null +++ b/proto-google-cloud-bigquerydatatransfer-v1/clirr-ignored-differences.xml @@ -0,0 +1,15 @@ + + + + + + 7012 + com/google/cloud/bigquery/datatransfer/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/bigquery/datatransfer/v1/*OrBuilder + boolean has*(*) + + \ No newline at end of file diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java index fc0add54..fd81aa5f 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java @@ -118,7 +118,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * 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}`.
    * 
* * @@ -141,7 +142,8 @@ public java.lang.String getName() { * *
    * 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}`.
    * 
* * @@ -494,7 +496,8 @@ public Builder mergeFrom( * *
      * 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}`.
      * 
* * @@ -517,7 +520,8 @@ public java.lang.String getName() { * *
      * 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}`.
      * 
* * @@ -540,7 +544,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * 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}`.
      * 
* * @@ -561,7 +566,8 @@ public Builder setName(java.lang.String value) { * *
      * 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}`.
      * 
* * @@ -579,7 +585,8 @@ public Builder clearName() { * *
      * 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}`.
      * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java index 80034727..9a2979f0 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface CheckValidCredsRequestOrBuilder * *
    * 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}`.
    * 
* * @@ -41,7 +42,8 @@ public interface CheckValidCredsRequestOrBuilder * *
    * 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}`.
    * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java index 9142bd20..6ed23135 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java @@ -46,6 +46,7 @@ private CreateTransferConfigRequest() { parent_ = ""; authorizationCode_ = ""; versionInfo_ = ""; + serviceAccountName_ = ""; } @java.lang.Override @@ -110,6 +111,13 @@ private CreateTransferConfigRequest( versionInfo_ = s; break; } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccountName_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -151,9 +159,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * 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.
+   * 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.
    * 
* * @@ -176,9 +184,9 @@ public java.lang.String getParent() { * *
    * 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.
+   * 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.
    * 
* * @@ -369,6 +377,55 @@ public com.google.protobuf.ByteString getVersionInfoBytes() { } } + public static final int SERVICE_ACCOUNT_NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object serviceAccountName_; + /** + * + * + *
+   * Optional service account name. If this field is set, transfer config will
+   * be created with this service account credentials. It requires that
+   * requesting user calling this API has permissions to act as this service
+   * account.
+   * 
+ * + * string service_account_name = 6; + */ + public java.lang.String getServiceAccountName() { + java.lang.Object ref = serviceAccountName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional service account name. If this field is set, transfer config will
+   * be created with this service account credentials. It requires that
+   * requesting user calling this API has permissions to act as this service
+   * account.
+   * 
+ * + * string service_account_name = 6; + */ + public com.google.protobuf.ByteString getServiceAccountNameBytes() { + java.lang.Object ref = serviceAccountName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -395,6 +452,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getVersionInfoBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, versionInfo_); } + if (!getServiceAccountNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccountName_); + } unknownFields.writeTo(output); } @@ -416,6 +476,9 @@ public int getSerializedSize() { if (!getVersionInfoBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, versionInfo_); } + if (!getServiceAccountNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccountName_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -439,6 +502,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getAuthorizationCode().equals(other.getAuthorizationCode())) return false; if (!getVersionInfo().equals(other.getVersionInfo())) return false; + if (!getServiceAccountName().equals(other.getServiceAccountName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -460,6 +524,8 @@ public int hashCode() { hash = (53 * hash) + getAuthorizationCode().hashCode(); hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getVersionInfo().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -625,6 +691,8 @@ public Builder clear() { versionInfo_ = ""; + serviceAccountName_ = ""; + return this; } @@ -662,6 +730,7 @@ public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest bui } result.authorizationCode_ = authorizationCode_; result.versionInfo_ = versionInfo_; + result.serviceAccountName_ = serviceAccountName_; onBuilt(); return result; } @@ -730,6 +799,10 @@ public Builder mergeFrom( versionInfo_ = other.versionInfo_; onChanged(); } + if (!other.getServiceAccountName().isEmpty()) { + serviceAccountName_ = other.serviceAccountName_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -767,9 +840,9 @@ public Builder mergeFrom( * *
      * 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.
+     * 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.
      * 
* * @@ -792,9 +865,9 @@ public java.lang.String getParent() { * *
      * 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.
+     * 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.
      * 
* * @@ -817,9 +890,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * 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.
+     * 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.
      * 
* * @@ -840,9 +913,9 @@ public Builder setParent(java.lang.String value) { * *
      * 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.
+     * 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.
      * 
* * @@ -860,9 +933,9 @@ public Builder clearParent() { * *
      * 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.
+     * 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.
      * 
* * @@ -1367,6 +1440,115 @@ public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object serviceAccountName_ = ""; + /** + * + * + *
+     * Optional service account name. If this field is set, transfer config will
+     * be created with this service account credentials. It requires that
+     * requesting user calling this API has permissions to act as this service
+     * account.
+     * 
+ * + * string service_account_name = 6; + */ + public java.lang.String getServiceAccountName() { + java.lang.Object ref = serviceAccountName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional service account name. If this field is set, transfer config will
+     * be created with this service account credentials. It requires that
+     * requesting user calling this API has permissions to act as this service
+     * account.
+     * 
+ * + * string service_account_name = 6; + */ + public com.google.protobuf.ByteString getServiceAccountNameBytes() { + java.lang.Object ref = serviceAccountName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional service account name. If this field is set, transfer config will
+     * be created with this service account credentials. It requires that
+     * requesting user calling this API has permissions to act as this service
+     * account.
+     * 
+ * + * string service_account_name = 6; + */ + public Builder setServiceAccountName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccountName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional service account name. If this field is set, transfer config will
+     * be created with this service account credentials. It requires that
+     * requesting user calling this API has permissions to act as this service
+     * account.
+     * 
+ * + * string service_account_name = 6; + */ + public Builder clearServiceAccountName() { + + serviceAccountName_ = getDefaultInstance().getServiceAccountName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional service account name. If this field is set, transfer config will
+     * be created with this service account credentials. It requires that
+     * requesting user calling this API has permissions to act as this service
+     * account.
+     * 
+ * + * string service_account_name = 6; + */ + public Builder setServiceAccountNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccountName_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java index dfd0c222..7ffb922f 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequestOrBuilder.java @@ -28,9 +28,9 @@ public interface CreateTransferConfigRequestOrBuilder * *
    * 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.
+   * 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.
    * 
* * @@ -43,9 +43,9 @@ public interface CreateTransferConfigRequestOrBuilder * *
    * 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.
+   * 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.
    * 
* * @@ -170,4 +170,31 @@ public interface CreateTransferConfigRequestOrBuilder * string version_info = 5; */ com.google.protobuf.ByteString getVersionInfoBytes(); + + /** + * + * + *
+   * Optional service account name. If this field is set, transfer config will
+   * be created with this service account credentials. It requires that
+   * requesting user calling this API has permissions to act as this service
+   * account.
+   * 
+ * + * string service_account_name = 6; + */ + java.lang.String getServiceAccountName(); + /** + * + * + *
+   * Optional service account name. If this field is set, transfer config will
+   * be created with this service account credentials. It requires that
+   * requesting user calling this API has permissions to act as this service
+   * account.
+   * 
+ * + * string service_account_name = 6; + */ + com.google.protobuf.ByteString getServiceAccountNameBytes(); } diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java index 713c5506..84dc638d 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java @@ -158,7 +158,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "able\030\016 \001(\010\022\017\n\007recurse\030\017 \001(\010\022\022\n\ndeprecate" + "d\030\024 \001(\010\"i\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n" + "\006STRING\020\001\022\013\n\007INTEGER\020\002\022\n\n\006DOUBLE\020\003\022\013\n\007BO" - + "OLEAN\020\004\022\n\n\006RECORD\020\005\022\r\n\tPLUS_PAGE\020\006\"\277\010\n\nD" + + "OLEAN\020\004\022\n\n\006RECORD\020\005\022\r\n\tPLUS_PAGE\020\006\"\204\t\n\nD" + "ataSource\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016data_sou" + "rce_id\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\022\023\n\013de" + "scription\030\004 \001(\t\022\021\n\tclient_id\030\005 \001(\t\022\016\n\006sc" @@ -183,200 +183,203 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "N_CODE\020\001\022\"\n\036GOOGLE_PLUS_AUTHORIZATION_CO" + "DE\020\002\"c\n\017DataRefreshType\022!\n\035DATA_REFRESH_" + "TYPE_UNSPECIFIED\020\000\022\022\n\016SLIDING_WINDOW\020\001\022\031" - + "\n\025CUSTOM_SLIDING_WINDOW\020\002:a\352A^\n.bigquery" - + "datatransfer.googleapis.com/DataSource\022," - + "projects/{project}/dataSources/{data_sou" - + "rce}\"\\\n\024GetDataSourceRequest\022D\n\004name\030\001 \001" - + "(\tB6\340A\002\372A0\n.bigquerydatatransfer.googlea" - + "pis.com/DataSource\"\204\001\n\026ListDataSourcesRe" - + "quest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudreso" - + "urcemanager.googleapis.com/Project\022\022\n\npa" - + "ge_token\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\"\200\001\n\027Li" - + "stDataSourcesResponse\022G\n\014data_sources\030\001 " - + "\003(\01321.google.cloud.bigquery.datatransfer" - + ".v1.DataSource\022\034\n\017next_page_token\030\002 \001(\tB" - + "\003\340A\003\"\337\001\n\033CreateTransferConfigRequest\0229\n\006" - + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\022S\n\017transfer_config\030\002 \001(\013" - + "25.google.cloud.bigquery.datatransfer.v1" - + ".TransferConfigB\003\340A\002\022\032\n\022authorization_co" - + "de\030\003 \001(\t\022\024\n\014version_info\030\005 \001(\t\"\332\001\n\033Updat" - + "eTransferConfigRequest\022S\n\017transfer_confi" - + "g\030\001 \001(\01325.google.cloud.bigquery.datatran" - + "sfer.v1.TransferConfigB\003\340A\002\022\032\n\022authoriza" - + "tion_code\030\003 \001(\t\0224\n\013update_mask\030\004 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\002\022\024\n\014version" - + "_info\030\005 \001(\t\"d\n\030GetTransferConfigRequest\022" - + "H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2bigquerydatatrans" - + "fer.googleapis.com/TransferConfig\"g\n\033Del" - + "eteTransferConfigRequest\022H\n\004name\030\001 \001(\tB:" - + "\340A\002\372A4\n2bigquerydatatransfer.googleapis." - + "com/TransferConfig\"^\n\025GetTransferRunRequ" - + "est\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/bigquerydatat" - + "ransfer.googleapis.com/TransferRun\"a\n\030De" - + "leteTransferRunRequest\022E\n\004name\030\001 \001(\tB7\340A" - + "\002\372A1\n/bigquerydatatransfer.googleapis.co" - + "m/TransferRun\"\241\001\n\032ListTransferConfigsReq" - + "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" - + "rcemanager.googleapis.com/Project\022\027\n\017dat" - + "a_source_ids\030\002 \003(\t\022\022\n\npage_token\030\003 \001(\t\022\021" - + "\n\tpage_size\030\004 \001(\005\"\221\001\n\033ListTransferConfig" - + "sResponse\022T\n\020transfer_configs\030\001 \003(\01325.go" - + "ogle.cloud.bigquery.datatransfer.v1.Tran" - + "sferConfigB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\t" - + "B\003\340A\003\"\351\002\n\027ListTransferRunsRequest\022J\n\006par" - + "ent\030\001 \001(\tB:\340A\002\372A4\n2bigquerydatatransfer." - + "googleapis.com/TransferConfig\022D\n\006states\030" - + "\002 \003(\01624.google.cloud.bigquery.datatransf" - + "er.v1.TransferState\022\022\n\npage_token\030\003 \001(\t\022" - + "\021\n\tpage_size\030\004 \001(\005\022^\n\013run_attempt\030\005 \001(\0162" - + "I.google.cloud.bigquery.datatransfer.v1." - + "ListTransferRunsRequest.RunAttempt\"5\n\nRu" - + "nAttempt\022\033\n\027RUN_ATTEMPT_UNSPECIFIED\020\000\022\n\n" - + "\006LATEST\020\001\"\210\001\n\030ListTransferRunsResponse\022N" - + "\n\rtransfer_runs\030\001 \003(\01322.google.cloud.big" - + "query.datatransfer.v1.TransferRunB\003\340A\003\022\034" - + "\n\017next_page_token\030\002 \001(\tB\003\340A\003\"\350\001\n\027ListTra" - + "nsferLogsRequest\022G\n\006parent\030\001 \001(\tB7\340A\002\372A1" - + "\n/bigquerydatatransfer.googleapis.com/Tr" - + "ansferRun\022\022\n\npage_token\030\004 \001(\t\022\021\n\tpage_si" - + "ze\030\005 \001(\005\022]\n\rmessage_types\030\006 \003(\0162F.google" - + ".cloud.bigquery.datatransfer.v1.Transfer" - + "Message.MessageSeverity\"\220\001\n\030ListTransfer" - + "LogsResponse\022V\n\021transfer_messages\030\001 \003(\0132" - + "6.google.cloud.bigquery.datatransfer.v1." - + "TransferMessageB\003\340A\003\022\034\n\017next_page_token\030" - + "\002 \001(\tB\003\340A\003\"^\n\026CheckValidCredsRequest\022D\n\004" - + "name\030\001 \001(\tB6\340A\002\372A0\n.bigquerydatatransfer" - + ".googleapis.com/DataSource\"2\n\027CheckValid" - + "CredsResponse\022\027\n\017has_valid_creds\030\001 \001(\010\"\321" - + "\001\n\033ScheduleTransferRunsRequest\022J\n\006parent" - + "\030\001 \001(\tB:\340A\002\372A4\n2bigquerydatatransfer.goo" - + "gleapis.com/TransferConfig\0223\n\nstart_time" - + "\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022" - + "1\n\010end_time\030\003 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\002\"`\n\034ScheduleTransferRunsRespon" - + "se\022@\n\004runs\030\001 \003(\01322.google.cloud.bigquery" - + ".datatransfer.v1.TransferRun\"\207\003\n\036StartMa" - + "nualTransferRunsRequest\022G\n\006parent\030\001 \001(\tB" - + "7\372A4\n2bigquerydatatransfer.googleapis.co" - + "m/TransferConfig\022o\n\024requested_time_range" - + "\030\003 \001(\0132O.google.cloud.bigquery.datatrans" - + "fer.v1.StartManualTransferRunsRequest.Ti" - + "meRangeH\000\0228\n\022requested_run_time\030\004 \001(\0132\032." - + "google.protobuf.TimestampH\000\032i\n\tTimeRange" - + "\022.\n\nstart_time\030\001 \001(\0132\032.google.protobuf.T" - + "imestamp\022,\n\010end_time\030\002 \001(\0132\032.google.prot" - + "obuf.TimestampB\006\n\004time\"c\n\037StartManualTra" - + "nsferRunsResponse\022@\n\004runs\030\001 \003(\01322.google" - + ".cloud.bigquery.datatransfer.v1.Transfer" - + "Run2\303\037\n\023DataTransferService\022\346\001\n\rGetDataS" - + "ource\022;.google.cloud.bigquery.datatransf" - + "er.v1.GetDataSourceRequest\0321.google.clou" - + "d.bigquery.datatransfer.v1.DataSource\"e\202" - + "\323\344\223\002X\022//v1/{name=projects/*/locations/*/" - + "dataSources/*}Z%\022#/v1/{name=projects/*/d" - + "ataSources/*}\332A\004name\022\371\001\n\017ListDataSources" - + "\022=.google.cloud.bigquery.datatransfer.v1" - + ".ListDataSourcesRequest\032>.google.cloud.b" - + "igquery.datatransfer.v1.ListDataSourcesR" - + "esponse\"g\202\323\344\223\002X\022//v1/{parent=projects/*/" - + "locations/*}/dataSourcesZ%\022#/v1/{parent=" - + "projects/*}/dataSources\332A\006parent\022\266\002\n\024Cre" - + "ateTransferConfig\022B.google.cloud.bigquer" - + "y.datatransfer.v1.CreateTransferConfigRe" - + "quest\0325.google.cloud.bigquery.datatransf" - + "er.v1.TransferConfig\"\242\001\202\323\344\223\002\202\001\"3/v1/{par" - + "ent=projects/*/locations/*}/transferConf" - + "igs:\017transfer_configZ:\"\'/v1/{parent=proj" - + "ects/*}/transferConfigs:\017transfer_config" - + "\332A\026parent,transfer_config\022\333\002\n\024UpdateTran" - + "sferConfig\022B.google.cloud.bigquery.datat" - + "ransfer.v1.UpdateTransferConfigRequest\0325" - + ".google.cloud.bigquery.datatransfer.v1.T" - + "ransferConfig\"\307\001\202\323\344\223\002\242\0012C/v1/{transfer_c" - + "onfig.name=projects/*/locations/*/transf" - + "erConfigs/*}:\017transfer_configZJ27/v1/{tr" - + "ansfer_config.name=projects/*/transferCo" - + "nfigs/*}:\017transfer_config\332A\033transfer_con" - + "fig,update_mask\022\341\001\n\024DeleteTransferConfig" - + "\022B.google.cloud.bigquery.datatransfer.v1" - + ".DeleteTransferConfigRequest\032\026.google.pr" - + "otobuf.Empty\"m\202\323\344\223\002`*3/v1/{name=projects" - + "/*/locations/*/transferConfigs/*}Z)*\'/v1" - + "/{name=projects/*/transferConfigs/*}\332A\004n" - + "ame\022\372\001\n\021GetTransferConfig\022?.google.cloud" - + ".bigquery.datatransfer.v1.GetTransferCon" - + "figRequest\0325.google.cloud.bigquery.datat" - + "ransfer.v1.TransferConfig\"m\202\323\344\223\002`\0223/v1/{" - + "name=projects/*/locations/*/transferConf" - + "igs/*}Z)\022\'/v1/{name=projects/*/transferC" - + "onfigs/*}\332A\004name\022\215\002\n\023ListTransferConfigs" - + "\022A.google.cloud.bigquery.datatransfer.v1" - + ".ListTransferConfigsRequest\032B.google.clo" - + "ud.bigquery.datatransfer.v1.ListTransfer" - + "ConfigsResponse\"o\202\323\344\223\002`\0223/v1/{parent=pro" - + "jects/*/locations/*}/transferConfigsZ)\022\'" - + "/v1/{parent=projects/*}/transferConfigs\332" - + "A\006parent\022\315\002\n\024ScheduleTransferRuns\022B.goog" - + "le.cloud.bigquery.datatransfer.v1.Schedu" - + "leTransferRunsRequest\032C.google.cloud.big" - + "query.datatransfer.v1.ScheduleTransferRu" - + "nsResponse\"\253\001\210\002\001\202\323\344\223\002\204\001\"B/v1/{parent=pro" - + "jects/*/locations/*/transferConfigs/*}:s" - + "cheduleRuns:\001*Z;\"6/v1/{parent=projects/*" - + "/transferConfigs/*}:scheduleRuns:\001*\332A\032pa" - + "rent,start_time,end_time\022\274\002\n\027StartManual" - + "TransferRuns\022E.google.cloud.bigquery.dat" - + "atransfer.v1.StartManualTransferRunsRequ" - + "est\032F.google.cloud.bigquery.datatransfer" - + ".v1.StartManualTransferRunsResponse\"\221\001\202\323" - + "\344\223\002\212\001\"E/v1/{parent=projects/*/locations/" - + "*/transferConfigs/*}:startManualRuns:\001*Z" - + ">\"9/v1/{parent=projects/*/transferConfig" - + "s/*}:startManualRuns:\001*\022\377\001\n\016GetTransferR" - + "un\022<.google.cloud.bigquery.datatransfer." - + "v1.GetTransferRunRequest\0322.google.cloud." - + "bigquery.datatransfer.v1.TransferRun\"{\202\323" - + "\344\223\002n\022:/v1/{name=projects/*/locations/*/t" - + "ransferConfigs/*/runs/*}Z0\022./v1/{name=pr" - + "ojects/*/transferConfigs/*/runs/*}\332A\004nam" - + "e\022\351\001\n\021DeleteTransferRun\022?.google.cloud.b" - + "igquery.datatransfer.v1.DeleteTransferRu" - + "nRequest\032\026.google.protobuf.Empty\"{\202\323\344\223\002n" - + "*:/v1/{name=projects/*/locations/*/trans" - + "ferConfigs/*/runs/*}Z0*./v1/{name=projec" - + "ts/*/transferConfigs/*/runs/*}\332A\004name\022\222\002" - + "\n\020ListTransferRuns\022>.google.cloud.bigque" - + "ry.datatransfer.v1.ListTransferRunsReque" - + "st\032?.google.cloud.bigquery.datatransfer." - + "v1.ListTransferRunsResponse\"}\202\323\344\223\002n\022:/v1" + + "\n\025CUSTOM_SLIDING_WINDOW\020\002:\245\001\352A\241\001\n.bigque" + + "rydatatransfer.googleapis.com/DataSource" + + "\022,projects/{project}/dataSources/{data_s" + + "ource}\022Aprojects/{project}/locations/{lo" + + "cation}/dataSources/{data_source}\"\\\n\024Get" + + "DataSourceRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n" + + ".bigquerydatatransfer.googleapis.com/Dat" + + "aSource\"\207\001\n\026ListDataSourcesRequest\022F\n\006pa" + + "rent\030\001 \001(\tB6\340A\002\372A0\022.bigquerydatatransfer" + + ".googleapis.com/DataSource\022\022\n\npage_token" + + "\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\"\200\001\n\027ListDataSo" + + "urcesResponse\022G\n\014data_sources\030\001 \003(\01321.go" + + "ogle.cloud.bigquery.datatransfer.v1.Data" + + "Source\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"\216\002\n" + + "\033CreateTransferConfigRequest\022J\n\006parent\030\001" + + " \001(\tB:\340A\002\372A4\0222bigquerydatatransfer.googl" + + "eapis.com/TransferConfig\022S\n\017transfer_con" + + "fig\030\002 \001(\01325.google.cloud.bigquery.datatr" + + "ansfer.v1.TransferConfigB\003\340A\002\022\032\n\022authori" + + "zation_code\030\003 \001(\t\022\024\n\014version_info\030\005 \001(\t\022" + + "\034\n\024service_account_name\030\006 \001(\t\"\370\001\n\033Update" + + "TransferConfigRequest\022S\n\017transfer_config" + + "\030\001 \001(\01325.google.cloud.bigquery.datatrans" + + "fer.v1.TransferConfigB\003\340A\002\022\032\n\022authorizat" + + "ion_code\030\003 \001(\t\0224\n\013update_mask\030\004 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\022\024\n\014version_" + + "info\030\005 \001(\t\022\034\n\024service_account_name\030\006 \001(\t" + + "\"d\n\030GetTransferConfigRequest\022H\n\004name\030\001 \001" + + "(\tB:\340A\002\372A4\n2bigquerydatatransfer.googlea" + + "pis.com/TransferConfig\"g\n\033DeleteTransfer" + + "ConfigRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2big" + + "querydatatransfer.googleapis.com/Transfe" + + "rConfig\"V\n\025GetTransferRunRequest\022=\n\004name" + + "\030\001 \001(\tB/\340A\002\372A)\n\'bigquerydatatransfer.goo" + + "gleapis.com/Run\"Y\n\030DeleteTransferRunRequ" + + "est\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'bigquerydatat" + + "ransfer.googleapis.com/Run\"\250\001\n\032ListTrans" + + "ferConfigsRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A" + + "4\0222bigquerydatatransfer.googleapis.com/T" + + "ransferConfig\022\027\n\017data_source_ids\030\002 \003(\t\022\022" + + "\n\npage_token\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\"\221\001" + + "\n\033ListTransferConfigsResponse\022T\n\020transfe" + + "r_configs\030\001 \003(\01325.google.cloud.bigquery." + + "datatransfer.v1.TransferConfigB\003\340A\003\022\034\n\017n" + + "ext_page_token\030\002 \001(\tB\003\340A\003\"\336\002\n\027ListTransf" + + "erRunsRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'b" + + "igquerydatatransfer.googleapis.com/Run\022D" + + "\n\006states\030\002 \003(\01624.google.cloud.bigquery.d" + + "atatransfer.v1.TransferState\022\022\n\npage_tok" + + "en\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022^\n\013run_attem" + + "pt\030\005 \001(\0162I.google.cloud.bigquery.datatra" + + "nsfer.v1.ListTransferRunsRequest.RunAtte" + + "mpt\"5\n\nRunAttempt\022\033\n\027RUN_ATTEMPT_UNSPECI" + + "FIED\020\000\022\n\n\006LATEST\020\001\"\210\001\n\030ListTransferRunsR" + + "esponse\022N\n\rtransfer_runs\030\001 \003(\01322.google." + + "cloud.bigquery.datatransfer.v1.TransferR" + + "unB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"\340\001" + + "\n\027ListTransferLogsRequest\022?\n\006parent\030\001 \001(" + + "\tB/\340A\002\372A)\n\'bigquerydatatransfer.googleap" + + "is.com/Run\022\022\n\npage_token\030\004 \001(\t\022\021\n\tpage_s" + + "ize\030\005 \001(\005\022]\n\rmessage_types\030\006 \003(\0162F.googl" + + "e.cloud.bigquery.datatransfer.v1.Transfe" + + "rMessage.MessageSeverity\"\220\001\n\030ListTransfe" + + "rLogsResponse\022V\n\021transfer_messages\030\001 \003(\013" + + "26.google.cloud.bigquery.datatransfer.v1" + + ".TransferMessageB\003\340A\003\022\034\n\017next_page_token" + + "\030\002 \001(\tB\003\340A\003\"^\n\026CheckValidCredsRequest\022D\n" + + "\004name\030\001 \001(\tB6\340A\002\372A0\n.bigquerydatatransfe" + + "r.googleapis.com/DataSource\"2\n\027CheckVali" + + "dCredsResponse\022\027\n\017has_valid_creds\030\001 \001(\010\"" + + "\321\001\n\033ScheduleTransferRunsRequest\022J\n\006paren" + + "t\030\001 \001(\tB:\340A\002\372A4\n2bigquerydatatransfer.go" + + "ogleapis.com/TransferConfig\0223\n\nstart_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\002" + + "\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\002\"`\n\034ScheduleTransferRunsRespo" + + "nse\022@\n\004runs\030\001 \003(\01322.google.cloud.bigquer" + + "y.datatransfer.v1.TransferRun\"\207\003\n\036StartM" + + "anualTransferRunsRequest\022G\n\006parent\030\001 \001(\t" + + "B7\372A4\n2bigquerydatatransfer.googleapis.c" + + "om/TransferConfig\022o\n\024requested_time_rang" + + "e\030\003 \001(\0132O.google.cloud.bigquery.datatran" + + "sfer.v1.StartManualTransferRunsRequest.T" + + "imeRangeH\000\0228\n\022requested_run_time\030\004 \001(\0132\032" + + ".google.protobuf.TimestampH\000\032i\n\tTimeRang" + + "e\022.\n\nstart_time\030\001 \001(\0132\032.google.protobuf." + + "Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\006\n\004time\"c\n\037StartManualTr" + + "ansferRunsResponse\022@\n\004runs\030\001 \003(\01322.googl" + + "e.cloud.bigquery.datatransfer.v1.Transfe" + + "rRun2\303\037\n\023DataTransferService\022\346\001\n\rGetData" + + "Source\022;.google.cloud.bigquery.datatrans" + + "fer.v1.GetDataSourceRequest\0321.google.clo" + + "ud.bigquery.datatransfer.v1.DataSource\"e" + + "\202\323\344\223\002X\022//v1/{name=projects/*/locations/*" + + "/dataSources/*}Z%\022#/v1/{name=projects/*/" + + "dataSources/*}\332A\004name\022\371\001\n\017ListDataSource" + + "s\022=.google.cloud.bigquery.datatransfer.v" + + "1.ListDataSourcesRequest\032>.google.cloud." + + "bigquery.datatransfer.v1.ListDataSources" + + "Response\"g\202\323\344\223\002X\022//v1/{parent=projects/*" + + "/locations/*}/dataSourcesZ%\022#/v1/{parent" + + "=projects/*}/dataSources\332A\006parent\022\266\002\n\024Cr" + + "eateTransferConfig\022B.google.cloud.bigque" + + "ry.datatransfer.v1.CreateTransferConfigR" + + "equest\0325.google.cloud.bigquery.datatrans" + + "fer.v1.TransferConfig\"\242\001\202\323\344\223\002\202\001\"3/v1/{pa" + + "rent=projects/*/locations/*}/transferCon" + + "figs:\017transfer_configZ:\"\'/v1/{parent=pro" + + "jects/*}/transferConfigs:\017transfer_confi" + + "g\332A\026parent,transfer_config\022\333\002\n\024UpdateTra" + + "nsferConfig\022B.google.cloud.bigquery.data" + + "transfer.v1.UpdateTransferConfigRequest\032" + + "5.google.cloud.bigquery.datatransfer.v1." + + "TransferConfig\"\307\001\202\323\344\223\002\242\0012C/v1/{transfer_" + + "config.name=projects/*/locations/*/trans" + + "ferConfigs/*}:\017transfer_configZJ27/v1/{t" + + "ransfer_config.name=projects/*/transferC" + + "onfigs/*}:\017transfer_config\332A\033transfer_co" + + "nfig,update_mask\022\341\001\n\024DeleteTransferConfi" + + "g\022B.google.cloud.bigquery.datatransfer.v" + + "1.DeleteTransferConfigRequest\032\026.google.p" + + "rotobuf.Empty\"m\202\323\344\223\002`*3/v1/{name=project" + + "s/*/locations/*/transferConfigs/*}Z)*\'/v" + + "1/{name=projects/*/transferConfigs/*}\332A\004" + + "name\022\372\001\n\021GetTransferConfig\022?.google.clou" + + "d.bigquery.datatransfer.v1.GetTransferCo" + + "nfigRequest\0325.google.cloud.bigquery.data" + + "transfer.v1.TransferConfig\"m\202\323\344\223\002`\0223/v1/" + + "{name=projects/*/locations/*/transferCon" + + "figs/*}Z)\022\'/v1/{name=projects/*/transfer" + + "Configs/*}\332A\004name\022\215\002\n\023ListTransferConfig" + + "s\022A.google.cloud.bigquery.datatransfer.v" + + "1.ListTransferConfigsRequest\032B.google.cl" + + "oud.bigquery.datatransfer.v1.ListTransfe" + + "rConfigsResponse\"o\202\323\344\223\002`\0223/v1/{parent=pr" + + "ojects/*/locations/*}/transferConfigsZ)\022" + + "\'/v1/{parent=projects/*}/transferConfigs" + + "\332A\006parent\022\315\002\n\024ScheduleTransferRuns\022B.goo" + + "gle.cloud.bigquery.datatransfer.v1.Sched" + + "uleTransferRunsRequest\032C.google.cloud.bi" + + "gquery.datatransfer.v1.ScheduleTransferR" + + "unsResponse\"\253\001\210\002\001\202\323\344\223\002\204\001\"B/v1/{parent=pr" + + "ojects/*/locations/*/transferConfigs/*}:" + + "scheduleRuns:\001*Z;\"6/v1/{parent=projects/" + + "*/transferConfigs/*}:scheduleRuns:\001*\332A\032p" + + "arent,start_time,end_time\022\274\002\n\027StartManua" + + "lTransferRuns\022E.google.cloud.bigquery.da" + + "tatransfer.v1.StartManualTransferRunsReq" + + "uest\032F.google.cloud.bigquery.datatransfe" + + "r.v1.StartManualTransferRunsResponse\"\221\001\202" + + "\323\344\223\002\212\001\"E/v1/{parent=projects/*/locations" + + "/*/transferConfigs/*}:startManualRuns:\001*" + + "Z>\"9/v1/{parent=projects/*/transferConfi" + + "gs/*}:startManualRuns:\001*\022\377\001\n\016GetTransfer" + + "Run\022<.google.cloud.bigquery.datatransfer" + + ".v1.GetTransferRunRequest\0322.google.cloud" + + ".bigquery.datatransfer.v1.TransferRun\"{\202" + + "\323\344\223\002n\022:/v1/{name=projects/*/locations/*/" + + "transferConfigs/*/runs/*}Z0\022./v1/{name=p" + + "rojects/*/transferConfigs/*/runs/*}\332A\004na" + + "me\022\351\001\n\021DeleteTransferRun\022?.google.cloud." + + "bigquery.datatransfer.v1.DeleteTransferR" + + "unRequest\032\026.google.protobuf.Empty\"{\202\323\344\223\002" + + "n*:/v1/{name=projects/*/locations/*/tran" + + "sferConfigs/*/runs/*}Z0*./v1/{name=proje" + + "cts/*/transferConfigs/*/runs/*}\332A\004name\022\222" + + "\002\n\020ListTransferRuns\022>.google.cloud.bigqu" + + "ery.datatransfer.v1.ListTransferRunsRequ" + + "est\032?.google.cloud.bigquery.datatransfer" + + ".v1.ListTransferRunsResponse\"}\202\323\344\223\002n\022:/v" + + "1/{parent=projects/*/locations/*/transfe" + + "rConfigs/*}/runsZ0\022./v1/{parent=projects" + + "/*/transferConfigs/*}/runs\332A\006parent\022\262\002\n\020" + + "ListTransferLogs\022>.google.cloud.bigquery" + + ".datatransfer.v1.ListTransferLogsRequest" + + "\032?.google.cloud.bigquery.datatransfer.v1" + + ".ListTransferLogsResponse\"\234\001\202\323\344\223\002\214\001\022I/v1" + "/{parent=projects/*/locations/*/transfer" - + "Configs/*}/runsZ0\022./v1/{parent=projects/" - + "*/transferConfigs/*}/runs\332A\006parent\022\262\002\n\020L" - + "istTransferLogs\022>.google.cloud.bigquery." - + "datatransfer.v1.ListTransferLogsRequest\032" - + "?.google.cloud.bigquery.datatransfer.v1." - + "ListTransferLogsResponse\"\234\001\202\323\344\223\002\214\001\022I/v1/" - + "{parent=projects/*/locations/*/transferC" - + "onfigs/*/runs/*}/transferLogsZ?\022=/v1/{pa" - + "rent=projects/*/transferConfigs/*/runs/*" - + "}/transferLogs\332A\006parent\022\236\002\n\017CheckValidCr" - + "eds\022=.google.cloud.bigquery.datatransfer" - + ".v1.CheckValidCredsRequest\032>.google.clou" - + "d.bigquery.datatransfer.v1.CheckValidCre" - + "dsResponse\"\213\001\202\323\344\223\002~\"?/v1/{name=projects/" - + "*/locations/*/dataSources/*}:checkValidC" - + "reds:\001*Z8\"3/v1/{name=projects/*/dataSour" - + "ces/*}:checkValidCreds:\001*\332A\004name\032W\312A#big" - + "querydatatransfer.googleapis.com\322A.https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mB\343\001\n)com.google.cloud.bigquery.datatran" - + "sfer.v1B\021DataTransferProtoP\001ZQgoogle.gol" - + "ang.org/genproto/googleapis/cloud/bigque" - + "ry/datatransfer/v1;datatransfer\252\002%Google" - + ".Cloud.BigQuery.DataTransfer.V1\312\002%Google" - + "\\Cloud\\BigQuery\\DataTransfer\\V1b\006proto3" + + "Configs/*/runs/*}/transferLogsZ?\022=/v1/{p" + + "arent=projects/*/transferConfigs/*/runs/" + + "*}/transferLogs\332A\006parent\022\236\002\n\017CheckValidC" + + "reds\022=.google.cloud.bigquery.datatransfe" + + "r.v1.CheckValidCredsRequest\032>.google.clo" + + "ud.bigquery.datatransfer.v1.CheckValidCr" + + "edsResponse\"\213\001\202\323\344\223\002~\"?/v1/{name=projects" + + "/*/locations/*/dataSources/*}:checkValid" + + "Creds:\001*Z8\"3/v1/{name=projects/*/dataSou" + + "rces/*}:checkValidCreds:\001*\332A\004name\032W\312A#bi" + + "gquerydatatransfer.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\343\001\n)com.google.cloud.bigquery.datatra" + + "nsfer.v1B\021DataTransferProtoP\001ZQgoogle.go" + + "lang.org/genproto/googleapis/cloud/bigqu" + + "ery/datatransfer/v1;datatransfer\252\002%Googl" + + "e.Cloud.BigQuery.DataTransfer.V1\312\002%Googl" + + "e\\Cloud\\BigQuery\\DataTransfer\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -479,7 +482,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor, new java.lang.String[] { - "Parent", "TransferConfig", "AuthorizationCode", "VersionInfo", + "Parent", "TransferConfig", "AuthorizationCode", "VersionInfo", "ServiceAccountName", }); internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor = getDescriptor().getMessageTypes().get(6); @@ -487,7 +490,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_datatransfer_v1_UpdateTransferConfigRequest_descriptor, new java.lang.String[] { - "TransferConfig", "AuthorizationCode", "UpdateMask", "VersionInfo", + "TransferConfig", + "AuthorizationCode", + "UpdateMask", + "VersionInfo", + "ServiceAccountName", }); internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor = getDescriptor().getMessageTypes().get(7); diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java index 458ba12c..03e637f2 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java @@ -114,7 +114,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * 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}`
    * 
* * @@ -137,7 +138,8 @@ public java.lang.String getName() { * *
    * 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}`
    * 
* * @@ -490,7 +492,8 @@ public Builder mergeFrom( * *
      * 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}`
      * 
* * @@ -513,7 +516,8 @@ public java.lang.String getName() { * *
      * 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}`
      * 
* * @@ -536,7 +540,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * 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}`
      * 
* * @@ -557,7 +562,8 @@ public Builder setName(java.lang.String value) { * *
      * 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}`
      * 
* * @@ -575,7 +581,8 @@ public Builder clearName() { * *
      * 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}`
      * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java index a3005e8a..6cfa034a 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface DeleteTransferConfigRequestOrBuilder * *
    * 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}`
    * 
* * @@ -41,7 +42,8 @@ public interface DeleteTransferConfigRequestOrBuilder * *
    * 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}`
    * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java index 180f4b15..f81056f4 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java @@ -113,7 +113,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * 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}`
    * 
* * @@ -136,7 +137,8 @@ public java.lang.String getName() { * *
    * 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}`
    * 
* * @@ -488,7 +490,8 @@ public Builder mergeFrom( * *
      * 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}`
      * 
* * @@ -511,7 +514,8 @@ public java.lang.String getName() { * *
      * 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}`
      * 
* * @@ -534,7 +538,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * 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}`
      * 
* * @@ -555,7 +560,8 @@ public Builder setName(java.lang.String value) { * *
      * 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}`
      * 
* * @@ -573,7 +579,8 @@ public Builder clearName() { * *
      * 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}`
      * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java index 7629381c..27a6b0ff 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface DeleteTransferRunRequestOrBuilder * *
    * 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}`
    * 
* * @@ -41,7 +42,8 @@ public interface DeleteTransferRunRequestOrBuilder * *
    * 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}`
    * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java new file mode 100644 index 00000000..63985485 --- /dev/null +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferences.java @@ -0,0 +1,533 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/transfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +/** + * + * + *
+ * Represents preferences for sending email notifications for transfer run
+ * events.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.EmailPreferences} + */ +public final class EmailPreferences extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.EmailPreferences) + EmailPreferencesOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmailPreferences.newBuilder() to construct. + private EmailPreferences(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmailPreferences() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EmailPreferences( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableFailureEmail_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.class, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder.class); + } + + public static final int ENABLE_FAILURE_EMAIL_FIELD_NUMBER = 1; + private boolean enableFailureEmail_; + /** + * + * + *
+   * If true, email notifications will be sent on transfer run failures.
+   * 
+ * + * bool enable_failure_email = 1; + */ + public boolean getEnableFailureEmail() { + return enableFailureEmail_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableFailureEmail_ != false) { + output.writeBool(1, enableFailureEmail_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableFailureEmail_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableFailureEmail_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.datatransfer.v1.EmailPreferences)) { + return super.equals(obj); + } + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences other = + (com.google.cloud.bigquery.datatransfer.v1.EmailPreferences) obj; + + if (getEnableFailureEmail() != other.getEnableFailureEmail()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_FAILURE_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFailureEmail()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents preferences for sending email notifications for transfer run
+   * events.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.EmailPreferences} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.datatransfer.v1.EmailPreferences) + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.class, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder.class); + } + + // Construct using com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enableFailureEmail_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.TransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences build() { + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences buildPartial() { + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences result = + new com.google.cloud.bigquery.datatransfer.v1.EmailPreferences(this); + result.enableFailureEmail_ = enableFailureEmail_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.datatransfer.v1.EmailPreferences) { + return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.EmailPreferences) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.EmailPreferences other) { + if (other == com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance()) + return this; + if (other.getEnableFailureEmail() != false) { + setEnableFailureEmail(other.getEnableFailureEmail()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.bigquery.datatransfer.v1.EmailPreferences) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enableFailureEmail_; + /** + * + * + *
+     * If true, email notifications will be sent on transfer run failures.
+     * 
+ * + * bool enable_failure_email = 1; + */ + public boolean getEnableFailureEmail() { + return enableFailureEmail_; + } + /** + * + * + *
+     * If true, email notifications will be sent on transfer run failures.
+     * 
+ * + * bool enable_failure_email = 1; + */ + public Builder setEnableFailureEmail(boolean value) { + + enableFailureEmail_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, email notifications will be sent on transfer run failures.
+     * 
+ * + * bool enable_failure_email = 1; + */ + public Builder clearEnableFailureEmail() { + + enableFailureEmail_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.datatransfer.v1.EmailPreferences) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.EmailPreferences) + private static final com.google.cloud.bigquery.datatransfer.v1.EmailPreferences DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.EmailPreferences(); + } + + public static com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmailPreferences parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmailPreferences(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java new file mode 100644 index 00000000..834bb7d8 --- /dev/null +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/EmailPreferencesOrBuilder.java @@ -0,0 +1,36 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/datatransfer/v1/transfer.proto + +package com.google.cloud.bigquery.datatransfer.v1; + +public interface EmailPreferencesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.EmailPreferences) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * If true, email notifications will be sent on transfer run failures.
+   * 
+ * + * bool enable_failure_email = 1; + */ + boolean getEnableFailureEmail(); +} diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java index f0ebbb02..a181115e 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java @@ -113,7 +113,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * 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}`
    * 
* * @@ -136,7 +137,8 @@ public java.lang.String getName() { * *
    * 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}`
    * 
* * @@ -483,7 +485,8 @@ public Builder mergeFrom( * *
      * 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}`
      * 
* * @@ -506,7 +509,8 @@ public java.lang.String getName() { * *
      * 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}`
      * 
* * @@ -529,7 +533,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * 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}`
      * 
* * @@ -550,7 +555,8 @@ public Builder setName(java.lang.String value) { * *
      * 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}`
      * 
* * @@ -568,7 +574,8 @@ public Builder clearName() { * *
      * 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}`
      * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java index 3dd3192a..5f140f6c 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface GetDataSourceRequestOrBuilder * *
    * 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}`
    * 
* * @@ -41,7 +42,8 @@ public interface GetDataSourceRequestOrBuilder * *
    * 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}`
    * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java index 30cc9144..ea9a5b9f 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java @@ -113,7 +113,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * 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}`
    * 
* * @@ -136,7 +137,8 @@ public java.lang.String getName() { * *
    * 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}`
    * 
* * @@ -488,7 +490,8 @@ public Builder mergeFrom( * *
      * 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}`
      * 
* * @@ -511,7 +514,8 @@ public java.lang.String getName() { * *
      * 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}`
      * 
* * @@ -534,7 +538,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * 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}`
      * 
* * @@ -555,7 +560,8 @@ public Builder setName(java.lang.String value) { * *
      * 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}`
      * 
* * @@ -573,7 +579,8 @@ public Builder clearName() { * *
      * 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}`
      * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java index 5ae695c3..8862fa5d 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface GetTransferConfigRequestOrBuilder * *
    * 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}`
    * 
* * @@ -41,7 +42,8 @@ public interface GetTransferConfigRequestOrBuilder * *
    * 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}`
    * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java index cbe5a946..b5bd62f3 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java @@ -113,7 +113,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * 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}`
    * 
* * @@ -136,7 +137,8 @@ public java.lang.String getName() { * *
    * 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}`
    * 
* * @@ -484,7 +486,8 @@ public Builder mergeFrom( * *
      * 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}`
      * 
* * @@ -507,7 +510,8 @@ public java.lang.String getName() { * *
      * 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}`
      * 
* * @@ -530,7 +534,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * 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}`
      * 
* * @@ -551,7 +556,8 @@ public Builder setName(java.lang.String value) { * *
      * 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}`
      * 
* * @@ -569,7 +575,8 @@ public Builder clearName() { * *
      * 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}`
      * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java index d3684ad9..fbe2d829 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface GetTransferRunRequestOrBuilder * *
    * 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}`
    * 
* * @@ -41,7 +42,8 @@ public interface GetTransferRunRequestOrBuilder * *
    * 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}`
    * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java index 492be930..d97b6491 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java @@ -126,7 +126,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The BigQuery project id for which data sources should be returned.
-   * Must be in the form: `projects/{project_id}`
+   * Must be in the form: `projects/{project_id}` or
+   * `projects/{project_id}/locations/{location_id}
    * 
* * @@ -149,7 +150,8 @@ public java.lang.String getParent() { * *
    * Required. The BigQuery project id for which data sources should be returned.
-   * Must be in the form: `projects/{project_id}`
+   * Must be in the form: `projects/{project_id}` or
+   * `projects/{project_id}/locations/{location_id}
    * 
* * @@ -594,7 +596,8 @@ public Builder mergeFrom( * *
      * Required. The BigQuery project id for which data sources should be returned.
-     * Must be in the form: `projects/{project_id}`
+     * Must be in the form: `projects/{project_id}` or
+     * `projects/{project_id}/locations/{location_id}
      * 
* * @@ -617,7 +620,8 @@ public java.lang.String getParent() { * *
      * Required. The BigQuery project id for which data sources should be returned.
-     * Must be in the form: `projects/{project_id}`
+     * Must be in the form: `projects/{project_id}` or
+     * `projects/{project_id}/locations/{location_id}
      * 
* * @@ -640,7 +644,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The BigQuery project id for which data sources should be returned.
-     * Must be in the form: `projects/{project_id}`
+     * Must be in the form: `projects/{project_id}` or
+     * `projects/{project_id}/locations/{location_id}
      * 
* * @@ -661,7 +666,8 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The BigQuery project id for which data sources should be returned.
-     * Must be in the form: `projects/{project_id}`
+     * Must be in the form: `projects/{project_id}` or
+     * `projects/{project_id}/locations/{location_id}
      * 
* * @@ -679,7 +685,8 @@ public Builder clearParent() { * *
      * Required. The BigQuery project id for which data sources should be returned.
-     * Must be in the form: `projects/{project_id}`
+     * Must be in the form: `projects/{project_id}` or
+     * `projects/{project_id}/locations/{location_id}
      * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java index 86140644..b89d6df7 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface ListDataSourcesRequestOrBuilder * *
    * Required. The BigQuery project id for which data sources should be returned.
-   * Must be in the form: `projects/{project_id}`
+   * Must be in the form: `projects/{project_id}` or
+   * `projects/{project_id}/locations/{location_id}
    * 
* * @@ -41,7 +42,8 @@ public interface ListDataSourcesRequestOrBuilder * *
    * Required. The BigQuery project id for which data sources should be returned.
-   * Must be in the form: `projects/{project_id}`
+   * Must be in the form: `projects/{project_id}` or
+   * `projects/{project_id}/locations/{location_id}
    * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java index 03668416..c37656e3 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java @@ -141,7 +141,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The BigQuery project id for which data sources
-   * should be returned: `projects/{project_id}`.
+   * should be returned: `projects/{project_id}` or
+   * `projects/{project_id}/locations/{location_id}`
    * 
* * @@ -164,7 +165,8 @@ public java.lang.String getParent() { * *
    * Required. The BigQuery project id for which data sources
-   * should be returned: `projects/{project_id}`.
+   * should be returned: `projects/{project_id}` or
+   * `projects/{project_id}/locations/{location_id}`
    * 
* * @@ -702,7 +704,8 @@ public Builder mergeFrom( * *
      * Required. The BigQuery project id for which data sources
-     * should be returned: `projects/{project_id}`.
+     * should be returned: `projects/{project_id}` or
+     * `projects/{project_id}/locations/{location_id}`
      * 
* * @@ -725,7 +728,8 @@ public java.lang.String getParent() { * *
      * Required. The BigQuery project id for which data sources
-     * should be returned: `projects/{project_id}`.
+     * should be returned: `projects/{project_id}` or
+     * `projects/{project_id}/locations/{location_id}`
      * 
* * @@ -748,7 +752,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The BigQuery project id for which data sources
-     * should be returned: `projects/{project_id}`.
+     * should be returned: `projects/{project_id}` or
+     * `projects/{project_id}/locations/{location_id}`
      * 
* * @@ -769,7 +774,8 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The BigQuery project id for which data sources
-     * should be returned: `projects/{project_id}`.
+     * should be returned: `projects/{project_id}` or
+     * `projects/{project_id}/locations/{location_id}`
      * 
* * @@ -787,7 +793,8 @@ public Builder clearParent() { * *
      * Required. The BigQuery project id for which data sources
-     * should be returned: `projects/{project_id}`.
+     * should be returned: `projects/{project_id}` or
+     * `projects/{project_id}/locations/{location_id}`
      * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java index aef8af3b..a96d42ee 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface ListTransferConfigsRequestOrBuilder * *
    * Required. The BigQuery project id for which data sources
-   * should be returned: `projects/{project_id}`.
+   * should be returned: `projects/{project_id}` or
+   * `projects/{project_id}/locations/{location_id}`
    * 
* * @@ -41,7 +42,8 @@ public interface ListTransferConfigsRequestOrBuilder * *
    * Required. The BigQuery project id for which data sources
-   * should be returned: `projects/{project_id}`.
+   * should be returned: `projects/{project_id}` or
+   * `projects/{project_id}/locations/{location_id}`
    * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java index 51bd22f4..8c345c26 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java @@ -156,7 +156,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * 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}`
    * 
* * @@ -179,7 +180,8 @@ public java.lang.String getParent() { * *
    * 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}`
    * 
* * @@ -778,7 +780,8 @@ public Builder mergeFrom( * *
      * 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}`
      * 
* * @@ -801,7 +804,8 @@ public java.lang.String getParent() { * *
      * 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}`
      * 
* * @@ -824,7 +828,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * 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}`
      * 
* * @@ -845,7 +850,8 @@ public Builder setParent(java.lang.String value) { * *
      * 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}`
      * 
* * @@ -863,7 +869,8 @@ public Builder clearParent() { * *
      * 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}`
      * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java index 95755919..0dc44a47 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface ListTransferLogsRequestOrBuilder * *
    * 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}`
    * 
* * @@ -41,7 +42,8 @@ public interface ListTransferLogsRequestOrBuilder * *
    * 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}`
    * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java index a2bbc24c..475ead7e 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java @@ -292,7 +292,8 @@ private RunAttempt(int value) { *
    * 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}`.
    * 
* * @@ -316,7 +317,8 @@ public java.lang.String getParent() { *
    * 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}`.
    * 
* * @@ -954,7 +956,8 @@ public Builder mergeFrom( *
      * 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}`.
      * 
* * @@ -978,7 +981,8 @@ public java.lang.String getParent() { *
      * 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}`.
      * 
* * @@ -1002,7 +1006,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * 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}`.
      * 
* * @@ -1024,7 +1029,8 @@ public Builder setParent(java.lang.String value) { *
      * 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}`.
      * 
* * @@ -1043,7 +1049,8 @@ public Builder clearParent() { *
      * 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}`.
      * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java index 7848cc5d..982a836a 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequestOrBuilder.java @@ -29,7 +29,8 @@ public interface ListTransferRunsRequestOrBuilder *
    * 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}`.
    * 
* * @@ -43,7 +44,8 @@ public interface ListTransferRunsRequestOrBuilder *
    * 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}`.
    * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java index c39699f5..f4cec1b2 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java @@ -143,7 +143,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * 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}`.
    * 
* * @@ -166,7 +167,8 @@ public java.lang.String getParent() { * *
    * 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}`.
    * 
* * @@ -661,7 +663,8 @@ public Builder mergeFrom( * *
      * 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}`.
      * 
* * @@ -684,7 +687,8 @@ public java.lang.String getParent() { * *
      * 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}`.
      * 
* * @@ -707,7 +711,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * 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}`.
      * 
* * @@ -728,7 +733,8 @@ public Builder setParent(java.lang.String value) { * *
      * 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}`.
      * 
* * @@ -746,7 +752,8 @@ public Builder clearParent() { * *
      * 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}`.
      * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java index 7a821fdf..4265a17a 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface ScheduleTransferRunsRequestOrBuilder * *
    * 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}`.
    * 
* * @@ -41,7 +42,8 @@ public interface ScheduleTransferRunsRequestOrBuilder * *
    * 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}`.
    * 
* * diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java index 8d2e3fbc..77464de7 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequest.java @@ -1349,7 +1349,8 @@ public TimeCase getTimeCase() { * *
    * 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}`.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } @@ -1370,7 +1371,8 @@ public java.lang.String getParent() { * *
    * 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}`.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } @@ -1918,7 +1920,8 @@ public Builder clearTime() { * *
      * 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}`.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } @@ -1939,7 +1942,8 @@ public java.lang.String getParent() { * *
      * 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}`.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } @@ -1960,7 +1964,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * 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}`.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } @@ -1979,7 +1984,8 @@ public Builder setParent(java.lang.String value) { * *
      * 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}`.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } @@ -1995,7 +2001,8 @@ public Builder clearParent() { * *
      * 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}`.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java index 05c47a89..ff2ee878 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/StartManualTransferRunsRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface StartManualTransferRunsRequestOrBuilder * *
    * 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}`.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } @@ -39,7 +40,8 @@ public interface StartManualTransferRunsRequestOrBuilder * *
    * 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}`.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java index 70a1c6e2..ab8e1ac7 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java @@ -49,6 +49,7 @@ private TransferConfig() { schedule_ = ""; state_ = 0; datasetRegion_ = ""; + notificationPubsubTopic_ = ""; } @java.lang.Override @@ -181,6 +182,30 @@ private TransferConfig( java.lang.String s = input.readStringRequireUtf8(); datasetRegion_ = s; + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + + notificationPubsubTopic_ = s; + break; + } + case 146: + { + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder subBuilder = null; + if (emailPreferences_ != null) { + subBuilder = emailPreferences_.toBuilder(); + } + emailPreferences_ = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(emailPreferences_); + emailPreferences_ = subBuilder.buildPartial(); + } + break; } case 194: @@ -827,6 +852,96 @@ public com.google.protobuf.ByteString getDatasetRegionBytes() { } } + public static final int NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER = 15; + private volatile java.lang.Object notificationPubsubTopic_; + /** + * + * + *
+   * Pub/Sub topic where notifications will be sent after transfer runs
+   * associated with this transfer config finish.
+   * 
+ * + * string notification_pubsub_topic = 15; + */ + public java.lang.String getNotificationPubsubTopic() { + java.lang.Object ref = notificationPubsubTopic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + notificationPubsubTopic_ = s; + return s; + } + } + /** + * + * + *
+   * Pub/Sub topic where notifications will be sent after transfer runs
+   * associated with this transfer config finish.
+   * 
+ * + * string notification_pubsub_topic = 15; + */ + public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { + java.lang.Object ref = notificationPubsubTopic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + notificationPubsubTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_PREFERENCES_FIELD_NUMBER = 18; + private com.google.cloud.bigquery.datatransfer.v1.EmailPreferences emailPreferences_; + /** + * + * + *
+   * Email notifications will be sent according to these preferences
+   * to the email address of the user who owns this transfer config.
+   * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + public boolean hasEmailPreferences() { + return emailPreferences_ != null; + } + /** + * + * + *
+   * Email notifications will be sent according to these preferences
+   * to the email address of the user who owns this transfer config.
+   * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences() { + return emailPreferences_ == null + ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() + : emailPreferences_; + } + /** + * + * + *
+   * Email notifications will be sent according to these preferences
+   * to the email address of the user who owns this transfer config.
+   * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder + getEmailPreferencesOrBuilder() { + return getEmailPreferences(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -882,6 +997,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getDatasetRegionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, datasetRegion_); } + if (!getNotificationPubsubTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, notificationPubsubTopic_); + } + if (emailPreferences_ != null) { + output.writeMessage(18, getEmailPreferences()); + } if (scheduleOptions_ != null) { output.writeMessage(24, getScheduleOptions()); } @@ -935,6 +1056,13 @@ public int getSerializedSize() { if (!getDatasetRegionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, datasetRegion_); } + if (!getNotificationPubsubTopicBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(15, notificationPubsubTopic_); + } + if (emailPreferences_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getEmailPreferences()); + } if (scheduleOptions_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getScheduleOptions()); } @@ -979,6 +1107,11 @@ public boolean equals(final java.lang.Object obj) { if (state_ != other.state_) return false; if (getUserId() != other.getUserId()) return false; if (!getDatasetRegion().equals(other.getDatasetRegion())) return false; + if (!getNotificationPubsubTopic().equals(other.getNotificationPubsubTopic())) return false; + if (hasEmailPreferences() != other.hasEmailPreferences()) return false; + if (hasEmailPreferences()) { + if (!getEmailPreferences().equals(other.getEmailPreferences())) return false; + } if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 2: @@ -1032,6 +1165,12 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserId()); hash = (37 * hash) + DATASET_REGION_FIELD_NUMBER; hash = (53 * hash) + getDatasetRegion().hashCode(); + hash = (37 * hash) + NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getNotificationPubsubTopic().hashCode(); + if (hasEmailPreferences()) { + hash = (37 * hash) + EMAIL_PREFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getEmailPreferences().hashCode(); + } switch (destinationCase_) { case 2: hash = (37 * hash) + DESTINATION_DATASET_ID_FIELD_NUMBER; @@ -1233,6 +1372,14 @@ public Builder clear() { datasetRegion_ = ""; + notificationPubsubTopic_ = ""; + + if (emailPreferencesBuilder_ == null) { + emailPreferences_ = null; + } else { + emailPreferences_ = null; + emailPreferencesBuilder_ = null; + } destinationCase_ = 0; destination_ = null; return this; @@ -1294,6 +1441,12 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig buildPartial() { result.state_ = state_; result.userId_ = userId_; result.datasetRegion_ = datasetRegion_; + result.notificationPubsubTopic_ = notificationPubsubTopic_; + if (emailPreferencesBuilder_ == null) { + result.emailPreferences_ = emailPreferences_; + } else { + result.emailPreferences_ = emailPreferencesBuilder_.build(); + } result.destinationCase_ = destinationCase_; onBuilt(); return result; @@ -1389,6 +1542,13 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferConfi datasetRegion_ = other.datasetRegion_; onChanged(); } + if (!other.getNotificationPubsubTopic().isEmpty()) { + notificationPubsubTopic_ = other.notificationPubsubTopic_; + onChanged(); + } + if (other.hasEmailPreferences()) { + mergeEmailPreferences(other.getEmailPreferences()); + } switch (other.getDestinationCase()) { case DESTINATION_DATASET_ID: { @@ -3100,6 +3260,301 @@ public Builder setDatasetRegionBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object notificationPubsubTopic_ = ""; + /** + * + * + *
+     * Pub/Sub topic where notifications will be sent after transfer runs
+     * associated with this transfer config finish.
+     * 
+ * + * string notification_pubsub_topic = 15; + */ + public java.lang.String getNotificationPubsubTopic() { + java.lang.Object ref = notificationPubsubTopic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + notificationPubsubTopic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Pub/Sub topic where notifications will be sent after transfer runs
+     * associated with this transfer config finish.
+     * 
+ * + * string notification_pubsub_topic = 15; + */ + public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { + java.lang.Object ref = notificationPubsubTopic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + notificationPubsubTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Pub/Sub topic where notifications will be sent after transfer runs
+     * associated with this transfer config finish.
+     * 
+ * + * string notification_pubsub_topic = 15; + */ + public Builder setNotificationPubsubTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + notificationPubsubTopic_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Pub/Sub topic where notifications will be sent after transfer runs
+     * associated with this transfer config finish.
+     * 
+ * + * string notification_pubsub_topic = 15; + */ + public Builder clearNotificationPubsubTopic() { + + notificationPubsubTopic_ = getDefaultInstance().getNotificationPubsubTopic(); + onChanged(); + return this; + } + /** + * + * + *
+     * Pub/Sub topic where notifications will be sent after transfer runs
+     * associated with this transfer config finish.
+     * 
+ * + * string notification_pubsub_topic = 15; + */ + public Builder setNotificationPubsubTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + notificationPubsubTopic_ = value; + onChanged(); + return this; + } + + private com.google.cloud.bigquery.datatransfer.v1.EmailPreferences emailPreferences_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> + emailPreferencesBuilder_; + /** + * + * + *
+     * Email notifications will be sent according to these preferences
+     * to the email address of the user who owns this transfer config.
+     * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + public boolean hasEmailPreferences() { + return emailPreferencesBuilder_ != null || emailPreferences_ != null; + } + /** + * + * + *
+     * Email notifications will be sent according to these preferences
+     * to the email address of the user who owns this transfer config.
+     * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences() { + if (emailPreferencesBuilder_ == null) { + return emailPreferences_ == null + ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() + : emailPreferences_; + } else { + return emailPreferencesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Email notifications will be sent according to these preferences
+     * to the email address of the user who owns this transfer config.
+     * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + public Builder setEmailPreferences( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) { + if (emailPreferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + emailPreferences_ = value; + onChanged(); + } else { + emailPreferencesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Email notifications will be sent according to these preferences
+     * to the email address of the user who owns this transfer config.
+     * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + public Builder setEmailPreferences( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder builderForValue) { + if (emailPreferencesBuilder_ == null) { + emailPreferences_ = builderForValue.build(); + onChanged(); + } else { + emailPreferencesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Email notifications will be sent according to these preferences
+     * to the email address of the user who owns this transfer config.
+     * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + public Builder mergeEmailPreferences( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) { + if (emailPreferencesBuilder_ == null) { + if (emailPreferences_ != null) { + emailPreferences_ = + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.newBuilder( + emailPreferences_) + .mergeFrom(value) + .buildPartial(); + } else { + emailPreferences_ = value; + } + onChanged(); + } else { + emailPreferencesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Email notifications will be sent according to these preferences
+     * to the email address of the user who owns this transfer config.
+     * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + public Builder clearEmailPreferences() { + if (emailPreferencesBuilder_ == null) { + emailPreferences_ = null; + onChanged(); + } else { + emailPreferences_ = null; + emailPreferencesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Email notifications will be sent according to these preferences
+     * to the email address of the user who owns this transfer config.
+     * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder + getEmailPreferencesBuilder() { + + onChanged(); + return getEmailPreferencesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Email notifications will be sent according to these preferences
+     * to the email address of the user who owns this transfer config.
+     * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder + getEmailPreferencesOrBuilder() { + if (emailPreferencesBuilder_ != null) { + return emailPreferencesBuilder_.getMessageOrBuilder(); + } else { + return emailPreferences_ == null + ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() + : emailPreferences_; + } + } + /** + * + * + *
+     * Email notifications will be sent according to these preferences
+     * to the email address of the user who owns this transfer config.
+     * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> + getEmailPreferencesFieldBuilder() { + if (emailPreferencesBuilder_ == null) { + emailPreferencesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder>( + getEmailPreferences(), getParentForChildren(), isClean()); + emailPreferences_ = null; + } + return emailPreferencesBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java index f6a5b276..a9ec7f78 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigOrBuilder.java @@ -380,6 +380,64 @@ public interface TransferConfigOrBuilder */ com.google.protobuf.ByteString getDatasetRegionBytes(); + /** + * + * + *
+   * Pub/Sub topic where notifications will be sent after transfer runs
+   * associated with this transfer config finish.
+   * 
+ * + * string notification_pubsub_topic = 15; + */ + java.lang.String getNotificationPubsubTopic(); + /** + * + * + *
+   * Pub/Sub topic where notifications will be sent after transfer runs
+   * associated with this transfer config finish.
+   * 
+ * + * string notification_pubsub_topic = 15; + */ + com.google.protobuf.ByteString getNotificationPubsubTopicBytes(); + + /** + * + * + *
+   * Email notifications will be sent according to these preferences
+   * to the email address of the user who owns this transfer config.
+   * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + boolean hasEmailPreferences(); + /** + * + * + *
+   * Email notifications will be sent according to these preferences
+   * to the email address of the user who owns this transfer config.
+   * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences(); + /** + * + * + *
+   * Email notifications will be sent according to these preferences
+   * to the email address of the user who owns this transfer config.
+   * 
+ * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 18; + */ + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder + getEmailPreferencesOrBuilder(); + public com.google.cloud.bigquery.datatransfer.v1.TransferConfig.DestinationCase getDestinationCase(); } diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java index a8561129..2a3e63be 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferProto.java @@ -27,6 +27,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -58,62 +62,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\032\031google/api/resource.proto\032\034googl" + "e/protobuf/struct.proto\032\037google/protobuf" + "/timestamp.proto\032\027google/rpc/status.prot" - + "o\"\220\001\n\017ScheduleOptions\022\037\n\027disable_auto_sc" - + "heduling\030\003 \001(\010\022.\n\nstart_time\030\001 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\013" - + "2\032.google.protobuf.Timestamp\"\223\005\n\016Transfe" - + "rConfig\022\014\n\004name\030\001 \001(\t\022 \n\026destination_dat" - + "aset_id\030\002 \001(\tH\000\022\024\n\014display_name\030\003 \001(\t\022\026\n" - + "\016data_source_id\030\005 \001(\t\022\'\n\006params\030\t \001(\0132\027." - + "google.protobuf.Struct\022\020\n\010schedule\030\007 \001(\t" - + "\022P\n\020schedule_options\030\030 \001(\01326.google.clou" - + "d.bigquery.datatransfer.v1.ScheduleOptio" - + "ns\022 \n\030data_refresh_window_days\030\014 \001(\005\022\020\n\010" - + "disabled\030\r \001(\010\0224\n\013update_time\030\004 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0226\n\rnext_run" - + "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022H\n\005state\030\n \001(\01624.google.cloud.bigqu" - + "ery.datatransfer.v1.TransferStateB\003\340A\003\022\017" - + "\n\007user_id\030\013 \001(\003\022\033\n\016dataset_region\030\016 \001(\tB" - + "\003\340A\003:m\352Aj\n2bigquerydatatransfer.googleap" - + "is.com/TransferConfig\0224projects/{project" - + "}/transferConfigs/{transfer_config}B\r\n\013d" - + "estination\"\300\005\n\013TransferRun\022\014\n\004name\030\001 \001(\t" - + "\0221\n\rschedule_time\030\003 \001(\0132\032.google.protobu" - + "f.Timestamp\022,\n\010run_time\030\n \001(\0132\032.google.p" - + "rotobuf.Timestamp\022(\n\014error_status\030\025 \001(\0132" - + "\022.google.rpc.Status\0223\n\nstart_time\030\004 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end_" - + "time\030\005 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\022,\n\006params\030\t \001(\0132\027.goog" - + "le.protobuf.StructB\003\340A\003\022%\n\026destination_d" - + "ataset_id\030\002 \001(\tB\003\340A\003H\000\022\033\n\016data_source_id" - + "\030\007 \001(\tB\003\340A\003\022C\n\005state\030\010 \001(\01624.google.clou" - + "d.bigquery.datatransfer.v1.TransferState" - + "\022\017\n\007user_id\030\013 \001(\003\022\025\n\010schedule\030\014 \001(\tB\003\340A\003" - + ":\213\001\352A\207\001\n/bigquerydatatransfer.googleapis" - + ".com/TransferRun\022Tprojects/{project}/loc" - + "ations/{location}/transferConfigs/{trans" - + "fer_config}/runs/{run}B\r\n\013destination\"\212\002" - + "\n\017TransferMessage\0220\n\014message_time\030\001 \001(\0132" - + "\032.google.protobuf.Timestamp\022X\n\010severity\030" - + "\002 \001(\0162F.google.cloud.bigquery.datatransf" - + "er.v1.TransferMessage.MessageSeverity\022\024\n" - + "\014message_text\030\003 \001(\t\"U\n\017MessageSeverity\022 " - + "\n\034MESSAGE_SEVERITY_UNSPECIFIED\020\000\022\010\n\004INFO" - + "\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003*K\n\014TransferTy" - + "pe\022\035\n\031TRANSFER_TYPE_UNSPECIFIED\020\000\022\t\n\005BAT" - + "CH\020\001\022\r\n\tSTREAMING\020\002\032\002\030\001*s\n\rTransferState" - + "\022\036\n\032TRANSFER_STATE_UNSPECIFIED\020\000\022\013\n\007PEND" - + "ING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006FAI" - + "LED\020\005\022\r\n\tCANCELLED\020\006B\347\001\n)com.google.clou" - + "d.bigquery.datatransfer.v1B\rTransferProt" - + "oP\001ZQgoogle.golang.org/genproto/googleap" - + "is/cloud/bigquery/datatransfer/v1;datatr" - + "ansfer\242\002\005GCBDT\252\002%Google.Cloud.BigQuery.D" - + "ataTransfer.V1\312\002%Google\\Cloud\\BigQuery\\D" - + "ataTransfer\\V1b\006proto3" + + "o\"0\n\020EmailPreferences\022\034\n\024enable_failure_" + + "email\030\001 \001(\010\"\220\001\n\017ScheduleOptions\022\037\n\027disab" + + "le_auto_scheduling\030\003 \001(\010\022.\n\nstart_time\030\001" + + " \001(\0132\032.google.protobuf.Timestamp\022,\n\010end_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\"\327" + + "\006\n\016TransferConfig\022\014\n\004name\030\001 \001(\t\022 \n\026desti" + + "nation_dataset_id\030\002 \001(\tH\000\022\024\n\014display_nam" + + "e\030\003 \001(\t\022\026\n\016data_source_id\030\005 \001(\t\022\'\n\006param" + + "s\030\t \001(\0132\027.google.protobuf.Struct\022\020\n\010sche" + + "dule\030\007 \001(\t\022P\n\020schedule_options\030\030 \001(\01326.g" + + "oogle.cloud.bigquery.datatransfer.v1.Sch" + + "eduleOptions\022 \n\030data_refresh_window_days" + + "\030\014 \001(\005\022\020\n\010disabled\030\r \001(\010\0224\n\013update_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226" + + "\n\rnext_run_time\030\010 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022H\n\005state\030\n \001(\01624.google.c" + + "loud.bigquery.datatransfer.v1.TransferSt" + + "ateB\003\340A\003\022\017\n\007user_id\030\013 \001(\003\022\033\n\016dataset_reg" + + "ion\030\016 \001(\tB\003\340A\003\022!\n\031notification_pubsub_to" + + "pic\030\017 \001(\t\022R\n\021email_preferences\030\022 \001(\01327.g" + + "oogle.cloud.bigquery.datatransfer.v1.Ema" + + "ilPreferences:\271\001\352A\265\001\n2bigquerydatatransf" + + "er.googleapis.com/TransferConfig\0224projec" + + "ts/{project}/transferConfigs/{transfer_c" + + "onfig}\022Iprojects/{project}/locations/{lo" + + "cation}/transferConfigs/{transfer_config" + + "}B\r\n\013destination\"\372\006\n\013TransferRun\022\014\n\004name" + + "\030\001 \001(\t\0221\n\rschedule_time\030\003 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022,\n\010run_time\030\n \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022(\n\014error_status\030" + + "\025 \001(\0132\022.google.rpc.Status\0223\n\nstart_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221" + + "\n\010end_time\030\005 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022,\n\006params\030\t \001(\0132" + + "\027.google.protobuf.StructB\003\340A\003\022%\n\026destina" + + "tion_dataset_id\030\002 \001(\tB\003\340A\003H\000\022\033\n\016data_sou" + + "rce_id\030\007 \001(\tB\003\340A\003\022C\n\005state\030\010 \001(\01624.googl" + + "e.cloud.bigquery.datatransfer.v1.Transfe" + + "rState\022\017\n\007user_id\030\013 \001(\003\022\025\n\010schedule\030\014 \001(" + + "\tB\003\340A\003\022&\n\031notification_pubsub_topic\030\027 \001(" + + "\tB\003\340A\003\022W\n\021email_preferences\030\031 \001(\01327.goog" + + "le.cloud.bigquery.datatransfer.v1.EmailP" + + "referencesB\003\340A\003:\304\001\352A\300\001\n\'bigquerydatatran" + + "sfer.googleapis.com/Run\022?projects/{proje" + + "ct}/transferConfigs/{transfer_config}/ru" + + "ns/{run}\022Tprojects/{project}/locations/{" + + "location}/transferConfigs/{transfer_conf" + + "ig}/runs/{run}B\r\n\013destination\"\212\002\n\017Transf" + + "erMessage\0220\n\014message_time\030\001 \001(\0132\032.google" + + ".protobuf.Timestamp\022X\n\010severity\030\002 \001(\0162F." + + "google.cloud.bigquery.datatransfer.v1.Tr" + + "ansferMessage.MessageSeverity\022\024\n\014message" + + "_text\030\003 \001(\t\"U\n\017MessageSeverity\022 \n\034MESSAG" + + "E_SEVERITY_UNSPECIFIED\020\000\022\010\n\004INFO\020\001\022\013\n\007WA" + + "RNING\020\002\022\t\n\005ERROR\020\003*K\n\014TransferType\022\035\n\031TR" + + "ANSFER_TYPE_UNSPECIFIED\020\000\022\t\n\005BATCH\020\001\022\r\n\t" + + "STREAMING\020\002\032\002\030\001*s\n\rTransferState\022\036\n\032TRAN" + + "SFER_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\002\022\013\n" + + "\007RUNNING\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006FAILED\020\005\022\r\n" + + "\tCANCELLED\020\006B\317\002\n)com.google.cloud.bigque" + + "ry.datatransfer.v1B\rTransferProtoP\001ZQgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/bigquery/datatransfer/v1;datatransfer\242\002" + + "\005GCBDT\252\002%Google.Cloud.BigQuery.DataTrans" + + "fer.V1\312\002%Google\\Cloud\\BigQuery\\DataTrans" + + "fer\\V1\352Ae\n&bigquerydatatransfer.google.c" + + "om/Parent\022\022projects/{project}\022\'projects/" + + "{project}/locations/{location}b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -133,8 +150,16 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.rpc.StatusProto.getDescriptor(), }, assigner); - internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor = + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_EmailPreferences_descriptor, + new java.lang.String[] { + "EnableFailureEmail", + }); + internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleOptions_descriptor, @@ -142,7 +167,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "DisableAutoScheduling", "StartTime", "EndTime", }); internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor, @@ -161,10 +186,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "State", "UserId", "DatasetRegion", + "NotificationPubsubTopic", + "EmailPreferences", "Destination", }); internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_datatransfer_v1_TransferRun_descriptor, @@ -182,10 +209,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "State", "UserId", "Schedule", + "NotificationPubsubTopic", + "EmailPreferences", "Destination", }); internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor, @@ -196,6 +225,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java index 0332b7ca..80d2fd15 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRun.java @@ -42,6 +42,7 @@ private TransferRun() { dataSourceId_ = ""; state_ = 0; schedule_ = ""; + notificationPubsubTopic_ = ""; } @java.lang.Override @@ -209,6 +210,30 @@ private TransferRun( errorStatus_ = subBuilder.buildPartial(); } + break; + } + case 186: + { + java.lang.String s = input.readStringRequireUtf8(); + + notificationPubsubTopic_ = s; + break; + } + case 202: + { + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder subBuilder = null; + if (emailPreferences_ != null) { + subBuilder = emailPreferences_.toBuilder(); + } + emailPreferences_ = + input.readMessage( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(emailPreferences_); + emailPreferences_ = subBuilder.buildPartial(); + } + break; } default: @@ -817,6 +842,107 @@ public com.google.protobuf.ByteString getScheduleBytes() { } } + public static final int NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER = 23; + private volatile java.lang.Object notificationPubsubTopic_; + /** + * + * + *
+   * Output only. Pub/Sub topic where a notification will be sent after this
+   * transfer run finishes
+   * 
+ * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.lang.String getNotificationPubsubTopic() { + java.lang.Object ref = notificationPubsubTopic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + notificationPubsubTopic_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Pub/Sub topic where a notification will be sent after this
+   * transfer run finishes
+   * 
+ * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { + java.lang.Object ref = notificationPubsubTopic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + notificationPubsubTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_PREFERENCES_FIELD_NUMBER = 25; + private com.google.cloud.bigquery.datatransfer.v1.EmailPreferences emailPreferences_; + /** + * + * + *
+   * Output only. Email notifications will be sent according to these
+   * preferences to the email address of the user who owns the transfer config
+   * this run was derived from.
+   * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public boolean hasEmailPreferences() { + return emailPreferences_ != null; + } + /** + * + * + *
+   * Output only. Email notifications will be sent according to these
+   * preferences to the email address of the user who owns the transfer config
+   * this run was derived from.
+   * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences() { + return emailPreferences_ == null + ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() + : emailPreferences_; + } + /** + * + * + *
+   * Output only. Email notifications will be sent according to these
+   * preferences to the email address of the user who owns the transfer config
+   * this run was derived from.
+   * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder + getEmailPreferencesOrBuilder() { + return getEmailPreferences(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -872,6 +998,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (errorStatus_ != null) { output.writeMessage(21, getErrorStatus()); } + if (!getNotificationPubsubTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, notificationPubsubTopic_); + } + if (emailPreferences_ != null) { + output.writeMessage(25, getEmailPreferences()); + } unknownFields.writeTo(output); } @@ -922,6 +1054,13 @@ public int getSerializedSize() { if (errorStatus_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getErrorStatus()); } + if (!getNotificationPubsubTopicBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(23, notificationPubsubTopic_); + } + if (emailPreferences_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getEmailPreferences()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -971,6 +1110,11 @@ public boolean equals(final java.lang.Object obj) { if (state_ != other.state_) return false; if (getUserId() != other.getUserId()) return false; if (!getSchedule().equals(other.getSchedule())) return false; + if (!getNotificationPubsubTopic().equals(other.getNotificationPubsubTopic())) return false; + if (hasEmailPreferences() != other.hasEmailPreferences()) return false; + if (hasEmailPreferences()) { + if (!getEmailPreferences().equals(other.getEmailPreferences())) return false; + } if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 2: @@ -1028,6 +1172,12 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserId()); hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getSchedule().hashCode(); + hash = (37 * hash) + NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getNotificationPubsubTopic().hashCode(); + if (hasEmailPreferences()) { + hash = (37 * hash) + EMAIL_PREFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getEmailPreferences().hashCode(); + } switch (destinationCase_) { case 2: hash = (37 * hash) + DESTINATION_DATASET_ID_FIELD_NUMBER; @@ -1234,6 +1384,14 @@ public Builder clear() { schedule_ = ""; + notificationPubsubTopic_ = ""; + + if (emailPreferencesBuilder_ == null) { + emailPreferences_ = null; + } else { + emailPreferences_ = null; + emailPreferencesBuilder_ = null; + } destinationCase_ = 0; destination_ = null; return this; @@ -1306,6 +1464,12 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun buildPartial() { result.state_ = state_; result.userId_ = userId_; result.schedule_ = schedule_; + result.notificationPubsubTopic_ = notificationPubsubTopic_; + if (emailPreferencesBuilder_ == null) { + result.emailPreferences_ = emailPreferences_; + } else { + result.emailPreferences_ = emailPreferencesBuilder_.build(); + } result.destinationCase_ = destinationCase_; onBuilt(); return result; @@ -1396,6 +1560,13 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferRun o schedule_ = other.schedule_; onChanged(); } + if (!other.getNotificationPubsubTopic().isEmpty()) { + notificationPubsubTopic_ = other.notificationPubsubTopic_; + onChanged(); + } + if (other.hasEmailPreferences()) { + mergeEmailPreferences(other.getEmailPreferences()); + } switch (other.getDestinationCase()) { case DESTINATION_DATASET_ID: { @@ -3290,6 +3461,333 @@ public Builder setScheduleBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object notificationPubsubTopic_ = ""; + /** + * + * + *
+     * Output only. Pub/Sub topic where a notification will be sent after this
+     * transfer run finishes
+     * 
+ * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.lang.String getNotificationPubsubTopic() { + java.lang.Object ref = notificationPubsubTopic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + notificationPubsubTopic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Pub/Sub topic where a notification will be sent after this
+     * transfer run finishes
+     * 
+ * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { + java.lang.Object ref = notificationPubsubTopic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + notificationPubsubTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Pub/Sub topic where a notification will be sent after this
+     * transfer run finishes
+     * 
+ * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNotificationPubsubTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + notificationPubsubTopic_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Pub/Sub topic where a notification will be sent after this
+     * transfer run finishes
+     * 
+ * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNotificationPubsubTopic() { + + notificationPubsubTopic_ = getDefaultInstance().getNotificationPubsubTopic(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Pub/Sub topic where a notification will be sent after this
+     * transfer run finishes
+     * 
+ * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNotificationPubsubTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + notificationPubsubTopic_ = value; + onChanged(); + return this; + } + + private com.google.cloud.bigquery.datatransfer.v1.EmailPreferences emailPreferences_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> + emailPreferencesBuilder_; + /** + * + * + *
+     * Output only. Email notifications will be sent according to these
+     * preferences to the email address of the user who owns the transfer config
+     * this run was derived from.
+     * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public boolean hasEmailPreferences() { + return emailPreferencesBuilder_ != null || emailPreferences_ != null; + } + /** + * + * + *
+     * Output only. Email notifications will be sent according to these
+     * preferences to the email address of the user who owns the transfer config
+     * this run was derived from.
+     * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences() { + if (emailPreferencesBuilder_ == null) { + return emailPreferences_ == null + ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() + : emailPreferences_; + } else { + return emailPreferencesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Email notifications will be sent according to these
+     * preferences to the email address of the user who owns the transfer config
+     * this run was derived from.
+     * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEmailPreferences( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) { + if (emailPreferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + emailPreferences_ = value; + onChanged(); + } else { + emailPreferencesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Email notifications will be sent according to these
+     * preferences to the email address of the user who owns the transfer config
+     * this run was derived from.
+     * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEmailPreferences( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder builderForValue) { + if (emailPreferencesBuilder_ == null) { + emailPreferences_ = builderForValue.build(); + onChanged(); + } else { + emailPreferencesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Email notifications will be sent according to these
+     * preferences to the email address of the user who owns the transfer config
+     * this run was derived from.
+     * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEmailPreferences( + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences value) { + if (emailPreferencesBuilder_ == null) { + if (emailPreferences_ != null) { + emailPreferences_ = + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.newBuilder( + emailPreferences_) + .mergeFrom(value) + .buildPartial(); + } else { + emailPreferences_ = value; + } + onChanged(); + } else { + emailPreferencesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Email notifications will be sent according to these
+     * preferences to the email address of the user who owns the transfer config
+     * this run was derived from.
+     * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEmailPreferences() { + if (emailPreferencesBuilder_ == null) { + emailPreferences_ = null; + onChanged(); + } else { + emailPreferences_ = null; + emailPreferencesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Email notifications will be sent according to these
+     * preferences to the email address of the user who owns the transfer config
+     * this run was derived from.
+     * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder + getEmailPreferencesBuilder() { + + onChanged(); + return getEmailPreferencesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Email notifications will be sent according to these
+     * preferences to the email address of the user who owns the transfer config
+     * this run was derived from.
+     * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder + getEmailPreferencesOrBuilder() { + if (emailPreferencesBuilder_ != null) { + return emailPreferencesBuilder_.getMessageOrBuilder(); + } else { + return emailPreferences_ == null + ? com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.getDefaultInstance() + : emailPreferences_; + } + } + /** + * + * + *
+     * Output only. Email notifications will be sent according to these
+     * preferences to the email address of the user who owns the transfer config
+     * this run was derived from.
+     * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder> + getEmailPreferencesFieldBuilder() { + if (emailPreferencesBuilder_ == null) { + emailPreferencesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder, + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder>( + getEmailPreferences(), getParentForChildren(), isClean()); + emailPreferences_ = null; + } + return emailPreferencesBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java index a4a93bec..1eaf45e2 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferRunOrBuilder.java @@ -388,5 +388,74 @@ public interface TransferRunOrBuilder */ com.google.protobuf.ByteString getScheduleBytes(); + /** + * + * + *
+   * Output only. Pub/Sub topic where a notification will be sent after this
+   * transfer run finishes
+   * 
+ * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getNotificationPubsubTopic(); + /** + * + * + *
+   * Output only. Pub/Sub topic where a notification will be sent after this
+   * transfer run finishes
+   * 
+ * + * string notification_pubsub_topic = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.ByteString getNotificationPubsubTopicBytes(); + + /** + * + * + *
+   * Output only. Email notifications will be sent according to these
+   * preferences to the email address of the user who owns the transfer config
+   * this run was derived from.
+   * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean hasEmailPreferences(); + /** + * + * + *
+   * Output only. Email notifications will be sent according to these
+   * preferences to the email address of the user who owns the transfer config
+   * this run was derived from.
+   * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.bigquery.datatransfer.v1.EmailPreferences getEmailPreferences(); + /** + * + * + *
+   * Output only. Email notifications will be sent according to these
+   * preferences to the email address of the user who owns the transfer config
+   * this run was derived from.
+   * 
+ * + * + * .google.cloud.bigquery.datatransfer.v1.EmailPreferences email_preferences = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.bigquery.datatransfer.v1.EmailPreferencesOrBuilder + getEmailPreferencesOrBuilder(); + public com.google.cloud.bigquery.datatransfer.v1.TransferRun.DestinationCase getDestinationCase(); } diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java index 76fe7b53..99f695df 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequest.java @@ -41,6 +41,7 @@ private UpdateTransferConfigRequest(com.google.protobuf.GeneratedMessageV3.Build private UpdateTransferConfigRequest() { authorizationCode_ = ""; versionInfo_ = ""; + serviceAccountName_ = ""; } @java.lang.Override @@ -113,6 +114,13 @@ private UpdateTransferConfigRequest( versionInfo_ = s; break; } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccountName_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -361,6 +369,57 @@ public com.google.protobuf.ByteString getVersionInfoBytes() { } } + public static final int SERVICE_ACCOUNT_NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object serviceAccountName_; + /** + * + * + *
+   * Optional service account name. If this field is set and
+   * "service_account_name" is set in update_mask, transfer config will be
+   * updated to use this service account credentials. It requires that
+   * requesting user calling this API has permissions to act as this service
+   * account.
+   * 
+ * + * string service_account_name = 6; + */ + public java.lang.String getServiceAccountName() { + java.lang.Object ref = serviceAccountName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional service account name. If this field is set and
+   * "service_account_name" is set in update_mask, transfer config will be
+   * updated to use this service account credentials. It requires that
+   * requesting user calling this API has permissions to act as this service
+   * account.
+   * 
+ * + * string service_account_name = 6; + */ + public com.google.protobuf.ByteString getServiceAccountNameBytes() { + java.lang.Object ref = serviceAccountName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -387,6 +446,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getVersionInfoBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, versionInfo_); } + if (!getServiceAccountNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccountName_); + } unknownFields.writeTo(output); } @@ -408,6 +470,9 @@ public int getSerializedSize() { if (!getVersionInfoBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, versionInfo_); } + if (!getServiceAccountNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccountName_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -434,6 +499,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getVersionInfo().equals(other.getVersionInfo())) return false; + if (!getServiceAccountName().equals(other.getServiceAccountName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -457,6 +523,8 @@ public int hashCode() { } hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getVersionInfo().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -622,6 +690,8 @@ public Builder clear() { } versionInfo_ = ""; + serviceAccountName_ = ""; + return this; } @@ -663,6 +733,7 @@ public com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest bui result.updateMask_ = updateMaskBuilder_.build(); } result.versionInfo_ = versionInfo_; + result.serviceAccountName_ = serviceAccountName_; onBuilt(); return result; } @@ -730,6 +801,10 @@ public Builder mergeFrom( versionInfo_ = other.versionInfo_; onChanged(); } + if (!other.getServiceAccountName().isEmpty()) { + serviceAccountName_ = other.serviceAccountName_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1436,6 +1511,120 @@ public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object serviceAccountName_ = ""; + /** + * + * + *
+     * Optional service account name. If this field is set and
+     * "service_account_name" is set in update_mask, transfer config will be
+     * updated to use this service account credentials. It requires that
+     * requesting user calling this API has permissions to act as this service
+     * account.
+     * 
+ * + * string service_account_name = 6; + */ + public java.lang.String getServiceAccountName() { + java.lang.Object ref = serviceAccountName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional service account name. If this field is set and
+     * "service_account_name" is set in update_mask, transfer config will be
+     * updated to use this service account credentials. It requires that
+     * requesting user calling this API has permissions to act as this service
+     * account.
+     * 
+ * + * string service_account_name = 6; + */ + public com.google.protobuf.ByteString getServiceAccountNameBytes() { + java.lang.Object ref = serviceAccountName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional service account name. If this field is set and
+     * "service_account_name" is set in update_mask, transfer config will be
+     * updated to use this service account credentials. It requires that
+     * requesting user calling this API has permissions to act as this service
+     * account.
+     * 
+ * + * string service_account_name = 6; + */ + public Builder setServiceAccountName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccountName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional service account name. If this field is set and
+     * "service_account_name" is set in update_mask, transfer config will be
+     * updated to use this service account credentials. It requires that
+     * requesting user calling this API has permissions to act as this service
+     * account.
+     * 
+ * + * string service_account_name = 6; + */ + public Builder clearServiceAccountName() { + + serviceAccountName_ = getDefaultInstance().getServiceAccountName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional service account name. If this field is set and
+     * "service_account_name" is set in update_mask, transfer config will be
+     * updated to use this service account credentials. It requires that
+     * requesting user calling this API has permissions to act as this service
+     * account.
+     * 
+ * + * string service_account_name = 6; + */ + public Builder setServiceAccountNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccountName_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java index fc032763..b4cf1a9d 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UpdateTransferConfigRequestOrBuilder.java @@ -173,4 +173,33 @@ public interface UpdateTransferConfigRequestOrBuilder * string version_info = 5; */ com.google.protobuf.ByteString getVersionInfoBytes(); + + /** + * + * + *
+   * Optional service account name. If this field is set and
+   * "service_account_name" is set in update_mask, transfer config will be
+   * updated to use this service account credentials. It requires that
+   * requesting user calling this API has permissions to act as this service
+   * account.
+   * 
+ * + * string service_account_name = 6; + */ + java.lang.String getServiceAccountName(); + /** + * + * + *
+   * Optional service account name. If this field is set and
+   * "service_account_name" is set in update_mask, transfer config will be
+   * updated to use this service account credentials. It requires that
+   * requesting user calling this API has permissions to act as this service
+   * account.
+   * 
+ * + * string service_account_name = 6; + */ + com.google.protobuf.ByteString getServiceAccountNameBytes(); } diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto b/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto index a464645b..37accec9 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto @@ -313,6 +313,7 @@ message DataSource { option (google.api.resource) = { type: "bigquerydatatransfer.googleapis.com/DataSource" pattern: "projects/{project}/dataSources/{data_source}" + pattern: "projects/{project}/locations/{location}/dataSources/{data_source}" }; // The type of authorization needed for this data source. @@ -417,7 +418,8 @@ message DataSource { // A request to get data source info. message GetDataSourceRequest { // 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}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -429,11 +431,12 @@ message GetDataSourceRequest { // Request to list supported data sources and their data transfer settings. message ListDataSourcesRequest { // Required. The BigQuery project id for which data sources should be returned. - // Must be in the form: `projects/{project_id}` + // Must be in the form: `projects/{project_id}` or + // `projects/{project_id}/locations/{location_id} string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "cloudresourcemanager.googleapis.com/Project" + child_type: "bigquerydatatransfer.googleapis.com/DataSource" } ]; @@ -468,13 +471,13 @@ message ListDataSourcesResponse { // with the calling user. message CreateTransferConfigRequest { // 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. + // 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. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" + child_type: "bigquerydatatransfer.googleapis.com/TransferConfig" } ]; @@ -506,6 +509,12 @@ message CreateTransferConfigRequest { // version_info back in the authorization response which be be put in a JWT // claim in the token request. string version_info = 5; + + // Optional service account name. If this field is set, transfer config will + // be created with this service account credentials. It requires that + // requesting user calling this API has permissions to act as this service + // account. + string service_account_name = 6; } // A request to update a transfer configuration. To update the user id of the @@ -542,12 +551,20 @@ message UpdateTransferConfigRequest { // version_info back in the authorization response which be be put in a JWT // claim in the token request. string version_info = 5; + + // Optional service account name. If this field is set and + // "service_account_name" is set in update_mask, transfer config will be + // updated to use this service account credentials. It requires that + // requesting user calling this API has permissions to act as this service + // account. + string service_account_name = 6; } // A request to get data transfer information. message GetTransferConfigRequest { // 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}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -560,7 +577,8 @@ message GetTransferConfigRequest { // and log messages will be deleted as well. message DeleteTransferConfigRequest { // 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}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -572,11 +590,12 @@ message DeleteTransferConfigRequest { // A request to get data transfer run information. message GetTransferRunRequest { // 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}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "bigquerydatatransfer.googleapis.com/TransferRun" + type: "bigquerydatatransfer.googleapis.com/Run" } ]; } @@ -584,11 +603,12 @@ message GetTransferRunRequest { // A request to delete data transfer run information. message DeleteTransferRunRequest { // 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}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "bigquerydatatransfer.googleapis.com/TransferRun" + type: "bigquerydatatransfer.googleapis.com/Run" } ]; } @@ -596,11 +616,12 @@ message DeleteTransferRunRequest { // A request to list data transfers configured for a BigQuery project. message ListTransferConfigsRequest { // Required. The BigQuery project id for which data sources - // should be returned: `projects/{project_id}`. + // should be returned: `projects/{project_id}` or + // `projects/{project_id}/locations/{location_id}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "cloudresourcemanager.googleapis.com/Project" + child_type: "bigquerydatatransfer.googleapis.com/TransferConfig" } ]; @@ -645,11 +666,12 @@ message ListTransferRunsRequest { // 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}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "bigquerydatatransfer.googleapis.com/TransferConfig" + child_type: "bigquerydatatransfer.googleapis.com/Run" } ]; @@ -685,11 +707,12 @@ message ListTransferRunsResponse { // A request to get user facing log messages associated with data transfer run. message ListTransferLogsRequest { // 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}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "bigquerydatatransfer.googleapis.com/TransferRun" + type: "bigquerydatatransfer.googleapis.com/Run" } ]; @@ -728,7 +751,8 @@ message ListTransferLogsResponse { // already valid merely based on the user id. message CheckValidCredsRequest { // 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}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -746,7 +770,8 @@ message CheckValidCredsResponse { // A request to schedule transfer runs for a time range. message ScheduleTransferRunsRequest { // 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}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -788,7 +813,8 @@ message StartManualTransferRunsRequest { } // 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}`. string parent = 1 [(google.api.resource_reference) = { type: "bigquerydatatransfer.googleapis.com/TransferConfig" }]; diff --git a/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto b/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto index b0982d28..941c2667 100644 --- a/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto +++ b/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/transfer.proto @@ -30,6 +30,11 @@ option java_outer_classname = "TransferProto"; option java_package = "com.google.cloud.bigquery.datatransfer.v1"; option objc_class_prefix = "GCBDT"; option php_namespace = "Google\\Cloud\\BigQuery\\DataTransfer\\V1"; +option (google.api.resource_definition) = { + type: "bigquerydatatransfer.google.com/Parent" + pattern: "projects/{project}" + pattern: "projects/{project}/locations/{location}" +}; // DEPRECATED. Represents data transfer type. enum TransferType { @@ -68,6 +73,13 @@ enum TransferState { CANCELLED = 6; } +// Represents preferences for sending email notifications for transfer run +// events. +message EmailPreferences { + // If true, email notifications will be sent on transfer run failures. + bool enable_failure_email = 1; +} + // Options customizing the data transfer schedule. message ScheduleOptions { // If true, automatic scheduling of data transfer runs for this configuration @@ -100,6 +112,7 @@ message TransferConfig { option (google.api.resource) = { type: "bigquerydatatransfer.googleapis.com/TransferConfig" pattern: "projects/{project}/transferConfigs/{transfer_config}" + pattern: "projects/{project}/locations/{location}/transferConfigs/{transfer_config}" }; // The resource name of the transfer config. @@ -169,12 +182,21 @@ message TransferConfig { // Output only. Region in which BigQuery dataset is located. string dataset_region = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Pub/Sub topic where notifications will be sent after transfer runs + // associated with this transfer config finish. + string notification_pubsub_topic = 15; + + // Email notifications will be sent according to these preferences + // to the email address of the user who owns this transfer config. + EmailPreferences email_preferences = 18; } // Represents a data transfer run. message TransferRun { option (google.api.resource) = { - type: "bigquerydatatransfer.googleapis.com/TransferRun" + type: "bigquerydatatransfer.googleapis.com/Run" + pattern: "projects/{project}/transferConfigs/{transfer_config}/runs/{run}" pattern: "projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}" }; @@ -229,6 +251,15 @@ message TransferRun { // NOTE: the system might choose to delay the schedule depending on the // current load, so `schedule_time` doesn't always match this. string schedule = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Pub/Sub topic where a notification will be sent after this + // transfer run finishes + string notification_pubsub_topic = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email notifications will be sent according to these + // preferences to the email address of the user who owns the transfer config + // this run was derived from. + EmailPreferences email_preferences = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents a user facing message for a particular data transfer run. diff --git a/synth.metadata b/synth.metadata index 2f0764d4..ad0acad4 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-12-05T23:06:05.440998Z", + "updateTime": "2019-12-07T08:37:06.838425Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b10e4547017ca529ac8d183e839f3c272e1c13de", - "internalRef": "284059574" + "sha": "a4adac3a12aca6e3a792c9c35ee850435fe7cf7e", + "internalRef": "284277770" } }, {