diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index 57c83dc4bc92..e460081cc0c4 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.35.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java index 8063edf4ff87..bc96a3bb2072 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -353,6 +353,20 @@ * * * + *

UnenrollDataSources + *

Unenroll data sources in a user project. This allows users to remove transfer configurations for these data sources. They will no longer appear in the ListDataSources RPC and will also no longer appear in the [BigQuery UI](https://console.cloud.google.com/bigquery). + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -2596,6 +2610,68 @@ public final UnaryCallable enrollDataSourcesCal return stub.enrollDataSourcesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Unenroll data sources in a user project. This allows users to remove transfer configurations + * for these data sources. They will no longer appear in the ListDataSources RPC and will also no + * longer appear in the [BigQuery UI](https://console.cloud.google.com/bigquery). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
+   *   UnenrollDataSourcesRequest request =
+   *       UnenrollDataSourcesRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .addAllDataSourceIds(new ArrayList())
+   *           .build();
+   *   dataTransferServiceClient.unenrollDataSources(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void unenrollDataSources(UnenrollDataSourcesRequest request) { + unenrollDataSourcesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Unenroll data sources in a user project. This allows users to remove transfer configurations + * for these data sources. They will no longer appear in the ListDataSources RPC and will also no + * longer appear in the [BigQuery UI](https://console.cloud.google.com/bigquery). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
+   *   UnenrollDataSourcesRequest request =
+   *       UnenrollDataSourcesRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .addAllDataSourceIds(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       dataTransferServiceClient.unenrollDataSourcesCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable unenrollDataSourcesCallable() { + return stub.unenrollDataSourcesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java index 03a81b55afbd..9b5be8df0ba8 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -179,6 +179,11 @@ public UnaryCallSettings enrollDataSourcesSetti return ((DataTransferServiceStubSettings) getStubSettings()).enrollDataSourcesSettings(); } + /** Returns the object with the settings used for calls to unenrollDataSources. */ + public UnaryCallSettings unenrollDataSourcesSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).unenrollDataSourcesSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -231,7 +236,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return DataTransferServiceStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return DataTransferServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } @@ -403,6 +407,12 @@ public UnaryCallSettings.Builder enrollDataSour return getStubSettingsBuilder().enrollDataSourcesSettings(); } + /** Returns the builder for the settings used for calls to unenrollDataSources. */ + public UnaryCallSettings.Builder + unenrollDataSourcesSettings() { + return getStubSettingsBuilder().unenrollDataSourcesSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json index aecabf2aaa90..a9b7e1aeb308 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/gapic_metadata.json @@ -58,6 +58,9 @@ "StartManualTransferRuns": { "methods": ["startManualTransferRuns", "startManualTransferRunsCallable"] }, + "UnenrollDataSources": { + "methods": ["unenrollDataSources", "unenrollDataSourcesCallable"] + }, "UpdateTransferConfig": { "methods": ["updateTransferConfig", "updateTransferConfig", "updateTransferConfigCallable"] } diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java index 540a15551b0f..90040a7e942a 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java index f2092874a768..3570a2949126 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,6 +48,7 @@ import com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse; import com.google.cloud.bigquery.datatransfer.v1.TransferConfig; import com.google.cloud.bigquery.datatransfer.v1.TransferRun; +import com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest; import com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -151,6 +152,10 @@ public UnaryCallable enrollDataSourcesCallable( throw new UnsupportedOperationException("Not implemented: enrollDataSourcesCallable()"); } + public UnaryCallable unenrollDataSourcesCallable() { + throw new UnsupportedOperationException("Not implemented: unenrollDataSourcesCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java index e98d671d32d2..ee3879886e0b 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,6 +72,7 @@ import com.google.cloud.bigquery.datatransfer.v1.TransferConfig; import com.google.cloud.bigquery.datatransfer.v1.TransferMessage; import com.google.cloud.bigquery.datatransfer.v1.TransferRun; +import com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest; import com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -161,6 +162,7 @@ public class DataTransferServiceStubSettings extends StubSettings checkValidCredsSettings; private final UnaryCallSettings enrollDataSourcesSettings; + private final UnaryCallSettings unenrollDataSourcesSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -547,6 +549,11 @@ public UnaryCallSettings enrollDataSourcesSetti return enrollDataSourcesSettings; } + /** Returns the object with the settings used for calls to unenrollDataSources. */ + public UnaryCallSettings unenrollDataSourcesSettings() { + return unenrollDataSourcesSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -633,7 +640,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -642,7 +648,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -694,6 +699,7 @@ protected DataTransferServiceStubSettings(Builder settingsBuilder) throws IOExce listTransferLogsSettings = settingsBuilder.listTransferLogsSettings().build(); checkValidCredsSettings = settingsBuilder.checkValidCredsSettings().build(); enrollDataSourcesSettings = settingsBuilder.enrollDataSourcesSettings().build(); + unenrollDataSourcesSettings = settingsBuilder.unenrollDataSourcesSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -739,6 +745,8 @@ public static class Builder checkValidCredsSettings; private final UnaryCallSettings.Builder enrollDataSourcesSettings; + private final UnaryCallSettings.Builder + unenrollDataSourcesSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -812,6 +820,7 @@ protected Builder(ClientContext clientContext) { listTransferLogsSettings = PagedCallSettings.newBuilder(LIST_TRANSFER_LOGS_PAGE_STR_FACT); checkValidCredsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); enrollDataSourcesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + unenrollDataSourcesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -832,6 +841,7 @@ protected Builder(ClientContext clientContext) { listTransferLogsSettings, checkValidCredsSettings, enrollDataSourcesSettings, + unenrollDataSourcesSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -855,6 +865,7 @@ protected Builder(DataTransferServiceStubSettings settings) { listTransferLogsSettings = settings.listTransferLogsSettings.toBuilder(); checkValidCredsSettings = settings.checkValidCredsSettings.toBuilder(); enrollDataSourcesSettings = settings.enrollDataSourcesSettings.toBuilder(); + unenrollDataSourcesSettings = settings.unenrollDataSourcesSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -875,6 +886,7 @@ protected Builder(DataTransferServiceStubSettings settings) { listTransferLogsSettings, checkValidCredsSettings, enrollDataSourcesSettings, + unenrollDataSourcesSettings, listLocationsSettings, getLocationSettings); } @@ -979,6 +991,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .unenrollDataSourcesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1105,6 +1122,12 @@ public UnaryCallSettings.Builder enrollDataSour return enrollDataSourcesSettings; } + /** Returns the builder for the settings used for calls to unenrollDataSources. */ + public UnaryCallSettings.Builder + unenrollDataSourcesSettings() { + return unenrollDataSourcesSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java index 0ab5e3426756..1dee672c36b3 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java index 3473fe86f936..f4dba8ae381e 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/GrpcDataTransferServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,6 +53,7 @@ import com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse; import com.google.cloud.bigquery.datatransfer.v1.TransferConfig; import com.google.cloud.bigquery.datatransfer.v1.TransferRun; +import com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest; import com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -248,6 +249,17 @@ public class GrpcDataTransferServiceStub extends DataTransferServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + unenrollDataSourcesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.datatransfer.v1.DataTransferService/UnenrollDataSources") + .setRequestMarshaller( + ProtoUtils.marshaller(UnenrollDataSourcesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -299,6 +311,7 @@ public class GrpcDataTransferServiceStub extends DataTransferServiceStub { private final UnaryCallable checkValidCredsCallable; private final UnaryCallable enrollDataSourcesCallable; + private final UnaryCallable unenrollDataSourcesCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -510,6 +523,16 @@ protected GrpcDataTransferServiceStub( return builder.build(); }) .build(); + GrpcCallSettings unenrollDataSourcesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(unenrollDataSourcesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -608,6 +631,11 @@ protected GrpcDataTransferServiceStub( enrollDataSourcesTransportSettings, settings.enrollDataSourcesSettings(), clientContext); + this.unenrollDataSourcesCallable = + callableFactory.createUnaryCallable( + unenrollDataSourcesTransportSettings, + settings.unenrollDataSourcesSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -730,6 +758,11 @@ public UnaryCallable enrollDataSourcesCallable( return enrollDataSourcesCallable; } + @Override + public UnaryCallable unenrollDataSourcesCallable() { + return unenrollDataSourcesCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java index d234d72ca01b..306326234484 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java index a706ba50c782..17c1aef6bc34 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/HttpJsonDataTransferServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,6 +59,7 @@ import com.google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse; import com.google.cloud.bigquery.datatransfer.v1.TransferConfig; import com.google.cloud.bigquery.datatransfer.v1.TransferRun; +import com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest; import com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -680,6 +681,44 @@ public class HttpJsonDataTransferServiceStub extends DataTransferServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + unenrollDataSourcesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.datatransfer.v1.DataTransferService/UnenrollDataSources") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}:unenrollDataSources", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -780,6 +819,7 @@ public class HttpJsonDataTransferServiceStub extends DataTransferServiceStub { private final UnaryCallable checkValidCredsCallable; private final UnaryCallable enrollDataSourcesCallable; + private final UnaryCallable unenrollDataSourcesCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1009,6 +1049,17 @@ protected HttpJsonDataTransferServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings unenrollDataSourcesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(unenrollDataSourcesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1110,6 +1161,11 @@ protected HttpJsonDataTransferServiceStub( enrollDataSourcesTransportSettings, settings.enrollDataSourcesSettings(), clientContext); + this.unenrollDataSourcesCallable = + callableFactory.createUnaryCallable( + unenrollDataSourcesTransportSettings, + settings.unenrollDataSourcesSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1142,6 +1198,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listTransferLogsMethodDescriptor); methodDescriptors.add(checkValidCredsMethodDescriptor); methodDescriptors.add(enrollDataSourcesMethodDescriptor); + methodDescriptors.add(unenrollDataSourcesMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -1251,6 +1308,11 @@ public UnaryCallable enrollDataSourcesCallable( return enrollDataSourcesCallable; } + @Override + public UnaryCallable unenrollDataSourcesCallable() { + return unenrollDataSourcesCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datatransfer.v1/reflect-config.json b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datatransfer.v1/reflect-config.json index bac2cea05886..d785c815a77c 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datatransfer.v1/reflect-config.json +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.datatransfer.v1/reflect-config.json @@ -980,6 +980,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.datatransfer.v1.UpdateTransferConfigRequest", "queryAllDeclaredConstructors": true, diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java index beebef514c76..8efa2c34536d 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1753,6 +1753,54 @@ public void enrollDataSourcesExceptionTest() throws Exception { } } + @Test + public void unenrollDataSourcesTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + UnenrollDataSourcesRequest request = + UnenrollDataSourcesRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .addAllDataSourceIds(new ArrayList()) + .build(); + + client.unenrollDataSources(request); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void unenrollDataSourcesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UnenrollDataSourcesRequest request = + UnenrollDataSourcesRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .addAllDataSourceIds(new ArrayList()) + .build(); + client.unenrollDataSources(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java index e8ba9b567d81..d425501b940b 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1541,6 +1541,49 @@ public void enrollDataSourcesExceptionTest() throws Exception { } } + @Test + public void unenrollDataSourcesTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataTransferService.addResponse(expectedResponse); + + UnenrollDataSourcesRequest request = + UnenrollDataSourcesRequest.newBuilder() + .setName("name3373707") + .addAllDataSourceIds(new ArrayList()) + .build(); + + client.unenrollDataSources(request); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UnenrollDataSourcesRequest actualRequest = ((UnenrollDataSourcesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getDataSourceIdsList(), actualRequest.getDataSourceIdsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void unenrollDataSourcesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + UnenrollDataSourcesRequest request = + UnenrollDataSourcesRequest.newBuilder() + .setName("name3373707") + .addAllDataSourceIds(new ArrayList()) + .build(); + client.unenrollDataSources(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java index 30de0c610fa6..5c13faf4b587 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java index 248e3997f5bb..75f47635aaae 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockDataTransferServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -376,4 +376,25 @@ public void enrollDataSources( Exception.class.getName()))); } } + + @Override + public void unenrollDataSources( + UnenrollDataSourcesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UnenrollDataSources, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocations.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocations.java index c79d28678731..9a86807a7d4f 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocations.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocations.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocationsImpl.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocationsImpl.java index 4e5268411031..f8c936989328 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocationsImpl.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/test/java/com/google/cloud/bigquery/datatransfer/v1/MockLocationsImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java index 5c410aceb259..1874ec722cbd 100644 --- a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java +++ b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceGrpc.java @@ -765,6 +765,55 @@ private DataTransferServiceGrpc() {} return getEnrollDataSourcesMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest, + com.google.protobuf.Empty> + getUnenrollDataSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UnenrollDataSources", + requestType = com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest, + com.google.protobuf.Empty> + getUnenrollDataSourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest, + com.google.protobuf.Empty> + getUnenrollDataSourcesMethod; + if ((getUnenrollDataSourcesMethod = DataTransferServiceGrpc.getUnenrollDataSourcesMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getUnenrollDataSourcesMethod = DataTransferServiceGrpc.getUnenrollDataSourcesMethod) + == null) { + DataTransferServiceGrpc.getUnenrollDataSourcesMethod = + getUnenrollDataSourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UnenrollDataSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("UnenrollDataSources")) + .build(); + } + } + } + return getUnenrollDataSourcesMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static DataTransferServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1062,6 +1111,23 @@ default void enrollDataSources( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getEnrollDataSourcesMethod(), responseObserver); } + + /** + * + * + *
+     * Unenroll data sources in a user project. This allows users to remove
+     * transfer configurations for these data sources. They will no longer appear
+     * in the ListDataSources RPC and will also no longer appear in the [BigQuery
+     * UI](https://console.cloud.google.com/bigquery).
+     * 
+ */ + default void unenrollDataSources( + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUnenrollDataSourcesMethod(), responseObserver); + } } /** @@ -1376,6 +1442,25 @@ public void enrollDataSources( request, responseObserver); } + + /** + * + * + *
+     * Unenroll data sources in a user project. This allows users to remove
+     * transfer configurations for these data sources. They will no longer appear
+     * in the ListDataSources RPC and will also no longer appear in the [BigQuery
+     * UI](https://console.cloud.google.com/bigquery).
+     * 
+ */ + public void unenrollDataSources( + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUnenrollDataSourcesMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1614,6 +1699,22 @@ public com.google.protobuf.Empty enrollDataSources( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEnrollDataSourcesMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Unenroll data sources in a user project. This allows users to remove
+     * transfer configurations for these data sources. They will no longer appear
+     * in the ListDataSources RPC and will also no longer appear in the [BigQuery
+     * UI](https://console.cloud.google.com/bigquery).
+     * 
+ */ + public com.google.protobuf.Empty unenrollDataSources( + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUnenrollDataSourcesMethod(), getCallOptions(), request); + } } /** @@ -1872,6 +1973,23 @@ protected DataTransferServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getEnrollDataSourcesMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Unenroll data sources in a user project. This allows users to remove
+     * transfer configurations for these data sources. They will no longer appear
+     * in the ListDataSources RPC and will also no longer appear in the [BigQuery
+     * UI](https://console.cloud.google.com/bigquery).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + unenrollDataSources( + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUnenrollDataSourcesMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_DATA_SOURCE = 0; @@ -1889,6 +2007,7 @@ protected DataTransferServiceFutureStub build( private static final int METHODID_LIST_TRANSFER_LOGS = 12; private static final int METHODID_CHECK_VALID_CREDS = 13; private static final int METHODID_ENROLL_DATA_SOURCES = 14; + private static final int METHODID_UNENROLL_DATA_SOURCES = 15; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2004,6 +2123,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UNENROLL_DATA_SOURCES: + serviceImpl.unenrollDataSources( + (com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -2124,6 +2248,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest, com.google.protobuf.Empty>(service, METHODID_ENROLL_DATA_SOURCES))) + .addMethod( + getUnenrollDataSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest, + com.google.protobuf.Empty>(service, METHODID_UNENROLL_DATA_SOURCES))) .build(); } @@ -2190,6 +2320,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListTransferLogsMethod()) .addMethod(getCheckValidCredsMethod()) .addMethod(getEnrollDataSourcesMethod()) + .addMethod(getUnenrollDataSourcesMethod()) .build(); } } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java index 732d5e16b058..f8d9a46fcd9e 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java @@ -773,7 +773,7 @@ public com.google.protobuf.ByteString getScopesBytes(int index) { * * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383 + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=395 * @return The enum numeric value on the wire for transferType. */ @java.lang.Override @@ -793,7 +793,7 @@ public int getTransferTypeValue() { * * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383 + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=395 * @return The transferType. */ @java.lang.Override @@ -818,7 +818,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() * bool supports_multiple_transfers = 8 [deprecated = true]; * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is - * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=386 + * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=398 * @return The supportsMultipleTransfers. */ @java.lang.Override @@ -2807,7 +2807,7 @@ public Builder addScopesBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383 + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=395 * @return The enum numeric value on the wire for transferType. */ @java.lang.Override @@ -2827,7 +2827,7 @@ public int getTransferTypeValue() { * * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383 + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=395 * @param value The enum numeric value on the wire for transferType to set. * @return This builder for chaining. */ @@ -2850,7 +2850,7 @@ public Builder setTransferTypeValue(int value) { * * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383 + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=395 * @return The transferType. */ @java.lang.Override @@ -2874,7 +2874,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() * * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383 + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=395 * @param value The transferType to set. * @return This builder for chaining. */ @@ -2900,7 +2900,7 @@ public Builder setTransferType(com.google.cloud.bigquery.datatransfer.v1.Transfe * * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383 + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=395 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2922,7 +2922,7 @@ public Builder clearTransferType() { * bool supports_multiple_transfers = 8 [deprecated = true]; * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is - * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=386 + * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=398 * @return The supportsMultipleTransfers. */ @java.lang.Override @@ -2940,7 +2940,7 @@ public boolean getSupportsMultipleTransfers() { * bool supports_multiple_transfers = 8 [deprecated = true]; * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is - * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=386 + * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=398 * @param value The supportsMultipleTransfers to set. * @return This builder for chaining. */ @@ -2962,7 +2962,7 @@ public Builder setSupportsMultipleTransfers(boolean value) { * bool supports_multiple_transfers = 8 [deprecated = true]; * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is - * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=386 + * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=398 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java index 1efd363511d0..e09fe9a6b87a 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java index 55f2bc62c597..88a54468e75e 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceOrBuilder.java @@ -220,7 +220,7 @@ public interface DataSourceOrBuilder * * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383 + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=395 * @return The enum numeric value on the wire for transferType. */ @java.lang.Deprecated @@ -237,7 +237,7 @@ public interface DataSourceOrBuilder * * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See - * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383 + * google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=395 * @return The transferType. */ @java.lang.Deprecated @@ -253,7 +253,7 @@ public interface DataSourceOrBuilder * bool supports_multiple_transfers = 8 [deprecated = true]; * * @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is - * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=386 + * deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=398 * @return The supportsMultipleTransfers. */ @java.lang.Deprecated diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java index f8b3e18ff608..9d7e1008d342 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java @@ -128,6 +128,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_datatransfer_v1_EnrollDataSourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_datatransfer_v1_UnenrollDataSourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_datatransfer_v1_UnenrollDataSourcesRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -280,121 +284,127 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "RunsResponse\022@\n\004runs\030\001 \003(\01322.google.clou" + "d.bigquery.datatransfer.v1.TransferRun\"A" + "\n\030EnrollDataSourcesRequest\022\014\n\004name\030\001 \001(\t" - + "\022\027\n\017data_source_ids\030\002 \003(\t2\240!\n\023DataTransf" - + "erService\022\346\001\n\rGetDataSource\022;.google.clo" - + "ud.bigquery.datatransfer.v1.GetDataSourc" - + "eRequest\0321.google.cloud.bigquery.datatra" - + "nsfer.v1.DataSource\"e\332A\004name\202\323\344\223\002X\022//v1/" - + "{name=projects/*/locations/*/dataSources" - + "/*}Z%\022#/v1/{name=projects/*/dataSources/" - + "*}\022\371\001\n\017ListDataSources\022=.google.cloud.bi" - + "gquery.datatransfer.v1.ListDataSourcesRe" - + "quest\032>.google.cloud.bigquery.datatransf" - + "er.v1.ListDataSourcesResponse\"g\332A\006parent" - + "\202\323\344\223\002X\022//v1/{parent=projects/*/locations" - + "/*}/dataSourcesZ%\022#/v1/{parent=projects/" - + "*}/dataSources\022\266\002\n\024CreateTransferConfig\022" - + "B.google.cloud.bigquery.datatransfer.v1." - + "CreateTransferConfigRequest\0325.google.clo" - + "ud.bigquery.datatransfer.v1.TransferConf" - + "ig\"\242\001\332A\026parent,transfer_config\202\323\344\223\002\202\001\"3/" - + "v1/{parent=projects/*/locations/*}/trans" - + "ferConfigs:\017transfer_configZ:\"\'/v1/{pare" - + "nt=projects/*}/transferConfigs:\017transfer" - + "_config\022\333\002\n\024UpdateTransferConfig\022B.googl" - + "e.cloud.bigquery.datatransfer.v1.UpdateT" - + "ransferConfigRequest\0325.google.cloud.bigq" - + "uery.datatransfer.v1.TransferConfig\"\307\001\332A" - + "\033transfer_config,update_mask\202\323\344\223\002\242\0012C/v1" - + "/{transfer_config.name=projects/*/locati" - + "ons/*/transferConfigs/*}:\017transfer_confi" - + "gZJ27/v1/{transfer_config.name=projects/" - + "*/transferConfigs/*}:\017transfer_config\022\341\001" - + "\n\024DeleteTransferConfig\022B.google.cloud.bi" - + "gquery.datatransfer.v1.DeleteTransferCon" - + "figRequest\032\026.google.protobuf.Empty\"m\332A\004n" - + "ame\202\323\344\223\002`*3/v1/{name=projects/*/location" - + "s/*/transferConfigs/*}Z)*\'/v1/{name=proj" - + "ects/*/transferConfigs/*}\022\372\001\n\021GetTransfe" - + "rConfig\022?.google.cloud.bigquery.datatran" - + "sfer.v1.GetTransferConfigRequest\0325.googl" - + "e.cloud.bigquery.datatransfer.v1.Transfe" - + "rConfig\"m\332A\004name\202\323\344\223\002`\0223/v1/{name=projec" - + "ts/*/locations/*/transferConfigs/*}Z)\022\'/" - + "v1/{name=projects/*/transferConfigs/*}\022\215" - + "\002\n\023ListTransferConfigs\022A.google.cloud.bi" - + "gquery.datatransfer.v1.ListTransferConfi" - + "gsRequest\032B.google.cloud.bigquery.datatr" - + "ansfer.v1.ListTransferConfigsResponse\"o\332" - + "A\006parent\202\323\344\223\002`\0223/v1/{parent=projects/*/l" - + "ocations/*}/transferConfigsZ)\022\'/v1/{pare" - + "nt=projects/*}/transferConfigs\022\315\002\n\024Sched" - + "uleTransferRuns\022B.google.cloud.bigquery." - + "datatransfer.v1.ScheduleTransferRunsRequ" - + "est\032C.google.cloud.bigquery.datatransfer" - + ".v1.ScheduleTransferRunsResponse\"\253\001\210\002\001\332A" - + "\032parent,start_time,end_time\202\323\344\223\002\204\001\"B/v1/" - + "{parent=projects/*/locations/*/transferC" - + "onfigs/*}:scheduleRuns:\001*Z;\"6/v1/{parent" - + "=projects/*/transferConfigs/*}:scheduleR" - + "uns:\001*\022\274\002\n\027StartManualTransferRuns\022E.goo" - + "gle.cloud.bigquery.datatransfer.v1.Start" - + "ManualTransferRunsRequest\032F.google.cloud" - + ".bigquery.datatransfer.v1.StartManualTra" - + "nsferRunsResponse\"\221\001\202\323\344\223\002\212\001\"E/v1/{parent" - + "=projects/*/locations/*/transferConfigs/" - + "*}:startManualRuns:\001*Z>\"9/v1/{parent=pro" - + "jects/*/transferConfigs/*}:startManualRu" - + "ns:\001*\022\377\001\n\016GetTransferRun\022<.google.cloud." - + "bigquery.datatransfer.v1.GetTransferRunR" - + "equest\0322.google.cloud.bigquery.datatrans" - + "fer.v1.TransferRun\"{\332A\004name\202\323\344\223\002n\022:/v1/{" - + "name=projects/*/locations/*/transferConf" - + "igs/*/runs/*}Z0\022./v1/{name=projects/*/tr" - + "ansferConfigs/*/runs/*}\022\351\001\n\021DeleteTransf" - + "erRun\022?.google.cloud.bigquery.datatransf" - + "er.v1.DeleteTransferRunRequest\032\026.google." - + "protobuf.Empty\"{\332A\004name\202\323\344\223\002n*:/v1/{name" - + "=projects/*/locations/*/transferConfigs/" - + "*/runs/*}Z0*./v1/{name=projects/*/transf" - + "erConfigs/*/runs/*}\022\222\002\n\020ListTransferRuns" - + "\022>.google.cloud.bigquery.datatransfer.v1" - + ".ListTransferRunsRequest\032?.google.cloud." - + "bigquery.datatransfer.v1.ListTransferRun" - + "sResponse\"}\332A\006parent\202\323\344\223\002n\022:/v1/{parent=" - + "projects/*/locations/*/transferConfigs/*" - + "}/runsZ0\022./v1/{parent=projects/*/transfe" - + "rConfigs/*}/runs\022\262\002\n\020ListTransferLogs\022>." - + "google.cloud.bigquery.datatransfer.v1.Li" - + "stTransferLogsRequest\032?.google.cloud.big" - + "query.datatransfer.v1.ListTransferLogsRe" - + "sponse\"\234\001\332A\006parent\202\323\344\223\002\214\001\022I/v1/{parent=p" - + "rojects/*/locations/*/transferConfigs/*/" - + "runs/*}/transferLogsZ?\022=/v1/{parent=proj" - + "ects/*/transferConfigs/*/runs/*}/transfe" - + "rLogs\022\236\002\n\017CheckValidCreds\022=.google.cloud" - + ".bigquery.datatransfer.v1.CheckValidCred" - + "sRequest\032>.google.cloud.bigquery.datatra" - + "nsfer.v1.CheckValidCredsResponse\"\213\001\332A\004na" - + "me\202\323\344\223\002~\"?/v1/{name=projects/*/locations" - + "/*/dataSources/*}:checkValidCreds:\001*Z8\"3" - + "/v1/{name=projects/*/dataSources/*}:chec" - + "kValidCreds:\001*\022\332\001\n\021EnrollDataSources\022?.g" - + "oogle.cloud.bigquery.datatransfer.v1.Enr" - + "ollDataSourcesRequest\032\026.google.protobuf." - + "Empty\"l\202\323\344\223\002f\"3/v1/{name=projects/*/loca" - + "tions/*}:enrollDataSources:\001*Z,\"\'/v1/{na" - + "me=projects/*}:enrollDataSources:\001*\032W\312A#" - + "bigquerydatatransfer.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "formB\213\002\n)com.google.cloud.bigquery.datat" - + "ransfer.v1B\021DataTransferProtoP\001ZMcloud.g" - + "oogle.com/go/bigquery/datatransfer/apiv1" - + "/datatransferpb;datatransferpb\252\002%Google." - + "Cloud.BigQuery.DataTransfer.V1\312\002%Google\\" - + "Cloud\\BigQuery\\DataTransfer\\V1\352\002)Google:" - + ":Cloud::Bigquery::DataTransfer::V1b\006prot" - + "o3" + + "\022\027\n\017data_source_ids\030\002 \003(\t\"C\n\032UnenrollDat" + + "aSourcesRequest\022\014\n\004name\030\001 \001(\t\022\027\n\017data_so" + + "urce_ids\030\002 \003(\t2\325\"\n\023DataTransferService\022\346" + + "\001\n\rGetDataSource\022;.google.cloud.bigquery" + + ".datatransfer.v1.GetDataSourceRequest\0321." + + "google.cloud.bigquery.datatransfer.v1.Da" + + "taSource\"e\332A\004name\202\323\344\223\002X\022//v1/{name=proje" + + "cts/*/locations/*/dataSources/*}Z%\022#/v1/" + + "{name=projects/*/dataSources/*}\022\371\001\n\017List" + + "DataSources\022=.google.cloud.bigquery.data" + + "transfer.v1.ListDataSourcesRequest\032>.goo" + + "gle.cloud.bigquery.datatransfer.v1.ListD" + + "ataSourcesResponse\"g\332A\006parent\202\323\344\223\002X\022//v1" + + "/{parent=projects/*/locations/*}/dataSou" + + "rcesZ%\022#/v1/{parent=projects/*}/dataSour" + + "ces\022\266\002\n\024CreateTransferConfig\022B.google.cl" + + "oud.bigquery.datatransfer.v1.CreateTrans" + + "ferConfigRequest\0325.google.cloud.bigquery" + + ".datatransfer.v1.TransferConfig\"\242\001\332A\026par" + + "ent,transfer_config\202\323\344\223\002\202\001\"3/v1/{parent=" + + "projects/*/locations/*}/transferConfigs:" + + "\017transfer_configZ:\"\'/v1/{parent=projects" + + "/*}/transferConfigs:\017transfer_config\022\333\002\n" + + "\024UpdateTransferConfig\022B.google.cloud.big" + + "query.datatransfer.v1.UpdateTransferConf" + + "igRequest\0325.google.cloud.bigquery.datatr" + + "ansfer.v1.TransferConfig\"\307\001\332A\033transfer_c" + + "onfig,update_mask\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\022\341\001\n\024DeleteTra" + + "nsferConfig\022B.google.cloud.bigquery.data" + + "transfer.v1.DeleteTransferConfigRequest\032" + + "\026.google.protobuf.Empty\"m\332A\004name\202\323\344\223\002`*3" + + "/v1/{name=projects/*/locations/*/transfe" + + "rConfigs/*}Z)*\'/v1/{name=projects/*/tran" + + "sferConfigs/*}\022\372\001\n\021GetTransferConfig\022?.g" + + "oogle.cloud.bigquery.datatransfer.v1.Get" + + "TransferConfigRequest\0325.google.cloud.big" + + "query.datatransfer.v1.TransferConfig\"m\332A" + + "\004name\202\323\344\223\002`\0223/v1/{name=projects/*/locati" + + "ons/*/transferConfigs/*}Z)\022\'/v1/{name=pr" + + "ojects/*/transferConfigs/*}\022\215\002\n\023ListTran" + + "sferConfigs\022A.google.cloud.bigquery.data" + + "transfer.v1.ListTransferConfigsRequest\032B" + + ".google.cloud.bigquery.datatransfer.v1.L" + + "istTransferConfigsResponse\"o\332A\006parent\202\323\344" + + "\223\002`\0223/v1/{parent=projects/*/locations/*}" + + "/transferConfigsZ)\022\'/v1/{parent=projects" + + "/*}/transferConfigs\022\315\002\n\024ScheduleTransfer" + + "Runs\022B.google.cloud.bigquery.datatransfe" + + "r.v1.ScheduleTransferRunsRequest\032C.googl" + + "e.cloud.bigquery.datatransfer.v1.Schedul" + + "eTransferRunsResponse\"\253\001\210\002\001\332A\032parent,sta" + + "rt_time,end_time\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*\022\274\002\n\027" + + "StartManualTransferRuns\022E.google.cloud.b" + + "igquery.datatransfer.v1.StartManualTrans" + + "ferRunsRequest\032F.google.cloud.bigquery.d" + + "atatransfer.v1.StartManualTransferRunsRe" + + "sponse\"\221\001\202\323\344\223\002\212\001\"E/v1/{parent=projects/*" + + "/locations/*/transferConfigs/*}:startMan" + + "ualRuns:\001*Z>\"9/v1/{parent=projects/*/tra" + + "nsferConfigs/*}:startManualRuns:\001*\022\377\001\n\016G" + + "etTransferRun\022<.google.cloud.bigquery.da" + + "tatransfer.v1.GetTransferRunRequest\0322.go" + + "ogle.cloud.bigquery.datatransfer.v1.Tran" + + "sferRun\"{\332A\004name\202\323\344\223\002n\022:/v1/{name=projec" + + "ts/*/locations/*/transferConfigs/*/runs/" + + "*}Z0\022./v1/{name=projects/*/transferConfi" + + "gs/*/runs/*}\022\351\001\n\021DeleteTransferRun\022?.goo" + + "gle.cloud.bigquery.datatransfer.v1.Delet" + + "eTransferRunRequest\032\026.google.protobuf.Em" + + "pty\"{\332A\004name\202\323\344\223\002n*:/v1/{name=projects/*" + + "/locations/*/transferConfigs/*/runs/*}Z0" + + "*./v1/{name=projects/*/transferConfigs/*" + + "/runs/*}\022\222\002\n\020ListTransferRuns\022>.google.c" + + "loud.bigquery.datatransfer.v1.ListTransf" + + "erRunsRequest\032?.google.cloud.bigquery.da" + + "tatransfer.v1.ListTransferRunsResponse\"}" + + "\332A\006parent\202\323\344\223\002n\022:/v1/{parent=projects/*/" + + "locations/*/transferConfigs/*}/runsZ0\022./" + + "v1/{parent=projects/*/transferConfigs/*}" + + "/runs\022\262\002\n\020ListTransferLogs\022>.google.clou" + + "d.bigquery.datatransfer.v1.ListTransferL" + + "ogsRequest\032?.google.cloud.bigquery.datat" + + "ransfer.v1.ListTransferLogsResponse\"\234\001\332A" + + "\006parent\202\323\344\223\002\214\001\022I/v1/{parent=projects/*/l" + + "ocations/*/transferConfigs/*/runs/*}/tra" + + "nsferLogsZ?\022=/v1/{parent=projects/*/tran" + + "sferConfigs/*/runs/*}/transferLogs\022\236\002\n\017C" + + "heckValidCreds\022=.google.cloud.bigquery.d" + + "atatransfer.v1.CheckValidCredsRequest\032>." + + "google.cloud.bigquery.datatransfer.v1.Ch" + + "eckValidCredsResponse\"\213\001\332A\004name\202\323\344\223\002~\"?/" + + "v1/{name=projects/*/locations/*/dataSour" + + "ces/*}:checkValidCreds:\001*Z8\"3/v1/{name=p" + + "rojects/*/dataSources/*}:checkValidCreds" + + ":\001*\022\332\001\n\021EnrollDataSources\022?.google.cloud" + + ".bigquery.datatransfer.v1.EnrollDataSour" + + "cesRequest\032\026.google.protobuf.Empty\"l\202\323\344\223" + + "\002f\"3/v1/{name=projects/*/locations/*}:en" + + "rollDataSources:\001*Z,\"\'/v1/{name=projects" + + "/*}:enrollDataSources:\001*\022\262\001\n\023UnenrollDat" + + "aSources\022A.google.cloud.bigquery.datatra" + + "nsfer.v1.UnenrollDataSourcesRequest\032\026.go" + + "ogle.protobuf.Empty\"@\202\323\344\223\002:\"5/v1/{name=p" + + "rojects/*/locations/*}:unenrollDataSourc" + + "es:\001*\032W\312A#bigquerydatatransfer.googleapi" + + "s.com\322A.https://www.googleapis.com/auth/" + + "cloud-platformB\213\002\n)com.google.cloud.bigq" + + "uery.datatransfer.v1B\021DataTransferProtoP" + + "\001ZMcloud.google.com/go/bigquery/datatran" + + "sfer/apiv1/datatransferpb;datatransferpb" + + "\252\002%Google.Cloud.BigQuery.DataTransfer.V1" + + "\312\002%Google\\Cloud\\BigQuery\\DataTransfer\\V1" + + "\352\002)Google::Cloud::Bigquery::DataTransfer" + + "::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -649,6 +659,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "DataSourceIds", }); + internal_static_google_cloud_bigquery_datatransfer_v1_UnenrollDataSourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_bigquery_datatransfer_v1_UnenrollDataSourcesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_datatransfer_v1_UnenrollDataSourcesRequest_descriptor, + new java.lang.String[] { + "Name", "DataSourceIds", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java index 05d2ad06b8bb..d70408ee7f94 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java index 56b927a0eee3..d345598b618d 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java index 4f24dbba3c72..1f85997e5a5c 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java index b1ec562c0dde..554556d867c4 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UnenrollDataSourcesRequest.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UnenrollDataSourcesRequest.java new file mode 100644 index 000000000000..42a9e867eb7c --- /dev/null +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UnenrollDataSourcesRequest.java @@ -0,0 +1,929 @@ +/* + * Copyright 2024 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/datatransfer.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.bigquery.datatransfer.v1; + +/** + * + * + *
+ * A request to unenroll a set of data sources so they are no longer visible in
+ * the BigQuery UI's `Transfer` tab.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest} + */ +public final class UnenrollDataSourcesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest) + UnenrollDataSourcesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UnenrollDataSourcesRequest.newBuilder() to construct. + private UnenrollDataSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnenrollDataSourcesRequest() { + name_ = ""; + dataSourceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UnenrollDataSourcesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_UnenrollDataSourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_UnenrollDataSourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest.class, + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the project resource in the form: `projects/{project_id}`
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the project resource in the form: `projects/{project_id}`
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_SOURCE_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dataSourceIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Data sources that are unenrolled. It is required to provide at least one
+   * data source id.
+   * 
+ * + * repeated string data_source_ids = 2; + * + * @return A list containing the dataSourceIds. + */ + public com.google.protobuf.ProtocolStringList getDataSourceIdsList() { + return dataSourceIds_; + } + /** + * + * + *
+   * Data sources that are unenrolled. It is required to provide at least one
+   * data source id.
+   * 
+ * + * repeated string data_source_ids = 2; + * + * @return The count of dataSourceIds. + */ + public int getDataSourceIdsCount() { + return dataSourceIds_.size(); + } + /** + * + * + *
+   * Data sources that are unenrolled. It is required to provide at least one
+   * data source id.
+   * 
+ * + * repeated string data_source_ids = 2; + * + * @param index The index of the element to return. + * @return The dataSourceIds at the given index. + */ + public java.lang.String getDataSourceIds(int index) { + return dataSourceIds_.get(index); + } + /** + * + * + *
+   * Data sources that are unenrolled. It is required to provide at least one
+   * data source id.
+   * 
+ * + * repeated string data_source_ids = 2; + * + * @param index The index of the value to return. + * @return The bytes of the dataSourceIds at the given index. + */ + public com.google.protobuf.ByteString getDataSourceIdsBytes(int index) { + return dataSourceIds_.getByteString(index); + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < dataSourceIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataSourceIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < dataSourceIds_.size(); i++) { + dataSize += computeStringSizeNoTag(dataSourceIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getDataSourceIdsList().size(); + } + size += getUnknownFields().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.UnenrollDataSourcesRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest other = + (com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDataSourceIdsList().equals(other.getDataSourceIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getDataSourceIdsCount() > 0) { + hash = (37 * hash) + DATA_SOURCE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getDataSourceIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest 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.UnenrollDataSourcesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest 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.UnenrollDataSourcesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest 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.UnenrollDataSourcesRequest 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.UnenrollDataSourcesRequest 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.UnenrollDataSourcesRequest + 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.UnenrollDataSourcesRequest + 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.UnenrollDataSourcesRequest 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.UnenrollDataSourcesRequest 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.UnenrollDataSourcesRequest 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; + } + /** + * + * + *
+   * A request to unenroll a set of data sources so they are no longer visible in
+   * the BigQuery UI's `Transfer` tab.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest) + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_UnenrollDataSourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_UnenrollDataSourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest.class, + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + dataSourceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto + .internal_static_google_cloud_bigquery_datatransfer_v1_UnenrollDataSourcesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest build() { + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest buildPartial() { + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest result = + new com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + dataSourceIds_.makeImmutable(); + result.dataSourceIds_ = dataSourceIds_; + } + } + + @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.UnenrollDataSourcesRequest) { + return mergeFrom( + (com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest other) { + if (other + == com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.dataSourceIds_.isEmpty()) { + if (dataSourceIds_.isEmpty()) { + dataSourceIds_ = other.dataSourceIds_; + bitField0_ |= 0x00000002; + } else { + ensureDataSourceIdsIsMutable(); + dataSourceIds_.addAll(other.dataSourceIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDataSourceIdsIsMutable(); + dataSourceIds_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the project resource in the form: `projects/{project_id}`
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the project resource in the form: `projects/{project_id}`
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the project resource in the form: `projects/{project_id}`
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the project resource in the form: `projects/{project_id}`
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the project resource in the form: `projects/{project_id}`
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList dataSourceIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDataSourceIdsIsMutable() { + if (!dataSourceIds_.isModifiable()) { + dataSourceIds_ = new com.google.protobuf.LazyStringArrayList(dataSourceIds_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * Data sources that are unenrolled. It is required to provide at least one
+     * data source id.
+     * 
+ * + * repeated string data_source_ids = 2; + * + * @return A list containing the dataSourceIds. + */ + public com.google.protobuf.ProtocolStringList getDataSourceIdsList() { + dataSourceIds_.makeImmutable(); + return dataSourceIds_; + } + /** + * + * + *
+     * Data sources that are unenrolled. It is required to provide at least one
+     * data source id.
+     * 
+ * + * repeated string data_source_ids = 2; + * + * @return The count of dataSourceIds. + */ + public int getDataSourceIdsCount() { + return dataSourceIds_.size(); + } + /** + * + * + *
+     * Data sources that are unenrolled. It is required to provide at least one
+     * data source id.
+     * 
+ * + * repeated string data_source_ids = 2; + * + * @param index The index of the element to return. + * @return The dataSourceIds at the given index. + */ + public java.lang.String getDataSourceIds(int index) { + return dataSourceIds_.get(index); + } + /** + * + * + *
+     * Data sources that are unenrolled. It is required to provide at least one
+     * data source id.
+     * 
+ * + * repeated string data_source_ids = 2; + * + * @param index The index of the value to return. + * @return The bytes of the dataSourceIds at the given index. + */ + public com.google.protobuf.ByteString getDataSourceIdsBytes(int index) { + return dataSourceIds_.getByteString(index); + } + /** + * + * + *
+     * Data sources that are unenrolled. It is required to provide at least one
+     * data source id.
+     * 
+ * + * repeated string data_source_ids = 2; + * + * @param index The index to set the value at. + * @param value The dataSourceIds to set. + * @return This builder for chaining. + */ + public Builder setDataSourceIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataSourceIdsIsMutable(); + dataSourceIds_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Data sources that are unenrolled. It is required to provide at least one
+     * data source id.
+     * 
+ * + * repeated string data_source_ids = 2; + * + * @param value The dataSourceIds to add. + * @return This builder for chaining. + */ + public Builder addDataSourceIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataSourceIdsIsMutable(); + dataSourceIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Data sources that are unenrolled. It is required to provide at least one
+     * data source id.
+     * 
+ * + * repeated string data_source_ids = 2; + * + * @param values The dataSourceIds to add. + * @return This builder for chaining. + */ + public Builder addAllDataSourceIds(java.lang.Iterable values) { + ensureDataSourceIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSourceIds_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Data sources that are unenrolled. It is required to provide at least one
+     * data source id.
+     * 
+ * + * repeated string data_source_ids = 2; + * + * @return This builder for chaining. + */ + public Builder clearDataSourceIds() { + dataSourceIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Data sources that are unenrolled. It is required to provide at least one
+     * data source id.
+     * 
+ * + * repeated string data_source_ids = 2; + * + * @param value The bytes of the dataSourceIds to add. + * @return This builder for chaining. + */ + public Builder addDataSourceIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDataSourceIdsIsMutable(); + dataSourceIds_.add(value); + bitField0_ |= 0x00000002; + 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.UnenrollDataSourcesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest) + private static final com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest(); + } + + public static com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnenrollDataSourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.UnenrollDataSourcesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UnenrollDataSourcesRequestOrBuilder.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UnenrollDataSourcesRequestOrBuilder.java new file mode 100644 index 000000000000..1e2e80522172 --- /dev/null +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/UnenrollDataSourcesRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2024 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/datatransfer.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.bigquery.datatransfer.v1; + +public interface UnenrollDataSourcesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the project resource in the form: `projects/{project_id}`
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the project resource in the form: `projects/{project_id}`
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Data sources that are unenrolled. It is required to provide at least one
+   * data source id.
+   * 
+ * + * repeated string data_source_ids = 2; + * + * @return A list containing the dataSourceIds. + */ + java.util.List getDataSourceIdsList(); + /** + * + * + *
+   * Data sources that are unenrolled. It is required to provide at least one
+   * data source id.
+   * 
+ * + * repeated string data_source_ids = 2; + * + * @return The count of dataSourceIds. + */ + int getDataSourceIdsCount(); + /** + * + * + *
+   * Data sources that are unenrolled. It is required to provide at least one
+   * data source id.
+   * 
+ * + * repeated string data_source_ids = 2; + * + * @param index The index of the element to return. + * @return The dataSourceIds at the given index. + */ + java.lang.String getDataSourceIds(int index); + /** + * + * + *
+   * Data sources that are unenrolled. It is required to provide at least one
+   * data source id.
+   * 
+ * + * repeated string data_source_ids = 2; + * + * @param index The index of the value to return. + * @return The bytes of the dataSourceIds at the given index. + */ + com.google.protobuf.ByteString getDataSourceIdsBytes(int index); +} diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto index 9a61126b6af7..67f7e42261c3 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/proto/google/cloud/bigquery/datatransfer/v1/datatransfer.proto @@ -236,6 +236,18 @@ service DataTransferService { } }; } + + // Unenroll data sources in a user project. This allows users to remove + // transfer configurations for these data sources. They will no longer appear + // in the ListDataSources RPC and will also no longer appear in the [BigQuery + // UI](https://console.cloud.google.com/bigquery). + rpc UnenrollDataSources(UnenrollDataSourcesRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*}:unenrollDataSources" + body: "*" + }; + } } // A parameter used to define custom fields in a data source definition. @@ -894,3 +906,14 @@ message EnrollDataSourcesRequest { // data source id. repeated string data_source_ids = 2; } + +// A request to unenroll a set of data sources so they are no longer visible in +// the BigQuery UI's `Transfer` tab. +message UnenrollDataSourcesRequest { + // The name of the project resource in the form: `projects/{project_id}` + string name = 1; + + // Data sources that are unenrolled. It is required to provide at least one + // data source id. + repeated string data_source_ids = 2; +} diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/AsyncCheckValidCreds.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/AsyncCheckValidCreds.java index 3b8428bb5009..9d5af6eb0305 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/AsyncCheckValidCreds.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/AsyncCheckValidCreds.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/SyncCheckValidCreds.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/SyncCheckValidCreds.java index 6997cbf91ff6..23bf01708304 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/SyncCheckValidCreds.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/SyncCheckValidCreds.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/SyncCheckValidCredsDatasourcename.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/SyncCheckValidCredsDatasourcename.java index 2f42b8ba8205..186fff37137b 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/SyncCheckValidCredsDatasourcename.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/SyncCheckValidCredsDatasourcename.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/SyncCheckValidCredsString.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/SyncCheckValidCredsString.java index b44172cbfdaf..3d9a63d222ad 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/SyncCheckValidCredsString.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/checkvalidcreds/SyncCheckValidCredsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetCredentialsProvider.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetCredentialsProvider.java index bdace0a29df7..39319be49c4f 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetCredentialsProvider.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetCredentialsProvider1.java index a579d210e20a..22f9f38e17c7 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetCredentialsProvider1.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetCredentialsProvider1.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetEndpoint.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetEndpoint.java index 03a2468936b8..e59ed5f5b8c9 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetEndpoint.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/AsyncCreateTransferConfig.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/AsyncCreateTransferConfig.java index 07ab23791f9b..79254d12252d 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/AsyncCreateTransferConfig.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/AsyncCreateTransferConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfig.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfig.java index 0ddaab98fb3f..f2e345885d03 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfig.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfigLocationnameTransferconfig.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfigLocationnameTransferconfig.java index 95d2687da125..0613f6d2b1e3 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfigLocationnameTransferconfig.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfigLocationnameTransferconfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfigProjectnameTransferconfig.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfigProjectnameTransferconfig.java index 3b8228c18603..d617ee3a1ea0 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfigProjectnameTransferconfig.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfigProjectnameTransferconfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfigStringTransferconfig.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfigStringTransferconfig.java index 80a58bc12bbd..e2f617753919 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfigStringTransferconfig.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/createtransferconfig/SyncCreateTransferConfigStringTransferconfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/AsyncDeleteTransferConfig.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/AsyncDeleteTransferConfig.java index 21c8e7d801d4..ca97455ef555 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/AsyncDeleteTransferConfig.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/AsyncDeleteTransferConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/SyncDeleteTransferConfig.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/SyncDeleteTransferConfig.java index b078e4aba528..6971b3b6e58b 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/SyncDeleteTransferConfig.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/SyncDeleteTransferConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/SyncDeleteTransferConfigString.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/SyncDeleteTransferConfigString.java index 6e7a228c0602..837497766bde 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/SyncDeleteTransferConfigString.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/SyncDeleteTransferConfigString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/SyncDeleteTransferConfigTransferconfigname.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/SyncDeleteTransferConfigTransferconfigname.java index 086a2b469c3a..4313adb4a4a7 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/SyncDeleteTransferConfigTransferconfigname.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferconfig/SyncDeleteTransferConfigTransferconfigname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/AsyncDeleteTransferRun.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/AsyncDeleteTransferRun.java index cf50cf6f127b..7dd1d9379d86 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/AsyncDeleteTransferRun.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/AsyncDeleteTransferRun.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/SyncDeleteTransferRun.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/SyncDeleteTransferRun.java index 15d551a85d62..63acd12efdb3 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/SyncDeleteTransferRun.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/SyncDeleteTransferRun.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/SyncDeleteTransferRunRunname.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/SyncDeleteTransferRunRunname.java index 7b1a24a4dbd2..413d8c1ea33d 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/SyncDeleteTransferRunRunname.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/SyncDeleteTransferRunRunname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/SyncDeleteTransferRunString.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/SyncDeleteTransferRunString.java index 11770da605d7..c97a63d96f55 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/SyncDeleteTransferRunString.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/deletetransferrun/SyncDeleteTransferRunString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/enrolldatasources/AsyncEnrollDataSources.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/enrolldatasources/AsyncEnrollDataSources.java index 9601265c6712..571b3e9d2b3c 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/enrolldatasources/AsyncEnrollDataSources.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/enrolldatasources/AsyncEnrollDataSources.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/enrolldatasources/SyncEnrollDataSources.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/enrolldatasources/SyncEnrollDataSources.java index 42cba9df1f1a..ae69099623e9 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/enrolldatasources/SyncEnrollDataSources.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/enrolldatasources/SyncEnrollDataSources.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/AsyncGetDataSource.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/AsyncGetDataSource.java index a95626e9393f..311ecc9b7878 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/AsyncGetDataSource.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/AsyncGetDataSource.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/SyncGetDataSource.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/SyncGetDataSource.java index 64022c41580e..24e3073ec5ce 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/SyncGetDataSource.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/SyncGetDataSource.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/SyncGetDataSourceDatasourcename.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/SyncGetDataSourceDatasourcename.java index df8c57f75e60..6d5a9b59316d 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/SyncGetDataSourceDatasourcename.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/SyncGetDataSourceDatasourcename.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/SyncGetDataSourceString.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/SyncGetDataSourceString.java index e527ffa3b563..9cde6dc0dea0 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/SyncGetDataSourceString.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getdatasource/SyncGetDataSourceString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getlocation/AsyncGetLocation.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getlocation/AsyncGetLocation.java index f850d840b591..c92c97b47bd1 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getlocation/AsyncGetLocation.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getlocation/AsyncGetLocation.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getlocation/SyncGetLocation.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getlocation/SyncGetLocation.java index 263e7cfcb4a2..ac095a39dfd6 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getlocation/SyncGetLocation.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/getlocation/SyncGetLocation.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/AsyncGetTransferConfig.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/AsyncGetTransferConfig.java index c4caf5f9815a..0d42a4a18f11 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/AsyncGetTransferConfig.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/AsyncGetTransferConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/SyncGetTransferConfig.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/SyncGetTransferConfig.java index 47ae15964f19..1667324da81a 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/SyncGetTransferConfig.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/SyncGetTransferConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/SyncGetTransferConfigString.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/SyncGetTransferConfigString.java index 3ed176105724..56a1f01fb7be 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/SyncGetTransferConfigString.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/SyncGetTransferConfigString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/SyncGetTransferConfigTransferconfigname.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/SyncGetTransferConfigTransferconfigname.java index d0abd3a54a92..9dd01e7f8b47 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/SyncGetTransferConfigTransferconfigname.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferconfig/SyncGetTransferConfigTransferconfigname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/AsyncGetTransferRun.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/AsyncGetTransferRun.java index b58487ed77b5..8b2dee7a5054 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/AsyncGetTransferRun.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/AsyncGetTransferRun.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/SyncGetTransferRun.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/SyncGetTransferRun.java index ced261b962fe..beaeb268f489 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/SyncGetTransferRun.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/SyncGetTransferRun.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/SyncGetTransferRunRunname.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/SyncGetTransferRunRunname.java index 6313b4f11362..59166004166e 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/SyncGetTransferRunRunname.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/SyncGetTransferRunRunname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/SyncGetTransferRunString.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/SyncGetTransferRunString.java index a6548752d4be..de48281cee34 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/SyncGetTransferRunString.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/gettransferrun/SyncGetTransferRunString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/AsyncListDataSources.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/AsyncListDataSources.java index db7814f9a305..b9deff35e4a2 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/AsyncListDataSources.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/AsyncListDataSources.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/AsyncListDataSourcesPaged.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/AsyncListDataSourcesPaged.java index 7a7bc63bcd44..6928034a3f68 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/AsyncListDataSourcesPaged.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/AsyncListDataSourcesPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSources.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSources.java index c813fb301aa2..db40a484a32d 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSources.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSources.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSourcesLocationname.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSourcesLocationname.java index 116a4e0cd5ab..78b154a15bff 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSourcesLocationname.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSourcesLocationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSourcesProjectname.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSourcesProjectname.java index 6276236aae7b..1b83dae37e23 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSourcesProjectname.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSourcesProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSourcesString.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSourcesString.java index 2b5b34ae9ba9..fbdf16fe5b36 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSourcesString.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listdatasources/SyncListDataSourcesString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listlocations/AsyncListLocations.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listlocations/AsyncListLocations.java index 43fa49bf3ae2..85e1c17ec779 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listlocations/AsyncListLocations.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listlocations/AsyncListLocations.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listlocations/AsyncListLocationsPaged.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listlocations/AsyncListLocationsPaged.java index 624e16964337..01cd583dd94a 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listlocations/AsyncListLocationsPaged.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listlocations/AsyncListLocationsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listlocations/SyncListLocations.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listlocations/SyncListLocations.java index 5d52a6eb8725..66c00c0be515 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listlocations/SyncListLocations.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listlocations/SyncListLocations.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/AsyncListTransferConfigs.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/AsyncListTransferConfigs.java index a539ee7a9c67..9f44a97ee108 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/AsyncListTransferConfigs.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/AsyncListTransferConfigs.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/AsyncListTransferConfigsPaged.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/AsyncListTransferConfigsPaged.java index cee32efacee5..69d13edf0e2f 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/AsyncListTransferConfigsPaged.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/AsyncListTransferConfigsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigs.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigs.java index 9f0233ccbddf..2a316f7d3967 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigs.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigs.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigsLocationname.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigsLocationname.java index fe7562cb90a9..b34f1490f196 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigsLocationname.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigsLocationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigsProjectname.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigsProjectname.java index decb16536555..2ae0e8855723 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigsProjectname.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigsProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigsString.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigsString.java index 0701a13a63fe..a7be67a93bcd 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigsString.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferconfigs/SyncListTransferConfigsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/AsyncListTransferLogs.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/AsyncListTransferLogs.java index 048f46f9e413..7abd812c79c5 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/AsyncListTransferLogs.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/AsyncListTransferLogs.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/AsyncListTransferLogsPaged.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/AsyncListTransferLogsPaged.java index ad17a87b3add..b7bcd7de0301 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/AsyncListTransferLogsPaged.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/AsyncListTransferLogsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/SyncListTransferLogs.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/SyncListTransferLogs.java index 368ed24c3377..33eacc73c7ca 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/SyncListTransferLogs.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/SyncListTransferLogs.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/SyncListTransferLogsRunname.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/SyncListTransferLogsRunname.java index c3079c750fa3..0be79b77f509 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/SyncListTransferLogsRunname.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/SyncListTransferLogsRunname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/SyncListTransferLogsString.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/SyncListTransferLogsString.java index c6e20d550d7d..89e97279986b 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/SyncListTransferLogsString.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferlogs/SyncListTransferLogsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/AsyncListTransferRuns.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/AsyncListTransferRuns.java index 4755ae66a11f..ba78d99b346e 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/AsyncListTransferRuns.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/AsyncListTransferRuns.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/AsyncListTransferRunsPaged.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/AsyncListTransferRunsPaged.java index 326b51029bde..31186ebcc473 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/AsyncListTransferRunsPaged.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/AsyncListTransferRunsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/SyncListTransferRuns.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/SyncListTransferRuns.java index 132b38b24473..cfafcccb4b94 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/SyncListTransferRuns.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/SyncListTransferRuns.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/SyncListTransferRunsString.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/SyncListTransferRunsString.java index faf6ea8a6955..c73e1e49b6e9 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/SyncListTransferRunsString.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/SyncListTransferRunsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/SyncListTransferRunsTransferconfigname.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/SyncListTransferRunsTransferconfigname.java index 8bb49661a0b9..72413c74f3e6 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/SyncListTransferRunsTransferconfigname.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/listtransferruns/SyncListTransferRunsTransferconfigname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/AsyncScheduleTransferRuns.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/AsyncScheduleTransferRuns.java index d77d26ab9e1f..15dada28e58a 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/AsyncScheduleTransferRuns.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/AsyncScheduleTransferRuns.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/SyncScheduleTransferRuns.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/SyncScheduleTransferRuns.java index fcf4df4f6cc6..74591dff77ff 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/SyncScheduleTransferRuns.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/SyncScheduleTransferRuns.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/SyncScheduleTransferRunsStringTimestampTimestamp.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/SyncScheduleTransferRunsStringTimestampTimestamp.java index b51ae49ebd7d..872e472cb6c6 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/SyncScheduleTransferRunsStringTimestampTimestamp.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/SyncScheduleTransferRunsStringTimestampTimestamp.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/SyncScheduleTransferRunsTransferconfignameTimestampTimestamp.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/SyncScheduleTransferRunsTransferconfignameTimestampTimestamp.java index b8c8a2720875..2a01d33f4f67 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/SyncScheduleTransferRunsTransferconfignameTimestampTimestamp.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/scheduletransferruns/SyncScheduleTransferRunsTransferconfignameTimestampTimestamp.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/startmanualtransferruns/AsyncStartManualTransferRuns.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/startmanualtransferruns/AsyncStartManualTransferRuns.java index 6a3374235420..4e69fde396b1 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/startmanualtransferruns/AsyncStartManualTransferRuns.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/startmanualtransferruns/AsyncStartManualTransferRuns.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/startmanualtransferruns/SyncStartManualTransferRuns.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/startmanualtransferruns/SyncStartManualTransferRuns.java index f78de1f0317f..0b24044e96a7 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/startmanualtransferruns/SyncStartManualTransferRuns.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/startmanualtransferruns/SyncStartManualTransferRuns.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/unenrolldatasources/AsyncUnenrollDataSources.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/unenrolldatasources/AsyncUnenrollDataSources.java new file mode 100644 index 000000000000..a124f81e9b90 --- /dev/null +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/unenrolldatasources/AsyncUnenrollDataSources.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 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. + */ + +package com.google.cloud.bigquery.datatransfer.v1.samples; + +// [START bigquerydatatransfer_v1_generated_DataTransferService_UnenrollDataSources_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient; +import com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest; +import com.google.protobuf.Empty; +import java.util.ArrayList; + +public class AsyncUnenrollDataSources { + + public static void main(String[] args) throws Exception { + asyncUnenrollDataSources(); + } + + public static void asyncUnenrollDataSources() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + UnenrollDataSourcesRequest request = + UnenrollDataSourcesRequest.newBuilder() + .setName("name3373707") + .addAllDataSourceIds(new ArrayList()) + .build(); + ApiFuture future = + dataTransferServiceClient.unenrollDataSourcesCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END bigquerydatatransfer_v1_generated_DataTransferService_UnenrollDataSources_async] diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/unenrolldatasources/SyncUnenrollDataSources.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/unenrolldatasources/SyncUnenrollDataSources.java new file mode 100644 index 000000000000..478454352b79 --- /dev/null +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/unenrolldatasources/SyncUnenrollDataSources.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 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. + */ + +package com.google.cloud.bigquery.datatransfer.v1.samples; + +// [START bigquerydatatransfer_v1_generated_DataTransferService_UnenrollDataSources_sync] +import com.google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient; +import com.google.cloud.bigquery.datatransfer.v1.UnenrollDataSourcesRequest; +import com.google.protobuf.Empty; +import java.util.ArrayList; + +public class SyncUnenrollDataSources { + + public static void main(String[] args) throws Exception { + syncUnenrollDataSources(); + } + + public static void syncUnenrollDataSources() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + UnenrollDataSourcesRequest request = + UnenrollDataSourcesRequest.newBuilder() + .setName("name3373707") + .addAllDataSourceIds(new ArrayList()) + .build(); + dataTransferServiceClient.unenrollDataSources(request); + } + } +} +// [END bigquerydatatransfer_v1_generated_DataTransferService_UnenrollDataSources_sync] diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/updatetransferconfig/AsyncUpdateTransferConfig.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/updatetransferconfig/AsyncUpdateTransferConfig.java index b8724a257827..993be3a97da1 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/updatetransferconfig/AsyncUpdateTransferConfig.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/updatetransferconfig/AsyncUpdateTransferConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/updatetransferconfig/SyncUpdateTransferConfig.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/updatetransferconfig/SyncUpdateTransferConfig.java index 6b21373953f4..2f3a0c23ae07 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/updatetransferconfig/SyncUpdateTransferConfig.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/updatetransferconfig/SyncUpdateTransferConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/updatetransferconfig/SyncUpdateTransferConfigTransferconfigFieldmask.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/updatetransferconfig/SyncUpdateTransferConfigTransferconfigFieldmask.java index 50a932c62dad..a9e5634587e3 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/updatetransferconfig/SyncUpdateTransferConfigTransferconfigFieldmask.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservice/updatetransferconfig/SyncUpdateTransferConfigTransferconfigFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservicesettings/getdatasource/SyncGetDataSource.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservicesettings/getdatasource/SyncGetDataSource.java index 34a937568fad..003cf895fa8f 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservicesettings/getdatasource/SyncGetDataSource.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/datatransferservicesettings/getdatasource/SyncGetDataSource.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/stub/datatransferservicestubsettings/getdatasource/SyncGetDataSource.java b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/stub/datatransferservicestubsettings/getdatasource/SyncGetDataSource.java index bf27b0725076..170d5366e3f3 100644 --- a/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/stub/datatransferservicestubsettings/getdatasource/SyncGetDataSource.java +++ b/java-bigquerydatatransfer/samples/snippets/generated/com/google/cloud/bigquery/datatransfer/v1/stub/datatransferservicestubsettings/getdatasource/SyncGetDataSource.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.