diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index de9173d9..62592923 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 -# created: 2022-07-13T13:53:17.676447481Z + digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 30fdb7b9..db2d8ad1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -8,3 +8,6 @@ # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers + +# Generated snippets should not be owned by samples reviewers +samples/snippets/generated/ @googleapis/yoshi-java diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d3dd0c7..99cfc9fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.2.0](https://github.com/googleapis/java-datastream/compare/v1.1.1...v1.2.0) (2022-09-15) + + +### Features + +* Added support for BigQuery destination and PostgreSQL source types ([#198](https://github.com/googleapis/java-datastream/issues/198)) ([3209237](https://github.com/googleapis/java-datastream/commit/3209237dd8bcccd90eb4dde85fae59c9101e7676)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#201](https://github.com/googleapis/java-datastream/issues/201)) ([5c7e4a4](https://github.com/googleapis/java-datastream/commit/5c7e4a4e5f3fd72cd45f981d212d872f1311a73e)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#203](https://github.com/googleapis/java-datastream/issues/203)) ([b94f647](https://github.com/googleapis/java-datastream/commit/b94f647c57837d6bc5b9e37f3aa51561e2ee1d3f)) + ## [1.1.1](https://github.com/googleapis/java-datastream/compare/v1.1.0...v1.1.1) (2022-07-19) diff --git a/README.md b/README.md index d3effb87..4b13a5e4 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-datastream - 1.1.0 + 1.1.1 ``` @@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.1.0' +implementation 'com.google.cloud:google-cloud-datastream:1.1.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.1.1" ``` ## Authentication diff --git a/google-cloud-datastream-bom/pom.xml b/google-cloud-datastream-bom/pom.xml index 0407e325..04ba487e 100644 --- a/google-cloud-datastream-bom/pom.xml +++ b/google-cloud-datastream-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-datastream-bom - 1.1.1 + 1.2.0 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.cloud google-cloud-datastream - 1.1.1 + 1.2.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.6.1 + 0.7.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.1.1 + 1.2.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.6.1 + 0.7.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.1.1 + 1.2.0 diff --git a/google-cloud-datastream/pom.xml b/google-cloud-datastream/pom.xml index 021c09a4..34da3be0 100644 --- a/google-cloud-datastream/pom.xml +++ b/google-cloud-datastream/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-datastream - 1.1.1 + 1.2.0 jar Google Datastream https://github.com/googleapis/java-datastream @@ -11,7 +11,7 @@ com.google.cloud google-cloud-datastream-parent - 1.1.1 + 1.2.0 google-cloud-datastream @@ -111,6 +111,11 @@ testlib test + + com.google.api.grpc + grpc-google-iam-v1 + test + diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java index d4b891db..68cc891e 100644 --- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java +++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java @@ -51,8 +51,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
  *   ConnectionProfileName name =
  *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
@@ -89,8 +92,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * DatastreamSettings datastreamSettings =
  *     DatastreamSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -101,8 +107,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * DatastreamSettings datastreamSettings =
  *     DatastreamSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings);
@@ -112,8 +121,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * DatastreamSettings datastreamSettings =
  *     DatastreamSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -204,8 +216,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (ConnectionProfile element :
@@ -233,8 +248,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(Location
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (ConnectionProfile element :
@@ -260,8 +278,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(String p
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListConnectionProfilesRequest request =
    *       ListConnectionProfilesRequest.newBuilder()
@@ -293,8 +314,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListConnectionProfilesRequest request =
    *       ListConnectionProfilesRequest.newBuilder()
@@ -325,8 +349,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListConnectionProfilesRequest request =
    *       ListConnectionProfilesRequest.newBuilder()
@@ -364,8 +391,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ConnectionProfileName name =
    *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
@@ -391,8 +421,11 @@ public final ConnectionProfile getConnectionProfile(ConnectionProfileName name)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString();
@@ -416,8 +449,11 @@ public final ConnectionProfile getConnectionProfile(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetConnectionProfileRequest request =
    *       GetConnectionProfileRequest.newBuilder()
@@ -443,8 +479,11 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetConnectionProfileRequest request =
    *       GetConnectionProfileRequest.newBuilder()
@@ -471,8 +510,11 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
@@ -507,8 +549,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
@@ -543,8 +588,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateConnectionProfileRequest request =
    *       CreateConnectionProfileRequest.newBuilder()
@@ -574,8 +622,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateConnectionProfileRequest request =
    *       CreateConnectionProfileRequest.newBuilder()
@@ -606,8 +657,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateConnectionProfileRequest request =
    *       CreateConnectionProfileRequest.newBuilder()
@@ -637,8 +691,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -671,8 +728,11 @@ public final OperationFuture updateConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   UpdateConnectionProfileRequest request =
    *       UpdateConnectionProfileRequest.newBuilder()
@@ -701,8 +761,11 @@ public final OperationFuture updateConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   UpdateConnectionProfileRequest request =
    *       UpdateConnectionProfileRequest.newBuilder()
@@ -732,8 +795,11 @@ public final OperationFuture updateConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   UpdateConnectionProfileRequest request =
    *       UpdateConnectionProfileRequest.newBuilder()
@@ -762,8 +828,11 @@ public final OperationFuture updateConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ConnectionProfileName name =
    *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
@@ -790,8 +859,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString();
@@ -815,8 +887,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteConnectionProfileRequest request =
    *       DeleteConnectionProfileRequest.newBuilder()
@@ -844,8 +919,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteConnectionProfileRequest request =
    *       DeleteConnectionProfileRequest.newBuilder()
@@ -873,8 +951,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteConnectionProfileRequest request =
    *       DeleteConnectionProfileRequest.newBuilder()
@@ -904,8 +985,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DiscoverConnectionProfileRequest request =
    *       DiscoverConnectionProfileRequest.newBuilder()
@@ -933,8 +1017,11 @@ public final DiscoverConnectionProfileResponse discoverConnectionProfile(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DiscoverConnectionProfileRequest request =
    *       DiscoverConnectionProfileRequest.newBuilder()
@@ -959,8 +1046,11 @@ public final DiscoverConnectionProfileResponse discoverConnectionProfile(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Stream element : datastreamClient.listStreams(parent).iterateAll()) {
@@ -987,8 +1077,11 @@ public final ListStreamsPagedResponse listStreams(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Stream element : datastreamClient.listStreams(parent).iterateAll()) {
@@ -1012,8 +1105,11 @@ public final ListStreamsPagedResponse listStreams(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListStreamsRequest request =
    *       ListStreamsRequest.newBuilder()
@@ -1043,8 +1139,11 @@ public final ListStreamsPagedResponse listStreams(ListStreamsRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListStreamsRequest request =
    *       ListStreamsRequest.newBuilder()
@@ -1074,8 +1173,11 @@ public final ListStreamsPagedResponse listStreams(ListStreamsRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListStreamsRequest request =
    *       ListStreamsRequest.newBuilder()
@@ -1111,8 +1213,11 @@ public final UnaryCallable listStreamsC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]");
    *   Stream response = datastreamClient.getStream(name);
@@ -1135,8 +1240,11 @@ public final Stream getStream(StreamName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString();
    *   Stream response = datastreamClient.getStream(name);
@@ -1158,8 +1266,11 @@ public final Stream getStream(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetStreamRequest request =
    *       GetStreamRequest.newBuilder()
@@ -1183,8 +1294,11 @@ public final Stream getStream(GetStreamRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetStreamRequest request =
    *       GetStreamRequest.newBuilder()
@@ -1207,8 +1321,11 @@ public final UnaryCallable getStreamCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Stream stream = Stream.newBuilder().build();
@@ -1240,8 +1357,11 @@ public final OperationFuture createStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Stream stream = Stream.newBuilder().build();
@@ -1273,8 +1393,11 @@ public final OperationFuture createStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateStreamRequest request =
    *       CreateStreamRequest.newBuilder()
@@ -1304,8 +1427,11 @@ public final OperationFuture createStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateStreamRequest request =
    *       CreateStreamRequest.newBuilder()
@@ -1335,8 +1461,11 @@ public final OperationFuture createStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateStreamRequest request =
    *       CreateStreamRequest.newBuilder()
@@ -1364,8 +1493,11 @@ public final UnaryCallable createStreamCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   Stream stream = Stream.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1394,8 +1526,11 @@ public final OperationFuture updateStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   UpdateStreamRequest request =
    *       UpdateStreamRequest.newBuilder()
@@ -1424,8 +1559,11 @@ public final OperationFuture updateStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   UpdateStreamRequest request =
    *       UpdateStreamRequest.newBuilder()
@@ -1454,8 +1592,11 @@ public final OperationFuture updateStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   UpdateStreamRequest request =
    *       UpdateStreamRequest.newBuilder()
@@ -1482,8 +1623,11 @@ public final UnaryCallable updateStreamCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]");
    *   datastreamClient.deleteStreamAsync(name).get();
@@ -1506,8 +1650,11 @@ public final OperationFuture deleteStreamAsync(StreamN
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString();
    *   datastreamClient.deleteStreamAsync(name).get();
@@ -1529,8 +1676,11 @@ public final OperationFuture deleteStreamAsync(String
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteStreamRequest request =
    *       DeleteStreamRequest.newBuilder()
@@ -1556,8 +1706,11 @@ public final OperationFuture deleteStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteStreamRequest request =
    *       DeleteStreamRequest.newBuilder()
@@ -1583,8 +1736,11 @@ public final OperationFuture deleteStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteStreamRequest request =
    *       DeleteStreamRequest.newBuilder()
@@ -1608,8 +1764,11 @@ public final UnaryCallable deleteStreamCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   StreamObjectName name =
    *       StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]");
@@ -1633,8 +1792,11 @@ public final StreamObject getStreamObject(StreamObjectName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString();
@@ -1657,8 +1819,11 @@ public final StreamObject getStreamObject(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetStreamObjectRequest request =
    *       GetStreamObjectRequest.newBuilder()
@@ -1683,8 +1848,11 @@ public final StreamObject getStreamObject(GetStreamObjectRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetStreamObjectRequest request =
    *       GetStreamObjectRequest.newBuilder()
@@ -1709,8 +1877,11 @@ public final UnaryCallable getStreamObject
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LookupStreamObjectRequest request =
    *       LookupStreamObjectRequest.newBuilder()
@@ -1735,8 +1906,11 @@ public final StreamObject lookupStreamObject(LookupStreamObjectRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LookupStreamObjectRequest request =
    *       LookupStreamObjectRequest.newBuilder()
@@ -1761,8 +1935,11 @@ public final UnaryCallable lookupStream
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   StreamName parent = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]");
    *   for (StreamObject element : datastreamClient.listStreamObjects(parent).iterateAll()) {
@@ -1789,8 +1966,11 @@ public final ListStreamObjectsPagedResponse listStreamObjects(StreamName parent)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString();
    *   for (StreamObject element : datastreamClient.listStreamObjects(parent).iterateAll()) {
@@ -1815,8 +1995,11 @@ public final ListStreamObjectsPagedResponse listStreamObjects(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListStreamObjectsRequest request =
    *       ListStreamObjectsRequest.newBuilder()
@@ -1844,8 +2027,11 @@ public final ListStreamObjectsPagedResponse listStreamObjects(ListStreamObjectsR
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListStreamObjectsRequest request =
    *       ListStreamObjectsRequest.newBuilder()
@@ -1874,8 +2060,11 @@ public final ListStreamObjectsPagedResponse listStreamObjects(ListStreamObjectsR
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListStreamObjectsRequest request =
    *       ListStreamObjectsRequest.newBuilder()
@@ -1911,8 +2100,11 @@ public final ListStreamObjectsPagedResponse listStreamObjects(ListStreamObjectsR
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   StreamObjectName object =
    *       StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]");
@@ -1938,8 +2130,11 @@ public final StartBackfillJobResponse startBackfillJob(StreamObjectName object)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String object =
    *       StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString();
@@ -1963,8 +2158,11 @@ public final StartBackfillJobResponse startBackfillJob(String object) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   StartBackfillJobRequest request =
    *       StartBackfillJobRequest.newBuilder()
@@ -1989,8 +2187,11 @@ public final StartBackfillJobResponse startBackfillJob(StartBackfillJobRequest r
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   StartBackfillJobRequest request =
    *       StartBackfillJobRequest.newBuilder()
@@ -2016,8 +2217,11 @@ public final StartBackfillJobResponse startBackfillJob(StartBackfillJobRequest r
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   StreamObjectName object =
    *       StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]");
@@ -2043,8 +2247,11 @@ public final StopBackfillJobResponse stopBackfillJob(StreamObjectName object) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String object =
    *       StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString();
@@ -2067,8 +2274,11 @@ public final StopBackfillJobResponse stopBackfillJob(String object) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   StopBackfillJobRequest request =
    *       StopBackfillJobRequest.newBuilder()
@@ -2093,8 +2303,11 @@ public final StopBackfillJobResponse stopBackfillJob(StopBackfillJobRequest requ
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   StopBackfillJobRequest request =
    *       StopBackfillJobRequest.newBuilder()
@@ -2120,8 +2333,11 @@ public final StopBackfillJobResponse stopBackfillJob(StopBackfillJobRequest requ
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (String element : datastreamClient.fetchStaticIps(name).iterateAll()) {
@@ -2147,8 +2363,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(LocationName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (String element : datastreamClient.fetchStaticIps(name).iterateAll()) {
@@ -2173,8 +2392,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   FetchStaticIpsRequest request =
    *       FetchStaticIpsRequest.newBuilder()
@@ -2202,8 +2424,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   FetchStaticIpsRequest request =
    *       FetchStaticIpsRequest.newBuilder()
@@ -2231,8 +2456,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   FetchStaticIpsRequest request =
    *       FetchStaticIpsRequest.newBuilder()
@@ -2267,8 +2495,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
@@ -2303,8 +2534,11 @@ public final OperationFuture createPrivate
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
@@ -2339,8 +2573,11 @@ public final OperationFuture createPrivate
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreatePrivateConnectionRequest request =
    *       CreatePrivateConnectionRequest.newBuilder()
@@ -2368,8 +2605,11 @@ public final OperationFuture createPrivate
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreatePrivateConnectionRequest request =
    *       CreatePrivateConnectionRequest.newBuilder()
@@ -2398,8 +2638,11 @@ public final OperationFuture createPrivate
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreatePrivateConnectionRequest request =
    *       CreatePrivateConnectionRequest.newBuilder()
@@ -2427,8 +2670,11 @@ public final OperationFuture createPrivate
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   PrivateConnectionName name =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
@@ -2454,8 +2700,11 @@ public final PrivateConnection getPrivateConnection(PrivateConnectionName name)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
@@ -2479,8 +2728,11 @@ public final PrivateConnection getPrivateConnection(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetPrivateConnectionRequest request =
    *       GetPrivateConnectionRequest.newBuilder()
@@ -2506,8 +2758,11 @@ public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetPrivateConnectionRequest request =
    *       GetPrivateConnectionRequest.newBuilder()
@@ -2534,8 +2789,11 @@ public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (PrivateConnection element :
@@ -2564,8 +2822,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(Location
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (PrivateConnection element :
@@ -2592,8 +2853,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(String p
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListPrivateConnectionsRequest request =
    *       ListPrivateConnectionsRequest.newBuilder()
@@ -2625,8 +2889,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListPrivateConnectionsRequest request =
    *       ListPrivateConnectionsRequest.newBuilder()
@@ -2657,8 +2924,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListPrivateConnectionsRequest request =
    *       ListPrivateConnectionsRequest.newBuilder()
@@ -2696,8 +2966,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   PrivateConnectionName name =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
@@ -2724,8 +2997,11 @@ public final OperationFuture deletePrivateConnectionAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
@@ -2749,8 +3025,11 @@ public final OperationFuture deletePrivateConnectionAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeletePrivateConnectionRequest request =
    *       DeletePrivateConnectionRequest.newBuilder()
@@ -2779,8 +3058,11 @@ public final OperationFuture deletePrivateConnectionAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeletePrivateConnectionRequest request =
    *       DeletePrivateConnectionRequest.newBuilder()
@@ -2809,8 +3091,11 @@ public final OperationFuture deletePrivateConnectionAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeletePrivateConnectionRequest request =
    *       DeletePrivateConnectionRequest.newBuilder()
@@ -2840,8 +3125,11 @@ public final OperationFuture deletePrivateConnectionAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   PrivateConnectionName parent =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
@@ -2875,8 +3163,11 @@ public final OperationFuture createRouteAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
@@ -2910,8 +3201,11 @@ public final OperationFuture createRouteAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateRouteRequest request =
    *       CreateRouteRequest.newBuilder()
@@ -2942,8 +3236,11 @@ public final OperationFuture createRouteAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateRouteRequest request =
    *       CreateRouteRequest.newBuilder()
@@ -2974,8 +3271,11 @@ public final OperationFuture createRouteAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateRouteRequest request =
    *       CreateRouteRequest.newBuilder()
@@ -3003,8 +3303,11 @@ public final UnaryCallable createRouteCallable()
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]");
    *   Route response = datastreamClient.getRoute(name);
@@ -3027,8 +3330,11 @@ public final Route getRoute(RouteName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]").toString();
@@ -3051,8 +3357,11 @@ public final Route getRoute(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetRouteRequest request =
    *       GetRouteRequest.newBuilder()
@@ -3078,8 +3387,11 @@ public final Route getRoute(GetRouteRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetRouteRequest request =
    *       GetRouteRequest.newBuilder()
@@ -3105,8 +3417,11 @@ public final UnaryCallable getRouteCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   PrivateConnectionName parent =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
@@ -3133,8 +3448,11 @@ public final ListRoutesPagedResponse listRoutes(PrivateConnectionName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
@@ -3160,8 +3478,11 @@ public final ListRoutesPagedResponse listRoutes(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListRoutesRequest request =
    *       ListRoutesRequest.newBuilder()
@@ -3194,8 +3515,11 @@ public final ListRoutesPagedResponse listRoutes(ListRoutesRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListRoutesRequest request =
    *       ListRoutesRequest.newBuilder()
@@ -3227,8 +3551,11 @@ public final UnaryCallable listRoute
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListRoutesRequest request =
    *       ListRoutesRequest.newBuilder()
@@ -3266,8 +3593,11 @@ public final UnaryCallable listRoutesCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]");
    *   datastreamClient.deleteRouteAsync(name).get();
@@ -3290,8 +3620,11 @@ public final OperationFuture deleteRouteAsync(RouteNam
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]").toString();
@@ -3314,8 +3647,11 @@ public final OperationFuture deleteRouteAsync(String n
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteRouteRequest request =
    *       DeleteRouteRequest.newBuilder()
@@ -3343,8 +3679,11 @@ public final OperationFuture deleteRouteAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteRouteRequest request =
    *       DeleteRouteRequest.newBuilder()
@@ -3372,8 +3711,11 @@ public final OperationFuture deleteRouteAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteRouteRequest request =
    *       DeleteRouteRequest.newBuilder()
@@ -3399,8 +3741,11 @@ public final UnaryCallable deleteRouteCallable()
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListLocationsRequest request =
    *       ListLocationsRequest.newBuilder()
@@ -3429,8 +3774,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListLocationsRequest request =
    *       ListLocationsRequest.newBuilder()
@@ -3460,8 +3808,11 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListLocationsRequest request =
    *       ListLocationsRequest.newBuilder()
@@ -3496,8 +3847,11 @@ public final UnaryCallable listLoca
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    *   Location response = datastreamClient.getLocation(request);
@@ -3518,8 +3872,11 @@ public final Location getLocation(GetLocationRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    *   ApiFuture future = datastreamClient.getLocationCallable().futureCall(request);
diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java
index c300817a..0b4d308a 100644
--- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java
+++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java
@@ -66,16 +66,16 @@
  * 

For example, to set the total timeout of getConnectionProfile to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * DatastreamSettings.Builder datastreamSettingsBuilder = DatastreamSettings.newBuilder();
  * datastreamSettingsBuilder
  *     .getConnectionProfileSettings()
  *     .setRetrySettings(
- *         datastreamSettingsBuilder
- *             .getConnectionProfileSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         datastreamSettingsBuilder.getConnectionProfileSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * DatastreamSettings datastreamSettings = datastreamSettingsBuilder.build();
diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java
index 1b40c70d..8bf773b8 100644
--- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java
+++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for DatastreamClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
  *   ConnectionProfileName name =
  *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java
index 6114d9a9..437d0e03 100644
--- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java
+++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java
@@ -126,16 +126,16 @@
  * 

For example, to set the total timeout of getConnectionProfile to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * DatastreamStubSettings.Builder datastreamSettingsBuilder = DatastreamStubSettings.newBuilder();
  * datastreamSettingsBuilder
  *     .getConnectionProfileSettings()
  *     .setRetrySettings(
- *         datastreamSettingsBuilder
- *             .getConnectionProfileSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         datastreamSettingsBuilder.getConnectionProfileSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * DatastreamStubSettings datastreamSettings = datastreamSettingsBuilder.build();
diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java
index 93b28d2e..83d5e6de 100644
--- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java
+++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java
@@ -218,7 +218,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("connectionProfile", request.getConnectionProfile()))
+                                  .toBody(
+                                      "connectionProfile", request.getConnectionProfile(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -265,7 +266,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("connectionProfile", request.getConnectionProfile()))
+                                  .toBody(
+                                      "connectionProfile", request.getConnectionProfile(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -343,7 +345,7 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -452,7 +454,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("stream", request.getStream()))
+                              ProtoRestSerializer.create()
+                                  .toBody("stream", request.getStream(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -496,7 +499,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("stream", request.getStream()))
+                              ProtoRestSerializer.create()
+                                  .toBody("stream", request.getStream(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -605,7 +609,7 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -676,7 +680,7 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearObject().build()))
+                                  .toBody("*", request.toBuilder().clearObject().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -712,7 +716,7 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearObject().build()))
+                                  .toBody("*", request.toBuilder().clearObject().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -786,7 +790,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("privateConnection", request.getPrivateConnection()))
+                                  .toBody(
+                                      "privateConnection", request.getPrivateConnection(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -936,7 +941,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("route", request.getRoute()))
+                              ProtoRestSerializer.create()
+                                  .toBody("route", request.getRoute(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java
index 2a9f640b..c7e51dcf 100644
--- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java
+++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java
@@ -47,8 +47,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
  *   ConnectionProfileName name =
  *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
@@ -85,8 +88,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * DatastreamSettings datastreamSettings =
  *     DatastreamSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,8 +103,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * DatastreamSettings datastreamSettings =
  *     DatastreamSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings);
@@ -108,8 +117,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * DatastreamSettings datastreamSettings =
  *     DatastreamSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -201,8 +213,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (ConnectionProfile element :
@@ -230,8 +245,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(Location
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (ConnectionProfile element :
@@ -257,8 +275,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(String p
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListConnectionProfilesRequest request =
    *       ListConnectionProfilesRequest.newBuilder()
@@ -290,8 +311,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListConnectionProfilesRequest request =
    *       ListConnectionProfilesRequest.newBuilder()
@@ -322,8 +346,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListConnectionProfilesRequest request =
    *       ListConnectionProfilesRequest.newBuilder()
@@ -361,8 +388,11 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ConnectionProfileName name =
    *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
@@ -388,8 +418,11 @@ public final ConnectionProfile getConnectionProfile(ConnectionProfileName name)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString();
@@ -413,8 +446,11 @@ public final ConnectionProfile getConnectionProfile(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetConnectionProfileRequest request =
    *       GetConnectionProfileRequest.newBuilder()
@@ -440,8 +476,11 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetConnectionProfileRequest request =
    *       GetConnectionProfileRequest.newBuilder()
@@ -468,8 +507,11 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
@@ -504,8 +546,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
@@ -540,8 +585,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateConnectionProfileRequest request =
    *       CreateConnectionProfileRequest.newBuilder()
@@ -569,8 +617,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateConnectionProfileRequest request =
    *       CreateConnectionProfileRequest.newBuilder()
@@ -599,8 +650,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateConnectionProfileRequest request =
    *       CreateConnectionProfileRequest.newBuilder()
@@ -628,8 +682,11 @@ public final OperationFuture createConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -662,8 +719,11 @@ public final OperationFuture updateConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   UpdateConnectionProfileRequest request =
    *       UpdateConnectionProfileRequest.newBuilder()
@@ -690,8 +750,11 @@ public final OperationFuture updateConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   UpdateConnectionProfileRequest request =
    *       UpdateConnectionProfileRequest.newBuilder()
@@ -719,8 +782,11 @@ public final OperationFuture updateConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   UpdateConnectionProfileRequest request =
    *       UpdateConnectionProfileRequest.newBuilder()
@@ -747,8 +813,11 @@ public final OperationFuture updateConnect
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ConnectionProfileName name =
    *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
@@ -775,8 +844,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString();
@@ -800,8 +872,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteConnectionProfileRequest request =
    *       DeleteConnectionProfileRequest.newBuilder()
@@ -829,8 +904,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteConnectionProfileRequest request =
    *       DeleteConnectionProfileRequest.newBuilder()
@@ -858,8 +936,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteConnectionProfileRequest request =
    *       DeleteConnectionProfileRequest.newBuilder()
@@ -889,8 +970,11 @@ public final OperationFuture deleteConnectionProfileAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DiscoverConnectionProfileRequest request =
    *       DiscoverConnectionProfileRequest.newBuilder()
@@ -918,8 +1002,11 @@ public final DiscoverConnectionProfileResponse discoverConnectionProfile(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DiscoverConnectionProfileRequest request =
    *       DiscoverConnectionProfileRequest.newBuilder()
@@ -944,8 +1031,11 @@ public final DiscoverConnectionProfileResponse discoverConnectionProfile(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Stream element : datastreamClient.listStreams(parent).iterateAll()) {
@@ -972,8 +1062,11 @@ public final ListStreamsPagedResponse listStreams(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Stream element : datastreamClient.listStreams(parent).iterateAll()) {
@@ -997,8 +1090,11 @@ public final ListStreamsPagedResponse listStreams(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListStreamsRequest request =
    *       ListStreamsRequest.newBuilder()
@@ -1028,8 +1124,11 @@ public final ListStreamsPagedResponse listStreams(ListStreamsRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListStreamsRequest request =
    *       ListStreamsRequest.newBuilder()
@@ -1059,8 +1158,11 @@ public final ListStreamsPagedResponse listStreams(ListStreamsRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListStreamsRequest request =
    *       ListStreamsRequest.newBuilder()
@@ -1096,8 +1198,11 @@ public final UnaryCallable listStreamsC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]");
    *   Stream response = datastreamClient.getStream(name);
@@ -1120,8 +1225,11 @@ public final Stream getStream(StreamName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString();
    *   Stream response = datastreamClient.getStream(name);
@@ -1143,8 +1251,11 @@ public final Stream getStream(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetStreamRequest request =
    *       GetStreamRequest.newBuilder()
@@ -1168,8 +1279,11 @@ public final Stream getStream(GetStreamRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetStreamRequest request =
    *       GetStreamRequest.newBuilder()
@@ -1192,8 +1306,11 @@ public final UnaryCallable getStreamCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Stream stream = Stream.newBuilder().build();
@@ -1225,8 +1342,11 @@ public final OperationFuture createStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Stream stream = Stream.newBuilder().build();
@@ -1258,8 +1378,11 @@ public final OperationFuture createStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateStreamRequest request =
    *       CreateStreamRequest.newBuilder()
@@ -1289,8 +1412,11 @@ public final OperationFuture createStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateStreamRequest request =
    *       CreateStreamRequest.newBuilder()
@@ -1320,8 +1446,11 @@ public final OperationFuture createStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateStreamRequest request =
    *       CreateStreamRequest.newBuilder()
@@ -1349,8 +1478,11 @@ public final UnaryCallable createStreamCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   Stream stream = Stream.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1379,8 +1511,11 @@ public final OperationFuture updateStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   UpdateStreamRequest request =
    *       UpdateStreamRequest.newBuilder()
@@ -1409,8 +1544,11 @@ public final OperationFuture updateStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   UpdateStreamRequest request =
    *       UpdateStreamRequest.newBuilder()
@@ -1439,8 +1577,11 @@ public final OperationFuture updateStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   UpdateStreamRequest request =
    *       UpdateStreamRequest.newBuilder()
@@ -1467,8 +1608,11 @@ public final UnaryCallable updateStreamCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]");
    *   datastreamClient.deleteStreamAsync(name).get();
@@ -1491,8 +1635,11 @@ public final OperationFuture deleteStreamAsync(StreamN
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString();
    *   datastreamClient.deleteStreamAsync(name).get();
@@ -1514,8 +1661,11 @@ public final OperationFuture deleteStreamAsync(String
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteStreamRequest request =
    *       DeleteStreamRequest.newBuilder()
@@ -1541,8 +1691,11 @@ public final OperationFuture deleteStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteStreamRequest request =
    *       DeleteStreamRequest.newBuilder()
@@ -1568,8 +1721,11 @@ public final OperationFuture deleteStreamAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteStreamRequest request =
    *       DeleteStreamRequest.newBuilder()
@@ -1593,8 +1749,11 @@ public final UnaryCallable deleteStreamCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   FetchErrorsRequest request =
    *       FetchErrorsRequest.newBuilder()
@@ -1619,8 +1778,11 @@ public final OperationFuture fetchErrors
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   FetchErrorsRequest request =
    *       FetchErrorsRequest.newBuilder()
@@ -1645,8 +1807,11 @@ public final OperationFuture fetchErrors
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   FetchErrorsRequest request =
    *       FetchErrorsRequest.newBuilder()
@@ -1671,8 +1836,11 @@ public final UnaryCallable fetchErrorsCallable()
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (String element : datastreamClient.fetchStaticIps(name).iterateAll()) {
@@ -1700,8 +1868,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(LocationName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (String element : datastreamClient.fetchStaticIps(name).iterateAll()) {
@@ -1728,8 +1899,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   FetchStaticIpsRequest request =
    *       FetchStaticIpsRequest.newBuilder()
@@ -1759,8 +1933,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   FetchStaticIpsRequest request =
    *       FetchStaticIpsRequest.newBuilder()
@@ -1790,8 +1967,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   FetchStaticIpsRequest request =
    *       FetchStaticIpsRequest.newBuilder()
@@ -1826,8 +2006,11 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest re
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
@@ -1862,8 +2045,11 @@ public final OperationFuture createPrivate
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
@@ -1898,8 +2084,11 @@ public final OperationFuture createPrivate
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreatePrivateConnectionRequest request =
    *       CreatePrivateConnectionRequest.newBuilder()
@@ -1927,8 +2116,11 @@ public final OperationFuture createPrivate
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreatePrivateConnectionRequest request =
    *       CreatePrivateConnectionRequest.newBuilder()
@@ -1957,8 +2149,11 @@ public final OperationFuture createPrivate
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreatePrivateConnectionRequest request =
    *       CreatePrivateConnectionRequest.newBuilder()
@@ -1986,8 +2181,11 @@ public final OperationFuture createPrivate
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   PrivateConnectionName name =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
@@ -2013,8 +2211,11 @@ public final PrivateConnection getPrivateConnection(PrivateConnectionName name)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
@@ -2038,8 +2239,11 @@ public final PrivateConnection getPrivateConnection(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetPrivateConnectionRequest request =
    *       GetPrivateConnectionRequest.newBuilder()
@@ -2065,8 +2269,11 @@ public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetPrivateConnectionRequest request =
    *       GetPrivateConnectionRequest.newBuilder()
@@ -2093,8 +2300,11 @@ public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (PrivateConnection element :
@@ -2123,8 +2333,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(Location
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (PrivateConnection element :
@@ -2151,8 +2364,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(String p
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListPrivateConnectionsRequest request =
    *       ListPrivateConnectionsRequest.newBuilder()
@@ -2184,8 +2400,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListPrivateConnectionsRequest request =
    *       ListPrivateConnectionsRequest.newBuilder()
@@ -2216,8 +2435,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListPrivateConnectionsRequest request =
    *       ListPrivateConnectionsRequest.newBuilder()
@@ -2255,8 +2477,11 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   PrivateConnectionName name =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
@@ -2283,8 +2508,11 @@ public final OperationFuture deletePrivateConnectionAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
@@ -2308,8 +2536,11 @@ public final OperationFuture deletePrivateConnectionAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeletePrivateConnectionRequest request =
    *       DeletePrivateConnectionRequest.newBuilder()
@@ -2338,8 +2569,11 @@ public final OperationFuture deletePrivateConnectionAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeletePrivateConnectionRequest request =
    *       DeletePrivateConnectionRequest.newBuilder()
@@ -2368,8 +2602,11 @@ public final OperationFuture deletePrivateConnectionAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeletePrivateConnectionRequest request =
    *       DeletePrivateConnectionRequest.newBuilder()
@@ -2398,8 +2635,11 @@ public final OperationFuture deletePrivateConnectionAs
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   PrivateConnectionName parent =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
@@ -2432,8 +2672,11 @@ public final OperationFuture createRouteAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
@@ -2466,8 +2709,11 @@ public final OperationFuture createRouteAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateRouteRequest request =
    *       CreateRouteRequest.newBuilder()
@@ -2497,8 +2743,11 @@ public final OperationFuture createRouteAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateRouteRequest request =
    *       CreateRouteRequest.newBuilder()
@@ -2528,8 +2777,11 @@ public final OperationFuture createRouteAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   CreateRouteRequest request =
    *       CreateRouteRequest.newBuilder()
@@ -2557,8 +2809,11 @@ public final UnaryCallable createRouteCallable()
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]");
    *   Route response = datastreamClient.getRoute(name);
@@ -2581,8 +2836,11 @@ public final Route getRoute(RouteName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]").toString();
@@ -2605,8 +2863,11 @@ public final Route getRoute(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetRouteRequest request =
    *       GetRouteRequest.newBuilder()
@@ -2632,8 +2893,11 @@ public final Route getRoute(GetRouteRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   GetRouteRequest request =
    *       GetRouteRequest.newBuilder()
@@ -2658,8 +2922,11 @@ public final UnaryCallable getRouteCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   PrivateConnectionName parent =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
@@ -2685,8 +2952,11 @@ public final ListRoutesPagedResponse listRoutes(PrivateConnectionName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String parent =
    *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
@@ -2711,8 +2981,11 @@ public final ListRoutesPagedResponse listRoutes(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListRoutesRequest request =
    *       ListRoutesRequest.newBuilder()
@@ -2744,8 +3017,11 @@ public final ListRoutesPagedResponse listRoutes(ListRoutesRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListRoutesRequest request =
    *       ListRoutesRequest.newBuilder()
@@ -2776,8 +3052,11 @@ public final UnaryCallable listRoute
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   ListRoutesRequest request =
    *       ListRoutesRequest.newBuilder()
@@ -2815,8 +3094,11 @@ public final UnaryCallable listRoutesCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]");
    *   datastreamClient.deleteRouteAsync(name).get();
@@ -2839,8 +3121,11 @@ public final OperationFuture deleteRouteAsync(RouteNam
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   String name =
    *       RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]").toString();
@@ -2863,8 +3148,11 @@ public final OperationFuture deleteRouteAsync(String n
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteRouteRequest request =
    *       DeleteRouteRequest.newBuilder()
@@ -2892,8 +3180,11 @@ public final OperationFuture deleteRouteAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteRouteRequest request =
    *       DeleteRouteRequest.newBuilder()
@@ -2921,8 +3212,11 @@ public final OperationFuture deleteRouteAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
    *   DeleteRouteRequest request =
    *       DeleteRouteRequest.newBuilder()
diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java
index bd0a8f98..0e0150e2 100644
--- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java
+++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java
@@ -60,16 +60,16 @@
  * 

For example, to set the total timeout of getConnectionProfile to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * DatastreamSettings.Builder datastreamSettingsBuilder = DatastreamSettings.newBuilder();
  * datastreamSettingsBuilder
  *     .getConnectionProfileSettings()
  *     .setRetrySettings(
- *         datastreamSettingsBuilder
- *             .getConnectionProfileSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         datastreamSettingsBuilder.getConnectionProfileSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * DatastreamSettings datastreamSettings = datastreamSettingsBuilder.build();
diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java
index b513b3c1..edc6a677 100644
--- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java
+++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java
@@ -24,8 +24,11 @@
  * 

Sample for DatastreamClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) {
  *   ConnectionProfileName name =
  *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java
index 09435df8..6c94e47e 100644
--- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java
+++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java
@@ -113,16 +113,16 @@
  * 

For example, to set the total timeout of getConnectionProfile to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * DatastreamStubSettings.Builder datastreamSettingsBuilder = DatastreamStubSettings.newBuilder();
  * datastreamSettingsBuilder
  *     .getConnectionProfileSettings()
  *     .setRetrySettings(
- *         datastreamSettingsBuilder
- *             .getConnectionProfileSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         datastreamSettingsBuilder.getConnectionProfileSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * DatastreamStubSettings datastreamSettings = datastreamSettingsBuilder.build();
diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java
index 3a1a643d..ff59c56f 100644
--- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java
+++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java
@@ -205,7 +205,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("connectionProfile", request.getConnectionProfile()))
+                                  .toBody(
+                                      "connectionProfile", request.getConnectionProfile(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -250,7 +251,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("connectionProfile", request.getConnectionProfile()))
+                                  .toBody(
+                                      "connectionProfile", request.getConnectionProfile(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -330,7 +332,7 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -439,7 +441,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("stream", request.getStream()))
+                              ProtoRestSerializer.create()
+                                  .toBody("stream", request.getStream(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -483,7 +486,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("stream", request.getStream()))
+                              ProtoRestSerializer.create()
+                                  .toBody("stream", request.getStream(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -559,7 +563,7 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearStream().build()))
+                                  .toBody("*", request.toBuilder().clearStream().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -637,7 +641,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("privateConnection", request.getPrivateConnection()))
+                                  .toBody(
+                                      "privateConnection", request.getPrivateConnection(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -789,7 +794,8 @@ public class HttpJsonDatastreamStub extends DatastreamStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("route", request.getRoute()))
+                              ProtoRestSerializer.create()
+                                  .toBody("route", request.getRoute(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java
index aab64675..28a3ac7c 100644
--- a/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java
+++ b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java
@@ -62,6 +62,7 @@
 @Generated("by gapic-generator-java")
 public class DatastreamClientTest {
   private static MockDatastream mockDatastream;
+  private static MockIAMPolicy mockIAMPolicy;
   private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
@@ -71,10 +72,11 @@ public class DatastreamClientTest {
   public static void startStaticServer() {
     mockDatastream = new MockDatastream();
     mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
             UUID.randomUUID().toString(),
-            Arrays.asList(mockDatastream, mockLocations));
+            Arrays.asList(mockDatastream, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -574,6 +576,7 @@ public void discoverConnectionProfileTest() throws Exception {
     Assert.assertEquals(request.getHierarchyDepth(), actualRequest.getHierarchyDepth());
     Assert.assertEquals(request.getOracleRdbms(), actualRequest.getOracleRdbms());
     Assert.assertEquals(request.getMysqlRdbms(), actualRequest.getMysqlRdbms());
+    Assert.assertEquals(request.getPostgresqlRdbms(), actualRequest.getPostgresqlRdbms());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
diff --git a/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java
new file mode 100644
index 00000000..bb2fd718
--- /dev/null
+++ b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 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.datastream.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.testing.MockGrpcService;
+import com.google.protobuf.AbstractMessage;
+import io.grpc.ServerServiceDefinition;
+import java.util.List;
+import javax.annotation.Generated;
+
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MockIAMPolicy implements MockGrpcService {
+  private final MockIAMPolicyImpl serviceImpl;
+
+  public MockIAMPolicy() {
+    serviceImpl = new MockIAMPolicyImpl();
+  }
+
+  @Override
+  public List getRequests() {
+    return serviceImpl.getRequests();
+  }
+
+  @Override
+  public void addResponse(AbstractMessage response) {
+    serviceImpl.addResponse(response);
+  }
+
+  @Override
+  public void addException(Exception exception) {
+    serviceImpl.addException(exception);
+  }
+
+  @Override
+  public ServerServiceDefinition getServiceDefinition() {
+    return serviceImpl.bindService();
+  }
+
+  @Override
+  public void reset() {
+    serviceImpl.reset();
+  }
+}
diff --git a/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java
new file mode 100644
index 00000000..a50601d2
--- /dev/null
+++ b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 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.datastream.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase;
+import com.google.protobuf.AbstractMessage;
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Queue;
+import javax.annotation.Generated;
+
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MockIAMPolicyImpl extends IAMPolicyImplBase {
+  private List requests;
+  private Queue responses;
+
+  public MockIAMPolicyImpl() {
+    requests = new ArrayList<>();
+    responses = new LinkedList<>();
+  }
+
+  public List getRequests() {
+    return requests;
+  }
+
+  public void addResponse(AbstractMessage response) {
+    responses.add(response);
+  }
+
+  public void setResponses(List responses) {
+    this.responses = new LinkedList(responses);
+  }
+
+  public void addException(Exception exception) {
+    responses.add(exception);
+  }
+
+  public void reset() {
+    requests = new ArrayList<>();
+    responses = new LinkedList<>();
+  }
+}
diff --git a/grpc-google-cloud-datastream-v1/pom.xml b/grpc-google-cloud-datastream-v1/pom.xml
index 791b1d5c..55528cab 100644
--- a/grpc-google-cloud-datastream-v1/pom.xml
+++ b/grpc-google-cloud-datastream-v1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-datastream-v1
-  1.1.1
+  1.2.0
   grpc-google-cloud-datastream-v1
   GRPC library for google-cloud-datastream
   
     com.google.cloud
     google-cloud-datastream-parent
-    1.1.1
+    1.2.0
   
   
     
diff --git a/grpc-google-cloud-datastream-v1alpha1/pom.xml b/grpc-google-cloud-datastream-v1alpha1/pom.xml
index d5031c34..4005f364 100644
--- a/grpc-google-cloud-datastream-v1alpha1/pom.xml
+++ b/grpc-google-cloud-datastream-v1alpha1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-datastream-v1alpha1
-  0.6.1
+  0.7.0
   grpc-google-cloud-datastream-v1alpha1
   GRPC library for google-cloud-datastream
   
     com.google.cloud
     google-cloud-datastream-parent
-    1.1.1
+    1.2.0
   
   
     
diff --git a/pom.xml b/pom.xml
index b15da378..fd907901 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   google-cloud-datastream-parent
   pom
-  1.1.1
+  1.2.0
   Google Datastream Parent
   https://github.com/googleapis/java-datastream
   
@@ -69,33 +69,33 @@
       
         com.google.cloud
         google-cloud-datastream
-        1.1.1
+        1.2.0
       
       
         com.google.api.grpc
         proto-google-cloud-datastream-v1
-        1.1.1
+        1.2.0
       
       
         com.google.api.grpc
         grpc-google-cloud-datastream-v1
-        1.1.1
+        1.2.0
       
       
         com.google.api.grpc
         grpc-google-cloud-datastream-v1alpha1
-        0.6.1
+        0.7.0
       
       
         com.google.api.grpc
         proto-google-cloud-datastream-v1alpha1
-        0.6.1
+        0.7.0
       
 
       
         com.google.cloud
         google-cloud-shared-dependencies
-        3.0.1
+        3.0.3
         pom
         import
       
@@ -133,7 +133,7 @@
       
         org.apache.maven.plugins
         maven-project-info-reports-plugin
-        3.4.0
+        3.4.1
         
           
             
@@ -160,7 +160,7 @@
       
         org.apache.maven.plugins
         maven-javadoc-plugin
-        3.4.0
+        3.4.1
         
           
             html
diff --git a/proto-google-cloud-datastream-v1/pom.xml b/proto-google-cloud-datastream-v1/pom.xml
index fde0dafb..a07200a0 100644
--- a/proto-google-cloud-datastream-v1/pom.xml
+++ b/proto-google-cloud-datastream-v1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-datastream-v1
-  1.1.1
+  1.2.0
   proto-google-cloud-datastream-v1
   Proto library for google-cloud-datastream
   
     com.google.cloud
     google-cloud-datastream-parent
-    1.1.1
+    1.2.0
   
   
     
diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java
new file mode 100644
index 00000000..f9fe309f
--- /dev/null
+++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java
@@ -0,0 +1,4212 @@
+/*
+ * Copyright 2020 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/datastream/v1/datastream_resources.proto
+
+package com.google.cloud.datastream.v1;
+
+/** Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig} */
+public final class BigQueryDestinationConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
+    // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig)
+    BigQueryDestinationConfigOrBuilder {
+  private static final long serialVersionUID = 0L;
+  // Use BigQueryDestinationConfig.newBuilder() to construct.
+  private BigQueryDestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+
+  private BigQueryDestinationConfig() {}
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    return new BigQueryDestinationConfig();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    return this.unknownFields;
+  }
+
+  private BigQueryDestinationConfig(
+      com.google.protobuf.CodedInputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    this();
+    if (extensionRegistry == null) {
+      throw new java.lang.NullPointerException();
+    }
+    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+        com.google.protobuf.UnknownFieldSet.newBuilder();
+    try {
+      boolean done = false;
+      while (!done) {
+        int tag = input.readTag();
+        switch (tag) {
+          case 0:
+            done = true;
+            break;
+          case 1610:
+            {
+              com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder
+                  subBuilder = null;
+              if (datasetConfigCase_ == 201) {
+                subBuilder =
+                    ((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)
+                            datasetConfig_)
+                        .toBuilder();
+              }
+              datasetConfig_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)
+                        datasetConfig_);
+                datasetConfig_ = subBuilder.buildPartial();
+              }
+              datasetConfigCase_ = 201;
+              break;
+            }
+          case 1618:
+            {
+              com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets
+                      .Builder
+                  subBuilder = null;
+              if (datasetConfigCase_ == 202) {
+                subBuilder =
+                    ((com.google.cloud.datastream.v1.BigQueryDestinationConfig
+                                .SourceHierarchyDatasets)
+                            datasetConfig_)
+                        .toBuilder();
+              }
+              datasetConfig_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.BigQueryDestinationConfig
+                          .SourceHierarchyDatasets.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datastream.v1.BigQueryDestinationConfig
+                            .SourceHierarchyDatasets)
+                        datasetConfig_);
+                datasetConfig_ = subBuilder.buildPartial();
+              }
+              datasetConfigCase_ = 202;
+              break;
+            }
+          case 2402:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (dataFreshness_ != null) {
+                subBuilder = dataFreshness_.toBuilder();
+              }
+              dataFreshness_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(dataFreshness_);
+                dataFreshness_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
+            }
+        }
+      }
+    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+      throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+    } catch (java.io.IOException e) {
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+    } finally {
+      this.unknownFields = unknownFields.build();
+      makeExtensionsImmutable();
+    }
+  }
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor;
+  }
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            com.google.cloud.datastream.v1.BigQueryDestinationConfig.class,
+            com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder.class);
+  }
+
+  public interface SingleTargetDatasetOrBuilder
+      extends
+      // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)
+      com.google.protobuf.MessageOrBuilder {
+
+    /**
+     * string dataset_id = 1;
+     *
+     * @return The datasetId.
+     */
+    java.lang.String getDatasetId();
+    /**
+     * string dataset_id = 1;
+     *
+     * @return The bytes for datasetId.
+     */
+    com.google.protobuf.ByteString getDatasetIdBytes();
+  }
+  /**
+   *
+   *
+   * 
+   * A single target dataset to which all data will be streamed.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset} + */ + public static final class SingleTargetDataset extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + SingleTargetDatasetOrBuilder { + private static final long serialVersionUID = 0L; + // Use SingleTargetDataset.newBuilder() to construct. + private SingleTargetDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SingleTargetDataset() { + datasetId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SingleTargetDataset(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SingleTargetDataset( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + datasetId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + .class); + } + + public static final int DATASET_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object datasetId_; + /** + * string dataset_id = 1; + * + * @return The datasetId. + */ + @java.lang.Override + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + 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(); + datasetId_ = s; + return s; + } + } + /** + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(datasetId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datasetId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) obj; + + if (!getDatasetId().equals(other.getDatasetId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + 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.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + 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.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + 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.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + 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.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + 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.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset 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 single target dataset to which all data will be streamed.
+     * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + .class); + } + + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + datasetId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset(this); + result.datasetId_ = datasetId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) { + return mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset other) { + if (other + == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance()) return this; + if (!other.getDatasetId().isEmpty()) { + datasetId_ = other.datasetId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object datasetId_ = ""; + /** + * string dataset_id = 1; + * + * @return The datasetId. + */ + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string dataset_id = 1; + * + * @param value The datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + datasetId_ = value; + onChanged(); + return this; + } + /** + * string dataset_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearDatasetId() { + + datasetId_ = getDefaultInstance().getDatasetId(); + onChanged(); + return this; + } + /** + * string dataset_id = 1; + * + * @param value The bytes for datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + datasetId_ = value; + 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.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SingleTargetDataset + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset(); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleTargetDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SingleTargetDataset(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SourceHierarchyDatasetsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + com.google.protobuf.MessageOrBuilder { + + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * + * @return Whether the datasetTemplate field is set. + */ + boolean hasDatasetTemplate(); + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * + * @return The datasetTemplate. + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate + getDatasetTemplate(); + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder + getDatasetTemplateOrBuilder(); + } + /** + * + * + *
+   * Destination datasets are created so that hierarchy of the destination data
+   * objects matches the source hierarchy.
+   * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets} + */ + public static final class SourceHierarchyDatasets extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + SourceHierarchyDatasetsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SourceHierarchyDatasets.newBuilder() to construct. + private SourceHierarchyDatasets(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SourceHierarchyDatasets() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SourceHierarchyDatasets(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SourceHierarchyDatasets( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder + subBuilder = null; + if (datasetTemplate_ != null) { + subBuilder = datasetTemplate_.toBuilder(); + } + datasetTemplate_ = + input.readMessage( + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets.DatasetTemplate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datasetTemplate_); + datasetTemplate_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder.class); + } + + public interface DatasetTemplateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The geographic location where the dataset should reside. See
+       * https://cloud.google.com/bigquery/docs/locations for supported
+       * locations.
+       * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+       * Required. The geographic location where the dataset should reside. See
+       * https://cloud.google.com/bigquery/docs/locations for supported
+       * locations.
+       * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+       * If supplied, every created dataset will have its name prefixed by the
+       * provided value. The prefix and name will be separated by an underscore.
+       * i.e. <prefix>_<dataset_name>.
+       * 
+ * + * string dataset_id_prefix = 2; + * + * @return The datasetIdPrefix. + */ + java.lang.String getDatasetIdPrefix(); + /** + * + * + *
+       * If supplied, every created dataset will have its name prefixed by the
+       * provided value. The prefix and name will be separated by an underscore.
+       * i.e. <prefix>_<dataset_name>.
+       * 
+ * + * string dataset_id_prefix = 2; + * + * @return The bytes for datasetIdPrefix. + */ + com.google.protobuf.ByteString getDatasetIdPrefixBytes(); + + /** + * + * + *
+       * Describes the Cloud KMS encryption key that will be used to
+       * protect destination BigQuery table. The BigQuery Service Account
+       * associated with your project requires access to this encryption key.
+       * i.e.
+       * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+       * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+       * for more information.
+       * 
+ * + * string kms_key_name = 3; + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + /** + * + * + *
+       * Describes the Cloud KMS encryption key that will be used to
+       * protect destination BigQuery table. The BigQuery Service Account
+       * associated with your project requires access to this encryption key.
+       * i.e.
+       * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+       * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+       * for more information.
+       * 
+ * + * string kms_key_name = 3; + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); + } + /** + * + * + *
+     * Dataset template used for dynamic dataset creation.
+     * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate} + */ + public static final class DatasetTemplate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) + DatasetTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetTemplate.newBuilder() to construct. + private DatasetTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatasetTemplate() { + location_ = ""; + datasetIdPrefix_ = ""; + kmsKeyName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatasetTemplate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DatasetTemplate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + location_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + datasetIdPrefix_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + kmsKeyName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder.class); + } + + public static final int LOCATION_FIELD_NUMBER = 1; + private volatile java.lang.Object location_; + /** + * + * + *
+       * Required. The geographic location where the dataset should reside. See
+       * https://cloud.google.com/bigquery/docs/locations for supported
+       * locations.
+       * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + /** + * + * + *
+       * Required. The geographic location where the dataset should reside. See
+       * https://cloud.google.com/bigquery/docs/locations for supported
+       * locations.
+       * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_ID_PREFIX_FIELD_NUMBER = 2; + private volatile java.lang.Object datasetIdPrefix_; + /** + * + * + *
+       * If supplied, every created dataset will have its name prefixed by the
+       * provided value. The prefix and name will be separated by an underscore.
+       * i.e. <prefix>_<dataset_name>.
+       * 
+ * + * string dataset_id_prefix = 2; + * + * @return The datasetIdPrefix. + */ + @java.lang.Override + public java.lang.String getDatasetIdPrefix() { + java.lang.Object ref = datasetIdPrefix_; + 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(); + datasetIdPrefix_ = s; + return s; + } + } + /** + * + * + *
+       * If supplied, every created dataset will have its name prefixed by the
+       * provided value. The prefix and name will be separated by an underscore.
+       * i.e. <prefix>_<dataset_name>.
+       * 
+ * + * string dataset_id_prefix = 2; + * + * @return The bytes for datasetIdPrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetIdPrefixBytes() { + java.lang.Object ref = datasetIdPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetIdPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object kmsKeyName_; + /** + * + * + *
+       * Describes the Cloud KMS encryption key that will be used to
+       * protect destination BigQuery table. The BigQuery Service Account
+       * associated with your project requires access to this encryption key.
+       * i.e.
+       * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+       * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+       * for more information.
+       * 
+ * + * string kms_key_name = 3; + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + 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(); + kmsKeyName_ = s; + return s; + } + } + /** + * + * + *
+       * Describes the Cloud KMS encryption key that will be used to
+       * protect destination BigQuery table. The BigQuery Service Account
+       * associated with your project requires access to this encryption key.
+       * i.e.
+       * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+       * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+       * for more information.
+       * 
+ * + * string kms_key_name = 3; + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetIdPrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, datasetIdPrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kmsKeyName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetIdPrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, datasetIdPrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kmsKeyName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate) + obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (!getDatasetIdPrefix().equals(other.getDatasetIdPrefix())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + DATASET_ID_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getDatasetIdPrefix().hashCode(); + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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; + } + /** + * + * + *
+       * Dataset template used for dynamic dataset creation.
+       * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + location_ = ""; + + datasetIdPrefix_ = ""; + + kmsKeyName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets.DatasetTemplate(this); + result.location_ = location_; + result.datasetIdPrefix_ = datasetIdPrefix_; + result.kmsKeyName_ = kmsKeyName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate) { + return mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + other) { + if (other + == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance()) return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (!other.getDatasetIdPrefix().isEmpty()) { + datasetIdPrefix_ = other.datasetIdPrefix_; + onChanged(); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object location_ = ""; + /** + * + * + *
+         * Required. The geographic location where the dataset should reside. See
+         * https://cloud.google.com/bigquery/docs/locations for supported
+         * locations.
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Required. The geographic location where the dataset should reside. See
+         * https://cloud.google.com/bigquery/docs/locations for supported
+         * locations.
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Required. The geographic location where the dataset should reside. See
+         * https://cloud.google.com/bigquery/docs/locations for supported
+         * locations.
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The geographic location where the dataset should reside. See
+         * https://cloud.google.com/bigquery/docs/locations for supported
+         * locations.
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The geographic location where the dataset should reside. See
+         * https://cloud.google.com/bigquery/docs/locations for supported
+         * locations.
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private java.lang.Object datasetIdPrefix_ = ""; + /** + * + * + *
+         * If supplied, every created dataset will have its name prefixed by the
+         * provided value. The prefix and name will be separated by an underscore.
+         * i.e. <prefix>_<dataset_name>.
+         * 
+ * + * string dataset_id_prefix = 2; + * + * @return The datasetIdPrefix. + */ + public java.lang.String getDatasetIdPrefix() { + java.lang.Object ref = datasetIdPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetIdPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * If supplied, every created dataset will have its name prefixed by the
+         * provided value. The prefix and name will be separated by an underscore.
+         * i.e. <prefix>_<dataset_name>.
+         * 
+ * + * string dataset_id_prefix = 2; + * + * @return The bytes for datasetIdPrefix. + */ + public com.google.protobuf.ByteString getDatasetIdPrefixBytes() { + java.lang.Object ref = datasetIdPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetIdPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * If supplied, every created dataset will have its name prefixed by the
+         * provided value. The prefix and name will be separated by an underscore.
+         * i.e. <prefix>_<dataset_name>.
+         * 
+ * + * string dataset_id_prefix = 2; + * + * @param value The datasetIdPrefix to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + datasetIdPrefix_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * If supplied, every created dataset will have its name prefixed by the
+         * provided value. The prefix and name will be separated by an underscore.
+         * i.e. <prefix>_<dataset_name>.
+         * 
+ * + * string dataset_id_prefix = 2; + * + * @return This builder for chaining. + */ + public Builder clearDatasetIdPrefix() { + + datasetIdPrefix_ = getDefaultInstance().getDatasetIdPrefix(); + onChanged(); + return this; + } + /** + * + * + *
+         * If supplied, every created dataset will have its name prefixed by the
+         * provided value. The prefix and name will be separated by an underscore.
+         * i.e. <prefix>_<dataset_name>.
+         * 
+ * + * string dataset_id_prefix = 2; + * + * @param value The bytes for datasetIdPrefix to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + datasetIdPrefix_ = value; + onChanged(); + return this; + } + + private java.lang.Object kmsKeyName_ = ""; + /** + * + * + *
+         * Describes the Cloud KMS encryption key that will be used to
+         * protect destination BigQuery table. The BigQuery Service Account
+         * associated with your project requires access to this encryption key.
+         * i.e.
+         * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+         * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+         * for more information.
+         * 
+ * + * string kms_key_name = 3; + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Describes the Cloud KMS encryption key that will be used to
+         * protect destination BigQuery table. The BigQuery Service Account
+         * associated with your project requires access to this encryption key.
+         * i.e.
+         * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+         * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+         * for more information.
+         * 
+ * + * string kms_key_name = 3; + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Describes the Cloud KMS encryption key that will be used to
+         * protect destination BigQuery table. The BigQuery Service Account
+         * associated with your project requires access to this encryption key.
+         * i.e.
+         * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+         * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+         * for more information.
+         * 
+ * + * string kms_key_name = 3; + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kmsKeyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Describes the Cloud KMS encryption key that will be used to
+         * protect destination BigQuery table. The BigQuery Service Account
+         * associated with your project requires access to this encryption key.
+         * i.e.
+         * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+         * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+         * for more information.
+         * 
+ * + * string kms_key_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + onChanged(); + return this; + } + /** + * + * + *
+         * Describes the Cloud KMS encryption key that will be used to
+         * protect destination BigQuery table. The BigQuery Service Account
+         * associated with your project requires access to this encryption key.
+         * i.e.
+         * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+         * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+         * for more information.
+         * 
+ * + * string kms_key_name = 3; + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kmsKeyName_ = value; + 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.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets.DatasetTemplate + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate(); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DatasetTemplate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DATASET_TEMPLATE_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + datasetTemplate_; + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * + * @return Whether the datasetTemplate field is set. + */ + @java.lang.Override + public boolean hasDatasetTemplate() { + return datasetTemplate_ != null; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * + * @return The datasetTemplate. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDatasetTemplate() { + return datasetTemplate_ == null + ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance() + : datasetTemplate_; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder + getDatasetTemplateOrBuilder() { + return getDatasetTemplate(); + } + + 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 (datasetTemplate_ != null) { + output.writeMessage(2, getDatasetTemplate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datasetTemplate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDatasetTemplate()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) obj; + + if (hasDatasetTemplate() != other.hasDatasetTemplate()) return false; + if (hasDatasetTemplate()) { + if (!getDatasetTemplate().equals(other.getDatasetTemplate())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDatasetTemplate()) { + hash = (37 * hash) + DATASET_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getDatasetTemplate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + 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.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + 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.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + 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.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + 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.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + 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.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + 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; + } + /** + * + * + *
+     * Destination datasets are created so that hierarchy of the destination data
+     * objects matches the source hierarchy.
+     * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetTemplateBuilder_ == null) { + datasetTemplate_ = null; + } else { + datasetTemplate_ = null; + datasetTemplateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets( + this); + if (datasetTemplateBuilder_ == null) { + result.datasetTemplate_ = datasetTemplate_; + } else { + result.datasetTemplate_ = datasetTemplateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) { + return mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets other) { + if (other + == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance()) return this; + if (other.hasDatasetTemplate()) { + mergeDatasetTemplate(other.getDatasetTemplate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + datasetTemplate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder> + datasetTemplateBuilder_; + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * + * @return Whether the datasetTemplate field is set. + */ + public boolean hasDatasetTemplate() { + return datasetTemplateBuilder_ != null || datasetTemplate_ != null; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * + * @return The datasetTemplate. + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDatasetTemplate() { + if (datasetTemplateBuilder_ == null) { + return datasetTemplate_ == null + ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance() + : datasetTemplate_; + } else { + return datasetTemplateBuilder_.getMessage(); + } + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + public Builder setDatasetTemplate( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + value) { + if (datasetTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetTemplate_ = value; + onChanged(); + } else { + datasetTemplateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + public Builder setDatasetTemplate( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder + builderForValue) { + if (datasetTemplateBuilder_ == null) { + datasetTemplate_ = builderForValue.build(); + onChanged(); + } else { + datasetTemplateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + public Builder mergeDatasetTemplate( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + value) { + if (datasetTemplateBuilder_ == null) { + if (datasetTemplate_ != null) { + datasetTemplate_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.newBuilder(datasetTemplate_) + .mergeFrom(value) + .buildPartial(); + } else { + datasetTemplate_ = value; + } + onChanged(); + } else { + datasetTemplateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + public Builder clearDatasetTemplate() { + if (datasetTemplateBuilder_ == null) { + datasetTemplate_ = null; + onChanged(); + } else { + datasetTemplate_ = null; + datasetTemplateBuilder_ = null; + } + + return this; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder + getDatasetTemplateBuilder() { + + onChanged(); + return getDatasetTemplateFieldBuilder().getBuilder(); + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder + getDatasetTemplateOrBuilder() { + if (datasetTemplateBuilder_ != null) { + return datasetTemplateBuilder_.getMessageOrBuilder(); + } else { + return datasetTemplate_ == null + ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance() + : datasetTemplate_; + } + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder> + getDatasetTemplateFieldBuilder() { + if (datasetTemplateBuilder_ == null) { + datasetTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder>( + getDatasetTemplate(), getParentForChildren(), isClean()); + datasetTemplate_ = null; + } + return datasetTemplateBuilder_; + } + + @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.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets(); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceHierarchyDatasets parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SourceHierarchyDatasets(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int datasetConfigCase_ = 0; + private java.lang.Object datasetConfig_; + + public enum DatasetConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SINGLE_TARGET_DATASET(201), + SOURCE_HIERARCHY_DATASETS(202), + DATASETCONFIG_NOT_SET(0); + private final int value; + + private DatasetConfigCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DatasetConfigCase valueOf(int value) { + return forNumber(value); + } + + public static DatasetConfigCase forNumber(int value) { + switch (value) { + case 201: + return SINGLE_TARGET_DATASET; + case 202: + return SOURCE_HIERARCHY_DATASETS; + case 0: + return DATASETCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DatasetConfigCase getDatasetConfigCase() { + return DatasetConfigCase.forNumber(datasetConfigCase_); + } + + public static final int SINGLE_TARGET_DATASET_FIELD_NUMBER = 201; + /** + * + * + *
+   * Single destination dataset.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * + * @return Whether the singleTargetDataset field is set. + */ + @java.lang.Override + public boolean hasSingleTargetDataset() { + return datasetConfigCase_ == 201; + } + /** + * + * + *
+   * Single destination dataset.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * + * @return The singleTargetDataset. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getSingleTargetDataset() { + if (datasetConfigCase_ == 201) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } + /** + * + * + *
+   * Single destination dataset.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder + getSingleTargetDatasetOrBuilder() { + if (datasetConfigCase_ == 201) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } + + public static final int SOURCE_HIERARCHY_DATASETS_FIELD_NUMBER = 202; + /** + * + * + *
+   * Source hierarchy datasets.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * + * @return Whether the sourceHierarchyDatasets field is set. + */ + @java.lang.Override + public boolean hasSourceHierarchyDatasets() { + return datasetConfigCase_ == 202; + } + /** + * + * + *
+   * Source hierarchy datasets.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * + * @return The sourceHierarchyDatasets. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getSourceHierarchyDatasets() { + if (datasetConfigCase_ == 202) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } + /** + * + * + *
+   * Source hierarchy datasets.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder + getSourceHierarchyDatasetsOrBuilder() { + if (datasetConfigCase_ == 202) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } + + public static final int DATA_FRESHNESS_FIELD_NUMBER = 300; + private com.google.protobuf.Duration dataFreshness_; + /** + * + * + *
+   * The guaranteed data freshness (in seconds) when querying tables created by
+   * the stream. Editing this field will only affect new tables created in the
+   * future, but existing tables will not be impacted. Lower values mean that
+   * queries will return fresher data, but may result in higher cost.
+   * 
+ * + * .google.protobuf.Duration data_freshness = 300; + * + * @return Whether the dataFreshness field is set. + */ + @java.lang.Override + public boolean hasDataFreshness() { + return dataFreshness_ != null; + } + /** + * + * + *
+   * The guaranteed data freshness (in seconds) when querying tables created by
+   * the stream. Editing this field will only affect new tables created in the
+   * future, but existing tables will not be impacted. Lower values mean that
+   * queries will return fresher data, but may result in higher cost.
+   * 
+ * + * .google.protobuf.Duration data_freshness = 300; + * + * @return The dataFreshness. + */ + @java.lang.Override + public com.google.protobuf.Duration getDataFreshness() { + return dataFreshness_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dataFreshness_; + } + /** + * + * + *
+   * The guaranteed data freshness (in seconds) when querying tables created by
+   * the stream. Editing this field will only affect new tables created in the
+   * future, but existing tables will not be impacted. Lower values mean that
+   * queries will return fresher data, but may result in higher cost.
+   * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() { + return getDataFreshness(); + } + + 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 (datasetConfigCase_ == 201) { + output.writeMessage( + 201, + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_); + } + if (datasetConfigCase_ == 202) { + output.writeMessage( + 202, + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_); + } + if (dataFreshness_ != null) { + output.writeMessage(300, getDataFreshness()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datasetConfigCase_ == 201) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 201, + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_); + } + if (datasetConfigCase_ == 202) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 202, + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_); + } + if (dataFreshness_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(300, getDataFreshness()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryDestinationConfig other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) obj; + + if (hasDataFreshness() != other.hasDataFreshness()) return false; + if (hasDataFreshness()) { + if (!getDataFreshness().equals(other.getDataFreshness())) return false; + } + if (!getDatasetConfigCase().equals(other.getDatasetConfigCase())) return false; + switch (datasetConfigCase_) { + case 201: + if (!getSingleTargetDataset().equals(other.getSingleTargetDataset())) return false; + break; + case 202: + if (!getSourceHierarchyDatasets().equals(other.getSourceHierarchyDatasets())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataFreshness()) { + hash = (37 * hash) + DATA_FRESHNESS_FIELD_NUMBER; + hash = (53 * hash) + getDataFreshness().hashCode(); + } + switch (datasetConfigCase_) { + case 201: + hash = (37 * hash) + SINGLE_TARGET_DATASET_FIELD_NUMBER; + hash = (53 * hash) + getSingleTargetDataset().hashCode(); + break; + case 202: + hash = (37 * hash) + SOURCE_HIERARCHY_DATASETS_FIELD_NUMBER; + hash = (53 * hash) + getSourceHierarchyDatasets().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig 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.datastream.v1.BigQueryDestinationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig 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.datastream.v1.BigQueryDestinationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig 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.datastream.v1.BigQueryDestinationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig 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.datastream.v1.BigQueryDestinationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig 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.datastream.v1.BigQueryDestinationConfig 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; + } + /** Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig) + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.BigQueryDestinationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataFreshnessBuilder_ == null) { + dataFreshness_ = null; + } else { + dataFreshness_ = null; + dataFreshnessBuilder_ = null; + } + datasetConfigCase_ = 0; + datasetConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig(this); + if (datasetConfigCase_ == 201) { + if (singleTargetDatasetBuilder_ == null) { + result.datasetConfig_ = datasetConfig_; + } else { + result.datasetConfig_ = singleTargetDatasetBuilder_.build(); + } + } + if (datasetConfigCase_ == 202) { + if (sourceHierarchyDatasetsBuilder_ == null) { + result.datasetConfig_ = datasetConfig_; + } else { + result.datasetConfig_ = sourceHierarchyDatasetsBuilder_.build(); + } + } + if (dataFreshnessBuilder_ == null) { + result.dataFreshness_ = dataFreshness_; + } else { + result.dataFreshness_ = dataFreshnessBuilder_.build(); + } + result.datasetConfigCase_ = datasetConfigCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig) { + return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryDestinationConfig other) { + if (other == com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance()) + return this; + if (other.hasDataFreshness()) { + mergeDataFreshness(other.getDataFreshness()); + } + switch (other.getDatasetConfigCase()) { + case SINGLE_TARGET_DATASET: + { + mergeSingleTargetDataset(other.getSingleTargetDataset()); + break; + } + case SOURCE_HIERARCHY_DATASETS: + { + mergeSourceHierarchyDatasets(other.getSourceHierarchyDatasets()); + break; + } + case DATASETCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.BigQueryDestinationConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int datasetConfigCase_ = 0; + private java.lang.Object datasetConfig_; + + public DatasetConfigCase getDatasetConfigCase() { + return DatasetConfigCase.forNumber(datasetConfigCase_); + } + + public Builder clearDatasetConfig() { + datasetConfigCase_ = 0; + datasetConfig_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder> + singleTargetDatasetBuilder_; + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * + * @return Whether the singleTargetDataset field is set. + */ + @java.lang.Override + public boolean hasSingleTargetDataset() { + return datasetConfigCase_ == 201; + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * + * @return The singleTargetDataset. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getSingleTargetDataset() { + if (singleTargetDatasetBuilder_ == null) { + if (datasetConfigCase_ == 201) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } else { + if (datasetConfigCase_ == 201) { + return singleTargetDatasetBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + public Builder setSingleTargetDataset( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset value) { + if (singleTargetDatasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetConfig_ = value; + onChanged(); + } else { + singleTargetDatasetBuilder_.setMessage(value); + } + datasetConfigCase_ = 201; + return this; + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + public Builder setSingleTargetDataset( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + builderForValue) { + if (singleTargetDatasetBuilder_ == null) { + datasetConfig_ = builderForValue.build(); + onChanged(); + } else { + singleTargetDatasetBuilder_.setMessage(builderForValue.build()); + } + datasetConfigCase_ = 201; + return this; + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + public Builder mergeSingleTargetDataset( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset value) { + if (singleTargetDatasetBuilder_ == null) { + if (datasetConfigCase_ == 201 + && datasetConfig_ + != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance()) { + datasetConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .newBuilder( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + datasetConfig_ = value; + } + onChanged(); + } else { + if (datasetConfigCase_ == 201) { + singleTargetDatasetBuilder_.mergeFrom(value); + } else { + singleTargetDatasetBuilder_.setMessage(value); + } + } + datasetConfigCase_ = 201; + return this; + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + public Builder clearSingleTargetDataset() { + if (singleTargetDatasetBuilder_ == null) { + if (datasetConfigCase_ == 201) { + datasetConfigCase_ = 0; + datasetConfig_ = null; + onChanged(); + } + } else { + if (datasetConfigCase_ == 201) { + datasetConfigCase_ = 0; + datasetConfig_ = null; + } + singleTargetDatasetBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + getSingleTargetDatasetBuilder() { + return getSingleTargetDatasetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder + getSingleTargetDatasetOrBuilder() { + if ((datasetConfigCase_ == 201) && (singleTargetDatasetBuilder_ != null)) { + return singleTargetDatasetBuilder_.getMessageOrBuilder(); + } else { + if (datasetConfigCase_ == 201) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder> + getSingleTargetDatasetFieldBuilder() { + if (singleTargetDatasetBuilder_ == null) { + if (!(datasetConfigCase_ == 201)) { + datasetConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } + singleTargetDatasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SingleTargetDatasetOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_, + getParentForChildren(), + isClean()); + datasetConfig_ = null; + } + datasetConfigCase_ = 201; + onChanged(); + ; + return singleTargetDatasetBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasetsOrBuilder> + sourceHierarchyDatasetsBuilder_; + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * + * @return Whether the sourceHierarchyDatasets field is set. + */ + @java.lang.Override + public boolean hasSourceHierarchyDatasets() { + return datasetConfigCase_ == 202; + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * + * @return The sourceHierarchyDatasets. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getSourceHierarchyDatasets() { + if (sourceHierarchyDatasetsBuilder_ == null) { + if (datasetConfigCase_ == 202) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } else { + if (datasetConfigCase_ == 202) { + return sourceHierarchyDatasetsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + public Builder setSourceHierarchyDatasets( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets value) { + if (sourceHierarchyDatasetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetConfig_ = value; + onChanged(); + } else { + sourceHierarchyDatasetsBuilder_.setMessage(value); + } + datasetConfigCase_ = 202; + return this; + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + public Builder setSourceHierarchyDatasets( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder + builderForValue) { + if (sourceHierarchyDatasetsBuilder_ == null) { + datasetConfig_ = builderForValue.build(); + onChanged(); + } else { + sourceHierarchyDatasetsBuilder_.setMessage(builderForValue.build()); + } + datasetConfigCase_ = 202; + return this; + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + public Builder mergeSourceHierarchyDatasets( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets value) { + if (sourceHierarchyDatasetsBuilder_ == null) { + if (datasetConfigCase_ == 202 + && datasetConfig_ + != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance()) { + datasetConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .newBuilder( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets) + datasetConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + datasetConfig_ = value; + } + onChanged(); + } else { + if (datasetConfigCase_ == 202) { + sourceHierarchyDatasetsBuilder_.mergeFrom(value); + } else { + sourceHierarchyDatasetsBuilder_.setMessage(value); + } + } + datasetConfigCase_ = 202; + return this; + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + public Builder clearSourceHierarchyDatasets() { + if (sourceHierarchyDatasetsBuilder_ == null) { + if (datasetConfigCase_ == 202) { + datasetConfigCase_ = 0; + datasetConfig_ = null; + onChanged(); + } + } else { + if (datasetConfigCase_ == 202) { + datasetConfigCase_ = 0; + datasetConfig_ = null; + } + sourceHierarchyDatasetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder + getSourceHierarchyDatasetsBuilder() { + return getSourceHierarchyDatasetsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder + getSourceHierarchyDatasetsOrBuilder() { + if ((datasetConfigCase_ == 202) && (sourceHierarchyDatasetsBuilder_ != null)) { + return sourceHierarchyDatasetsBuilder_.getMessageOrBuilder(); + } else { + if (datasetConfigCase_ == 202) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasetsOrBuilder> + getSourceHierarchyDatasetsFieldBuilder() { + if (sourceHierarchyDatasetsBuilder_ == null) { + if (!(datasetConfigCase_ == 202)) { + datasetConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } + sourceHierarchyDatasetsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasetsOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_, + getParentForChildren(), + isClean()); + datasetConfig_ = null; + } + datasetConfigCase_ = 202; + onChanged(); + ; + return sourceHierarchyDatasetsBuilder_; + } + + private com.google.protobuf.Duration dataFreshness_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + dataFreshnessBuilder_; + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + * + * @return Whether the dataFreshness field is set. + */ + public boolean hasDataFreshness() { + return dataFreshnessBuilder_ != null || dataFreshness_ != null; + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + * + * @return The dataFreshness. + */ + public com.google.protobuf.Duration getDataFreshness() { + if (dataFreshnessBuilder_ == null) { + return dataFreshness_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dataFreshness_; + } else { + return dataFreshnessBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + public Builder setDataFreshness(com.google.protobuf.Duration value) { + if (dataFreshnessBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataFreshness_ = value; + onChanged(); + } else { + dataFreshnessBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + public Builder setDataFreshness(com.google.protobuf.Duration.Builder builderForValue) { + if (dataFreshnessBuilder_ == null) { + dataFreshness_ = builderForValue.build(); + onChanged(); + } else { + dataFreshnessBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + public Builder mergeDataFreshness(com.google.protobuf.Duration value) { + if (dataFreshnessBuilder_ == null) { + if (dataFreshness_ != null) { + dataFreshness_ = + com.google.protobuf.Duration.newBuilder(dataFreshness_) + .mergeFrom(value) + .buildPartial(); + } else { + dataFreshness_ = value; + } + onChanged(); + } else { + dataFreshnessBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + public Builder clearDataFreshness() { + if (dataFreshnessBuilder_ == null) { + dataFreshness_ = null; + onChanged(); + } else { + dataFreshness_ = null; + dataFreshnessBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + public com.google.protobuf.Duration.Builder getDataFreshnessBuilder() { + + onChanged(); + return getDataFreshnessFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() { + if (dataFreshnessBuilder_ != null) { + return dataFreshnessBuilder_.getMessageOrBuilder(); + } else { + return dataFreshness_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dataFreshness_; + } + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getDataFreshnessFieldBuilder() { + if (dataFreshnessBuilder_ == null) { + dataFreshnessBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDataFreshness(), getParentForChildren(), isClean()); + dataFreshness_ = null; + } + return dataFreshnessBuilder_; + } + + @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.datastream.v1.BigQueryDestinationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig) + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryDestinationConfig(); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestinationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQueryDestinationConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java new file mode 100644 index 00000000..a9045b1c --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface BigQueryDestinationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Single destination dataset.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * + * @return Whether the singleTargetDataset field is set. + */ + boolean hasSingleTargetDataset(); + /** + * + * + *
+   * Single destination dataset.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * + * @return The singleTargetDataset. + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getSingleTargetDataset(); + /** + * + * + *
+   * Single destination dataset.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder + getSingleTargetDatasetOrBuilder(); + + /** + * + * + *
+   * Source hierarchy datasets.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * + * @return Whether the sourceHierarchyDatasets field is set. + */ + boolean hasSourceHierarchyDatasets(); + /** + * + * + *
+   * Source hierarchy datasets.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * + * @return The sourceHierarchyDatasets. + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getSourceHierarchyDatasets(); + /** + * + * + *
+   * Source hierarchy datasets.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder + getSourceHierarchyDatasetsOrBuilder(); + + /** + * + * + *
+   * The guaranteed data freshness (in seconds) when querying tables created by
+   * the stream. Editing this field will only affect new tables created in the
+   * future, but existing tables will not be impacted. Lower values mean that
+   * queries will return fresher data, but may result in higher cost.
+   * 
+ * + * .google.protobuf.Duration data_freshness = 300; + * + * @return Whether the dataFreshness field is set. + */ + boolean hasDataFreshness(); + /** + * + * + *
+   * The guaranteed data freshness (in seconds) when querying tables created by
+   * the stream. Editing this field will only affect new tables created in the
+   * future, but existing tables will not be impacted. Lower values mean that
+   * queries will return fresher data, but may result in higher cost.
+   * 
+ * + * .google.protobuf.Duration data_freshness = 300; + * + * @return The dataFreshness. + */ + com.google.protobuf.Duration getDataFreshness(); + /** + * + * + *
+   * The guaranteed data freshness (in seconds) when querying tables created by
+   * the stream. Editing this field will only affect new tables created in the
+   * future, but existing tables will not be impacted. Lower values mean that
+   * queries will return fresher data, but may result in higher cost.
+   * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder(); + + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.DatasetConfigCase + getDatasetConfigCase(); +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java new file mode 100644 index 00000000..5b4ae7a2 --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java @@ -0,0 +1,456 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * BigQuery warehouse profile.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryProfile} + */ +public final class BigQueryProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryProfile) + BigQueryProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryProfile.newBuilder() to construct. + private BigQueryProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryProfile() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryProfile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BigQueryProfile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryProfile.class, + com.google.cloud.datastream.v1.BigQueryProfile.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryProfile)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryProfile other = + (com.google.cloud.datastream.v1.BigQueryProfile) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile 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.datastream.v1.BigQueryProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile 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.datastream.v1.BigQueryProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile 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.datastream.v1.BigQueryProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile 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.datastream.v1.BigQueryProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile 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.datastream.v1.BigQueryProfile 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; + } + /** + * + * + *
+   * BigQuery warehouse profile.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryProfile) + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryProfile.class, + com.google.cloud.datastream.v1.BigQueryProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.BigQueryProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfile build() { + com.google.cloud.datastream.v1.BigQueryProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfile buildPartial() { + com.google.cloud.datastream.v1.BigQueryProfile result = + new com.google.cloud.datastream.v1.BigQueryProfile(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.BigQueryProfile) { + return mergeFrom((com.google.cloud.datastream.v1.BigQueryProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryProfile other) { + if (other == com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.BigQueryProfile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.BigQueryProfile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.datastream.v1.BigQueryProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryProfile) + private static final com.google.cloud.datastream.v1.BigQueryProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryProfile(); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQueryProfile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java new file mode 100644 index 00000000..65ad646b --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface BigQueryProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryProfile) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java index d6519750..74baca41 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java @@ -178,6 +178,40 @@ private ConnectionProfile( profileCase_ = 102; break; } + case 826: + { + com.google.cloud.datastream.v1.BigQueryProfile.Builder subBuilder = null; + if (profileCase_ == 103) { + subBuilder = + ((com.google.cloud.datastream.v1.BigQueryProfile) profile_).toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.datastream.v1.BigQueryProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.BigQueryProfile) profile_); + profile_ = subBuilder.buildPartial(); + } + profileCase_ = 103; + break; + } + case 834: + { + com.google.cloud.datastream.v1.PostgresqlProfile.Builder subBuilder = null; + if (profileCase_ == 104) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlProfile) profile_).toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlProfile) profile_); + profile_ = subBuilder.buildPartial(); + } + profileCase_ = 104; + break; + } case 1602: { com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder subBuilder = null; @@ -295,6 +329,8 @@ public enum ProfileCase ORACLE_PROFILE(100), GCS_PROFILE(101), MYSQL_PROFILE(102), + BIGQUERY_PROFILE(103), + POSTGRESQL_PROFILE(104), PROFILE_NOT_SET(0); private final int value; @@ -319,6 +355,10 @@ public static ProfileCase forNumber(int value) { return GCS_PROFILE; case 102: return MYSQL_PROFILE; + case 103: + return BIGQUERY_PROFILE; + case 104: + return POSTGRESQL_PROFILE; case 0: return PROFILE_NOT_SET; default: @@ -832,6 +872,108 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui return com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance(); } + public static final int BIGQUERY_PROFILE_FIELD_NUMBER = 103; + /** + * + * + *
+   * BigQuery Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * + * @return Whether the bigqueryProfile field is set. + */ + @java.lang.Override + public boolean hasBigqueryProfile() { + return profileCase_ == 103; + } + /** + * + * + *
+   * BigQuery Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * + * @return The bigqueryProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { + if (profileCase_ == 103) { + return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; + } + return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } + /** + * + * + *
+   * BigQuery Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfileOrBuilder() { + if (profileCase_ == 103) { + return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; + } + return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } + + public static final int POSTGRESQL_PROFILE_FIELD_NUMBER = 104; + /** + * + * + *
+   * PostgreSQL Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * + * @return Whether the postgresqlProfile field is set. + */ + @java.lang.Override + public boolean hasPostgresqlProfile() { + return profileCase_ == 104; + } + /** + * + * + *
+   * PostgreSQL Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * + * @return The postgresqlProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { + if (profileCase_ == 104) { + return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; + } + return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } + /** + * + * + *
+   * PostgreSQL Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlProfileOrBuilder() { + if (profileCase_ == 104) { + return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; + } + return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } + public static final int STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER = 200; /** * @@ -1035,6 +1177,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (profileCase_ == 102) { output.writeMessage(102, (com.google.cloud.datastream.v1.MysqlProfile) profile_); } + if (profileCase_ == 103) { + output.writeMessage(103, (com.google.cloud.datastream.v1.BigQueryProfile) profile_); + } + if (profileCase_ == 104) { + output.writeMessage(104, (com.google.cloud.datastream.v1.PostgresqlProfile) profile_); + } if (connectivityCase_ == 200) { output.writeMessage( 200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); @@ -1092,6 +1240,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 102, (com.google.cloud.datastream.v1.MysqlProfile) profile_); } + if (profileCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.datastream.v1.BigQueryProfile) profile_); + } + if (profileCase_ == 104) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 104, (com.google.cloud.datastream.v1.PostgresqlProfile) profile_); + } if (connectivityCase_ == 200) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1145,6 +1303,12 @@ public boolean equals(final java.lang.Object obj) { case 102: if (!getMysqlProfile().equals(other.getMysqlProfile())) return false; break; + case 103: + if (!getBigqueryProfile().equals(other.getBigqueryProfile())) return false; + break; + case 104: + if (!getPostgresqlProfile().equals(other.getPostgresqlProfile())) return false; + break; case 0: default: } @@ -1203,6 +1367,14 @@ public int hashCode() { hash = (37 * hash) + MYSQL_PROFILE_FIELD_NUMBER; hash = (53 * hash) + getMysqlProfile().hashCode(); break; + case 103: + hash = (37 * hash) + BIGQUERY_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryProfile().hashCode(); + break; + case 104: + hash = (37 * hash) + POSTGRESQL_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlProfile().hashCode(); + break; case 0: default: } @@ -1472,6 +1644,20 @@ public com.google.cloud.datastream.v1.ConnectionProfile buildPartial() { result.profile_ = mysqlProfileBuilder_.build(); } } + if (profileCase_ == 103) { + if (bigqueryProfileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = bigqueryProfileBuilder_.build(); + } + } + if (profileCase_ == 104) { + if (postgresqlProfileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = postgresqlProfileBuilder_.build(); + } + } if (connectivityCase_ == 200) { if (staticServiceIpConnectivityBuilder_ == null) { result.connectivity_ = connectivity_; @@ -1576,6 +1762,16 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ConnectionProfile other) mergeMysqlProfile(other.getMysqlProfile()); break; } + case BIGQUERY_PROFILE: + { + mergeBigqueryProfile(other.getBigqueryProfile()); + break; + } + case POSTGRESQL_PROFILE: + { + mergePostgresqlProfile(other.getPostgresqlProfile()); + break; + } case PROFILE_NOT_SET: { break; @@ -3063,6 +3259,427 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui return mysqlProfileBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryProfile, + com.google.cloud.datastream.v1.BigQueryProfile.Builder, + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder> + bigqueryProfileBuilder_; + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * + * @return Whether the bigqueryProfile field is set. + */ + @java.lang.Override + public boolean hasBigqueryProfile() { + return profileCase_ == 103; + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * + * @return The bigqueryProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { + if (bigqueryProfileBuilder_ == null) { + if (profileCase_ == 103) { + return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; + } + return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } else { + if (profileCase_ == 103) { + return bigqueryProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + public Builder setBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfile value) { + if (bigqueryProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + bigqueryProfileBuilder_.setMessage(value); + } + profileCase_ = 103; + return this; + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + public Builder setBigqueryProfile( + com.google.cloud.datastream.v1.BigQueryProfile.Builder builderForValue) { + if (bigqueryProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + bigqueryProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 103; + return this; + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + public Builder mergeBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfile value) { + if (bigqueryProfileBuilder_ == null) { + if (profileCase_ == 103 + && profile_ != com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.BigQueryProfile.newBuilder( + (com.google.cloud.datastream.v1.BigQueryProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 103) { + bigqueryProfileBuilder_.mergeFrom(value); + } else { + bigqueryProfileBuilder_.setMessage(value); + } + } + profileCase_ = 103; + return this; + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + public Builder clearBigqueryProfile() { + if (bigqueryProfileBuilder_ == null) { + if (profileCase_ == 103) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 103) { + profileCase_ = 0; + profile_ = null; + } + bigqueryProfileBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + public com.google.cloud.datastream.v1.BigQueryProfile.Builder getBigqueryProfileBuilder() { + return getBigqueryProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfileOrBuilder() { + if ((profileCase_ == 103) && (bigqueryProfileBuilder_ != null)) { + return bigqueryProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 103) { + return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; + } + return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryProfile, + com.google.cloud.datastream.v1.BigQueryProfile.Builder, + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder> + getBigqueryProfileFieldBuilder() { + if (bigqueryProfileBuilder_ == null) { + if (!(profileCase_ == 103)) { + profile_ = com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } + bigqueryProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryProfile, + com.google.cloud.datastream.v1.BigQueryProfile.Builder, + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 103; + onChanged(); + ; + return bigqueryProfileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlProfile, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder, + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder> + postgresqlProfileBuilder_; + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * + * @return Whether the postgresqlProfile field is set. + */ + @java.lang.Override + public boolean hasPostgresqlProfile() { + return profileCase_ == 104; + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * + * @return The postgresqlProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { + if (postgresqlProfileBuilder_ == null) { + if (profileCase_ == 104) { + return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; + } + return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } else { + if (profileCase_ == 104) { + return postgresqlProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + public Builder setPostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlProfile value) { + if (postgresqlProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + postgresqlProfileBuilder_.setMessage(value); + } + profileCase_ = 104; + return this; + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + public Builder setPostgresqlProfile( + com.google.cloud.datastream.v1.PostgresqlProfile.Builder builderForValue) { + if (postgresqlProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + postgresqlProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 104; + return this; + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + public Builder mergePostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlProfile value) { + if (postgresqlProfileBuilder_ == null) { + if (profileCase_ == 104 + && profile_ != com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.PostgresqlProfile.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 104) { + postgresqlProfileBuilder_.mergeFrom(value); + } else { + postgresqlProfileBuilder_.setMessage(value); + } + } + profileCase_ = 104; + return this; + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + public Builder clearPostgresqlProfile() { + if (postgresqlProfileBuilder_ == null) { + if (profileCase_ == 104) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 104) { + profileCase_ = 0; + profile_ = null; + } + postgresqlProfileBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlProfileBuilder() { + return getPostgresqlProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder + getPostgresqlProfileOrBuilder() { + if ((profileCase_ == 104) && (postgresqlProfileBuilder_ != null)) { + return postgresqlProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 104) { + return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; + } + return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlProfile, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder, + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder> + getPostgresqlProfileFieldBuilder() { + if (postgresqlProfileBuilder_ == null) { + if (!(profileCase_ == 104)) { + profile_ = com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } + postgresqlProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlProfile, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder, + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder>( + (com.google.cloud.datastream.v1.PostgresqlProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 104; + onChanged(); + ; + return postgresqlProfileBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java index 533c7ef2..73368d36 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java @@ -313,6 +313,76 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBuilder(); + /** + * + * + *
+   * BigQuery Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * + * @return Whether the bigqueryProfile field is set. + */ + boolean hasBigqueryProfile(); + /** + * + * + *
+   * BigQuery Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * + * @return The bigqueryProfile. + */ + com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile(); + /** + * + * + *
+   * BigQuery Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfileOrBuilder(); + + /** + * + * + *
+   * PostgreSQL Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * + * @return Whether the postgresqlProfile field is set. + */ + boolean hasPostgresqlProfile(); + /** + * + * + *
+   * PostgreSQL Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * + * @return The postgresqlProfile. + */ + com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile(); + /** + * + * + *
+   * PostgreSQL Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlProfileOrBuilder(); + /** * * diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java index a4669b7e..6a5e9dd5 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java @@ -184,7 +184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ud/datastream/v1/datastream_resources.pr" + "oto\032#google/longrunning/operations.proto" + "\032 google/protobuf/field_mask.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\264\003\n Discover" + + "le/protobuf/timestamp.proto\"\375\003\n Discover" + "ConnectionProfileRequest\022C\n\006parent\030\001 \001(\t" + "B3\340A\002\372A-\022+datastream.googleapis.com/Conn" + "ectionProfile\022L\n\022connection_profile\030\310\001 \001" @@ -194,277 +194,281 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rarchy_depth\030\004 \001(\005H\001\022?\n\014oracle_rdbms\030d \001" + "(\0132\'.google.cloud.datastream.v1.OracleRd" + "bmsH\002\022=\n\013mysql_rdbms\030e \001(\0132&.google.clou" - + "d.datastream.v1.MysqlRdbmsH\002B\010\n\006targetB\013" - + "\n\thierarchyB\r\n\013data_object\"\262\001\n!DiscoverC" - + "onnectionProfileResponse\022?\n\014oracle_rdbms" - + "\030d \001(\0132\'.google.cloud.datastream.v1.Orac" - + "leRdbmsH\000\022=\n\013mysql_rdbms\030e \001(\0132&.google." - + "cloud.datastream.v1.MysqlRdbmsH\000B\r\n\013data" - + "_object\"w\n\025FetchStaticIpsRequest\0227\n\004name" - + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" - + "/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nst" - + "atic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"" - + "\255\001\n\035ListConnectionProfilesRequest\022C\n\006par" - + "ent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis" - + ".com/ConnectionProfile\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n" - + "\010order_by\030\005 \001(\t\"\232\001\n\036ListConnectionProfil" - + "esResponse\022J\n\023connection_profiles\030\001 \003(\0132" - + "-.google.cloud.datastream.v1.ConnectionP" - + "rofile\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" - + "chable\030\003 \003(\t\"`\n\033GetConnectionProfileRequ" - + "est\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.go" - + "ogleapis.com/ConnectionProfile\"\242\002\n\036Creat" - + "eConnectionProfileRequest\022C\n\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+datastream.googleapis.com/Con" - + "nectionProfile\022\"\n\025connection_profile_id\030" - + "\002 \001(\tB\003\340A\002\022N\n\022connection_profile\030\003 \001(\0132-" - + ".google.cloud.datastream.v1.ConnectionPr" - + "ofileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rv" - + "alidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003" - + "\340A\001\"\357\001\n\036UpdateConnectionProfileRequest\0224" - + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\001\022N\n\022connection_profile\030\002 \001(\013" - + "2-.google.cloud.datastream.v1.Connection" - + "ProfileB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n" - + "\rvalidate_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001(\010" - + "B\003\340A\001\"|\n\036DeleteConnectionProfileRequest\022" - + "A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.google" - + "apis.com/ConnectionProfile\022\027\n\nrequest_id" - + "\030\002 \001(\tB\003\340A\001\"\227\001\n\022ListStreamsRequest\0228\n\006pa" - + "rent\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapi" - + "s.com/Stream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" - + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030" - + "\005 \001(\t\"x\n\023ListStreamsResponse\0223\n\007streams\030" - + "\001 \003(\0132\".google.cloud.datastream.v1.Strea" - + "m\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" - + "e\030\003 \003(\t\"J\n\020GetStreamRequest\0226\n\004name\030\001 \001(" - + "\tB(\340A\002\372A\"\n datastream.googleapis.com/Str" - + "eam\"\351\001\n\023CreateStreamRequest\0228\n\006parent\030\001 " - + "\001(\tB(\340A\002\372A\"\022 datastream.googleapis.com/S" - + "tream\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\0227\n\006stream\030" - + "\003 \001(\0132\".google.cloud.datastream.v1.Strea" - + "mB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalid" - + "ate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"" - + "\315\001\n\023UpdateStreamRequest\0224\n\013update_mask\030\001" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\0227\n" - + "\006stream\030\002 \001(\0132\".google.cloud.datastream." - + "v1.StreamB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022" - + "\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001" - + "(\010B\003\340A\001\"f\n\023DeleteStreamRequest\0226\n\004name\030\001" - + " \001(\tB(\340A\002\372A\"\n datastream.googleapis.com/" - + "Stream\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"V\n\026GetSt" - + "reamObjectRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&datastream.googleapis.com/StreamObject\"" - + "\260\001\n\031LookupStreamObjectRequest\0228\n\006parent\030" - + "\001 \001(\tB(\340A\002\372A\"\n datastream.googleapis.com" - + "/Stream\022Y\n\030source_object_identifier\030\002 \001(" - + "\01322.google.cloud.datastream.v1.SourceObj" - + "ectIdentifierB\003\340A\002\"Y\n\027StartBackfillJobRe" - + "quest\022>\n\006object\030\001 \001(\tB.\340A\002\372A(\n&datastrea" - + "m.googleapis.com/StreamObject\"T\n\030StartBa" - + "ckfillJobResponse\0228\n\006object\030\001 \001(\0132(.goog" - + "le.cloud.datastream.v1.StreamObject\"X\n\026S" - + "topBackfillJobRequest\022>\n\006object\030\001 \001(\tB.\340" - + "A\002\372A(\n&datastream.googleapis.com/StreamO" - + "bject\"S\n\027StopBackfillJobResponse\0228\n\006obje" - + "ct\030\001 \001(\0132(.google.cloud.datastream.v1.St" - + "reamObject\"\201\001\n\030ListStreamObjectsRequest\022" - + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&datastream.goog" - + "leapis.com/StreamObject\022\021\n\tpage_size\030\002 \001" - + "(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\031ListStreamObje" - + "ctsResponse\022@\n\016stream_objects\030\001 \003(\0132(.go" - + "ogle.cloud.datastream.v1.StreamObject\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\316\002\n\021OperationMeta" - + "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030" - + "\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_" - + "message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancella" - + "tion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A" - + "\003\022L\n\021validation_result\030\010 \001(\0132,.google.cl" - + "oud.datastream.v1.ValidationResultB\003\340A\003\"" - + "\362\001\n\036CreatePrivateConnectionRequest\022C\n\006pa" - + "rent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleapi" - + "s.com/PrivateConnection\022\"\n\025private_conne" - + "ction_id\030\002 \001(\tB\003\340A\002\022N\n\022private_connectio" - + "n\030\003 \001(\0132-.google.cloud.datastream.v1.Pri" - + "vateConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB" - + "\003\340A\001\"\255\001\n\035ListPrivateConnectionsRequest\022C" - + "\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googl" - + "eapis.com/PrivateConnection\022\021\n\tpage_size" - + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" - + "(\t\022\020\n\010order_by\030\005 \001(\t\"\232\001\n\036ListPrivateConn" - + "ectionsResponse\022J\n\023private_connections\030\001" - + " \003(\0132-.google.cloud.datastream.v1.Privat" - + "eConnection\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" - + "unreachable\030\003 \003(\t\"\220\001\n\036DeletePrivateConne" - + "ctionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+data" - + "stream.googleapis.com/PrivateConnection\022" - + "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001(\010B" - + "\003\340A\001\"`\n\033GetPrivateConnectionRequest\022A\n\004n" - + "ame\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleapis" - + ".com/PrivateConnection\"\264\001\n\022CreateRouteRe" - + "quest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastrea" - + "m.googleapis.com/Route\022\025\n\010route_id\030\002 \001(\t" - + "B\003\340A\002\0225\n\005route\030\003 \001(\0132!.google.cloud.data" - + "stream.v1.RouteB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\t" - + "B\003\340A\001\"\225\001\n\021ListRoutesRequest\0227\n\006parent\030\001 " - + "\001(\tB\'\340A\002\372A!\022\037datastream.googleapis.com/R" - + "oute\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n" - + "\022ListRoutesResponse\0221\n\006routes\030\001 \003(\0132!.go" - + "ogle.cloud.datastream.v1.Route\022\027\n\017next_p" - + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"d\n\022" - + "DeleteRouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" - + "\n\037datastream.googleapis.com/Route\022\027\n\nreq" - + "uest_id\030\002 \001(\tB\003\340A\001\"H\n\017GetRouteRequest\0225\n" - + "\004name\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleap" - + "is.com/Route2\375*\n\nDatastream\022\330\001\n\026ListConn" - + "ectionProfiles\0229.google.cloud.datastream" - + ".v1.ListConnectionProfilesRequest\032:.goog" - + "le.cloud.datastream.v1.ListConnectionPro" - + "filesResponse\"G\202\323\344\223\0028\0226/v1/{parent=proje" - + "cts/*/locations/*}/connectionProfiles\332A\006" - + "parent\022\305\001\n\024GetConnectionProfile\0227.google" - + ".cloud.datastream.v1.GetConnectionProfil" - + "eRequest\032-.google.cloud.datastream.v1.Co" - + "nnectionProfile\"E\202\323\344\223\0028\0226/v1/{name=proje" - + "cts/*/locations/*/connectionProfiles/*}\332" - + "A\004name\022\244\002\n\027CreateConnectionProfile\022:.goo" - + "gle.cloud.datastream.v1.CreateConnection" - + "ProfileRequest\032\035.google.longrunning.Oper" - + "ation\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/l" - + "ocations/*}/connectionProfiles:\022connecti" - + "on_profile\332A/parent,connection_profile,c" - + "onnection_profile_id\312A&\n\021ConnectionProfi" - + "le\022\021OperationMetadata\022\246\002\n\027UpdateConnecti" - + "onProfile\022:.google.cloud.datastream.v1.U" - + "pdateConnectionProfileRequest\032\035.google.l" - + "ongrunning.Operation\"\257\001\202\323\344\223\002_2I/v1/{conn" - + "ection_profile.name=projects/*/locations" - + "/*/connectionProfiles/*}:\022connection_pro" - + "file\332A\036connection_profile,update_mask\312A&" - + "\n\021ConnectionProfile\022\021OperationMetadata\022\350" - + "\001\n\027DeleteConnectionProfile\022:.google.clou" - + "d.datastream.v1.DeleteConnectionProfileR" - + "equest\032\035.google.longrunning.Operation\"r\202" - + "\323\344\223\0028*6/v1/{name=projects/*/locations/*/" - + "connectionProfiles/*}\332A\004name\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\022\344\001\n\031Di" - + "scoverConnectionProfile\022<.google.cloud.d" - + "atastream.v1.DiscoverConnectionProfileRe" - + "quest\032=.google.cloud.datastream.v1.Disco" - + "verConnectionProfileResponse\"J\202\323\344\223\002D\"?/v" - + "1/{parent=projects/*/locations/*}/connec" - + "tionProfiles:discover:\001*\022\254\001\n\013ListStreams" - + "\022..google.cloud.datastream.v1.ListStream" - + "sRequest\032/.google.cloud.datastream.v1.Li" - + "stStreamsResponse\"<\202\323\344\223\002-\022+/v1/{parent=p" - + "rojects/*/locations/*}/streams\332A\006parent\022" - + "\231\001\n\tGetStream\022,.google.cloud.datastream." - + "v1.GetStreamRequest\032\".google.cloud.datas" - + "tream.v1.Stream\":\202\323\344\223\002-\022+/v1/{name=proje" - + "cts/*/locations/*/streams/*}\332A\004name\022\323\001\n\014" - + "CreateStream\022/.google.cloud.datastream.v" - + "1.CreateStreamRequest\032\035.google.longrunni" - + "ng.Operation\"s\202\323\344\223\0025\"+/v1/{parent=projec" - + "ts/*/locations/*}/streams:\006stream\332A\027pare" - + "nt,stream,stream_id\312A\033\n\006Stream\022\021Operatio" - + "nMetadata\022\325\001\n\014UpdateStream\022/.google.clou" - + "d.datastream.v1.UpdateStreamRequest\032\035.go" - + "ogle.longrunning.Operation\"u\202\323\344\223\002<22/v1/" - + "{stream.name=projects/*/locations/*/stre" - + "ams/*}:\006stream\332A\022stream,update_mask\312A\033\n\006" - + "Stream\022\021OperationMetadata\022\307\001\n\014DeleteStre" - + "am\022/.google.cloud.datastream.v1.DeleteSt" - + "reamRequest\032\035.google.longrunning.Operati" - + "on\"g\202\323\344\223\002-*+/v1/{name=projects/*/locatio" - + "ns/*/streams/*}\332A\004name\312A*\n\025google.protob" - + "uf.Empty\022\021OperationMetadata\022\265\001\n\017GetStrea" - + "mObject\0222.google.cloud.datastream.v1.Get" - + "StreamObjectRequest\032(.google.cloud.datas" - + "tream.v1.StreamObject\"D\202\323\344\223\0027\0225/v1/{name" - + "=projects/*/locations/*/streams/*/object" - + "s/*}\332A\004name\022\276\001\n\022LookupStreamObject\0225.goo" - + "gle.cloud.datastream.v1.LookupStreamObje" - + "ctRequest\032(.google.cloud.datastream.v1.S" - + "treamObject\"G\202\323\344\223\002A\"\n\006objec" + + "t\030\001 \001(\tB.\340A\002\372A(\n&datastream.googleapis.c" + + "om/StreamObject\"T\n\030StartBackfillJobRespo" + + "nse\0228\n\006object\030\001 \001(\0132(.google.cloud.datas" + + "tream.v1.StreamObject\"X\n\026StopBackfillJob" + + "Request\022>\n\006object\030\001 \001(\tB.\340A\002\372A(\n&datastr" + + "eam.googleapis.com/StreamObject\"S\n\027StopB" + + "ackfillJobResponse\0228\n\006object\030\001 \001(\0132(.goo" + + "gle.cloud.datastream.v1.StreamObject\"\201\001\n" + + "\030ListStreamObjectsRequest\022>\n\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&datastream.googleapis.com/Str" + + "eamObject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"v\n\031ListStreamObjectsResponse\022@\n" + + "\016stream_objects\030\001 \003(\0132(.google.cloud.dat" + + "astream.v1.StreamObject\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\316\002\n\021OperationMetadata\0224\n\013create" + + "_time\030\001 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004" + + "verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB" + + "\003\340A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A" + + "\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\022L\n\021validatio" + + "n_result\030\010 \001(\0132,.google.cloud.datastream" + + ".v1.ValidationResultB\003\340A\003\"\362\001\n\036CreatePriv" + + "ateConnectionRequest\022C\n\006parent\030\001 \001(\tB3\340A" + + "\002\372A-\022+datastream.googleapis.com/PrivateC" + + "onnection\022\"\n\025private_connection_id\030\002 \001(\t" + + "B\003\340A\002\022N\n\022private_connection\030\003 \001(\0132-.goog" + + "le.cloud.datastream.v1.PrivateConnection" + + "B\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\255\001\n\035ListP" + + "rivateConnectionsRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\022+datastream.googleapis.com/Priv" + + "ateConnection\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + + "\030\005 \001(\t\"\232\001\n\036ListPrivateConnectionsRespons" + + "e\022J\n\023private_connections\030\001 \003(\0132-.google." + + "cloud.datastream.v1.PrivateConnection\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 " + + "\003(\t\"\220\001\n\036DeletePrivateConnectionRequest\022A" + + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googlea" + + "pis.com/PrivateConnection\022\027\n\nrequest_id\030" + + "\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\"`\n\033GetPri" + + "vateConnectionRequest\022A\n\004name\030\001 \001(\tB3\340A\002" + + "\372A-\n+datastream.googleapis.com/PrivateCo" + + "nnection\"\264\001\n\022CreateRouteRequest\0227\n\006paren" + + "t\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.googleapis.c" + + "om/Route\022\025\n\010route_id\030\002 \001(\tB\003\340A\002\0225\n\005route" + + "\030\003 \001(\0132!.google.cloud.datastream.v1.Rout" + + "eB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\225\001\n\021List" + + "RoutesRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037d" + + "atastream.googleapis.com/Route\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" + + "\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n\022ListRoutesRes" + + "ponse\0221\n\006routes\030\001 \003(\0132!.google.cloud.dat" + + "astream.v1.Route\022\027\n\017next_page_token\030\002 \001(" + + "\t\022\023\n\013unreachable\030\003 \003(\t\"d\n\022DeleteRouteReq" + + "uest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.g" + + "oogleapis.com/Route\022\027\n\nrequest_id\030\002 \001(\tB" + + "\003\340A\001\"H\n\017GetRouteRequest\0225\n\004name\030\001 \001(\tB\'\340" + + "A\002\372A!\n\037datastream.googleapis.com/Route2\375" + + "*\n\nDatastream\022\330\001\n\026ListConnectionProfiles" + + "\0229.google.cloud.datastream.v1.ListConnec" + + "tionProfilesRequest\032:.google.cloud.datas" + + "tream.v1.ListConnectionProfilesResponse\"" + + "G\202\323\344\223\0028\0226/v1/{parent=projects/*/location" + + "s/*}/connectionProfiles\332A\006parent\022\305\001\n\024Get" + + "ConnectionProfile\0227.google.cloud.datastr" + + "eam.v1.GetConnectionProfileRequest\032-.goo" + + "gle.cloud.datastream.v1.ConnectionProfil" + + "e\"E\202\323\344\223\0028\0226/v1/{name=projects/*/location" + + "s/*/connectionProfiles/*}\332A\004name\022\244\002\n\027Cre" + + "ateConnectionProfile\022:.google.cloud.data" + + "stream.v1.CreateConnectionProfileRequest" + + "\032\035.google.longrunning.Operation\"\255\001\202\323\344\223\002L" + + "\"6/v1/{parent=projects/*/locations/*}/co" + + "nnectionProfiles:\022connection_profile\332A/p" + + "arent,connection_profile,connection_prof" + + "ile_id\312A&\n\021ConnectionProfile\022\021OperationM" + + "etadata\022\246\002\n\027UpdateConnectionProfile\022:.go" + + "ogle.cloud.datastream.v1.UpdateConnectio" + + "nProfileRequest\032\035.google.longrunning.Ope" + + "ration\"\257\001\202\323\344\223\002_2I/v1/{connection_profile" + + ".name=projects/*/locations/*/connectionP" + + "rofiles/*}:\022connection_profile\332A\036connect" + + "ion_profile,update_mask\312A&\n\021ConnectionPr" + + "ofile\022\021OperationMetadata\022\350\001\n\027DeleteConne" + + "ctionProfile\022:.google.cloud.datastream.v" + + "1.DeleteConnectionProfileRequest\032\035.googl" + + "e.longrunning.Operation\"r\202\323\344\223\0028*6/v1/{na" + + "me=projects/*/locations/*/connectionProf" + + "iles/*}\332A\004name\312A*\n\025google.protobuf.Empty" + + "\022\021OperationMetadata\022\344\001\n\031DiscoverConnecti" + + "onProfile\022<.google.cloud.datastream.v1.D" + + "iscoverConnectionProfileRequest\032=.google" + + ".cloud.datastream.v1.DiscoverConnectionP" + + "rofileResponse\"J\202\323\344\223\002D\"?/v1/{parent=proj" + + "ects/*/locations/*}/connectionProfiles:d" + + "iscover:\001*\022\254\001\n\013ListStreams\022..google.clou" + + "d.datastream.v1.ListStreamsRequest\032/.goo" + + "gle.cloud.datastream.v1.ListStreamsRespo" + + "nse\"<\202\323\344\223\002-\022+/v1/{parent=projects/*/loca" + + "tions/*}/streams\332A\006parent\022\231\001\n\tGetStream\022" + + ",.google.cloud.datastream.v1.GetStreamRe" + + "quest\032\".google.cloud.datastream.v1.Strea" + + "m\":\202\323\344\223\002-\022+/v1/{name=projects/*/location" + + "s/*/streams/*}\332A\004name\022\323\001\n\014CreateStream\022/" + + ".google.cloud.datastream.v1.CreateStream" + + "Request\032\035.google.longrunning.Operation\"s" + + "\202\323\344\223\0025\"+/v1/{parent=projects/*/locations" + + "/*}/streams:\006stream\332A\027parent,stream,stre" + + "am_id\312A\033\n\006Stream\022\021OperationMetadata\022\325\001\n\014" + + "UpdateStream\022/.google.cloud.datastream.v" + + "1.UpdateStreamRequest\032\035.google.longrunni" + + "ng.Operation\"u\202\323\344\223\002<22/v1/{stream.name=p" + + "rojects/*/locations/*/streams/*}:\006stream" + + "\332A\022stream,update_mask\312A\033\n\006Stream\022\021Operat" + + "ionMetadata\022\307\001\n\014DeleteStream\022/.google.cl" + + "oud.datastream.v1.DeleteStreamRequest\032\035." + + "google.longrunning.Operation\"g\202\323\344\223\002-*+/v" + + "1/{name=projects/*/locations/*/streams/*" + + "}\332A\004name\312A*\n\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\022\265\001\n\017GetStreamObject\0222.goog" + + "le.cloud.datastream.v1.GetStreamObjectRe" + + "quest\032(.google.cloud.datastream.v1.Strea" + + "mObject\"D\202\323\344\223\0027\0225/v1/{name=projects/*/lo" + + "cations/*/streams/*/objects/*}\332A\004name\022\276\001" + + "\n\022LookupStreamObject\0225.google.cloud.data" + + "stream.v1.LookupStreamObjectRequest\032(.go" + + "ogle.cloud.datastream.v1.StreamObject\"G\202" + + "\323\344\223\002A\"\n\nss" - + "l_config\030\005 \001(\0132*.google.cloud.datastream" - + ".v1.MysqlSslConfig\"4\n\nGcsProfile\022\023\n\006buck" - + "et\030\001 \001(\tB\003\340A\002\022\021\n\troot_path\030\002 \001(\t\"\035\n\033Stat" - + "icServiceIpConnectivity\"\250\001\n\034ForwardSshTu" - + "nnelConnectivity\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022" - + "\025\n\010username\030\002 \001(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010" - + "password\030d \001(\tB\003\340A\004H\000\022\032\n\013private_key\030e \001" - + "(\tB\003\340A\004H\000B\027\n\025authentication_method\"]\n\020Vp" - + "cPeeringConfig\0224\n\003vpc\030\001 \001(\tB\'\340A\002\372A!\n\037com" - + "pute.googleapis.com/Networks\022\023\n\006subnet\030\002" - + " \001(\tB\003\340A\002\"\340\005\n\021PrivateConnection\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" - + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I" - + "\n\006labels\030\004 \003(\01329.google.cloud.datastream" - + ".v1.PrivateConnection.LabelsEntry\022\031\n\014dis" - + "play_name\030\005 \001(\tB\003\340A\002\022G\n\005state\030\006 \001(\01623.go" - + "ogle.cloud.datastream.v1.PrivateConnecti" - + "on.StateB\003\340A\003\0225\n\005error\030\007 \001(\0132!.google.cl" - + "oud.datastream.v1.ErrorB\003\340A\003\022H\n\022vpc_peer" - + "ing_config\030d \001(\0132,.google.cloud.datastre" - + "am.v1.VpcPeeringConfig\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"i\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007C" - + "REATED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FA" - + "ILED_TO_DELETE\020\005:\201\001\352A~\n+datastream.googl" - + "eapis.com/PrivateConnection\022Oprojects/{p" - + "roject}/locations/{location}/privateConn" - + "ections/{private_connection}\"f\n\023PrivateC" - + "onnectivity\022O\n\022private_connection\030\001 \001(\tB" - + "3\340A\002\372A-\n+datastream.googleapis.com/Priva" - + "teConnection\"\323\003\n\005Route\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\003\0224\n\013create_time\030\002 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022=\n\006labels\030" - + "\004 \003(\0132-.google.cloud.datastream.v1.Route" - + ".LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022" - + " \n\023destination_address\030\006 \001(\tB\003\340A\002\022\030\n\020des" - + "tination_port\030\007 \001(\005\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datas" - + "tream.googleapis.com/Route\022^projects/{pr" - + "oject}/locations/{location}/privateConne" - + "ctions/{private_connection}/routes/{rout" - + "e}\"\312\001\n\016MysqlSslConfig\022\027\n\nclient_key\030\001 \001(" - + "\tB\003\340A\004\022\033\n\016client_key_set\030\002 \001(\010B\003\340A\003\022\037\n\022c" - + "lient_certificate\030\003 \001(\tB\003\340A\004\022#\n\026client_c" - + "ertificate_set\030\004 \001(\010B\003\340A\003\022\033\n\016ca_certific" - + "ate\030\005 \001(\tB\003\340A\004\022\037\n\022ca_certificate_set\030\006 \001" - + "(\010B\003\340A\003\"\242\007\n\021ConnectionProfile\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\006" - + "labels\030\004 \003(\01329.google.cloud.datastream.v" - + "1.ConnectionProfile.LabelsEntry\022\031\n\014displ" - + "ay_name\030\005 \001(\tB\003\340A\002\022C\n\016oracle_profile\030d \001" - + "(\0132).google.cloud.datastream.v1.OraclePr" - + "ofileH\000\022=\n\013gcs_profile\030e \001(\0132&.google.cl" - + "oud.datastream.v1.GcsProfileH\000\022A\n\rmysql_" - + "profile\030f \001(\0132(.google.cloud.datastream." - + "v1.MysqlProfileH\000\022b\n\036static_service_ip_c" - + "onnectivity\030\310\001 \001(\01327.google.cloud.datast" - + "ream.v1.StaticServiceIpConnectivityH\001\022]\n" - + "\030forward_ssh_connectivity\030\311\001 \001(\01328.googl" - + "e.cloud.datastream.v1.ForwardSshTunnelCo" - + "nnectivityH\001\022P\n\024private_connectivity\030\312\001 " - + "\001(\0132/.google.cloud.datastream.v1.Private" - + "ConnectivityH\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\201\001\352A~\n+datastream." - + "googleapis.com/ConnectionProfile\022Oprojec" - + "ts/{project}/locations/{location}/connec" - + "tionProfiles/{connection_profile}B\t\n\007pro" - + "fileB\016\n\014connectivity\"\266\001\n\014OracleColumn\022\016\n" - + "\006column\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006leng" - + "th\030\003 \001(\005\022\021\n\tprecision\030\004 \001(\005\022\r\n\005scale\030\005 \001" - + "(\005\022\020\n\010encoding\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(" - + "\010\022\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position\030" - + "\t \001(\005\"^\n\013OracleTable\022\r\n\005table\030\001 \001(\t\022@\n\016o" - + "racle_columns\030\002 \003(\0132(.google.cloud.datas" - + "tream.v1.OracleColumn\"^\n\014OracleSchema\022\016\n" - + "\006schema\030\001 \001(\t\022>\n\roracle_tables\030\002 \003(\0132\'.g" - + "oogle.cloud.datastream.v1.OracleTable\"O\n" - + "\013OracleRdbms\022@\n\016oracle_schemas\030\001 \003(\0132(.g" - + "oogle.cloud.datastream.v1.OracleSchema\"\230" - + "\001\n\022OracleSourceConfig\022@\n\017include_objects" - + "\030\001 \001(\0132\'.google.cloud.datastream.v1.Orac" - + "leRdbms\022@\n\017exclude_objects\030\002 \001(\0132\'.googl" - + "e.cloud.datastream.v1.OracleRdbms\"\224\001\n\013My" - + "sqlColumn\022\016\n\006column\030\001 \001(\t\022\021\n\tdata_type\030\002" - + " \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022" - + "\023\n\013primary_key\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030" - + "\n\020ordinal_position\030\007 \001(\005\"[\n\nMysqlTable\022\r" - + "\n\005table\030\001 \001(\t\022>\n\rmysql_columns\030\002 \003(\0132\'.g" - + "oogle.cloud.datastream.v1.MysqlColumn\"_\n" - + "\rMysqlDatabase\022\020\n\010database\030\001 \001(\t\022<\n\014mysq" - + "l_tables\030\002 \003(\0132&.google.cloud.datastream" - + ".v1.MysqlTable\"P\n\nMysqlRdbms\022B\n\017mysql_da" - + "tabases\030\001 \003(\0132).google.cloud.datastream." - + "v1.MysqlDatabase\"\225\001\n\021MysqlSourceConfig\022?" - + "\n\017include_objects\030\001 \001(\0132&.google.cloud.d" - + "atastream.v1.MysqlRdbms\022?\n\017exclude_objec" - + "ts\030\002 \001(\0132&.google.cloud.datastream.v1.My" - + "sqlRdbms\"\234\002\n\014SourceConfig\022V\n\031source_conn" - + "ection_profile\030\001 \001(\tB3\340A\002\372A-\n+datastream" - + ".googleapis.com/ConnectionProfile\022N\n\024ora" - + "cle_source_config\030d \001(\0132..google.cloud.d" - + "atastream.v1.OracleSourceConfigH\000\022L\n\023mys" - + "ql_source_config\030e \001(\0132-.google.cloud.da" - + "tastream.v1.MysqlSourceConfigH\000B\026\n\024sourc" - + "e_stream_config\"\020\n\016AvroFileFormat\"\357\002\n\016Js" - + "onFileFormat\022W\n\022schema_file_format\030\001 \001(\016" - + "2;.google.cloud.datastream.v1.JsonFileFo" - + "rmat.SchemaFileFormat\022O\n\013compression\030\002 \001" - + "(\0162:.google.cloud.datastream.v1.JsonFile" - + "Format.JsonCompression\"`\n\020SchemaFileForm" - + "at\022\"\n\036SCHEMA_FILE_FORMAT_UNSPECIFIED\020\000\022\022" - + "\n\016NO_SCHEMA_FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002" - + "\"Q\n\017JsonCompression\022 \n\034JSON_COMPRESSION_" - + "UNSPECIFIED\020\000\022\022\n\016NO_COMPRESSION\020\001\022\010\n\004GZI" - + "P\020\002\"\230\002\n\024GcsDestinationConfig\022\014\n\004path\030\001 \001" - + "(\t\022\030\n\020file_rotation_mb\030\002 \001(\005\0229\n\026file_rot" - + "ation_interval\030\003 \001(\0132\031.google.protobuf.D" - + "uration\022F\n\020avro_file_format\030d \001(\0132*.goog" - + "le.cloud.datastream.v1.AvroFileFormatH\000\022" - + "F\n\020json_file_format\030e \001(\0132*.google.cloud" - + ".datastream.v1.JsonFileFormatH\000B\r\n\013file_" - + "format\"\341\001\n\021DestinationConfig\022[\n\036destinat" - + "ion_connection_profile\030\001 \001(\tB3\340A\002\372A-\n+da" - + "tastream.googleapis.com/ConnectionProfil" - + "e\022R\n\026gcs_destination_config\030d \001(\01320.goog" - + "le.cloud.datastream.v1.GcsDestinationCon" - + "figH\000B\033\n\031destination_stream_config\"\375\t\n\006S" - + "tream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030" - + "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" - + "\n\013update_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022>\n\006labels\030\004 \003(\0132..google.cl" - + "oud.datastream.v1.Stream.LabelsEntry\022\031\n\014" - + "display_name\030\005 \001(\tB\003\340A\002\022D\n\rsource_config" - + "\030\006 \001(\0132(.google.cloud.datastream.v1.Sour" - + "ceConfigB\003\340A\002\022N\n\022destination_config\030\007 \001(" - + "\0132-.google.cloud.datastream.v1.Destinati" - + "onConfigB\003\340A\002\0227\n\005state\030\010 \001(\0162(.google.cl" - + "oud.datastream.v1.Stream.State\022N\n\014backfi" - + "ll_all\030e \001(\01326.google.cloud.datastream.v" - + "1.Stream.BackfillAllStrategyH\000\022P\n\rbackfi" - + "ll_none\030f \001(\01327.google.cloud.datastream." - + "v1.Stream.BackfillNoneStrategyH\000\0226\n\006erro" - + "rs\030\t \003(\0132!.google.cloud.datastream.v1.Er" - + "rorB\003\340A\003\0221\n\037customer_managed_encryption_" - + "key\030\n \001(\tB\003\340A\005H\001\210\001\001\032\277\001\n\023BackfillAllStrat" - + "egy\022J\n\027oracle_excluded_objects\030\001 \001(\0132\'.g" - + "oogle.cloud.datastream.v1.OracleRdbmsH\000\022" - + "H\n\026mysql_excluded_objects\030\002 \001(\0132&.google" - + ".cloud.datastream.v1.MysqlRdbmsH\000B\022\n\020exc" - + "luded_objects\032\026\n\024BackfillNoneStrategy\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\"\231\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n" - + "\013NOT_STARTED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED\020\003\022" - + "\017\n\013MAINTENANCE\020\004\022\n\n\006FAILED\020\005\022\026\n\022FAILED_P" - + "ERMANENTLY\020\006\022\014\n\010STARTING\020\007\022\014\n\010DRAINING\020\010" - + ":_\352A\\\n datastream.googleapis.com/Stream\022" - + "8projects/{project}/locations/{location}" - + "/streams/{stream}B\023\n\021backfill_strategyB\"" - + "\n _customer_managed_encryption_key\"\342\003\n\014S" - + "treamObject\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create" - + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022\031\n\014display_name\030\005 \001(\t" - + "B\003\340A\002\0226\n\006errors\030\006 \003(\0132!.google.cloud.dat" - + "astream.v1.ErrorB\003\340A\003\022=\n\014backfill_job\030\007 " - + "\001(\0132\'.google.cloud.datastream.v1.Backfil" - + "lJob\022I\n\rsource_object\030\010 \001(\01322.google.clo" - + "ud.datastream.v1.SourceObjectIdentifier:" - + "v\352As\n&datastream.googleapis.com/StreamOb" - + "ject\022Iprojects/{project}/locations/{loca" - + "tion}/streams/{stream}/objects/{object}\"" - + "\202\003\n\026SourceObjectIdentifier\022f\n\021oracle_ide" - + "ntifier\030\001 \001(\0132I.google.cloud.datastream." - + "v1.SourceObjectIdentifier.OracleObjectId" - + "entifierH\000\022d\n\020mysql_identifier\030\002 \001(\0132H.g" - + "oogle.cloud.datastream.v1.SourceObjectId" - + "entifier.MysqlObjectIdentifierH\000\032A\n\026Orac" - + "leObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022" - + "\022\n\005table\030\002 \001(\tB\003\340A\002\032B\n\025MysqlObjectIdenti" - + "fier\022\025\n\010database\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001" - + "(\tB\003\340A\002B\023\n\021source_identifier\"\372\003\n\013Backfil" - + "lJob\022<\n\005state\030\001 \001(\0162-.google.cloud.datas" - + "tream.v1.BackfillJob.State\022@\n\007trigger\030\002 " - + "\001(\0162/.google.cloud.datastream.v1.Backfil" - + "lJob.Trigger\0228\n\017last_start_time\030\003 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0226\n\rlast_e" - + "nd_time\030\004 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\0226\n\006errors\030\005 \003(\0132!.google.cloud.da" - + "tastream.v1.ErrorB\003\340A\003\"\201\001\n\005State\022\025\n\021STAT" - + "E_UNSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007PEND" - + "ING\020\002\022\n\n\006ACTIVE\020\003\022\013\n\007STOPPED\020\004\022\n\n\006FAILED" - + "\020\005\022\r\n\tCOMPLETED\020\006\022\017\n\013UNSUPPORTED\020\007\"=\n\007Tr" - + "igger\022\027\n\023TRIGGER_UNSPECIFIED\020\000\022\r\n\tAUTOMA" - + "TIC\020\001\022\n\n\006MANUAL\020\002\"\335\001\n\005Error\022\016\n\006reason\030\001 " - + "\001(\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t" - + "\022.\n\nerror_time\030\004 \001(\0132\032.google.protobuf.T" - + "imestamp\022?\n\007details\030\005 \003(\0132..google.cloud" - + ".datastream.v1.Error.DetailsEntry\032.\n\014Det" - + "ailsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"O\n\020ValidationResult\022;\n\013validations\030\001 \003" - + "(\0132&.google.cloud.datastream.v1.Validati" - + "on\"\366\001\n\nValidation\022\023\n\013description\030\001 \001(\t\022;" - + "\n\005state\030\002 \001(\0162,.google.cloud.datastream." - + "v1.Validation.State\022>\n\007message\030\003 \003(\0132-.g" - + "oogle.cloud.datastream.v1.ValidationMess" - + "age\022\014\n\004code\030\004 \001(\t\"H\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022" - + "\n\n\006PASSED\020\003\"\256\002\n\021ValidationMessage\022\017\n\007mes" - + "sage\030\001 \001(\t\022B\n\005level\030\002 \001(\01623.google.cloud" - + ".datastream.v1.ValidationMessage.Level\022M" - + "\n\010metadata\030\003 \003(\0132;.google.cloud.datastre" - + "am.v1.ValidationMessage.MetadataEntry\022\014\n" - + "\004code\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_U" - + "NSPECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\256\002\n" - + "\036com.google.cloud.datastream.v1B\030Datastr" - + "eamResourcesProtoP\001ZDgoogle.golang.org/g" - + "enproto/googleapis/cloud/datastream/v1;d" - + "atastream\252\002\032Google.Cloud.Datastream.V1\312\002" - + "\032Google\\Cloud\\Datastream\\V1\352\002\035Google::Cl" - + "oud::Datastream::V1\352AO\n\037compute.googleap" - + "is.com/Networks\022,projects/{project}/glob" - + "al/networks/{network}b\006proto3" + + ".v1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\036google/protobuf" + + "/duration.proto\032\037google/protobuf/timesta" + + "mp.proto\"\242\002\n\rOracleProfile\022\025\n\010hostname\030\001" + + " \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001(" + + "\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\002\022\035\n\020databas" + + "e_service\030\005 \001(\tB\003\340A\002\022b\n\025connection_attri" + + "butes\030\006 \003(\0132C.google.cloud.datastream.v1" + + ".OracleProfile.ConnectionAttributesEntry" + + "\032;\n\031ConnectionAttributesEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\244\001\n\014MysqlProfile\022\025" + + "\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010u" + + "sername\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A" + + "\002\340A\004\022>\n\nssl_config\030\005 \001(\0132*.google.cloud." + + "datastream.v1.MysqlSslConfig\"}\n\021Postgres" + + "qlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port" + + "\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\025\n\010passwor" + + "d\030\004 \001(\tB\003\340A\002\022\025\n\010database\030\005 \001(\tB\003\340A\002\"4\n\nG" + + "csProfile\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\021\n\troot_p" + + "ath\030\002 \001(\t\"\021\n\017BigQueryProfile\"\035\n\033StaticSe" + + "rviceIpConnectivity\"\250\001\n\034ForwardSshTunnel" + + "Connectivity\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\025\n\010u" + + "sername\030\002 \001(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010pass" + + "word\030d \001(\tB\003\340A\004H\000\022\032\n\013private_key\030e \001(\tB\003" + + "\340A\004H\000B\027\n\025authentication_method\"]\n\020VpcPee" + + "ringConfig\0224\n\003vpc\030\001 \001(\tB\'\340A\002\372A!\n\037compute" + + ".googleapis.com/Networks\022\023\n\006subnet\030\002 \001(\t" + + "B\003\340A\002\"\340\005\n\021PrivateConnection\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\006la" + + "bels\030\004 \003(\01329.google.cloud.datastream.v1." + + "PrivateConnection.LabelsEntry\022\031\n\014display" + + "_name\030\005 \001(\tB\003\340A\002\022G\n\005state\030\006 \001(\01623.google" + + ".cloud.datastream.v1.PrivateConnection.S" + + "tateB\003\340A\003\0225\n\005error\030\007 \001(\0132!.google.cloud." + + "datastream.v1.ErrorB\003\340A\003\022H\n\022vpc_peering_" + + "config\030d \001(\0132,.google.cloud.datastream.v" + + "1.VpcPeeringConfig\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"i\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007CREAT" + + "ED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FAILED" + + "_TO_DELETE\020\005:\201\001\352A~\n+datastream.googleapi" + + "s.com/PrivateConnection\022Oprojects/{proje" + + "ct}/locations/{location}/privateConnecti" + + "ons/{private_connection}\"f\n\023PrivateConne" + + "ctivity\022O\n\022private_connection\030\001 \001(\tB3\340A\002" + + "\372A-\n+datastream.googleapis.com/PrivateCo" + + "nnection\"\323\003\n\005Route\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022=\n\006labels\030\004 \003(" + + "\0132-.google.cloud.datastream.v1.Route.Lab" + + "elsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022 \n\023d" + + "estination_address\030\006 \001(\tB\003\340A\002\022\030\n\020destina" + + "tion_port\030\007 \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datastrea" + + "m.googleapis.com/Route\022^projects/{projec" + + "t}/locations/{location}/privateConnectio" + + "ns/{private_connection}/routes/{route}\"\312" + + "\001\n\016MysqlSslConfig\022\027\n\nclient_key\030\001 \001(\tB\003\340" + + "A\004\022\033\n\016client_key_set\030\002 \001(\010B\003\340A\003\022\037\n\022clien" + + "t_certificate\030\003 \001(\tB\003\340A\004\022#\n\026client_certi" + + "ficate_set\030\004 \001(\010B\003\340A\003\022\033\n\016ca_certificate\030" + + "\005 \001(\tB\003\340A\004\022\037\n\022ca_certificate_set\030\006 \001(\010B\003" + + "\340A\003\"\270\010\n\021ConnectionProfile\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022I\n\006labe" + + "ls\030\004 \003(\01329.google.cloud.datastream.v1.Co" + + "nnectionProfile.LabelsEntry\022\031\n\014display_n" + + "ame\030\005 \001(\tB\003\340A\002\022C\n\016oracle_profile\030d \001(\0132)" + + ".google.cloud.datastream.v1.OracleProfil" + + "eH\000\022=\n\013gcs_profile\030e \001(\0132&.google.cloud." + + "datastream.v1.GcsProfileH\000\022A\n\rmysql_prof" + + "ile\030f \001(\0132(.google.cloud.datastream.v1.M" + + "ysqlProfileH\000\022G\n\020bigquery_profile\030g \001(\0132" + + "+.google.cloud.datastream.v1.BigQueryPro" + + "fileH\000\022K\n\022postgresql_profile\030h \001(\0132-.goo" + + "gle.cloud.datastream.v1.PostgresqlProfil" + + "eH\000\022b\n\036static_service_ip_connectivity\030\310\001" + + " \001(\01327.google.cloud.datastream.v1.Static" + + "ServiceIpConnectivityH\001\022]\n\030forward_ssh_c" + + "onnectivity\030\311\001 \001(\01328.google.cloud.datast" + + "ream.v1.ForwardSshTunnelConnectivityH\001\022P" + + "\n\024private_connectivity\030\312\001 \001(\0132/.google.c" + + "loud.datastream.v1.PrivateConnectivityH\001" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001:\201\001\352A~\n+datastream.googleapis.com" + + "/ConnectionProfile\022Oprojects/{project}/l" + + "ocations/{location}/connectionProfiles/{" + + "connection_profile}B\t\n\007profileB\016\n\014connec" + + "tivity\"\266\001\n\014OracleColumn\022\016\n\006column\030\001 \001(\t\022" + + "\021\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tpr" + + "ecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encoding" + + "\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullable\030" + + "\010 \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"^\n\013Oracl" + + "eTable\022\r\n\005table\030\001 \001(\t\022@\n\016oracle_columns\030" + + "\002 \003(\0132(.google.cloud.datastream.v1.Oracl" + + "eColumn\"^\n\014OracleSchema\022\016\n\006schema\030\001 \001(\t\022" + + ">\n\roracle_tables\030\002 \003(\0132\'.google.cloud.da" + + "tastream.v1.OracleTable\"O\n\013OracleRdbms\022@" + + "\n\016oracle_schemas\030\001 \003(\0132(.google.cloud.da" + + "tastream.v1.OracleSchema\"\300\003\n\022OracleSourc" + + "eConfig\022@\n\017include_objects\030\001 \001(\0132\'.googl" + + "e.cloud.datastream.v1.OracleRdbms\022@\n\017exc" + + "lude_objects\030\002 \001(\0132\'.google.cloud.datast" + + "ream.v1.OracleRdbms\022 \n\030max_concurrent_cd" + + "c_tasks\030\003 \001(\005\022]\n\022drop_large_objects\030d \001(" + + "\0132?.google.cloud.datastream.v1.OracleSou" + + "rceConfig.DropLargeObjectsH\000\022a\n\024stream_l" + + "arge_objects\030f \001(\0132A.google.cloud.datast" + + "ream.v1.OracleSourceConfig.StreamLargeOb" + + "jectsH\000\032\022\n\020DropLargeObjects\032\024\n\022StreamLar" + + "geObjectsB\030\n\026large_objects_handling\"\250\001\n\020" + + "PostgresqlColumn\022\016\n\006column\030\001 \001(\t\022\021\n\tdata" + + "_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tprecision" + + "\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\023\n\013primary_key\030\007 \001" + + "(\010\022\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position" + + "\030\t \001(\005\"j\n\017PostgresqlTable\022\r\n\005table\030\001 \001(\t" + + "\022H\n\022postgresql_columns\030\002 \003(\0132,.google.cl" + + "oud.datastream.v1.PostgresqlColumn\"j\n\020Po" + + "stgresqlSchema\022\016\n\006schema\030\001 \001(\t\022F\n\021postgr" + + "esql_tables\030\002 \003(\0132+.google.cloud.datastr" + + "eam.v1.PostgresqlTable\"[\n\017PostgresqlRdbm" + + "s\022H\n\022postgresql_schemas\030\001 \003(\0132,.google.c" + + "loud.datastream.v1.PostgresqlSchema\"\335\001\n\026" + + "PostgresqlSourceConfig\022D\n\017include_object" + + "s\030\001 \001(\0132+.google.cloud.datastream.v1.Pos" + + "tgresqlRdbms\022D\n\017exclude_objects\030\002 \001(\0132+." + + "google.cloud.datastream.v1.PostgresqlRdb" + + "ms\022\035\n\020replication_slot\030\003 \001(\tB\003\340A\002\022\030\n\013pub" + + "lication\030\004 \001(\tB\003\340A\002\"\224\001\n\013MysqlColumn\022\016\n\006c" + + "olumn\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006length" + + "\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013primary_key" + + "\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordinal_posi" + + "tion\030\007 \001(\005\"[\n\nMysqlTable\022\r\n\005table\030\001 \001(\t\022" + + ">\n\rmysql_columns\030\002 \003(\0132\'.google.cloud.da" + + "tastream.v1.MysqlColumn\"_\n\rMysqlDatabase" + + "\022\020\n\010database\030\001 \001(\t\022<\n\014mysql_tables\030\002 \003(\013" + + "2&.google.cloud.datastream.v1.MysqlTable" + + "\"P\n\nMysqlRdbms\022B\n\017mysql_databases\030\001 \003(\0132" + + ").google.cloud.datastream.v1.MysqlDataba" + + "se\"\267\001\n\021MysqlSourceConfig\022?\n\017include_obje" + + "cts\030\001 \001(\0132&.google.cloud.datastream.v1.M" + + "ysqlRdbms\022?\n\017exclude_objects\030\002 \001(\0132&.goo" + + "gle.cloud.datastream.v1.MysqlRdbms\022 \n\030ma" + + "x_concurrent_cdc_tasks\030\003 \001(\005\"\364\002\n\014SourceC" + + "onfig\022V\n\031source_connection_profile\030\001 \001(\t" + + "B3\340A\002\372A-\n+datastream.googleapis.com/Conn" + + "ectionProfile\022N\n\024oracle_source_config\030d " + + "\001(\0132..google.cloud.datastream.v1.OracleS" + + "ourceConfigH\000\022L\n\023mysql_source_config\030e \001" + + "(\0132-.google.cloud.datastream.v1.MysqlSou" + + "rceConfigH\000\022V\n\030postgresql_source_config\030" + + "f \001(\01322.google.cloud.datastream.v1.Postg" + + "resqlSourceConfigH\000B\026\n\024source_stream_con" + + "fig\"\020\n\016AvroFileFormat\"\357\002\n\016JsonFileFormat" + + "\022W\n\022schema_file_format\030\001 \001(\0162;.google.cl" + + "oud.datastream.v1.JsonFileFormat.SchemaF" + + "ileFormat\022O\n\013compression\030\002 \001(\0162:.google." + + "cloud.datastream.v1.JsonFileFormat.JsonC" + + "ompression\"`\n\020SchemaFileFormat\022\"\n\036SCHEMA" + + "_FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEMA_" + + "FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002\"Q\n\017JsonComp" + + "ression\022 \n\034JSON_COMPRESSION_UNSPECIFIED\020" + + "\000\022\022\n\016NO_COMPRESSION\020\001\022\010\n\004GZIP\020\002\"\230\002\n\024GcsD" + + "estinationConfig\022\014\n\004path\030\001 \001(\t\022\030\n\020file_r" + + "otation_mb\030\002 \001(\005\0229\n\026file_rotation_interv" + + "al\030\003 \001(\0132\031.google.protobuf.Duration\022F\n\020a" + + "vro_file_format\030d \001(\0132*.google.cloud.dat" + + "astream.v1.AvroFileFormatH\000\022F\n\020json_file" + + "_format\030e \001(\0132*.google.cloud.datastream." + + "v1.JsonFileFormatH\000B\r\n\013file_format\"\336\004\n\031B" + + "igQueryDestinationConfig\022k\n\025single_targe" + + "t_dataset\030\311\001 \001(\0132I.google.cloud.datastre" + + "am.v1.BigQueryDestinationConfig.SingleTa" + + "rgetDatasetH\000\022s\n\031source_hierarchy_datase" + + "ts\030\312\001 \001(\0132M.google.cloud.datastream.v1.B" + + "igQueryDestinationConfig.SourceHierarchy" + + "DatasetsH\000\0222\n\016data_freshness\030\254\002 \001(\0132\031.go" + + "ogle.protobuf.Duration\032)\n\023SingleTargetDa" + + "taset\022\022\n\ndataset_id\030\001 \001(\t\032\355\001\n\027SourceHier" + + "archyDatasets\022w\n\020dataset_template\030\002 \001(\0132" + + "].google.cloud.datastream.v1.BigQueryDes" + + "tinationConfig.SourceHierarchyDatasets.D" + + "atasetTemplate\032Y\n\017DatasetTemplate\022\025\n\010loc" + + "ation\030\001 \001(\tB\003\340A\002\022\031\n\021dataset_id_prefix\030\002 " + + "\001(\t\022\024\n\014kms_key_name\030\003 \001(\tB\020\n\016dataset_con" + + "fig\"\277\002\n\021DestinationConfig\022[\n\036destination" + + "_connection_profile\030\001 \001(\tB3\340A\002\372A-\n+datas" + + "tream.googleapis.com/ConnectionProfile\022R" + + "\n\026gcs_destination_config\030d \001(\01320.google." + + "cloud.datastream.v1.GcsDestinationConfig" + + "H\000\022\\\n\033bigquery_destination_config\030e \001(\0132" + + "5.google.cloud.datastream.v1.BigQueryDes" + + "tinationConfigH\000B\033\n\031destination_stream_c" + + "onfig\"\321\n\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013c" + + "reate_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022>\n\006labels\030\004 \003(\0132" + + "..google.cloud.datastream.v1.Stream.Labe" + + "lsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022D\n\rso" + + "urce_config\030\006 \001(\0132(.google.cloud.datastr" + + "eam.v1.SourceConfigB\003\340A\002\022N\n\022destination_" + + "config\030\007 \001(\0132-.google.cloud.datastream.v" + + "1.DestinationConfigB\003\340A\002\0227\n\005state\030\010 \001(\0162" + + "(.google.cloud.datastream.v1.Stream.Stat" + + "e\022N\n\014backfill_all\030e \001(\01326.google.cloud.d" + + "atastream.v1.Stream.BackfillAllStrategyH" + + "\000\022P\n\rbackfill_none\030f \001(\01327.google.cloud." + + "datastream.v1.Stream.BackfillNoneStrateg" + + "yH\000\0226\n\006errors\030\t \003(\0132!.google.cloud.datas" + + "tream.v1.ErrorB\003\340A\003\0221\n\037customer_managed_" + + "encryption_key\030\n \001(\tB\003\340A\005H\001\210\001\001\032\223\002\n\023Backf" + + "illAllStrategy\022J\n\027oracle_excluded_object" + + "s\030\001 \001(\0132\'.google.cloud.datastream.v1.Ora" + + "cleRdbmsH\000\022H\n\026mysql_excluded_objects\030\002 \001" + + "(\0132&.google.cloud.datastream.v1.MysqlRdb" + + "msH\000\022R\n\033postgresql_excluded_objects\030\003 \001(" + + "\0132+.google.cloud.datastream.v1.Postgresq" + + "lRdbmsH\000B\022\n\020excluded_objects\032\026\n\024Backfill" + + "NoneStrategy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\231\001\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007RUNNING" + + "\020\002\022\n\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILE" + + "D\020\005\022\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020" + + "\007\022\014\n\010DRAINING\020\010:_\352A\\\n datastream.googlea" + + "pis.com/Stream\0228projects/{project}/locat" + + "ions/{location}/streams/{stream}B\023\n\021back" + + "fill_strategyB\"\n _customer_managed_encry" + + "ption_key\"\342\003\n\014StreamObject\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\031\n\014dis" + + "play_name\030\005 \001(\tB\003\340A\002\0226\n\006errors\030\006 \003(\0132!.g" + + "oogle.cloud.datastream.v1.ErrorB\003\340A\003\022=\n\014" + + "backfill_job\030\007 \001(\0132\'.google.cloud.datast" + + "ream.v1.BackfillJob\022I\n\rsource_object\030\010 \001" + + "(\01322.google.cloud.datastream.v1.SourceOb" + + "jectIdentifier:v\352As\n&datastream.googleap" + + "is.com/StreamObject\022Iprojects/{project}/" + + "locations/{location}/streams/{stream}/ob" + + "jects/{object}\"\271\004\n\026SourceObjectIdentifie" + + "r\022f\n\021oracle_identifier\030\001 \001(\0132I.google.cl" + + "oud.datastream.v1.SourceObjectIdentifier" + + ".OracleObjectIdentifierH\000\022d\n\020mysql_ident" + + "ifier\030\002 \001(\0132H.google.cloud.datastream.v1" + + ".SourceObjectIdentifier.MysqlObjectIdent" + + "ifierH\000\022n\n\025postgresql_identifier\030\003 \001(\0132M" + + ".google.cloud.datastream.v1.SourceObject" + + "Identifier.PostgresqlObjectIdentifierH\000\032" + + "A\n\026OracleObjectIdentifier\022\023\n\006schema\030\001 \001(" + + "\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\032E\n\032Postgresql" + + "ObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022\022\n" + + "\005table\030\002 \001(\tB\003\340A\002\032B\n\025MysqlObjectIdentifi" + + "er\022\025\n\010database\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\t" + + "B\003\340A\002B\023\n\021source_identifier\"\372\003\n\013BackfillJ" + + "ob\022<\n\005state\030\001 \001(\0162-.google.cloud.datastr" + + "eam.v1.BackfillJob.State\022@\n\007trigger\030\002 \001(" + + "\0162/.google.cloud.datastream.v1.BackfillJ" + + "ob.Trigger\0228\n\017last_start_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0226\n\rlast_end" + + "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0226\n\006errors\030\005 \003(\0132!.google.cloud.data" + + "stream.v1.ErrorB\003\340A\003\"\201\001\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007PENDIN" + + "G\020\002\022\n\n\006ACTIVE\020\003\022\013\n\007STOPPED\020\004\022\n\n\006FAILED\020\005" + + "\022\r\n\tCOMPLETED\020\006\022\017\n\013UNSUPPORTED\020\007\"=\n\007Trig" + + "ger\022\027\n\023TRIGGER_UNSPECIFIED\020\000\022\r\n\tAUTOMATI" + + "C\020\001\022\n\n\006MANUAL\020\002\"\335\001\n\005Error\022\016\n\006reason\030\001 \001(" + + "\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022." + + "\n\nerror_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\022?\n\007details\030\005 \003(\0132..google.cloud.d" + + "atastream.v1.Error.DetailsEntry\032.\n\014Detai" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "O\n\020ValidationResult\022;\n\013validations\030\001 \003(\013" + + "2&.google.cloud.datastream.v1.Validation" + + "\"\366\001\n\nValidation\022\023\n\013description\030\001 \001(\t\022;\n\005" + + "state\030\002 \001(\0162,.google.cloud.datastream.v1" + + ".Validation.State\022>\n\007message\030\003 \003(\0132-.goo" + + "gle.cloud.datastream.v1.ValidationMessag" + + "e\022\014\n\004code\030\004 \001(\t\"H\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n" + + "\006PASSED\020\003\"\256\002\n\021ValidationMessage\022\017\n\007messa" + + "ge\030\001 \001(\t\022B\n\005level\030\002 \001(\01623.google.cloud.d" + + "atastream.v1.ValidationMessage.Level\022M\n\010" + + "metadata\030\003 \003(\0132;.google.cloud.datastream" + + ".v1.ValidationMessage.MetadataEntry\022\014\n\004c" + + "ode\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNS" + + "PECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\256\002\n\036c" + + "om.google.cloud.datastream.v1B\030Datastrea" + + "mResourcesProtoP\001ZDgoogle.golang.org/gen" + + "proto/googleapis/cloud/datastream/v1;dat" + + "astream\252\002\032Google.Cloud.Datastream.V1\312\002\032G" + + "oogle\\Cloud\\Datastream\\V1\352\002\035Google::Clou" + + "d::Datastream::V1\352AO\n\037compute.googleapis" + + ".com/Networks\022,projects/{project}/global" + + "/networks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), @@ -494,22 +608,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Hostname", "Port", "Username", "Password", "SslConfig", }); - internal_static_google_cloud_datastream_v1_GcsProfile_descriptor = + internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor, + new java.lang.String[] { + "Hostname", "Port", "Username", "Password", "Database", + }); + internal_static_google_cloud_datastream_v1_GcsProfile_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_GcsProfile_descriptor, new java.lang.String[] { "Bucket", "RootPath", }); + internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor, + new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor, new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor, @@ -517,7 +645,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Hostname", "Username", "Port", "Password", "PrivateKey", "AuthenticationMethod", }); internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor, @@ -525,7 +653,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Vpc", "Subnet", }); internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor, @@ -550,7 +678,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor, @@ -558,7 +686,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateConnection", }); internal_static_google_cloud_datastream_v1_Route_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Route_descriptor, @@ -580,7 +708,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor, @@ -593,7 +721,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CaCertificateSet", }); internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor, @@ -606,6 +734,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OracleProfile", "GcsProfile", "MysqlProfile", + "BigqueryProfile", + "PostgresqlProfile", "StaticServiceIpConnectivity", "ForwardSshConnectivity", "PrivateConnectivity", @@ -623,7 +753,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_OracleColumn_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleColumn_descriptor, @@ -639,7 +769,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrdinalPosition", }); internal_static_google_cloud_datastream_v1_OracleTable_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleTable_descriptor, @@ -647,7 +777,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "OracleColumns", }); internal_static_google_cloud_datastream_v1_OracleSchema_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleSchema_descriptor, @@ -655,7 +785,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Schema", "OracleTables", }); internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor, @@ -663,15 +793,83 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OracleSchemas", }); internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor, new java.lang.String[] { - "IncludeObjects", "ExcludeObjects", + "IncludeObjects", + "ExcludeObjects", + "MaxConcurrentCdcTasks", + "DropLargeObjects", + "StreamLargeObjects", + "LargeObjectsHandling", + }); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor = + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor = + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor, + new java.lang.String[] { + "Column", + "DataType", + "Length", + "Precision", + "Scale", + "PrimaryKey", + "Nullable", + "OrdinalPosition", + }); + internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor, + new java.lang.String[] { + "Table", "PostgresqlColumns", + }); + internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor, + new java.lang.String[] { + "Schema", "PostgresqlTables", + }); + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor, + new java.lang.String[] { + "PostgresqlSchemas", + }); + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor, + new java.lang.String[] { + "IncludeObjects", "ExcludeObjects", "ReplicationSlot", "Publication", }); internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor, @@ -685,7 +883,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrdinalPosition", }); internal_static_google_cloud_datastream_v1_MysqlTable_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlTable_descriptor, @@ -693,7 +891,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "MysqlColumns", }); internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor, @@ -701,7 +899,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "MysqlTables", }); internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor, @@ -709,15 +907,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MysqlDatabases", }); internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor, new java.lang.String[] { - "IncludeObjects", "ExcludeObjects", + "IncludeObjects", "ExcludeObjects", "MaxConcurrentCdcTasks", }); internal_static_google_cloud_datastream_v1_SourceConfig_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SourceConfig_descriptor, @@ -725,16 +923,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceConnectionProfile", "OracleSourceConfig", "MysqlSourceConfig", + "PostgresqlSourceConfig", "SourceStreamConfig", }); internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor, new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor, @@ -742,7 +941,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SchemaFileFormat", "Compression", }); internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor, @@ -754,16 +953,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "JsonFileFormat", "FileFormat", }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor, + new java.lang.String[] { + "SingleTargetDataset", "SourceHierarchyDatasets", "DataFreshness", "DatasetConfig", + }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor, + new java.lang.String[] { + "DatasetId", + }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor, + new java.lang.String[] { + "DatasetTemplate", + }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor, + new java.lang.String[] { + "Location", "DatasetIdPrefix", "KmsKeyName", + }); internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor, new java.lang.String[] { - "DestinationConnectionProfile", "GcsDestinationConfig", "DestinationStreamConfig", + "DestinationConnectionProfile", + "GcsDestinationConfig", + "BigqueryDestinationConfig", + "DestinationStreamConfig", }); internal_static_google_cloud_datastream_v1_Stream_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Stream_descriptor, @@ -789,7 +1029,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor, new java.lang.String[] { - "OracleExcludedObjects", "MysqlExcludedObjects", "ExcludedObjects", + "OracleExcludedObjects", + "MysqlExcludedObjects", + "PostgresqlExcludedObjects", + "ExcludedObjects", }); internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor = internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(1); @@ -806,7 +1049,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_StreamObject_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_StreamObject_descriptor, @@ -820,12 +1063,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceObject", }); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor, new java.lang.String[] { - "OracleIdentifier", "MysqlIdentifier", "SourceIdentifier", + "OracleIdentifier", "MysqlIdentifier", "PostgresqlIdentifier", "SourceIdentifier", }); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor = internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor @@ -837,10 +1080,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Schema", "Table", }); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor = internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor, + new java.lang.String[] { + "Schema", "Table", + }); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor + .getNestedTypes() + .get(2); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor, @@ -848,7 +1101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "Table", }); internal_static_google_cloud_datastream_v1_BackfillJob_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_BackfillJob_descriptor, @@ -856,7 +1109,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "Trigger", "LastStartTime", "LastEndTime", "Errors", }); internal_static_google_cloud_datastream_v1_Error_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Error_descriptor, @@ -872,7 +1125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_ValidationResult_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ValidationResult_descriptor, @@ -880,7 +1133,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Validations", }); internal_static_google_cloud_datastream_v1_Validation_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Validation_descriptor, @@ -888,7 +1141,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "State", "Message", "Code", }); internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor, @@ -913,7 +1166,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java index 09d2e139..7533cd89 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java @@ -97,6 +97,28 @@ private DestinationConfig( destinationStreamConfigCase_ = 100; break; } + case 810: + { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder subBuilder = null; + if (destinationStreamConfigCase_ == 101) { + subBuilder = + ((com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_) + .toBuilder(); + } + destinationStreamConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_); + destinationStreamConfig_ = subBuilder.buildPartial(); + } + destinationStreamConfigCase_ = 101; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -141,6 +163,7 @@ public enum DestinationStreamConfigCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION_CONFIG(100), + BIGQUERY_DESTINATION_CONFIG(101), DESTINATIONSTREAMCONFIG_NOT_SET(0); private final int value; @@ -161,6 +184,8 @@ public static DestinationStreamConfigCase forNumber(int value) { switch (value) { case 100: return GCS_DESTINATION_CONFIG; + case 101: + return BIGQUERY_DESTINATION_CONFIG; case 0: return DESTINATIONSTREAMCONFIG_NOT_SET; default: @@ -284,6 +309,61 @@ public com.google.cloud.datastream.v1.GcsDestinationConfig getGcsDestinationConf return com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); } + public static final int BIGQUERY_DESTINATION_CONFIG_FIELD_NUMBER = 101; + /** + * + * + *
+   * BigQuery destination configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * + * @return Whether the bigqueryDestinationConfig field is set. + */ + @java.lang.Override + public boolean hasBigqueryDestinationConfig() { + return destinationStreamConfigCase_ == 101; + } + /** + * + * + *
+   * BigQuery destination configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * + * @return The bigqueryDestinationConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDestinationConfig() { + if (destinationStreamConfigCase_ == 101) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } + /** + * + * + *
+   * BigQuery destination configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder + getBigqueryDestinationConfigOrBuilder() { + if (destinationStreamConfigCase_ == 101) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -305,6 +385,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 100, (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); } + if (destinationStreamConfigCase_ == 101) { + output.writeMessage( + 101, (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); + } unknownFields.writeTo(output); } @@ -324,6 +408,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 100, (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); } + if (destinationStreamConfigCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -348,6 +438,10 @@ public boolean equals(final java.lang.Object obj) { case 100: if (!getGcsDestinationConfig().equals(other.getGcsDestinationConfig())) return false; break; + case 101: + if (!getBigqueryDestinationConfig().equals(other.getBigqueryDestinationConfig())) + return false; + break; case 0: default: } @@ -369,6 +463,10 @@ public int hashCode() { hash = (37 * hash) + GCS_DESTINATION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getGcsDestinationConfig().hashCode(); break; + case 101: + hash = (37 * hash) + BIGQUERY_DESTINATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryDestinationConfig().hashCode(); + break; case 0: default: } @@ -556,6 +654,13 @@ public com.google.cloud.datastream.v1.DestinationConfig buildPartial() { result.destinationStreamConfig_ = gcsDestinationConfigBuilder_.build(); } } + if (destinationStreamConfigCase_ == 101) { + if (bigqueryDestinationConfigBuilder_ == null) { + result.destinationStreamConfig_ = destinationStreamConfig_; + } else { + result.destinationStreamConfig_ = bigqueryDestinationConfigBuilder_.build(); + } + } result.destinationStreamConfigCase_ = destinationStreamConfigCase_; onBuilt(); return result; @@ -617,6 +722,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.DestinationConfig other) mergeGcsDestinationConfig(other.getGcsDestinationConfig()); break; } + case BIGQUERY_DESTINATION_CONFIG: + { + mergeBigqueryDestinationConfig(other.getBigqueryDestinationConfig()); + break; + } case DESTINATIONSTREAMCONFIG_NOT_SET: { break; @@ -1003,6 +1113,243 @@ public Builder clearGcsDestinationConfig() { return gcsDestinationConfigBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder> + bigqueryDestinationConfigBuilder_; + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * + * @return Whether the bigqueryDestinationConfig field is set. + */ + @java.lang.Override + public boolean hasBigqueryDestinationConfig() { + return destinationStreamConfigCase_ == 101; + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * + * @return The bigqueryDestinationConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDestinationConfig() { + if (bigqueryDestinationConfigBuilder_ == null) { + if (destinationStreamConfigCase_ == 101) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } else { + if (destinationStreamConfigCase_ == 101) { + return bigqueryDestinationConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + public Builder setBigqueryDestinationConfig( + com.google.cloud.datastream.v1.BigQueryDestinationConfig value) { + if (bigqueryDestinationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destinationStreamConfig_ = value; + onChanged(); + } else { + bigqueryDestinationConfigBuilder_.setMessage(value); + } + destinationStreamConfigCase_ = 101; + return this; + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + public Builder setBigqueryDestinationConfig( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder builderForValue) { + if (bigqueryDestinationConfigBuilder_ == null) { + destinationStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + bigqueryDestinationConfigBuilder_.setMessage(builderForValue.build()); + } + destinationStreamConfigCase_ = 101; + return this; + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + public Builder mergeBigqueryDestinationConfig( + com.google.cloud.datastream.v1.BigQueryDestinationConfig value) { + if (bigqueryDestinationConfigBuilder_ == null) { + if (destinationStreamConfigCase_ == 101 + && destinationStreamConfig_ + != com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance()) { + destinationStreamConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.newBuilder( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + destinationStreamConfig_ = value; + } + onChanged(); + } else { + if (destinationStreamConfigCase_ == 101) { + bigqueryDestinationConfigBuilder_.mergeFrom(value); + } else { + bigqueryDestinationConfigBuilder_.setMessage(value); + } + } + destinationStreamConfigCase_ = 101; + return this; + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + public Builder clearBigqueryDestinationConfig() { + if (bigqueryDestinationConfigBuilder_ == null) { + if (destinationStreamConfigCase_ == 101) { + destinationStreamConfigCase_ = 0; + destinationStreamConfig_ = null; + onChanged(); + } + } else { + if (destinationStreamConfigCase_ == 101) { + destinationStreamConfigCase_ = 0; + destinationStreamConfig_ = null; + } + bigqueryDestinationConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder + getBigqueryDestinationConfigBuilder() { + return getBigqueryDestinationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder + getBigqueryDestinationConfigOrBuilder() { + if ((destinationStreamConfigCase_ == 101) && (bigqueryDestinationConfigBuilder_ != null)) { + return bigqueryDestinationConfigBuilder_.getMessageOrBuilder(); + } else { + if (destinationStreamConfigCase_ == 101) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder> + getBigqueryDestinationConfigFieldBuilder() { + if (bigqueryDestinationConfigBuilder_ == null) { + if (!(destinationStreamConfigCase_ == 101)) { + destinationStreamConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } + bigqueryDestinationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_, + getParentForChildren(), + isClean()); + destinationStreamConfig_ = null; + } + destinationStreamConfigCase_ = 101; + onChanged(); + ; + return bigqueryDestinationConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java index d398d79f..6c9dd4b6 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java @@ -89,6 +89,45 @@ public interface DestinationConfigOrBuilder */ com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder(); + /** + * + * + *
+   * BigQuery destination configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * + * @return Whether the bigqueryDestinationConfig field is set. + */ + boolean hasBigqueryDestinationConfig(); + /** + * + * + *
+   * BigQuery destination configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * + * @return The bigqueryDestinationConfig. + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDestinationConfig(); + /** + * + * + *
+   * BigQuery destination configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder + getBigqueryDestinationConfigOrBuilder(); + public com.google.cloud.datastream.v1.DestinationConfig.DestinationStreamConfigCase getDestinationStreamConfigCase(); } diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java index f019a421..296e2b58 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java @@ -122,6 +122,23 @@ private DiscoverConnectionProfileRequest( dataObjectCase_ = 101; break; } + case 818: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 102; + break; + } case 1602: { com.google.cloud.datastream.v1.ConnectionProfile.Builder subBuilder = null; @@ -285,6 +302,7 @@ public enum DataObjectCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), + POSTGRESQL_RDBMS(102), DATAOBJECT_NOT_SET(0); private final int value; @@ -307,6 +325,8 @@ public static DataObjectCase forNumber(int value) { return ORACLE_RDBMS; case 101: return MYSQL_RDBMS; + case 102: + return POSTGRESQL_RDBMS; case 0: return DATAOBJECT_NOT_SET; default: @@ -673,6 +693,57 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } + public static final int POSTGRESQL_RDBMS_FIELD_NUMBER = 102; + /** + * + * + *
+   * PostgreSQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return Whether the postgresqlRdbms field is set. + */ + @java.lang.Override + public boolean hasPostgresqlRdbms() { + return dataObjectCase_ == 102; + } + /** + * + * + *
+   * PostgreSQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return The postgresqlRdbms. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + /** + * + * + *
+   * PostgreSQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -702,6 +773,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataObjectCase_ == 101) { output.writeMessage(101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } + if (dataObjectCase_ == 102) { + output.writeMessage(102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + } if (targetCase_ == 200) { output.writeMessage(200, (com.google.cloud.datastream.v1.ConnectionProfile) target_); } @@ -740,6 +814,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } + if (dataObjectCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + } if (targetCase_ == 200) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -795,6 +874,9 @@ public boolean equals(final java.lang.Object obj) { case 101: if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; break; + case 102: + if (!getPostgresqlRdbms().equals(other.getPostgresqlRdbms())) return false; + break; case 0: default: } @@ -844,6 +926,10 @@ public int hashCode() { hash = (37 * hash) + MYSQL_RDBMS_FIELD_NUMBER; hash = (53 * hash) + getMysqlRdbms().hashCode(); break; + case 102: + hash = (37 * hash) + POSTGRESQL_RDBMS_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlRdbms().hashCode(); + break; case 0: default: } @@ -1060,6 +1146,13 @@ public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest buildPart result.dataObject_ = mysqlRdbmsBuilder_.build(); } } + if (dataObjectCase_ == 102) { + if (postgresqlRdbmsBuilder_ == null) { + result.dataObject_ = dataObject_; + } else { + result.dataObject_ = postgresqlRdbmsBuilder_.build(); + } + } result.targetCase_ = targetCase_; result.hierarchyCase_ = hierarchyCase_; result.dataObjectCase_ = dataObjectCase_; @@ -1164,6 +1257,11 @@ public Builder mergeFrom( mergeMysqlRdbms(other.getMysqlRdbms()); break; } + case POSTGRESQL_RDBMS: + { + mergePostgresqlRdbms(other.getPostgresqlRdbms()); + break; + } case DATAOBJECT_NOT_SET: { break; @@ -2270,6 +2368,216 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder return mysqlRdbmsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + postgresqlRdbmsBuilder_; + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return Whether the postgresqlRdbms field is set. + */ + @java.lang.Override + public boolean hasPostgresqlRdbms() { + return dataObjectCase_ == 102; + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return The postgresqlRdbms. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { + if (postgresqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } else { + if (dataObjectCase_ == 102) { + return postgresqlRdbmsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder setPostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (postgresqlRdbmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + postgresqlRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 102; + return this; + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder setPostgresqlRdbms( + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue) { + if (postgresqlRdbmsBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + postgresqlRdbmsBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 102; + return this; + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (postgresqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 102 + && dataObject_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 102) { + postgresqlRdbmsBuilder_.mergeFrom(value); + } else { + postgresqlRdbmsBuilder_.setMessage(value); + } + } + dataObjectCase_ = 102; + return this; + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder clearPostgresqlRdbms() { + if (postgresqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 102) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 102) { + dataObjectCase_ = 0; + dataObject_ = null; + } + postgresqlRdbmsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlRdbmsBuilder() { + return getPostgresqlRdbmsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { + if ((dataObjectCase_ == 102) && (postgresqlRdbmsBuilder_ != null)) { + return postgresqlRdbmsBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + getPostgresqlRdbmsFieldBuilder() { + if (postgresqlRdbmsBuilder_ == null) { + if (!(dataObjectCase_ == 102)) { + dataObject_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + postgresqlRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 102; + onChanged(); + ; + return postgresqlRdbmsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java index 441dc035..d8e5477f 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java @@ -248,6 +248,41 @@ public interface DiscoverConnectionProfileRequestOrBuilder */ com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); + /** + * + * + *
+   * PostgreSQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return Whether the postgresqlRdbms field is set. + */ + boolean hasPostgresqlRdbms(); + /** + * + * + *
+   * PostgreSQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return The postgresqlRdbms. + */ + com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms(); + /** + * + * + *
+   * PostgreSQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder(); + public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.TargetCase getTargetCase(); public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.HierarchyCase diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java index 8fc911e5..c512569c 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java @@ -101,6 +101,23 @@ private DiscoverConnectionProfileResponse( dataObjectCase_ = 101; break; } + case 818: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 102; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -146,6 +163,7 @@ public enum DataObjectCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), + POSTGRESQL_RDBMS(102), DATAOBJECT_NOT_SET(0); private final int value; @@ -168,6 +186,8 @@ public static DataObjectCase forNumber(int value) { return ORACLE_RDBMS; case 101: return MYSQL_RDBMS; + case 102: + return POSTGRESQL_RDBMS; case 0: return DATAOBJECT_NOT_SET; default: @@ -286,6 +306,57 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } + public static final int POSTGRESQL_RDBMS_FIELD_NUMBER = 102; + /** + * + * + *
+   * Enriched PostgreSQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return Whether the postgresqlRdbms field is set. + */ + @java.lang.Override + public boolean hasPostgresqlRdbms() { + return dataObjectCase_ == 102; + } + /** + * + * + *
+   * Enriched PostgreSQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return The postgresqlRdbms. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + /** + * + * + *
+   * Enriched PostgreSQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -306,6 +377,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataObjectCase_ == 101) { output.writeMessage(101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } + if (dataObjectCase_ == 102) { + output.writeMessage(102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + } unknownFields.writeTo(output); } @@ -325,6 +399,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } + if (dataObjectCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -349,6 +428,9 @@ public boolean equals(final java.lang.Object obj) { case 101: if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; break; + case 102: + if (!getPostgresqlRdbms().equals(other.getPostgresqlRdbms())) return false; + break; case 0: default: } @@ -372,6 +454,10 @@ public int hashCode() { hash = (37 * hash) + MYSQL_RDBMS_FIELD_NUMBER; hash = (53 * hash) + getMysqlRdbms().hashCode(); break; + case 102: + hash = (37 * hash) + POSTGRESQL_RDBMS_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlRdbms().hashCode(); + break; case 0: default: } @@ -565,6 +651,13 @@ public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse buildPar result.dataObject_ = mysqlRdbmsBuilder_.build(); } } + if (dataObjectCase_ == 102) { + if (postgresqlRdbmsBuilder_ == null) { + result.dataObject_ = dataObject_; + } else { + result.dataObject_ = postgresqlRdbmsBuilder_.build(); + } + } result.dataObjectCase_ = dataObjectCase_; onBuilt(); return result; @@ -629,6 +722,11 @@ public Builder mergeFrom( mergeMysqlRdbms(other.getMysqlRdbms()); break; } + case POSTGRESQL_RDBMS: + { + mergePostgresqlRdbms(other.getPostgresqlRdbms()); + break; + } case DATAOBJECT_NOT_SET: { break; @@ -1099,6 +1197,216 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder return mysqlRdbmsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + postgresqlRdbmsBuilder_; + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return Whether the postgresqlRdbms field is set. + */ + @java.lang.Override + public boolean hasPostgresqlRdbms() { + return dataObjectCase_ == 102; + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return The postgresqlRdbms. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { + if (postgresqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } else { + if (dataObjectCase_ == 102) { + return postgresqlRdbmsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder setPostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (postgresqlRdbmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + postgresqlRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 102; + return this; + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder setPostgresqlRdbms( + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue) { + if (postgresqlRdbmsBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + postgresqlRdbmsBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 102; + return this; + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (postgresqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 102 + && dataObject_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 102) { + postgresqlRdbmsBuilder_.mergeFrom(value); + } else { + postgresqlRdbmsBuilder_.setMessage(value); + } + } + dataObjectCase_ = 102; + return this; + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder clearPostgresqlRdbms() { + if (postgresqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 102) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 102) { + dataObjectCase_ = 0; + dataObject_ = null; + } + postgresqlRdbmsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlRdbmsBuilder() { + return getPostgresqlRdbmsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { + if ((dataObjectCase_ == 102) && (postgresqlRdbmsBuilder_ != null)) { + return postgresqlRdbmsBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + getPostgresqlRdbmsFieldBuilder() { + if (postgresqlRdbmsBuilder_ == null) { + if (!(dataObjectCase_ == 102)) { + dataObject_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + postgresqlRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 102; + onChanged(); + ; + return postgresqlRdbmsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java index fae946e6..d458039a 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java @@ -93,6 +93,41 @@ public interface DiscoverConnectionProfileResponseOrBuilder */ com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); + /** + * + * + *
+   * Enriched PostgreSQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return Whether the postgresqlRdbms field is set. + */ + boolean hasPostgresqlRdbms(); + /** + * + * + *
+   * Enriched PostgreSQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return The postgresqlRdbms. + */ + com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms(); + /** + * + * + *
+   * Enriched PostgreSQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder(); + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.DataObjectCase getDataObjectCase(); } diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java index f29e43fa..6a21038d 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java @@ -98,6 +98,11 @@ private MysqlSourceConfig( excludeObjects_ = subBuilder.buildPartial(); } + break; + } + case 24: + { + maxConcurrentCdcTasks_ = input.readInt32(); break; } default: @@ -232,6 +237,25 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBui return getExcludeObjects(); } + public static final int MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER = 3; + private int maxConcurrentCdcTasks_; + /** + * + * + *
+   * Maximum number of concurrent CDC tasks. The number should be non negative.
+   * If not set (or set to 0), the system's default value will be used.
+   * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + @java.lang.Override + public int getMaxConcurrentCdcTasks() { + return maxConcurrentCdcTasks_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -252,6 +276,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (excludeObjects_ != null) { output.writeMessage(2, getExcludeObjects()); } + if (maxConcurrentCdcTasks_ != 0) { + output.writeInt32(3, maxConcurrentCdcTasks_); + } unknownFields.writeTo(output); } @@ -267,6 +294,9 @@ public int getSerializedSize() { if (excludeObjects_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); } + if (maxConcurrentCdcTasks_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentCdcTasks_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -291,6 +321,7 @@ public boolean equals(final java.lang.Object obj) { if (hasExcludeObjects()) { if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; } + if (getMaxConcurrentCdcTasks() != other.getMaxConcurrentCdcTasks()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -310,6 +341,8 @@ public int hashCode() { hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; hash = (53 * hash) + getExcludeObjects().hashCode(); } + hash = (37 * hash) + MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxConcurrentCdcTasks(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -467,6 +500,8 @@ public Builder clear() { excludeObjects_ = null; excludeObjectsBuilder_ = null; } + maxConcurrentCdcTasks_ = 0; + return this; } @@ -504,6 +539,7 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig buildPartial() { } else { result.excludeObjects_ = excludeObjectsBuilder_.build(); } + result.maxConcurrentCdcTasks_ = maxConcurrentCdcTasks_; onBuilt(); return result; } @@ -560,6 +596,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlSourceConfig other) if (other.hasExcludeObjects()) { mergeExcludeObjects(other.getExcludeObjects()); } + if (other.getMaxConcurrentCdcTasks() != 0) { + setMaxConcurrentCdcTasks(other.getMaxConcurrentCdcTasks()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -961,6 +1000,61 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBui return excludeObjectsBuilder_; } + private int maxConcurrentCdcTasks_; + /** + * + * + *
+     * Maximum number of concurrent CDC tasks. The number should be non negative.
+     * If not set (or set to 0), the system's default value will be used.
+     * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + @java.lang.Override + public int getMaxConcurrentCdcTasks() { + return maxConcurrentCdcTasks_; + } + /** + * + * + *
+     * Maximum number of concurrent CDC tasks. The number should be non negative.
+     * If not set (or set to 0), the system's default value will be used.
+     * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @param value The maxConcurrentCdcTasks to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentCdcTasks(int value) { + + maxConcurrentCdcTasks_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum number of concurrent CDC tasks. The number should be non negative.
+     * If not set (or set to 0), the system's default value will be used.
+     * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentCdcTasks() { + + maxConcurrentCdcTasks_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java index 6e48479b..a547dbbf 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java @@ -92,4 +92,18 @@ public interface MysqlSourceConfigOrBuilder * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; */ com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBuilder(); + + /** + * + * + *
+   * Maximum number of concurrent CDC tasks. The number should be non negative.
+   * If not set (or set to 0), the system's default value will be used.
+   * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + int getMaxConcurrentCdcTasks(); } diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java index 70670879..7aafc122 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java @@ -292,8 +292,8 @@ public boolean getClientCertificateSet() { * * *
-   * Input only. PEM-encoded certificate of the CA that signed the source
-   * database server's certificate.
+   * Input only. PEM-encoded certificate of the CA that signed the source database
+   * server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -316,8 +316,8 @@ public java.lang.String getCaCertificate() { * * *
-   * Input only. PEM-encoded certificate of the CA that signed the source
-   * database server's certificate.
+   * Input only. PEM-encoded certificate of the CA that signed the source database
+   * server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1089,8 +1089,8 @@ public Builder clearClientCertificateSet() { * * *
-     * Input only. PEM-encoded certificate of the CA that signed the source
-     * database server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source database
+     * server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1112,8 +1112,8 @@ public java.lang.String getCaCertificate() { * * *
-     * Input only. PEM-encoded certificate of the CA that signed the source
-     * database server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source database
+     * server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1135,8 +1135,8 @@ public com.google.protobuf.ByteString getCaCertificateBytes() { * * *
-     * Input only. PEM-encoded certificate of the CA that signed the source
-     * database server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source database
+     * server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1157,8 +1157,8 @@ public Builder setCaCertificate(java.lang.String value) { * * *
-     * Input only. PEM-encoded certificate of the CA that signed the source
-     * database server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source database
+     * server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1175,8 +1175,8 @@ public Builder clearCaCertificate() { * * *
-     * Input only. PEM-encoded certificate of the CA that signed the source
-     * database server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source database
+     * server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java index 07af8fd6..19562b09 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java @@ -111,8 +111,8 @@ public interface MysqlSslConfigOrBuilder * * *
-   * Input only. PEM-encoded certificate of the CA that signed the source
-   * database server's certificate.
+   * Input only. PEM-encoded certificate of the CA that signed the source database
+   * server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -124,8 +124,8 @@ public interface MysqlSslConfigOrBuilder * * *
-   * Input only. PEM-encoded certificate of the CA that signed the source
-   * database server's certificate.
+   * Input only. PEM-encoded certificate of the CA that signed the source database
+   * server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java index 9e1efd5f..5825182e 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java @@ -186,7 +186,7 @@ public com.google.protobuf.ByteString getTableBytes() { * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -201,7 +201,7 @@ public java.util.List getMysqlColumn * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -217,7 +217,7 @@ public java.util.List getMysqlColumn * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -232,7 +232,7 @@ public int getMysqlColumnsCount() { * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -247,7 +247,7 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) { * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -760,7 +760,7 @@ private void ensureMysqlColumnsIsMutable() { * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -778,7 +778,7 @@ public java.util.List getMysqlColumn * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -796,7 +796,7 @@ public int getMysqlColumnsCount() { * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -814,7 +814,7 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) { * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -838,7 +838,7 @@ public Builder setMysqlColumns(int index, com.google.cloud.datastream.v1.MysqlCo * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -860,7 +860,7 @@ public Builder setMysqlColumns( * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -884,7 +884,7 @@ public Builder addMysqlColumns(com.google.cloud.datastream.v1.MysqlColumn value) * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -908,7 +908,7 @@ public Builder addMysqlColumns(int index, com.google.cloud.datastream.v1.MysqlCo * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -930,7 +930,7 @@ public Builder addMysqlColumns( * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -952,7 +952,7 @@ public Builder addMysqlColumns( * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -974,7 +974,7 @@ public Builder addAllMysqlColumns( * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -995,7 +995,7 @@ public Builder clearMysqlColumns() { * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1016,7 +1016,7 @@ public Builder removeMysqlColumns(int index) { * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1030,7 +1030,7 @@ public com.google.cloud.datastream.v1.MysqlColumn.Builder getMysqlColumnsBuilder * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1048,7 +1048,7 @@ public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuil * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1067,7 +1067,7 @@ public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuil * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1082,7 +1082,7 @@ public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1097,7 +1097,7 @@ public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java index 494e62d3..06dcb4c2 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java @@ -53,7 +53,7 @@ public interface MysqlTableOrBuilder * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -65,7 +65,7 @@ public interface MysqlTableOrBuilder * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -77,7 +77,7 @@ public interface MysqlTableOrBuilder * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -89,7 +89,7 @@ public interface MysqlTableOrBuilder * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -102,7 +102,7 @@ public interface MysqlTableOrBuilder * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java index 1ee5cf80..a7554aab 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java @@ -98,6 +98,57 @@ private OracleSourceConfig( excludeObjects_ = subBuilder.buildPartial(); } + break; + } + case 24: + { + maxConcurrentCdcTasks_ = input.readInt32(); + break; + } + case 802: + { + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder + subBuilder = null; + if (largeObjectsHandlingCase_ == 100) { + subBuilder = + ((com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_) + .toBuilder(); + } + largeObjectsHandling_ = + input.readMessage( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_); + largeObjectsHandling_ = subBuilder.buildPartial(); + } + largeObjectsHandlingCase_ = 100; + break; + } + case 818: + { + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder + subBuilder = null; + if (largeObjectsHandlingCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_) + .toBuilder(); + } + largeObjectsHandling_ = + input.readMessage( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_); + largeObjectsHandling_ = subBuilder.buildPartial(); + } + largeObjectsHandlingCase_ = 102; break; } default: @@ -136,830 +187,2593 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); } - public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; - private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; - /** - * - * - *
-   * Oracle objects to include in the stream.
-   * 
- * - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; - * - * @return Whether the includeObjects field is set. - */ - @java.lang.Override - public boolean hasIncludeObjects() { - return includeObjects_ != null; - } - /** - * - * - *
-   * Oracle objects to include in the stream.
-   * 
- * - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; - * - * @return The includeObjects. - */ - @java.lang.Override - public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : includeObjects_; - } + public interface DropLargeObjectsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + com.google.protobuf.MessageOrBuilder {} /** * * *
-   * Oracle objects to include in the stream.
+   * Configuration to drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects} */ - @java.lang.Override - public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder() { - return getIncludeObjects(); - } + public static final class DropLargeObjects extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + DropLargeObjectsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DropLargeObjects.newBuilder() to construct. + private DropLargeObjects(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; - private com.google.cloud.datastream.v1.OracleRdbms excludeObjects_; - /** - * - * - *
-   * Oracle objects to exclude from the stream.
-   * 
- * - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; - * - * @return Whether the excludeObjects field is set. - */ - @java.lang.Override - public boolean hasExcludeObjects() { - return excludeObjects_ != null; - } - /** - * - * - *
-   * Oracle objects to exclude from the stream.
-   * 
- * - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; - * - * @return The excludeObjects. - */ - @java.lang.Override - public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : excludeObjects_; - } - /** - * - * - *
-   * Oracle objects to exclude from the stream.
-   * 
- * - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; - */ - @java.lang.Override - public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder() { - return getExcludeObjects(); - } + private DropLargeObjects() {} - private byte memoizedIsInitialized = -1; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DropLargeObjects(); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - memoizedIsInitialized = 1; - return true; - } + private DropLargeObjects( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (includeObjects_ != null) { - output.writeMessage(1, getIncludeObjects()); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; } - if (excludeObjects_ != null) { - output.writeMessage(2, getExcludeObjects()); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.class, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder.class); } - unknownFields.writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private byte memoizedIsInitialized = -1; - size = 0; - if (includeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - if (excludeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects other = + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; return true; } - if (!(obj instanceof com.google.cloud.datastream.v1.OracleSourceConfig)) { - return super.equals(obj); + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - com.google.cloud.datastream.v1.OracleSourceConfig other = - (com.google.cloud.datastream.v1.OracleSourceConfig) obj; - if (hasIncludeObjects() != other.hasIncludeObjects()) return false; - if (hasIncludeObjects()) { - if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (hasExcludeObjects() != other.hasExcludeObjects()) return false; - if (hasExcludeObjects()) { - if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIncludeObjects()) { - hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; - hash = (53 * hash) + getIncludeObjects().hashCode(); + + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (hasExcludeObjects()) { - hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; - hash = (53 * hash) + getExcludeObjects().hashCode(); + + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig 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.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects 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.datastream.v1.OracleSourceConfig 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.datastream.v1.OracleSourceConfig.DropLargeObjects + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + 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.datastream.v1.OracleSourceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - java.io.InputStream 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 com.google.cloud.datastream.v1.OracleSourceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig 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 Builder newBuilder( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig 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 + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration to drop large object values.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.class, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder.class); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + // Construct using + // com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static Builder newBuilder(com.google.cloud.datastream.v1.OracleSourceConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects build() { + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects buildPartial() { + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects result = + new com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) { + return mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects other) { + if (other + == com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.datastream.v1.OracleSourceConfig.DropLargeObjects) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + private static final com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects(); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DropLargeObjects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DropLargeObjects(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } + + public interface StreamLargeObjectsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + com.google.protobuf.MessageOrBuilder {} /** * * *
-   * Oracle data source configuration
+   * Configuration to stream large object values.
    * 
* - * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig} + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class StreamLargeObjects extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig) - com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + StreamLargeObjectsOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamLargeObjects.newBuilder() to construct. + private StreamLargeObjects(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamLargeObjects() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamLargeObjects(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamLargeObjects( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.class, - com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.class, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder.class); } - // Construct using com.google.cloud.datastream.v1.OracleSourceConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + 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; } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public Builder clear() { - super.clear(); - if (includeObjectsBuilder_ == null) { - includeObjects_ = null; - } else { - includeObjects_ = null; - includeObjectsBuilder_ = null; + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - if (excludeObjectsBuilder_ == null) { - excludeObjects_ = null; - } else { - excludeObjects_ = null; - excludeObjectsBuilder_ = null; + if (!(obj instanceof com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects)) { + return super.equals(obj); } - return this; + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects other = + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig build() { - com.google.cloud.datastream.v1.OracleSourceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig buildPartial() { - com.google.cloud.datastream.v1.OracleSourceConfig result = - new com.google.cloud.datastream.v1.OracleSourceConfig(this); - if (includeObjectsBuilder_ == null) { - result.includeObjects_ = includeObjects_; - } else { - result.includeObjects_ = includeObjectsBuilder_.build(); - } - if (excludeObjectsBuilder_ == null) { - result.excludeObjects_ = excludeObjects_; - } else { - result.excludeObjects_ = excludeObjectsBuilder_.build(); - } - onBuilt(); - return result; + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public Builder clone() { - return super.clone(); + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects 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.datastream.v1.OracleSourceConfig.StreamLargeObjects + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + 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.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects 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 clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration to stream large object values.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.class, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects build() { + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects buildPartial() { + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects result = + new com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) { + return mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects other) { + if (other + == com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.datastream.v1.OracleSourceConfig.StreamLargeObjects) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + private static final com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects(); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamLargeObjects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamLargeObjects(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int largeObjectsHandlingCase_ = 0; + private java.lang.Object largeObjectsHandling_; + + public enum LargeObjectsHandlingCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DROP_LARGE_OBJECTS(100), + STREAM_LARGE_OBJECTS(102), + LARGEOBJECTSHANDLING_NOT_SET(0); + private final int value; + + private LargeObjectsHandlingCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LargeObjectsHandlingCase valueOf(int value) { + return forNumber(value); + } + + public static LargeObjectsHandlingCase forNumber(int value) { + switch (value) { + case 100: + return DROP_LARGE_OBJECTS; + case 102: + return STREAM_LARGE_OBJECTS; + case 0: + return LARGEOBJECTSHANDLING_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public LargeObjectsHandlingCase getLargeObjectsHandlingCase() { + return LargeObjectsHandlingCase.forNumber(largeObjectsHandlingCase_); + } + + public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; + private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; + /** + * + * + *
+   * Oracle objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * @return Whether the includeObjects field is set. + */ + @java.lang.Override + public boolean hasIncludeObjects() { + return includeObjects_ != null; + } + /** + * + * + *
+   * Oracle objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * @return The includeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : includeObjects_; + } + /** + * + * + *
+   * Oracle objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder() { + return getIncludeObjects(); + } + + public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.OracleRdbms excludeObjects_; + /** + * + * + *
+   * Oracle objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * @return Whether the excludeObjects field is set. + */ + @java.lang.Override + public boolean hasExcludeObjects() { + return excludeObjects_ != null; + } + /** + * + * + *
+   * Oracle objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * @return The excludeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : excludeObjects_; + } + /** + * + * + *
+   * Oracle objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder() { + return getExcludeObjects(); + } + + public static final int MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER = 3; + private int maxConcurrentCdcTasks_; + /** + * + * + *
+   * Maximum number of concurrent CDC tasks. The number should be non negative.
+   * If not set (or set to 0), the system's default value will be used.
+   * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + @java.lang.Override + public int getMaxConcurrentCdcTasks() { + return maxConcurrentCdcTasks_; + } + + public static final int DROP_LARGE_OBJECTS_FIELD_NUMBER = 100; + /** + * + * + *
+   * Drop large object values.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * + * @return Whether the dropLargeObjects field is set. + */ + @java.lang.Override + public boolean hasDropLargeObjects() { + return largeObjectsHandlingCase_ == 100; + } + /** + * + * + *
+   * Drop large object values.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * + * @return The dropLargeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDropLargeObjects() { + if (largeObjectsHandlingCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); + } + /** + * + * + *
+   * Drop large object values.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder + getDropLargeObjectsOrBuilder() { + if (largeObjectsHandlingCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); + } + + public static final int STREAM_LARGE_OBJECTS_FIELD_NUMBER = 102; + /** + * + * + *
+   * Stream large object values.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * + * @return Whether the streamLargeObjects field is set. + */ + @java.lang.Override + public boolean hasStreamLargeObjects() { + return largeObjectsHandlingCase_ == 102; + } + /** + * + * + *
+   * Stream large object values.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * + * @return The streamLargeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getStreamLargeObjects() { + if (largeObjectsHandlingCase_ == 102) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); + } + /** + * + * + *
+   * Stream large object values.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder + getStreamLargeObjectsOrBuilder() { + if (largeObjectsHandlingCase_ == 102) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); + } + + 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 (includeObjects_ != null) { + output.writeMessage(1, getIncludeObjects()); + } + if (excludeObjects_ != null) { + output.writeMessage(2, getExcludeObjects()); + } + if (maxConcurrentCdcTasks_ != 0) { + output.writeInt32(3, maxConcurrentCdcTasks_); + } + if (largeObjectsHandlingCase_ == 100) { + output.writeMessage( + 100, + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_); + } + if (largeObjectsHandlingCase_ == 102) { + output.writeMessage( + 102, + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (includeObjects_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + } + if (excludeObjects_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + } + if (maxConcurrentCdcTasks_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentCdcTasks_); + } + if (largeObjectsHandlingCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_); + } + if (largeObjectsHandlingCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.OracleSourceConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OracleSourceConfig other = + (com.google.cloud.datastream.v1.OracleSourceConfig) obj; + + if (hasIncludeObjects() != other.hasIncludeObjects()) return false; + if (hasIncludeObjects()) { + if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + } + if (hasExcludeObjects() != other.hasExcludeObjects()) return false; + if (hasExcludeObjects()) { + if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + } + if (getMaxConcurrentCdcTasks() != other.getMaxConcurrentCdcTasks()) return false; + if (!getLargeObjectsHandlingCase().equals(other.getLargeObjectsHandlingCase())) return false; + switch (largeObjectsHandlingCase_) { + case 100: + if (!getDropLargeObjects().equals(other.getDropLargeObjects())) return false; + break; + case 102: + if (!getStreamLargeObjects().equals(other.getStreamLargeObjects())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIncludeObjects()) { + hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeObjects().hashCode(); + } + if (hasExcludeObjects()) { + hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeObjects().hashCode(); + } + hash = (37 * hash) + MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxConcurrentCdcTasks(); + switch (largeObjectsHandlingCase_) { + case 100: + hash = (37 * hash) + DROP_LARGE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getDropLargeObjects().hashCode(); + break; + case 102: + hash = (37 * hash) + STREAM_LARGE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getStreamLargeObjects().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig 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.datastream.v1.OracleSourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig 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.datastream.v1.OracleSourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig 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.datastream.v1.OracleSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig 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.datastream.v1.OracleSourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig 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.datastream.v1.OracleSourceConfig 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; + } + /** + * + * + *
+   * Oracle data source configuration
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig) + com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.class, + com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OracleSourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (includeObjectsBuilder_ == null) { + includeObjects_ = null; + } else { + includeObjects_ = null; + includeObjectsBuilder_ = null; + } + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = null; + } else { + excludeObjects_ = null; + excludeObjectsBuilder_ = null; + } + maxConcurrentCdcTasks_ = 0; + + largeObjectsHandlingCase_ = 0; + largeObjectsHandling_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig build() { + com.google.cloud.datastream.v1.OracleSourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig buildPartial() { + com.google.cloud.datastream.v1.OracleSourceConfig result = + new com.google.cloud.datastream.v1.OracleSourceConfig(this); + if (includeObjectsBuilder_ == null) { + result.includeObjects_ = includeObjects_; + } else { + result.includeObjects_ = includeObjectsBuilder_.build(); + } + if (excludeObjectsBuilder_ == null) { + result.excludeObjects_ = excludeObjects_; + } else { + result.excludeObjects_ = excludeObjectsBuilder_.build(); + } + result.maxConcurrentCdcTasks_ = maxConcurrentCdcTasks_; + if (largeObjectsHandlingCase_ == 100) { + if (dropLargeObjectsBuilder_ == null) { + result.largeObjectsHandling_ = largeObjectsHandling_; + } else { + result.largeObjectsHandling_ = dropLargeObjectsBuilder_.build(); + } + } + if (largeObjectsHandlingCase_ == 102) { + if (streamLargeObjectsBuilder_ == null) { + result.largeObjectsHandling_ = largeObjectsHandling_; + } else { + result.largeObjectsHandling_ = streamLargeObjectsBuilder_.build(); + } + } + result.largeObjectsHandlingCase_ = largeObjectsHandlingCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.OracleSourceConfig) { + return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig other) { + if (other == com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) + return this; + if (other.hasIncludeObjects()) { + mergeIncludeObjects(other.getIncludeObjects()); + } + if (other.hasExcludeObjects()) { + mergeExcludeObjects(other.getExcludeObjects()); + } + if (other.getMaxConcurrentCdcTasks() != 0) { + setMaxConcurrentCdcTasks(other.getMaxConcurrentCdcTasks()); + } + switch (other.getLargeObjectsHandlingCase()) { + case DROP_LARGE_OBJECTS: + { + mergeDropLargeObjects(other.getDropLargeObjects()); + break; + } + case STREAM_LARGE_OBJECTS: + { + mergeStreamLargeObjects(other.getStreamLargeObjects()); + break; + } + case LARGEOBJECTSHANDLING_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.OracleSourceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.OracleSourceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int largeObjectsHandlingCase_ = 0; + private java.lang.Object largeObjectsHandling_; + + public LargeObjectsHandlingCase getLargeObjectsHandlingCase() { + return LargeObjectsHandlingCase.forNumber(largeObjectsHandlingCase_); + } + + public Builder clearLargeObjectsHandling() { + largeObjectsHandlingCase_ = 0; + largeObjectsHandling_ = null; + onChanged(); + return this; + } + + private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + includeObjectsBuilder_; + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * @return Whether the includeObjects field is set. + */ + public boolean hasIncludeObjects() { + return includeObjectsBuilder_ != null || includeObjects_ != null; + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * @return The includeObjects. + */ + public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { + if (includeObjectsBuilder_ == null) { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : includeObjects_; + } else { + return includeObjectsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public Builder setIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (includeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + includeObjects_ = value; + onChanged(); + } else { + includeObjectsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public Builder setIncludeObjects( + com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { + if (includeObjectsBuilder_ == null) { + includeObjects_ = builderForValue.build(); + onChanged(); + } else { + includeObjectsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (includeObjectsBuilder_ == null) { + if (includeObjects_ != null) { + includeObjects_ = + com.google.cloud.datastream.v1.OracleRdbms.newBuilder(includeObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + includeObjects_ = value; + } + onChanged(); + } else { + includeObjectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public Builder clearIncludeObjects() { + if (includeObjectsBuilder_ == null) { + includeObjects_ = null; + onChanged(); + } else { + includeObjects_ = null; + includeObjectsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public com.google.cloud.datastream.v1.OracleRdbms.Builder getIncludeObjectsBuilder() { + + onChanged(); + return getIncludeObjectsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder() { + if (includeObjectsBuilder_ != null) { + return includeObjectsBuilder_.getMessageOrBuilder(); + } else { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : includeObjects_; + } + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + getIncludeObjectsFieldBuilder() { + if (includeObjectsBuilder_ == null) { + includeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + getIncludeObjects(), getParentForChildren(), isClean()); + includeObjects_ = null; + } + return includeObjectsBuilder_; + } + + private com.google.cloud.datastream.v1.OracleRdbms excludeObjects_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + excludeObjectsBuilder_; + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * @return Whether the excludeObjects field is set. + */ + public boolean hasExcludeObjects() { + return excludeObjectsBuilder_ != null || excludeObjects_ != null; + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * @return The excludeObjects. + */ + public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : excludeObjects_; + } else { + return excludeObjectsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public Builder setExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (excludeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludeObjects_ = value; + onChanged(); + } else { + excludeObjectsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public Builder setExcludeObjects( + com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = builderForValue.build(); + onChanged(); + } else { + excludeObjectsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (excludeObjectsBuilder_ == null) { + if (excludeObjects_ != null) { + excludeObjects_ = + com.google.cloud.datastream.v1.OracleRdbms.newBuilder(excludeObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + excludeObjects_ = value; + } + onChanged(); + } else { + excludeObjectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public Builder clearExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = null; + onChanged(); + } else { + excludeObjects_ = null; + excludeObjectsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public com.google.cloud.datastream.v1.OracleRdbms.Builder getExcludeObjectsBuilder() { + + onChanged(); + return getExcludeObjectsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder() { + if (excludeObjectsBuilder_ != null) { + return excludeObjectsBuilder_.getMessageOrBuilder(); + } else { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : excludeObjects_; + } + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + getExcludeObjectsFieldBuilder() { + if (excludeObjectsBuilder_ == null) { + excludeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + getExcludeObjects(), getParentForChildren(), isClean()); + excludeObjects_ = null; + } + return excludeObjectsBuilder_; } + private int maxConcurrentCdcTasks_; + /** + * + * + *
+     * Maximum number of concurrent CDC tasks. The number should be non negative.
+     * If not set (or set to 0), the system's default value will be used.
+     * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datastream.v1.OracleSourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig) other); - } else { - super.mergeFrom(other); - return this; - } + public int getMaxConcurrentCdcTasks() { + return maxConcurrentCdcTasks_; } + /** + * + * + *
+     * Maximum number of concurrent CDC tasks. The number should be non negative.
+     * If not set (or set to 0), the system's default value will be used.
+     * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @param value The maxConcurrentCdcTasks to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentCdcTasks(int value) { - public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig other) { - if (other == com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) - return this; - if (other.hasIncludeObjects()) { - mergeIncludeObjects(other.getIncludeObjects()); - } - if (other.hasExcludeObjects()) { - mergeExcludeObjects(other.getExcludeObjects()); - } - this.mergeUnknownFields(other.unknownFields); + maxConcurrentCdcTasks_ = value; onChanged(); return this; } + /** + * + * + *
+     * Maximum number of concurrent CDC tasks. The number should be non negative.
+     * If not set (or set to 0), the system's default value will be used.
+     * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentCdcTasks() { - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.datastream.v1.OracleSourceConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datastream.v1.OracleSourceConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + maxConcurrentCdcTasks_ = 0; + onChanged(); return this; } - private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> - includeObjectsBuilder_; + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder> + dropLargeObjectsBuilder_; /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * * - * @return Whether the includeObjects field is set. + * @return Whether the dropLargeObjects field is set. */ - public boolean hasIncludeObjects() { - return includeObjectsBuilder_ != null || includeObjects_ != null; + @java.lang.Override + public boolean hasDropLargeObjects() { + return largeObjectsHandlingCase_ == 100; } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * * - * @return The includeObjects. + * @return The dropLargeObjects. */ - public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { - if (includeObjectsBuilder_ == null) { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : includeObjects_; + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + getDropLargeObjects() { + if (dropLargeObjectsBuilder_ == null) { + if (largeObjectsHandlingCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); } else { - return includeObjectsBuilder_.getMessage(); + if (largeObjectsHandlingCase_ == 100) { + return dropLargeObjectsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); } } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public Builder setIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { - if (includeObjectsBuilder_ == null) { + public Builder setDropLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects value) { + if (dropLargeObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - includeObjects_ = value; + largeObjectsHandling_ = value; onChanged(); } else { - includeObjectsBuilder_.setMessage(value); + dropLargeObjectsBuilder_.setMessage(value); } - + largeObjectsHandlingCase_ = 100; return this; } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public Builder setIncludeObjects( - com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { - if (includeObjectsBuilder_ == null) { - includeObjects_ = builderForValue.build(); + public Builder setDropLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder + builderForValue) { + if (dropLargeObjectsBuilder_ == null) { + largeObjectsHandling_ = builderForValue.build(); onChanged(); } else { - includeObjectsBuilder_.setMessage(builderForValue.build()); + dropLargeObjectsBuilder_.setMessage(builderForValue.build()); } - + largeObjectsHandlingCase_ = 100; return this; } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { - if (includeObjectsBuilder_ == null) { - if (includeObjects_ != null) { - includeObjects_ = - com.google.cloud.datastream.v1.OracleRdbms.newBuilder(includeObjects_) + public Builder mergeDropLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects value) { + if (dropLargeObjectsBuilder_ == null) { + if (largeObjectsHandlingCase_ == 100 + && largeObjectsHandling_ + != com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance()) { + largeObjectsHandling_ = + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_) .mergeFrom(value) .buildPartial(); } else { - includeObjects_ = value; + largeObjectsHandling_ = value; } onChanged(); } else { - includeObjectsBuilder_.mergeFrom(value); + if (largeObjectsHandlingCase_ == 100) { + dropLargeObjectsBuilder_.mergeFrom(value); + } else { + dropLargeObjectsBuilder_.setMessage(value); + } } - + largeObjectsHandlingCase_ = 100; return this; } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public Builder clearIncludeObjects() { - if (includeObjectsBuilder_ == null) { - includeObjects_ = null; - onChanged(); + public Builder clearDropLargeObjects() { + if (dropLargeObjectsBuilder_ == null) { + if (largeObjectsHandlingCase_ == 100) { + largeObjectsHandlingCase_ = 0; + largeObjectsHandling_ = null; + onChanged(); + } } else { - includeObjects_ = null; - includeObjectsBuilder_ = null; + if (largeObjectsHandlingCase_ == 100) { + largeObjectsHandlingCase_ = 0; + largeObjectsHandling_ = null; + } + dropLargeObjectsBuilder_.clear(); } - return this; } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public com.google.cloud.datastream.v1.OracleRdbms.Builder getIncludeObjectsBuilder() { - - onChanged(); - return getIncludeObjectsFieldBuilder().getBuilder(); + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder + getDropLargeObjectsBuilder() { + return getDropLargeObjectsFieldBuilder().getBuilder(); } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder() { - if (includeObjectsBuilder_ != null) { - return includeObjectsBuilder_.getMessageOrBuilder(); + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder + getDropLargeObjectsOrBuilder() { + if ((largeObjectsHandlingCase_ == 100) && (dropLargeObjectsBuilder_ != null)) { + return dropLargeObjectsBuilder_.getMessageOrBuilder(); } else { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : includeObjects_; + if (largeObjectsHandlingCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); } } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> - getIncludeObjectsFieldBuilder() { - if (includeObjectsBuilder_ == null) { - includeObjectsBuilder_ = + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder> + getDropLargeObjectsFieldBuilder() { + if (dropLargeObjectsBuilder_ == null) { + if (!(largeObjectsHandlingCase_ == 100)) { + largeObjectsHandling_ = + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); + } + dropLargeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( - getIncludeObjects(), getParentForChildren(), isClean()); - includeObjects_ = null; + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder>( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_, + getParentForChildren(), + isClean()); + largeObjectsHandling_ = null; } - return includeObjectsBuilder_; + largeObjectsHandlingCase_ = 100; + onChanged(); + ; + return dropLargeObjectsBuilder_; } - private com.google.cloud.datastream.v1.OracleRdbms excludeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> - excludeObjectsBuilder_; + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder> + streamLargeObjectsBuilder_; /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * * - * @return Whether the excludeObjects field is set. + * @return Whether the streamLargeObjects field is set. */ - public boolean hasExcludeObjects() { - return excludeObjectsBuilder_ != null || excludeObjects_ != null; + @java.lang.Override + public boolean hasStreamLargeObjects() { + return largeObjectsHandlingCase_ == 102; } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * * - * @return The excludeObjects. + * @return The streamLargeObjects. */ - public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { - if (excludeObjectsBuilder_ == null) { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : excludeObjects_; + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getStreamLargeObjects() { + if (streamLargeObjectsBuilder_ == null) { + if (largeObjectsHandlingCase_ == 102) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } else { - return excludeObjectsBuilder_.getMessage(); + if (largeObjectsHandlingCase_ == 102) { + return streamLargeObjectsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public Builder setExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { - if (excludeObjectsBuilder_ == null) { + public Builder setStreamLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects value) { + if (streamLargeObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - excludeObjects_ = value; + largeObjectsHandling_ = value; onChanged(); } else { - excludeObjectsBuilder_.setMessage(value); + streamLargeObjectsBuilder_.setMessage(value); } - + largeObjectsHandlingCase_ = 102; return this; } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public Builder setExcludeObjects( - com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { - if (excludeObjectsBuilder_ == null) { - excludeObjects_ = builderForValue.build(); + public Builder setStreamLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder + builderForValue) { + if (streamLargeObjectsBuilder_ == null) { + largeObjectsHandling_ = builderForValue.build(); onChanged(); } else { - excludeObjectsBuilder_.setMessage(builderForValue.build()); + streamLargeObjectsBuilder_.setMessage(builderForValue.build()); } - + largeObjectsHandlingCase_ = 102; return this; } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { - if (excludeObjectsBuilder_ == null) { - if (excludeObjects_ != null) { - excludeObjects_ = - com.google.cloud.datastream.v1.OracleRdbms.newBuilder(excludeObjects_) + public Builder mergeStreamLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects value) { + if (streamLargeObjectsBuilder_ == null) { + if (largeObjectsHandlingCase_ == 102 + && largeObjectsHandling_ + != com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance()) { + largeObjectsHandling_ = + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.newBuilder( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_) .mergeFrom(value) .buildPartial(); } else { - excludeObjects_ = value; + largeObjectsHandling_ = value; } onChanged(); } else { - excludeObjectsBuilder_.mergeFrom(value); + if (largeObjectsHandlingCase_ == 102) { + streamLargeObjectsBuilder_.mergeFrom(value); + } else { + streamLargeObjectsBuilder_.setMessage(value); + } } - + largeObjectsHandlingCase_ = 102; return this; } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public Builder clearExcludeObjects() { - if (excludeObjectsBuilder_ == null) { - excludeObjects_ = null; - onChanged(); + public Builder clearStreamLargeObjects() { + if (streamLargeObjectsBuilder_ == null) { + if (largeObjectsHandlingCase_ == 102) { + largeObjectsHandlingCase_ = 0; + largeObjectsHandling_ = null; + onChanged(); + } } else { - excludeObjects_ = null; - excludeObjectsBuilder_ = null; + if (largeObjectsHandlingCase_ == 102) { + largeObjectsHandlingCase_ = 0; + largeObjectsHandling_ = null; + } + streamLargeObjectsBuilder_.clear(); } - return this; } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public com.google.cloud.datastream.v1.OracleRdbms.Builder getExcludeObjectsBuilder() { - - onChanged(); - return getExcludeObjectsFieldBuilder().getBuilder(); + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder + getStreamLargeObjectsBuilder() { + return getStreamLargeObjectsFieldBuilder().getBuilder(); } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder() { - if (excludeObjectsBuilder_ != null) { - return excludeObjectsBuilder_.getMessageOrBuilder(); + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder + getStreamLargeObjectsOrBuilder() { + if ((largeObjectsHandlingCase_ == 102) && (streamLargeObjectsBuilder_ != null)) { + return streamLargeObjectsBuilder_.getMessageOrBuilder(); } else { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : excludeObjects_; + if (largeObjectsHandlingCase_ == 102) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> - getExcludeObjectsFieldBuilder() { - if (excludeObjectsBuilder_ == null) { - excludeObjectsBuilder_ = + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder> + getStreamLargeObjectsFieldBuilder() { + if (streamLargeObjectsBuilder_ == null) { + if (!(largeObjectsHandlingCase_ == 102)) { + largeObjectsHandling_ = + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); + } + streamLargeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( - getExcludeObjects(), getParentForChildren(), isClean()); - excludeObjects_ = null; + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder>( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_, + getParentForChildren(), + isClean()); + largeObjectsHandling_ = null; } - return excludeObjectsBuilder_; + largeObjectsHandlingCase_ = 102; + onChanged(); + ; + return streamLargeObjectsBuilder_; } @java.lang.Override diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java index 52a54507..f21df17f 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java @@ -92,4 +92,102 @@ public interface OracleSourceConfigOrBuilder * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; */ com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder(); + + /** + * + * + *
+   * Maximum number of concurrent CDC tasks. The number should be non negative.
+   * If not set (or set to 0), the system's default value will be used.
+   * 
+ * + * int32 max_concurrent_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + int getMaxConcurrentCdcTasks(); + + /** + * + * + *
+   * Drop large object values.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * + * @return Whether the dropLargeObjects field is set. + */ + boolean hasDropLargeObjects(); + /** + * + * + *
+   * Drop large object values.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * + * @return The dropLargeObjects. + */ + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDropLargeObjects(); + /** + * + * + *
+   * Drop large object values.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + */ + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder + getDropLargeObjectsOrBuilder(); + + /** + * + * + *
+   * Stream large object values.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * + * @return Whether the streamLargeObjects field is set. + */ + boolean hasStreamLargeObjects(); + /** + * + * + *
+   * Stream large object values.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * + * @return The streamLargeObjects. + */ + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getStreamLargeObjects(); + /** + * + * + *
+   * Stream large object values.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + */ + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder + getStreamLargeObjectsOrBuilder(); + + public com.google.cloud.datastream.v1.OracleSourceConfig.LargeObjectsHandlingCase + getLargeObjectsHandlingCase(); } diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java index feb7de63..52ba6600 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java @@ -186,7 +186,7 @@ public com.google.protobuf.ByteString getTableBytes() { * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -201,7 +201,7 @@ public java.util.List getOracleColu * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -217,7 +217,7 @@ public java.util.List getOracleColu * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -232,7 +232,7 @@ public int getOracleColumnsCount() { * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -247,7 +247,7 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) { * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -760,7 +760,7 @@ private void ensureOracleColumnsIsMutable() { * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -778,7 +778,7 @@ public java.util.List getOracleColu * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -796,7 +796,7 @@ public int getOracleColumnsCount() { * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -814,7 +814,7 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) { * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -838,7 +838,7 @@ public Builder setOracleColumns(int index, com.google.cloud.datastream.v1.Oracle * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -860,7 +860,7 @@ public Builder setOracleColumns( * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -884,7 +884,7 @@ public Builder addOracleColumns(com.google.cloud.datastream.v1.OracleColumn valu * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -908,7 +908,7 @@ public Builder addOracleColumns(int index, com.google.cloud.datastream.v1.Oracle * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -930,7 +930,7 @@ public Builder addOracleColumns( * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -952,7 +952,7 @@ public Builder addOracleColumns( * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -974,7 +974,7 @@ public Builder addAllOracleColumns( * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -995,7 +995,7 @@ public Builder clearOracleColumns() { * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1016,7 +1016,7 @@ public Builder removeOracleColumns(int index) { * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1030,7 +1030,7 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder getOracleColumnsBuild * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1049,7 +1049,7 @@ public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBu * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1068,7 +1068,7 @@ public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBu * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1083,7 +1083,7 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuild * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1098,7 +1098,7 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuild * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java index c4ba1b16..5f9bce08 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java @@ -53,7 +53,7 @@ public interface OracleTableOrBuilder * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -65,7 +65,7 @@ public interface OracleTableOrBuilder * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -77,7 +77,7 @@ public interface OracleTableOrBuilder * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -89,7 +89,7 @@ public interface OracleTableOrBuilder * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -102,7 +102,7 @@ public interface OracleTableOrBuilder * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java new file mode 100644 index 00000000..e25f9f00 --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java @@ -0,0 +1,1356 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * PostgreSQL Column.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlColumn} + */ +public final class PostgresqlColumn extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlColumn) + PostgresqlColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlColumn.newBuilder() to construct. + private PostgresqlColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlColumn() { + column_ = ""; + dataType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlColumn(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlColumn( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + column_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + dataType_ = s; + break; + } + case 24: + { + length_ = input.readInt32(); + break; + } + case 32: + { + precision_ = input.readInt32(); + break; + } + case 40: + { + scale_ = input.readInt32(); + break; + } + case 56: + { + primaryKey_ = input.readBool(); + break; + } + case 64: + { + nullable_ = input.readBool(); + break; + } + case 72: + { + ordinalPosition_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlColumn.class, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder.class); + } + + public static final int COLUMN_FIELD_NUMBER = 1; + private volatile java.lang.Object column_; + /** + * + * + *
+   * Column name.
+   * 
+ * + * string column = 1; + * + * @return The column. + */ + @java.lang.Override + public java.lang.String getColumn() { + java.lang.Object ref = column_; + 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(); + column_ = s; + return s; + } + } + /** + * + * + *
+   * Column name.
+   * 
+ * + * string column = 1; + * + * @return The bytes for column. + */ + @java.lang.Override + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object dataType_; + /** + * + * + *
+   * The PostgreSQL data type.
+   * 
+ * + * string data_type = 2; + * + * @return The dataType. + */ + @java.lang.Override + public java.lang.String getDataType() { + java.lang.Object ref = dataType_; + 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(); + dataType_ = s; + return s; + } + } + /** + * + * + *
+   * The PostgreSQL data type.
+   * 
+ * + * string data_type = 2; + * + * @return The bytes for dataType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataTypeBytes() { + java.lang.Object ref = dataType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LENGTH_FIELD_NUMBER = 3; + private int length_; + /** + * + * + *
+   * Column length.
+   * 
+ * + * int32 length = 3; + * + * @return The length. + */ + @java.lang.Override + public int getLength() { + return length_; + } + + public static final int PRECISION_FIELD_NUMBER = 4; + private int precision_; + /** + * + * + *
+   * Column precision.
+   * 
+ * + * int32 precision = 4; + * + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + + public static final int SCALE_FIELD_NUMBER = 5; + private int scale_; + /** + * + * + *
+   * Column scale.
+   * 
+ * + * int32 scale = 5; + * + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + + public static final int PRIMARY_KEY_FIELD_NUMBER = 7; + private boolean primaryKey_; + /** + * + * + *
+   * Whether or not the column represents a primary key.
+   * 
+ * + * bool primary_key = 7; + * + * @return The primaryKey. + */ + @java.lang.Override + public boolean getPrimaryKey() { + return primaryKey_; + } + + public static final int NULLABLE_FIELD_NUMBER = 8; + private boolean nullable_; + /** + * + * + *
+   * Whether or not the column can accept a null value.
+   * 
+ * + * bool nullable = 8; + * + * @return The nullable. + */ + @java.lang.Override + public boolean getNullable() { + return nullable_; + } + + public static final int ORDINAL_POSITION_FIELD_NUMBER = 9; + private int ordinalPosition_; + /** + * + * + *
+   * The ordinal position of the column in the table.
+   * 
+ * + * int32 ordinal_position = 9; + * + * @return The ordinalPosition. + */ + @java.lang.Override + public int getOrdinalPosition() { + return ordinalPosition_; + } + + 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(column_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataType_); + } + if (length_ != 0) { + output.writeInt32(3, length_); + } + if (precision_ != 0) { + output.writeInt32(4, precision_); + } + if (scale_ != 0) { + output.writeInt32(5, scale_); + } + if (primaryKey_ != false) { + output.writeBool(7, primaryKey_); + } + if (nullable_ != false) { + output.writeBool(8, nullable_); + } + if (ordinalPosition_ != 0) { + output.writeInt32(9, ordinalPosition_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, column_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); + } + if (length_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); + } + if (precision_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, precision_); + } + if (scale_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, scale_); + } + if (primaryKey_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, primaryKey_); + } + if (nullable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, nullable_); + } + if (ordinalPosition_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, ordinalPosition_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlColumn)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlColumn other = + (com.google.cloud.datastream.v1.PostgresqlColumn) obj; + + if (!getColumn().equals(other.getColumn())) return false; + if (!getDataType().equals(other.getDataType())) return false; + if (getLength() != other.getLength()) return false; + if (getPrecision() != other.getPrecision()) return false; + if (getScale() != other.getScale()) return false; + if (getPrimaryKey() != other.getPrimaryKey()) return false; + if (getNullable() != other.getNullable()) return false; + if (getOrdinalPosition() != other.getOrdinalPosition()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn().hashCode(); + hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDataType().hashCode(); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getLength(); + hash = (37 * hash) + PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getPrecision(); + hash = (37 * hash) + SCALE_FIELD_NUMBER; + hash = (53 * hash) + getScale(); + hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); + hash = (37 * hash) + NULLABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getOrdinalPosition(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn 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.datastream.v1.PostgresqlColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn 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.datastream.v1.PostgresqlColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn 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.datastream.v1.PostgresqlColumn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn 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.datastream.v1.PostgresqlColumn parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn 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.datastream.v1.PostgresqlColumn 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; + } + /** + * + * + *
+   * PostgreSQL Column.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlColumn} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlColumn) + com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlColumn.class, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PostgresqlColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + column_ = ""; + + dataType_ = ""; + + length_ = 0; + + precision_ = 0; + + scale_ = 0; + + primaryKey_ = false; + + nullable_ = false; + + ordinalPosition_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlColumn getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlColumn build() { + com.google.cloud.datastream.v1.PostgresqlColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlColumn buildPartial() { + com.google.cloud.datastream.v1.PostgresqlColumn result = + new com.google.cloud.datastream.v1.PostgresqlColumn(this); + result.column_ = column_; + result.dataType_ = dataType_; + result.length_ = length_; + result.precision_ = precision_; + result.scale_ = scale_; + result.primaryKey_ = primaryKey_; + result.nullable_ = nullable_; + result.ordinalPosition_ = ordinalPosition_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.PostgresqlColumn) { + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlColumn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlColumn other) { + if (other == com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance()) + return this; + if (!other.getColumn().isEmpty()) { + column_ = other.column_; + onChanged(); + } + if (!other.getDataType().isEmpty()) { + dataType_ = other.dataType_; + onChanged(); + } + if (other.getLength() != 0) { + setLength(other.getLength()); + } + if (other.getPrecision() != 0) { + setPrecision(other.getPrecision()); + } + if (other.getScale() != 0) { + setScale(other.getScale()); + } + if (other.getPrimaryKey() != false) { + setPrimaryKey(other.getPrimaryKey()); + } + if (other.getNullable() != false) { + setNullable(other.getNullable()); + } + if (other.getOrdinalPosition() != 0) { + setOrdinalPosition(other.getOrdinalPosition()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.PostgresqlColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.PostgresqlColumn) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object column_ = ""; + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @return The column. + */ + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @return The bytes for column. + */ + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + column_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @return This builder for chaining. + */ + public Builder clearColumn() { + + column_ = getDefaultInstance().getColumn(); + onChanged(); + return this; + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @param value The bytes for column to set. + * @return This builder for chaining. + */ + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + column_ = value; + onChanged(); + return this; + } + + private java.lang.Object dataType_ = ""; + /** + * + * + *
+     * The PostgreSQL data type.
+     * 
+ * + * string data_type = 2; + * + * @return The dataType. + */ + public java.lang.String getDataType() { + java.lang.Object ref = dataType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The PostgreSQL data type.
+     * 
+ * + * string data_type = 2; + * + * @return The bytes for dataType. + */ + public com.google.protobuf.ByteString getDataTypeBytes() { + java.lang.Object ref = dataType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The PostgreSQL data type.
+     * 
+ * + * string data_type = 2; + * + * @param value The dataType to set. + * @return This builder for chaining. + */ + public Builder setDataType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The PostgreSQL data type.
+     * 
+ * + * string data_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearDataType() { + + dataType_ = getDefaultInstance().getDataType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The PostgreSQL data type.
+     * 
+ * + * string data_type = 2; + * + * @param value The bytes for dataType to set. + * @return This builder for chaining. + */ + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataType_ = value; + onChanged(); + return this; + } + + private int length_; + /** + * + * + *
+     * Column length.
+     * 
+ * + * int32 length = 3; + * + * @return The length. + */ + @java.lang.Override + public int getLength() { + return length_; + } + /** + * + * + *
+     * Column length.
+     * 
+ * + * int32 length = 3; + * + * @param value The length to set. + * @return This builder for chaining. + */ + public Builder setLength(int value) { + + length_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Column length.
+     * 
+ * + * int32 length = 3; + * + * @return This builder for chaining. + */ + public Builder clearLength() { + + length_ = 0; + onChanged(); + return this; + } + + private int precision_; + /** + * + * + *
+     * Column precision.
+     * 
+ * + * int32 precision = 4; + * + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + /** + * + * + *
+     * Column precision.
+     * 
+ * + * int32 precision = 4; + * + * @param value The precision to set. + * @return This builder for chaining. + */ + public Builder setPrecision(int value) { + + precision_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Column precision.
+     * 
+ * + * int32 precision = 4; + * + * @return This builder for chaining. + */ + public Builder clearPrecision() { + + precision_ = 0; + onChanged(); + return this; + } + + private int scale_; + /** + * + * + *
+     * Column scale.
+     * 
+ * + * int32 scale = 5; + * + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + /** + * + * + *
+     * Column scale.
+     * 
+ * + * int32 scale = 5; + * + * @param value The scale to set. + * @return This builder for chaining. + */ + public Builder setScale(int value) { + + scale_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Column scale.
+     * 
+ * + * int32 scale = 5; + * + * @return This builder for chaining. + */ + public Builder clearScale() { + + scale_ = 0; + onChanged(); + return this; + } + + private boolean primaryKey_; + /** + * + * + *
+     * Whether or not the column represents a primary key.
+     * 
+ * + * bool primary_key = 7; + * + * @return The primaryKey. + */ + @java.lang.Override + public boolean getPrimaryKey() { + return primaryKey_; + } + /** + * + * + *
+     * Whether or not the column represents a primary key.
+     * 
+ * + * bool primary_key = 7; + * + * @param value The primaryKey to set. + * @return This builder for chaining. + */ + public Builder setPrimaryKey(boolean value) { + + primaryKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not the column represents a primary key.
+     * 
+ * + * bool primary_key = 7; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryKey() { + + primaryKey_ = false; + onChanged(); + return this; + } + + private boolean nullable_; + /** + * + * + *
+     * Whether or not the column can accept a null value.
+     * 
+ * + * bool nullable = 8; + * + * @return The nullable. + */ + @java.lang.Override + public boolean getNullable() { + return nullable_; + } + /** + * + * + *
+     * Whether or not the column can accept a null value.
+     * 
+ * + * bool nullable = 8; + * + * @param value The nullable to set. + * @return This builder for chaining. + */ + public Builder setNullable(boolean value) { + + nullable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not the column can accept a null value.
+     * 
+ * + * bool nullable = 8; + * + * @return This builder for chaining. + */ + public Builder clearNullable() { + + nullable_ = false; + onChanged(); + return this; + } + + private int ordinalPosition_; + /** + * + * + *
+     * The ordinal position of the column in the table.
+     * 
+ * + * int32 ordinal_position = 9; + * + * @return The ordinalPosition. + */ + @java.lang.Override + public int getOrdinalPosition() { + return ordinalPosition_; + } + /** + * + * + *
+     * The ordinal position of the column in the table.
+     * 
+ * + * int32 ordinal_position = 9; + * + * @param value The ordinalPosition to set. + * @return This builder for chaining. + */ + public Builder setOrdinalPosition(int value) { + + ordinalPosition_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ordinal position of the column in the table.
+     * 
+ * + * int32 ordinal_position = 9; + * + * @return This builder for chaining. + */ + public Builder clearOrdinalPosition() { + + ordinalPosition_ = 0; + 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.datastream.v1.PostgresqlColumn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlColumn) + private static final com.google.cloud.datastream.v1.PostgresqlColumn DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlColumn(); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgresqlColumn(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java new file mode 100644 index 00000000..2bceb724 --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface PostgresqlColumnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlColumn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Column name.
+   * 
+ * + * string column = 1; + * + * @return The column. + */ + java.lang.String getColumn(); + /** + * + * + *
+   * Column name.
+   * 
+ * + * string column = 1; + * + * @return The bytes for column. + */ + com.google.protobuf.ByteString getColumnBytes(); + + /** + * + * + *
+   * The PostgreSQL data type.
+   * 
+ * + * string data_type = 2; + * + * @return The dataType. + */ + java.lang.String getDataType(); + /** + * + * + *
+   * The PostgreSQL data type.
+   * 
+ * + * string data_type = 2; + * + * @return The bytes for dataType. + */ + com.google.protobuf.ByteString getDataTypeBytes(); + + /** + * + * + *
+   * Column length.
+   * 
+ * + * int32 length = 3; + * + * @return The length. + */ + int getLength(); + + /** + * + * + *
+   * Column precision.
+   * 
+ * + * int32 precision = 4; + * + * @return The precision. + */ + int getPrecision(); + + /** + * + * + *
+   * Column scale.
+   * 
+ * + * int32 scale = 5; + * + * @return The scale. + */ + int getScale(); + + /** + * + * + *
+   * Whether or not the column represents a primary key.
+   * 
+ * + * bool primary_key = 7; + * + * @return The primaryKey. + */ + boolean getPrimaryKey(); + + /** + * + * + *
+   * Whether or not the column can accept a null value.
+   * 
+ * + * bool nullable = 8; + * + * @return The nullable. + */ + boolean getNullable(); + + /** + * + * + *
+   * The ordinal position of the column in the table.
+   * 
+ * + * int32 ordinal_position = 9; + * + * @return The ordinalPosition. + */ + int getOrdinalPosition(); +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java new file mode 100644 index 00000000..40450c03 --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java @@ -0,0 +1,1264 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * PostgreSQL database profile.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlProfile} + */ +public final class PostgresqlProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlProfile) + PostgresqlProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlProfile.newBuilder() to construct. + private PostgresqlProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlProfile() { + hostname_ = ""; + username_ = ""; + password_ = ""; + database_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlProfile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlProfile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + hostname_ = s; + break; + } + case 16: + { + port_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + database_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlProfile.class, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); + } + + public static final int HOSTNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object hostname_; + /** + * + * + *
+   * Required. Hostname for the PostgreSQL connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + 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(); + hostname_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Hostname for the PostgreSQL connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 2; + private int port_; + /** + * + * + *
+   * Port for the PostgreSQL connection, default value is 5432.
+   * 
+ * + * int32 port = 2; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int USERNAME_FIELD_NUMBER = 3; + private volatile java.lang.Object username_; + /** + * + * + *
+   * Required. Username for the PostgreSQL connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + 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(); + username_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Username for the PostgreSQL connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 4; + private volatile java.lang.Object password_; + /** + * + * + *
+   * Required. Password for the PostgreSQL connection.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + 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(); + password_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Password for the PostgreSQL connection.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FIELD_NUMBER = 5; + private volatile java.lang.Object database_; + /** + * + * + *
+   * Required. Database for the PostgreSQL connection.
+   * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + @java.lang.Override + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + 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(); + database_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Database for the PostgreSQL connection.
+   * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); + } + if (port_ != 0) { + output.writeInt32(2, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, password_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, database_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, database_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlProfile)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlProfile other = + (com.google.cloud.datastream.v1.PostgresqlProfile) obj; + + if (!getHostname().equals(other.getHostname())) return false; + if (getPort() != other.getPort()) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile 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.datastream.v1.PostgresqlProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile 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.datastream.v1.PostgresqlProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile 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.datastream.v1.PostgresqlProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile 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.datastream.v1.PostgresqlProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile 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.datastream.v1.PostgresqlProfile 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; + } + /** + * + * + *
+   * PostgreSQL database profile.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlProfile) + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlProfile.class, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PostgresqlProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + hostname_ = ""; + + port_ = 0; + + username_ = ""; + + password_ = ""; + + database_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfile build() { + com.google.cloud.datastream.v1.PostgresqlProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfile buildPartial() { + com.google.cloud.datastream.v1.PostgresqlProfile result = + new com.google.cloud.datastream.v1.PostgresqlProfile(this); + result.hostname_ = hostname_; + result.port_ = port_; + result.username_ = username_; + result.password_ = password_; + result.database_ = database_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.PostgresqlProfile) { + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlProfile other) { + if (other == com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance()) + return this; + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.PostgresqlProfile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.PostgresqlProfile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object hostname_ = ""; + /** + * + * + *
+     * Required. Hostname for the PostgreSQL connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Hostname for the PostgreSQL connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Hostname for the PostgreSQL connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + hostname_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Hostname for the PostgreSQL connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + + hostname_ = getDefaultInstance().getHostname(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Hostname for the PostgreSQL connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hostname_ = value; + onChanged(); + return this; + } + + private int port_; + /** + * + * + *
+     * Port for the PostgreSQL connection, default value is 5432.
+     * 
+ * + * int32 port = 2; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * + * + *
+     * Port for the PostgreSQL connection, default value is 5432.
+     * 
+ * + * int32 port = 2; + * + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Port for the PostgreSQL connection, default value is 5432.
+     * 
+ * + * int32 port = 2; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + + port_ = 0; + onChanged(); + return this; + } + + private java.lang.Object username_ = ""; + /** + * + * + *
+     * Required. Username for the PostgreSQL connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Username for the PostgreSQL connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Username for the PostgreSQL connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Username for the PostgreSQL connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + + username_ = getDefaultInstance().getUsername(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Username for the PostgreSQL connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * + * + *
+     * Required. Password for the PostgreSQL connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Password for the PostgreSQL connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Password for the PostgreSQL connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Password for the PostgreSQL connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Password for the PostgreSQL connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + private java.lang.Object database_ = ""; + /** + * + * + *
+     * Required. Database for the PostgreSQL connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Database for the PostgreSQL connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Database for the PostgreSQL connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + database_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Database for the PostgreSQL connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + + database_ = getDefaultInstance().getDatabase(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Database for the PostgreSQL connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for database to set. + * @return This builder for chaining. + */ + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + database_ = value; + 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.datastream.v1.PostgresqlProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlProfile) + private static final com.google.cloud.datastream.v1.PostgresqlProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlProfile(); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgresqlProfile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java new file mode 100644 index 00000000..0c8dbafd --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface PostgresqlProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Hostname for the PostgreSQL connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + java.lang.String getHostname(); + /** + * + * + *
+   * Required. Hostname for the PostgreSQL connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
+   * Port for the PostgreSQL connection, default value is 5432.
+   * 
+ * + * int32 port = 2; + * + * @return The port. + */ + int getPort(); + + /** + * + * + *
+   * Required. Username for the PostgreSQL connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
+   * Required. Username for the PostgreSQL connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
+   * Required. Password for the PostgreSQL connection.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + java.lang.String getPassword(); + /** + * + * + *
+   * Required. Password for the PostgreSQL connection.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); + + /** + * + * + *
+   * Required. Database for the PostgreSQL connection.
+   * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + java.lang.String getDatabase(); + /** + * + * + *
+   * Required. Database for the PostgreSQL connection.
+   * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java new file mode 100644 index 00000000..8a5705a0 --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java @@ -0,0 +1,965 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * PostgreSQL database structure.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlRdbms} + */ +public final class PostgresqlRdbms extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlRdbms) + PostgresqlRdbmsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlRdbms.newBuilder() to construct. + private PostgresqlRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlRdbms() { + postgresqlSchemas_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlRdbms(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlRdbms( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlSchemas_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + postgresqlSchemas_.add( + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlSchema.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlSchemas_ = java.util.Collections.unmodifiableList(postgresqlSchemas_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlRdbms.class, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder.class); + } + + public static final int POSTGRESQL_SCHEMAS_FIELD_NUMBER = 1; + private java.util.List postgresqlSchemas_; + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + @java.lang.Override + public java.util.List + getPostgresqlSchemasList() { + return postgresqlSchemas_; + } + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + @java.lang.Override + public java.util.List + getPostgresqlSchemasOrBuilderList() { + return postgresqlSchemas_; + } + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + @java.lang.Override + public int getPostgresqlSchemasCount() { + return postgresqlSchemas_.size(); + } + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int index) { + return postgresqlSchemas_.get(index); + } + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSchemasOrBuilder( + int index) { + return postgresqlSchemas_.get(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 { + for (int i = 0; i < postgresqlSchemas_.size(); i++) { + output.writeMessage(1, postgresqlSchemas_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < postgresqlSchemas_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, postgresqlSchemas_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlRdbms)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlRdbms other = + (com.google.cloud.datastream.v1.PostgresqlRdbms) obj; + + if (!getPostgresqlSchemasList().equals(other.getPostgresqlSchemasList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPostgresqlSchemasCount() > 0) { + hash = (37 * hash) + POSTGRESQL_SCHEMAS_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlSchemasList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms 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.datastream.v1.PostgresqlRdbms parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms 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.datastream.v1.PostgresqlRdbms parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms 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.datastream.v1.PostgresqlRdbms parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms 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.datastream.v1.PostgresqlRdbms parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms 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.datastream.v1.PostgresqlRdbms 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; + } + /** + * + * + *
+   * PostgreSQL database structure.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlRdbms} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlRdbms) + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlRdbms.class, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPostgresqlSchemasFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (postgresqlSchemasBuilder_ == null) { + postgresqlSchemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + postgresqlSchemasBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms build() { + com.google.cloud.datastream.v1.PostgresqlRdbms result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms buildPartial() { + com.google.cloud.datastream.v1.PostgresqlRdbms result = + new com.google.cloud.datastream.v1.PostgresqlRdbms(this); + int from_bitField0_ = bitField0_; + if (postgresqlSchemasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + postgresqlSchemas_ = java.util.Collections.unmodifiableList(postgresqlSchemas_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.postgresqlSchemas_ = postgresqlSchemas_; + } else { + result.postgresqlSchemas_ = postgresqlSchemasBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.PostgresqlRdbms) { + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlRdbms other) { + if (other == com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) return this; + if (postgresqlSchemasBuilder_ == null) { + if (!other.postgresqlSchemas_.isEmpty()) { + if (postgresqlSchemas_.isEmpty()) { + postgresqlSchemas_ = other.postgresqlSchemas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.addAll(other.postgresqlSchemas_); + } + onChanged(); + } + } else { + if (!other.postgresqlSchemas_.isEmpty()) { + if (postgresqlSchemasBuilder_.isEmpty()) { + postgresqlSchemasBuilder_.dispose(); + postgresqlSchemasBuilder_ = null; + postgresqlSchemas_ = other.postgresqlSchemas_; + bitField0_ = (bitField0_ & ~0x00000001); + postgresqlSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPostgresqlSchemasFieldBuilder() + : null; + } else { + postgresqlSchemasBuilder_.addAllMessages(other.postgresqlSchemas_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.PostgresqlRdbms parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.PostgresqlRdbms) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List postgresqlSchemas_ = + java.util.Collections.emptyList(); + + private void ensurePostgresqlSchemasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + postgresqlSchemas_ = + new java.util.ArrayList( + postgresqlSchemas_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSchema, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder, + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder> + postgresqlSchemasBuilder_; + + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public java.util.List + getPostgresqlSchemasList() { + if (postgresqlSchemasBuilder_ == null) { + return java.util.Collections.unmodifiableList(postgresqlSchemas_); + } else { + return postgresqlSchemasBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public int getPostgresqlSchemasCount() { + if (postgresqlSchemasBuilder_ == null) { + return postgresqlSchemas_.size(); + } else { + return postgresqlSchemasBuilder_.getCount(); + } + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int index) { + if (postgresqlSchemasBuilder_ == null) { + return postgresqlSchemas_.get(index); + } else { + return postgresqlSchemasBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder setPostgresqlSchemas( + int index, com.google.cloud.datastream.v1.PostgresqlSchema value) { + if (postgresqlSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.set(index, value); + onChanged(); + } else { + postgresqlSchemasBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder setPostgresqlSchemas( + int index, com.google.cloud.datastream.v1.PostgresqlSchema.Builder builderForValue) { + if (postgresqlSchemasBuilder_ == null) { + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.set(index, builderForValue.build()); + onChanged(); + } else { + postgresqlSchemasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder addPostgresqlSchemas(com.google.cloud.datastream.v1.PostgresqlSchema value) { + if (postgresqlSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.add(value); + onChanged(); + } else { + postgresqlSchemasBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder addPostgresqlSchemas( + int index, com.google.cloud.datastream.v1.PostgresqlSchema value) { + if (postgresqlSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.add(index, value); + onChanged(); + } else { + postgresqlSchemasBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder addPostgresqlSchemas( + com.google.cloud.datastream.v1.PostgresqlSchema.Builder builderForValue) { + if (postgresqlSchemasBuilder_ == null) { + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.add(builderForValue.build()); + onChanged(); + } else { + postgresqlSchemasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder addPostgresqlSchemas( + int index, com.google.cloud.datastream.v1.PostgresqlSchema.Builder builderForValue) { + if (postgresqlSchemasBuilder_ == null) { + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.add(index, builderForValue.build()); + onChanged(); + } else { + postgresqlSchemasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder addAllPostgresqlSchemas( + java.lang.Iterable values) { + if (postgresqlSchemasBuilder_ == null) { + ensurePostgresqlSchemasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postgresqlSchemas_); + onChanged(); + } else { + postgresqlSchemasBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder clearPostgresqlSchemas() { + if (postgresqlSchemasBuilder_ == null) { + postgresqlSchemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + postgresqlSchemasBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder removePostgresqlSchemas(int index) { + if (postgresqlSchemasBuilder_ == null) { + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.remove(index); + onChanged(); + } else { + postgresqlSchemasBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public com.google.cloud.datastream.v1.PostgresqlSchema.Builder getPostgresqlSchemasBuilder( + int index) { + return getPostgresqlSchemasFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSchemasOrBuilder( + int index) { + if (postgresqlSchemasBuilder_ == null) { + return postgresqlSchemas_.get(index); + } else { + return postgresqlSchemasBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public java.util.List + getPostgresqlSchemasOrBuilderList() { + if (postgresqlSchemasBuilder_ != null) { + return postgresqlSchemasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(postgresqlSchemas_); + } + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public com.google.cloud.datastream.v1.PostgresqlSchema.Builder addPostgresqlSchemasBuilder() { + return getPostgresqlSchemasFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()); + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public com.google.cloud.datastream.v1.PostgresqlSchema.Builder addPostgresqlSchemasBuilder( + int index) { + return getPostgresqlSchemasFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()); + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public java.util.List + getPostgresqlSchemasBuilderList() { + return getPostgresqlSchemasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSchema, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder, + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder> + getPostgresqlSchemasFieldBuilder() { + if (postgresqlSchemasBuilder_ == null) { + postgresqlSchemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSchema, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder, + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder>( + postgresqlSchemas_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + postgresqlSchemas_ = null; + } + return postgresqlSchemasBuilder_; + } + + @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.datastream.v1.PostgresqlRdbms) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlRdbms) + private static final com.google.cloud.datastream.v1.PostgresqlRdbms DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlRdbms(); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlRdbms parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgresqlRdbms(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java new file mode 100644 index 00000000..2f2a3d1c --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface PostgresqlRdbmsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlRdbms) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + java.util.List getPostgresqlSchemasList(); + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int index); + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + int getPostgresqlSchemasCount(); + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + java.util.List + getPostgresqlSchemasOrBuilderList(); + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSchemasOrBuilder(int index); +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java new file mode 100644 index 00000000..01e16374 --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * PostgreSQL schema.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSchema} + */ +public final class PostgresqlSchema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlSchema) + PostgresqlSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlSchema.newBuilder() to construct. + private PostgresqlSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlSchema() { + schema_ = ""; + postgresqlTables_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlSchema(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlSchema( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + schema_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlTables_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + postgresqlTables_.add( + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlTable.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlTables_ = java.util.Collections.unmodifiableList(postgresqlTables_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlSchema.class, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder.class); + } + + public static final int SCHEMA_FIELD_NUMBER = 1; + private volatile java.lang.Object schema_; + /** + * + * + *
+   * Schema name.
+   * 
+ * + * string schema = 1; + * + * @return The schema. + */ + @java.lang.Override + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + 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(); + schema_ = s; + return s; + } + } + /** + * + * + *
+   * Schema name.
+   * 
+ * + * string schema = 1; + * + * @return The bytes for schema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSTGRESQL_TABLES_FIELD_NUMBER = 2; + private java.util.List postgresqlTables_; + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + @java.lang.Override + public java.util.List getPostgresqlTablesList() { + return postgresqlTables_; + } + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + @java.lang.Override + public java.util.List + getPostgresqlTablesOrBuilderList() { + return postgresqlTables_; + } + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + @java.lang.Override + public int getPostgresqlTablesCount() { + return postgresqlTables_.size(); + } + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int index) { + return postgresqlTables_.get(index); + } + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTablesOrBuilder( + int index) { + return postgresqlTables_.get(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(schema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); + } + for (int i = 0; i < postgresqlTables_.size(); i++) { + output.writeMessage(2, postgresqlTables_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); + } + for (int i = 0; i < postgresqlTables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, postgresqlTables_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlSchema)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlSchema other = + (com.google.cloud.datastream.v1.PostgresqlSchema) obj; + + if (!getSchema().equals(other.getSchema())) return false; + if (!getPostgresqlTablesList().equals(other.getPostgresqlTablesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + if (getPostgresqlTablesCount() > 0) { + hash = (37 * hash) + POSTGRESQL_TABLES_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlTablesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema 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.datastream.v1.PostgresqlSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema 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.datastream.v1.PostgresqlSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema 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.datastream.v1.PostgresqlSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema 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.datastream.v1.PostgresqlSchema parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema 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.datastream.v1.PostgresqlSchema 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; + } + /** + * + * + *
+   * PostgreSQL schema.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSchema} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlSchema) + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlSchema.class, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PostgresqlSchema.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPostgresqlTablesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + schema_ = ""; + + if (postgresqlTablesBuilder_ == null) { + postgresqlTables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + postgresqlTablesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSchema getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSchema build() { + com.google.cloud.datastream.v1.PostgresqlSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSchema buildPartial() { + com.google.cloud.datastream.v1.PostgresqlSchema result = + new com.google.cloud.datastream.v1.PostgresqlSchema(this); + int from_bitField0_ = bitField0_; + result.schema_ = schema_; + if (postgresqlTablesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + postgresqlTables_ = java.util.Collections.unmodifiableList(postgresqlTables_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.postgresqlTables_ = postgresqlTables_; + } else { + result.postgresqlTables_ = postgresqlTablesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.PostgresqlSchema) { + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSchema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSchema other) { + if (other == com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()) + return this; + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + onChanged(); + } + if (postgresqlTablesBuilder_ == null) { + if (!other.postgresqlTables_.isEmpty()) { + if (postgresqlTables_.isEmpty()) { + postgresqlTables_ = other.postgresqlTables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.addAll(other.postgresqlTables_); + } + onChanged(); + } + } else { + if (!other.postgresqlTables_.isEmpty()) { + if (postgresqlTablesBuilder_.isEmpty()) { + postgresqlTablesBuilder_.dispose(); + postgresqlTablesBuilder_ = null; + postgresqlTables_ = other.postgresqlTables_; + bitField0_ = (bitField0_ & ~0x00000001); + postgresqlTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPostgresqlTablesFieldBuilder() + : null; + } else { + postgresqlTablesBuilder_.addAllMessages(other.postgresqlTables_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.PostgresqlSchema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.PostgresqlSchema) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object schema_ = ""; + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @return The schema. + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @return The bytes for schema. + */ + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schema_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @return This builder for chaining. + */ + public Builder clearSchema() { + + schema_ = getDefaultInstance().getSchema(); + onChanged(); + return this; + } + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @param value The bytes for schema to set. + * @return This builder for chaining. + */ + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schema_ = value; + onChanged(); + return this; + } + + private java.util.List postgresqlTables_ = + java.util.Collections.emptyList(); + + private void ensurePostgresqlTablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + postgresqlTables_ = + new java.util.ArrayList( + postgresqlTables_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlTable, + com.google.cloud.datastream.v1.PostgresqlTable.Builder, + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder> + postgresqlTablesBuilder_; + + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public java.util.List + getPostgresqlTablesList() { + if (postgresqlTablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(postgresqlTables_); + } else { + return postgresqlTablesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public int getPostgresqlTablesCount() { + if (postgresqlTablesBuilder_ == null) { + return postgresqlTables_.size(); + } else { + return postgresqlTablesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int index) { + if (postgresqlTablesBuilder_ == null) { + return postgresqlTables_.get(index); + } else { + return postgresqlTablesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder setPostgresqlTables( + int index, com.google.cloud.datastream.v1.PostgresqlTable value) { + if (postgresqlTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.set(index, value); + onChanged(); + } else { + postgresqlTablesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder setPostgresqlTables( + int index, com.google.cloud.datastream.v1.PostgresqlTable.Builder builderForValue) { + if (postgresqlTablesBuilder_ == null) { + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.set(index, builderForValue.build()); + onChanged(); + } else { + postgresqlTablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder addPostgresqlTables(com.google.cloud.datastream.v1.PostgresqlTable value) { + if (postgresqlTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.add(value); + onChanged(); + } else { + postgresqlTablesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder addPostgresqlTables( + int index, com.google.cloud.datastream.v1.PostgresqlTable value) { + if (postgresqlTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.add(index, value); + onChanged(); + } else { + postgresqlTablesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder addPostgresqlTables( + com.google.cloud.datastream.v1.PostgresqlTable.Builder builderForValue) { + if (postgresqlTablesBuilder_ == null) { + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.add(builderForValue.build()); + onChanged(); + } else { + postgresqlTablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder addPostgresqlTables( + int index, com.google.cloud.datastream.v1.PostgresqlTable.Builder builderForValue) { + if (postgresqlTablesBuilder_ == null) { + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.add(index, builderForValue.build()); + onChanged(); + } else { + postgresqlTablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder addAllPostgresqlTables( + java.lang.Iterable values) { + if (postgresqlTablesBuilder_ == null) { + ensurePostgresqlTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postgresqlTables_); + onChanged(); + } else { + postgresqlTablesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder clearPostgresqlTables() { + if (postgresqlTablesBuilder_ == null) { + postgresqlTables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + postgresqlTablesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder removePostgresqlTables(int index) { + if (postgresqlTablesBuilder_ == null) { + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.remove(index); + onChanged(); + } else { + postgresqlTablesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlTable.Builder getPostgresqlTablesBuilder( + int index) { + return getPostgresqlTablesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTablesOrBuilder( + int index) { + if (postgresqlTablesBuilder_ == null) { + return postgresqlTables_.get(index); + } else { + return postgresqlTablesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public java.util.List + getPostgresqlTablesOrBuilderList() { + if (postgresqlTablesBuilder_ != null) { + return postgresqlTablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(postgresqlTables_); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlTable.Builder addPostgresqlTablesBuilder() { + return getPostgresqlTablesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()); + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlTable.Builder addPostgresqlTablesBuilder( + int index) { + return getPostgresqlTablesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()); + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public java.util.List + getPostgresqlTablesBuilderList() { + return getPostgresqlTablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlTable, + com.google.cloud.datastream.v1.PostgresqlTable.Builder, + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder> + getPostgresqlTablesFieldBuilder() { + if (postgresqlTablesBuilder_ == null) { + postgresqlTablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlTable, + com.google.cloud.datastream.v1.PostgresqlTable.Builder, + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder>( + postgresqlTables_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + postgresqlTables_ = null; + } + return postgresqlTablesBuilder_; + } + + @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.datastream.v1.PostgresqlSchema) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlSchema) + private static final com.google.cloud.datastream.v1.PostgresqlSchema DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlSchema(); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgresqlSchema(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java new file mode 100644 index 00000000..3730f8a0 --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface PostgresqlSchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlSchema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Schema name.
+   * 
+ * + * string schema = 1; + * + * @return The schema. + */ + java.lang.String getSchema(); + /** + * + * + *
+   * Schema name.
+   * 
+ * + * string schema = 1; + * + * @return The bytes for schema. + */ + com.google.protobuf.ByteString getSchemaBytes(); + + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + java.util.List getPostgresqlTablesList(); + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int index); + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + int getPostgresqlTablesCount(); + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + java.util.List + getPostgresqlTablesOrBuilderList(); + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTablesOrBuilder(int index); +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java new file mode 100644 index 00000000..356fc67a --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java @@ -0,0 +1,1388 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * PostgreSQL data source configuration
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSourceConfig} + */ +public final class PostgresqlSourceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlSourceConfig) + PostgresqlSourceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlSourceConfig.newBuilder() to construct. + private PostgresqlSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlSourceConfig() { + replicationSlot_ = ""; + publication_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlSourceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlSourceConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (includeObjects_ != null) { + subBuilder = includeObjects_.toBuilder(); + } + includeObjects_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(includeObjects_); + includeObjects_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (excludeObjects_ != null) { + subBuilder = excludeObjects_.toBuilder(); + } + excludeObjects_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(excludeObjects_); + excludeObjects_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + replicationSlot_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + publication_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlSourceConfig.class, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder.class); + } + + public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; + private com.google.cloud.datastream.v1.PostgresqlRdbms includeObjects_; + /** + * + * + *
+   * PostgreSQL objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * + * @return Whether the includeObjects field is set. + */ + @java.lang.Override + public boolean hasIncludeObjects() { + return includeObjects_ != null; + } + /** + * + * + *
+   * PostgreSQL objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * + * @return The includeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : includeObjects_; + } + /** + * + * + *
+   * PostgreSQL objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjectsOrBuilder() { + return getIncludeObjects(); + } + + public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.PostgresqlRdbms excludeObjects_; + /** + * + * + *
+   * PostgreSQL objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * + * @return Whether the excludeObjects field is set. + */ + @java.lang.Override + public boolean hasExcludeObjects() { + return excludeObjects_ != null; + } + /** + * + * + *
+   * PostgreSQL objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * + * @return The excludeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : excludeObjects_; + } + /** + * + * + *
+   * PostgreSQL objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder() { + return getExcludeObjects(); + } + + public static final int REPLICATION_SLOT_FIELD_NUMBER = 3; + private volatile java.lang.Object replicationSlot_; + /** + * + * + *
+   * Required. The name of the logical replication slot that's configured with the
+   * pgoutput plugin.
+   * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The replicationSlot. + */ + @java.lang.Override + public java.lang.String getReplicationSlot() { + java.lang.Object ref = replicationSlot_; + 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(); + replicationSlot_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the logical replication slot that's configured with the
+   * pgoutput plugin.
+   * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for replicationSlot. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReplicationSlotBytes() { + java.lang.Object ref = replicationSlot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + replicationSlot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLICATION_FIELD_NUMBER = 4; + private volatile java.lang.Object publication_; + /** + * + * + *
+   * Required. The name of the publication that includes the set of all tables that are
+   * defined in the stream's include_objects.
+   * 
+ * + * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The publication. + */ + @java.lang.Override + public java.lang.String getPublication() { + java.lang.Object ref = publication_; + 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(); + publication_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the publication that includes the set of all tables that are
+   * defined in the stream's include_objects.
+   * 
+ * + * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for publication. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublicationBytes() { + java.lang.Object ref = publication_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publication_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (includeObjects_ != null) { + output.writeMessage(1, getIncludeObjects()); + } + if (excludeObjects_ != null) { + output.writeMessage(2, getExcludeObjects()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicationSlot_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, replicationSlot_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publication_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, publication_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (includeObjects_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + } + if (excludeObjects_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicationSlot_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, replicationSlot_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publication_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, publication_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlSourceConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlSourceConfig other = + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) obj; + + if (hasIncludeObjects() != other.hasIncludeObjects()) return false; + if (hasIncludeObjects()) { + if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + } + if (hasExcludeObjects() != other.hasExcludeObjects()) return false; + if (hasExcludeObjects()) { + if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + } + if (!getReplicationSlot().equals(other.getReplicationSlot())) return false; + if (!getPublication().equals(other.getPublication())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIncludeObjects()) { + hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeObjects().hashCode(); + } + if (hasExcludeObjects()) { + hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeObjects().hashCode(); + } + hash = (37 * hash) + REPLICATION_SLOT_FIELD_NUMBER; + hash = (53 * hash) + getReplicationSlot().hashCode(); + hash = (37 * hash) + PUBLICATION_FIELD_NUMBER; + hash = (53 * hash) + getPublication().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig 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.datastream.v1.PostgresqlSourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig 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.datastream.v1.PostgresqlSourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig 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.datastream.v1.PostgresqlSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig 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.datastream.v1.PostgresqlSourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig 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.datastream.v1.PostgresqlSourceConfig 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; + } + /** + * + * + *
+   * PostgreSQL data source configuration
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSourceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlSourceConfig) + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlSourceConfig.class, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PostgresqlSourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (includeObjectsBuilder_ == null) { + includeObjects_ = null; + } else { + includeObjects_ = null; + includeObjectsBuilder_ = null; + } + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = null; + } else { + excludeObjects_ = null; + excludeObjectsBuilder_ = null; + } + replicationSlot_ = ""; + + publication_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSourceConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSourceConfig build() { + com.google.cloud.datastream.v1.PostgresqlSourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSourceConfig buildPartial() { + com.google.cloud.datastream.v1.PostgresqlSourceConfig result = + new com.google.cloud.datastream.v1.PostgresqlSourceConfig(this); + if (includeObjectsBuilder_ == null) { + result.includeObjects_ = includeObjects_; + } else { + result.includeObjects_ = includeObjectsBuilder_.build(); + } + if (excludeObjectsBuilder_ == null) { + result.excludeObjects_ = excludeObjects_; + } else { + result.excludeObjects_ = excludeObjectsBuilder_.build(); + } + result.replicationSlot_ = replicationSlot_; + result.publication_ = publication_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.PostgresqlSourceConfig) { + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSourceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSourceConfig other) { + if (other == com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance()) + return this; + if (other.hasIncludeObjects()) { + mergeIncludeObjects(other.getIncludeObjects()); + } + if (other.hasExcludeObjects()) { + mergeExcludeObjects(other.getExcludeObjects()); + } + if (!other.getReplicationSlot().isEmpty()) { + replicationSlot_ = other.replicationSlot_; + onChanged(); + } + if (!other.getPublication().isEmpty()) { + publication_ = other.publication_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.PostgresqlSourceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.datastream.v1.PostgresqlRdbms includeObjects_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + includeObjectsBuilder_; + /** + * + * + *
+     * PostgreSQL objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * + * @return Whether the includeObjects field is set. + */ + public boolean hasIncludeObjects() { + return includeObjectsBuilder_ != null || includeObjects_ != null; + } + /** + * + * + *
+     * PostgreSQL objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * + * @return The includeObjects. + */ + public com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects() { + if (includeObjectsBuilder_ == null) { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : includeObjects_; + } else { + return includeObjectsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * PostgreSQL objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + */ + public Builder setIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (includeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + includeObjects_ = value; + onChanged(); + } else { + includeObjectsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * PostgreSQL objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + */ + public Builder setIncludeObjects( + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue) { + if (includeObjectsBuilder_ == null) { + includeObjects_ = builderForValue.build(); + onChanged(); + } else { + includeObjectsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * PostgreSQL objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + */ + public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (includeObjectsBuilder_ == null) { + if (includeObjects_ != null) { + includeObjects_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder(includeObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + includeObjects_ = value; + } + onChanged(); + } else { + includeObjectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * PostgreSQL objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + */ + public Builder clearIncludeObjects() { + if (includeObjectsBuilder_ == null) { + includeObjects_ = null; + onChanged(); + } else { + includeObjects_ = null; + includeObjectsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * PostgreSQL objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + */ + public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getIncludeObjectsBuilder() { + + onChanged(); + return getIncludeObjectsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * PostgreSQL objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + */ + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjectsOrBuilder() { + if (includeObjectsBuilder_ != null) { + return includeObjectsBuilder_.getMessageOrBuilder(); + } else { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : includeObjects_; + } + } + /** + * + * + *
+     * PostgreSQL objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + getIncludeObjectsFieldBuilder() { + if (includeObjectsBuilder_ == null) { + includeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + getIncludeObjects(), getParentForChildren(), isClean()); + includeObjects_ = null; + } + return includeObjectsBuilder_; + } + + private com.google.cloud.datastream.v1.PostgresqlRdbms excludeObjects_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + excludeObjectsBuilder_; + /** + * + * + *
+     * PostgreSQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * + * @return Whether the excludeObjects field is set. + */ + public boolean hasExcludeObjects() { + return excludeObjectsBuilder_ != null || excludeObjects_ != null; + } + /** + * + * + *
+     * PostgreSQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * + * @return The excludeObjects. + */ + public com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : excludeObjects_; + } else { + return excludeObjectsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * PostgreSQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + */ + public Builder setExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (excludeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludeObjects_ = value; + onChanged(); + } else { + excludeObjectsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * PostgreSQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + */ + public Builder setExcludeObjects( + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue) { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = builderForValue.build(); + onChanged(); + } else { + excludeObjectsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * PostgreSQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + */ + public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (excludeObjectsBuilder_ == null) { + if (excludeObjects_ != null) { + excludeObjects_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder(excludeObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + excludeObjects_ = value; + } + onChanged(); + } else { + excludeObjectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * PostgreSQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + */ + public Builder clearExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = null; + onChanged(); + } else { + excludeObjects_ = null; + excludeObjectsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * PostgreSQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getExcludeObjectsBuilder() { + + onChanged(); + return getExcludeObjectsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * PostgreSQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder() { + if (excludeObjectsBuilder_ != null) { + return excludeObjectsBuilder_.getMessageOrBuilder(); + } else { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : excludeObjects_; + } + } + /** + * + * + *
+     * PostgreSQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + getExcludeObjectsFieldBuilder() { + if (excludeObjectsBuilder_ == null) { + excludeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + getExcludeObjects(), getParentForChildren(), isClean()); + excludeObjects_ = null; + } + return excludeObjectsBuilder_; + } + + private java.lang.Object replicationSlot_ = ""; + /** + * + * + *
+     * Required. The name of the logical replication slot that's configured with the
+     * pgoutput plugin.
+     * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The replicationSlot. + */ + public java.lang.String getReplicationSlot() { + java.lang.Object ref = replicationSlot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + replicationSlot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the logical replication slot that's configured with the
+     * pgoutput plugin.
+     * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for replicationSlot. + */ + public com.google.protobuf.ByteString getReplicationSlotBytes() { + java.lang.Object ref = replicationSlot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + replicationSlot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the logical replication slot that's configured with the
+     * pgoutput plugin.
+     * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The replicationSlot to set. + * @return This builder for chaining. + */ + public Builder setReplicationSlot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + replicationSlot_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the logical replication slot that's configured with the
+     * pgoutput plugin.
+     * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearReplicationSlot() { + + replicationSlot_ = getDefaultInstance().getReplicationSlot(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the logical replication slot that's configured with the
+     * pgoutput plugin.
+     * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for replicationSlot to set. + * @return This builder for chaining. + */ + public Builder setReplicationSlotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + replicationSlot_ = value; + onChanged(); + return this; + } + + private java.lang.Object publication_ = ""; + /** + * + * + *
+     * Required. The name of the publication that includes the set of all tables that are
+     * defined in the stream's include_objects.
+     * 
+ * + * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The publication. + */ + public java.lang.String getPublication() { + java.lang.Object ref = publication_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publication_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the publication that includes the set of all tables that are
+     * defined in the stream's include_objects.
+     * 
+ * + * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for publication. + */ + public com.google.protobuf.ByteString getPublicationBytes() { + java.lang.Object ref = publication_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publication_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the publication that includes the set of all tables that are
+     * defined in the stream's include_objects.
+     * 
+ * + * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The publication to set. + * @return This builder for chaining. + */ + public Builder setPublication(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publication_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the publication that includes the set of all tables that are
+     * defined in the stream's include_objects.
+     * 
+ * + * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPublication() { + + publication_ = getDefaultInstance().getPublication(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the publication that includes the set of all tables that are
+     * defined in the stream's include_objects.
+     * 
+ * + * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for publication to set. + * @return This builder for chaining. + */ + public Builder setPublicationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publication_ = value; + 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.datastream.v1.PostgresqlSourceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlSourceConfig) + private static final com.google.cloud.datastream.v1.PostgresqlSourceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlSourceConfig(); + } + + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlSourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgresqlSourceConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSourceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java new file mode 100644 index 00000000..392de3dc --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface PostgresqlSourceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlSourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * PostgreSQL objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * + * @return Whether the includeObjects field is set. + */ + boolean hasIncludeObjects(); + /** + * + * + *
+   * PostgreSQL objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * + * @return The includeObjects. + */ + com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects(); + /** + * + * + *
+   * PostgreSQL objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + */ + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjectsOrBuilder(); + + /** + * + * + *
+   * PostgreSQL objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * + * @return Whether the excludeObjects field is set. + */ + boolean hasExcludeObjects(); + /** + * + * + *
+   * PostgreSQL objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * + * @return The excludeObjects. + */ + com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects(); + /** + * + * + *
+   * PostgreSQL objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + */ + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder(); + + /** + * + * + *
+   * Required. The name of the logical replication slot that's configured with the
+   * pgoutput plugin.
+   * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The replicationSlot. + */ + java.lang.String getReplicationSlot(); + /** + * + * + *
+   * Required. The name of the logical replication slot that's configured with the
+   * pgoutput plugin.
+   * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for replicationSlot. + */ + com.google.protobuf.ByteString getReplicationSlotBytes(); + + /** + * + * + *
+   * Required. The name of the publication that includes the set of all tables that are
+   * defined in the stream's include_objects.
+   * 
+ * + * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The publication. + */ + java.lang.String getPublication(); + /** + * + * + *
+   * Required. The name of the publication that includes the set of all tables that are
+   * defined in the stream's include_objects.
+   * 
+ * + * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for publication. + */ + com.google.protobuf.ByteString getPublicationBytes(); +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java new file mode 100644 index 00000000..8369e697 --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java @@ -0,0 +1,1190 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * PostgreSQL table.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlTable} + */ +public final class PostgresqlTable extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlTable) + PostgresqlTableOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlTable.newBuilder() to construct. + private PostgresqlTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlTable() { + table_ = ""; + postgresqlColumns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlTable(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlTable( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + table_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlColumns_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + postgresqlColumns_.add( + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlColumn.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlColumns_ = java.util.Collections.unmodifiableList(postgresqlColumns_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlTable.class, + com.google.cloud.datastream.v1.PostgresqlTable.Builder.class); + } + + public static final int TABLE_FIELD_NUMBER = 1; + private volatile java.lang.Object table_; + /** + * + * + *
+   * Table name.
+   * 
+ * + * string table = 1; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + 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(); + table_ = s; + return s; + } + } + /** + * + * + *
+   * Table name.
+   * 
+ * + * string table = 1; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSTGRESQL_COLUMNS_FIELD_NUMBER = 2; + private java.util.List postgresqlColumns_; + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + @java.lang.Override + public java.util.List + getPostgresqlColumnsList() { + return postgresqlColumns_; + } + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + @java.lang.Override + public java.util.List + getPostgresqlColumnsOrBuilderList() { + return postgresqlColumns_; + } + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + @java.lang.Override + public int getPostgresqlColumnsCount() { + return postgresqlColumns_.size(); + } + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int index) { + return postgresqlColumns_.get(index); + } + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlColumnsOrBuilder( + int index) { + return postgresqlColumns_.get(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(table_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); + } + for (int i = 0; i < postgresqlColumns_.size(); i++) { + output.writeMessage(2, postgresqlColumns_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_); + } + for (int i = 0; i < postgresqlColumns_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, postgresqlColumns_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlTable)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlTable other = + (com.google.cloud.datastream.v1.PostgresqlTable) obj; + + if (!getTable().equals(other.getTable())) return false; + if (!getPostgresqlColumnsList().equals(other.getPostgresqlColumnsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + if (getPostgresqlColumnsCount() > 0) { + hash = (37 * hash) + POSTGRESQL_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlColumnsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable 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.datastream.v1.PostgresqlTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable 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.datastream.v1.PostgresqlTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable 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.datastream.v1.PostgresqlTable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable 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.datastream.v1.PostgresqlTable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable 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.datastream.v1.PostgresqlTable 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; + } + /** + * + * + *
+   * PostgreSQL table.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlTable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlTable) + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlTable.class, + com.google.cloud.datastream.v1.PostgresqlTable.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PostgresqlTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPostgresqlColumnsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + table_ = ""; + + if (postgresqlColumnsBuilder_ == null) { + postgresqlColumns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + postgresqlColumnsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlTable getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlTable build() { + com.google.cloud.datastream.v1.PostgresqlTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlTable buildPartial() { + com.google.cloud.datastream.v1.PostgresqlTable result = + new com.google.cloud.datastream.v1.PostgresqlTable(this); + int from_bitField0_ = bitField0_; + result.table_ = table_; + if (postgresqlColumnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + postgresqlColumns_ = java.util.Collections.unmodifiableList(postgresqlColumns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.postgresqlColumns_ = postgresqlColumns_; + } else { + result.postgresqlColumns_ = postgresqlColumnsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.datastream.v1.PostgresqlTable) { + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlTable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlTable other) { + if (other == com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()) return this; + if (!other.getTable().isEmpty()) { + table_ = other.table_; + onChanged(); + } + if (postgresqlColumnsBuilder_ == null) { + if (!other.postgresqlColumns_.isEmpty()) { + if (postgresqlColumns_.isEmpty()) { + postgresqlColumns_ = other.postgresqlColumns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.addAll(other.postgresqlColumns_); + } + onChanged(); + } + } else { + if (!other.postgresqlColumns_.isEmpty()) { + if (postgresqlColumnsBuilder_.isEmpty()) { + postgresqlColumnsBuilder_.dispose(); + postgresqlColumnsBuilder_ = null; + postgresqlColumns_ = other.postgresqlColumns_; + bitField0_ = (bitField0_ & ~0x00000001); + postgresqlColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPostgresqlColumnsFieldBuilder() + : null; + } else { + postgresqlColumnsBuilder_.addAllMessages(other.postgresqlColumns_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.PostgresqlTable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.PostgresqlTable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object table_ = ""; + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + table_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + + table_ = getDefaultInstance().getTable(); + onChanged(); + return this; + } + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + table_ = value; + onChanged(); + return this; + } + + private java.util.List postgresqlColumns_ = + java.util.Collections.emptyList(); + + private void ensurePostgresqlColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + postgresqlColumns_ = + new java.util.ArrayList( + postgresqlColumns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlColumn, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder, + com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder> + postgresqlColumnsBuilder_; + + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public java.util.List + getPostgresqlColumnsList() { + if (postgresqlColumnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(postgresqlColumns_); + } else { + return postgresqlColumnsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public int getPostgresqlColumnsCount() { + if (postgresqlColumnsBuilder_ == null) { + return postgresqlColumns_.size(); + } else { + return postgresqlColumnsBuilder_.getCount(); + } + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int index) { + if (postgresqlColumnsBuilder_ == null) { + return postgresqlColumns_.get(index); + } else { + return postgresqlColumnsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder setPostgresqlColumns( + int index, com.google.cloud.datastream.v1.PostgresqlColumn value) { + if (postgresqlColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.set(index, value); + onChanged(); + } else { + postgresqlColumnsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder setPostgresqlColumns( + int index, com.google.cloud.datastream.v1.PostgresqlColumn.Builder builderForValue) { + if (postgresqlColumnsBuilder_ == null) { + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.set(index, builderForValue.build()); + onChanged(); + } else { + postgresqlColumnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder addPostgresqlColumns(com.google.cloud.datastream.v1.PostgresqlColumn value) { + if (postgresqlColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.add(value); + onChanged(); + } else { + postgresqlColumnsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder addPostgresqlColumns( + int index, com.google.cloud.datastream.v1.PostgresqlColumn value) { + if (postgresqlColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.add(index, value); + onChanged(); + } else { + postgresqlColumnsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder addPostgresqlColumns( + com.google.cloud.datastream.v1.PostgresqlColumn.Builder builderForValue) { + if (postgresqlColumnsBuilder_ == null) { + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.add(builderForValue.build()); + onChanged(); + } else { + postgresqlColumnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder addPostgresqlColumns( + int index, com.google.cloud.datastream.v1.PostgresqlColumn.Builder builderForValue) { + if (postgresqlColumnsBuilder_ == null) { + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.add(index, builderForValue.build()); + onChanged(); + } else { + postgresqlColumnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder addAllPostgresqlColumns( + java.lang.Iterable values) { + if (postgresqlColumnsBuilder_ == null) { + ensurePostgresqlColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postgresqlColumns_); + onChanged(); + } else { + postgresqlColumnsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder clearPostgresqlColumns() { + if (postgresqlColumnsBuilder_ == null) { + postgresqlColumns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + postgresqlColumnsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder removePostgresqlColumns(int index) { + if (postgresqlColumnsBuilder_ == null) { + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.remove(index); + onChanged(); + } else { + postgresqlColumnsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlColumn.Builder getPostgresqlColumnsBuilder( + int index) { + return getPostgresqlColumnsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlColumnsOrBuilder( + int index) { + if (postgresqlColumnsBuilder_ == null) { + return postgresqlColumns_.get(index); + } else { + return postgresqlColumnsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public java.util.List + getPostgresqlColumnsOrBuilderList() { + if (postgresqlColumnsBuilder_ != null) { + return postgresqlColumnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(postgresqlColumns_); + } + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColumnsBuilder() { + return getPostgresqlColumnsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance()); + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColumnsBuilder( + int index) { + return getPostgresqlColumnsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance()); + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public java.util.List + getPostgresqlColumnsBuilderList() { + return getPostgresqlColumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlColumn, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder, + com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder> + getPostgresqlColumnsFieldBuilder() { + if (postgresqlColumnsBuilder_ == null) { + postgresqlColumnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlColumn, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder, + com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder>( + postgresqlColumns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + postgresqlColumns_ = null; + } + return postgresqlColumnsBuilder_; + } + + @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.datastream.v1.PostgresqlTable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlTable) + private static final com.google.cloud.datastream.v1.PostgresqlTable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlTable(); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlTable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgresqlTable(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlTable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java new file mode 100644 index 00000000..fb3ec068 --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2020 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/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface PostgresqlTableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlTable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Table name.
+   * 
+ * + * string table = 1; + * + * @return The table. + */ + java.lang.String getTable(); + /** + * + * + *
+   * Table name.
+   * 
+ * + * string table = 1; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + java.util.List getPostgresqlColumnsList(); + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int index); + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + int getPostgresqlColumnsCount(); + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + java.util.List + getPostgresqlColumnsOrBuilderList(); + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlColumnsOrBuilder(int index); +} diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java index a98e27b8..7e17beb0 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java @@ -782,8 +782,7 @@ public com.google.cloud.datastream.v1.PrivateConnection.State getState() { * * *
-   * Output only. In case of error, the details of the error in a user-friendly
-   * format.
+   * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -799,8 +798,7 @@ public boolean hasError() { * * *
-   * Output only. In case of error, the details of the error in a user-friendly
-   * format.
+   * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -816,8 +814,7 @@ public com.google.cloud.datastream.v1.Error getError() { * * *
-   * Output only. In case of error, the details of the error in a user-friendly
-   * format.
+   * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2268,8 +2265,7 @@ public Builder clearState() { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2285,8 +2281,7 @@ public boolean hasError() { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2306,8 +2301,7 @@ public com.google.cloud.datastream.v1.Error getError() { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2331,8 +2325,7 @@ public Builder setError(com.google.cloud.datastream.v1.Error value) { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2353,8 +2346,7 @@ public Builder setError(com.google.cloud.datastream.v1.Error.Builder builderForV * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2382,8 +2374,7 @@ public Builder mergeError(com.google.cloud.datastream.v1.Error value) { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2405,8 +2396,7 @@ public Builder clearError() { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2422,8 +2412,7 @@ public com.google.cloud.datastream.v1.Error.Builder getErrorBuilder() { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2441,8 +2430,7 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder() { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java index 76e5b148..b65f666f 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java @@ -241,8 +241,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. In case of error, the details of the error in a user-friendly
-   * format.
+   * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -255,8 +254,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. In case of error, the details of the error in a user-friendly
-   * format.
+   * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -269,8 +267,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. In case of error, the details of the error in a user-friendly
-   * format.
+   * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java index f85e8664..e99650c1 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java @@ -116,6 +116,26 @@ private SourceConfig( sourceStreamConfigCase_ = 101; break; } + case 818: + { + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder subBuilder = null; + if (sourceStreamConfigCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_) + .toBuilder(); + } + sourceStreamConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlSourceConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); + sourceStreamConfig_ = subBuilder.buildPartial(); + } + sourceStreamConfigCase_ = 102; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -161,6 +181,7 @@ public enum SourceStreamConfigCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_SOURCE_CONFIG(100), MYSQL_SOURCE_CONFIG(101), + POSTGRESQL_SOURCE_CONFIG(102), SOURCESTREAMCONFIG_NOT_SET(0); private final int value; @@ -183,6 +204,8 @@ public static SourceStreamConfigCase forNumber(int value) { return ORACLE_SOURCE_CONFIG; case 101: return MYSQL_SOURCE_CONFIG; + case 102: + return POSTGRESQL_SOURCE_CONFIG; case 0: return SOURCESTREAMCONFIG_NOT_SET; default: @@ -259,7 +282,7 @@ public com.google.protobuf.ByteString getSourceConnectionProfileBytes() { * * *
-   * Oracle data source configuration
+   * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -274,7 +297,7 @@ public boolean hasOracleSourceConfig() { * * *
-   * Oracle data source configuration
+   * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -292,7 +315,7 @@ public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() * * *
-   * Oracle data source configuration
+   * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -311,7 +334,7 @@ public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() * * *
-   * MySQL data source configuration
+   * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -326,7 +349,7 @@ public boolean hasMysqlSourceConfig() { * * *
-   * MySQL data source configuration
+   * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -344,7 +367,7 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig() { * * *
-   * MySQL data source configuration
+   * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -357,6 +380,58 @@ public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceC return com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); } + public static final int POSTGRESQL_SOURCE_CONFIG_FIELD_NUMBER = 102; + /** + * + * + *
+   * PostgreSQL data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * @return Whether the postgresqlSourceConfig field is set. + */ + @java.lang.Override + public boolean hasPostgresqlSourceConfig() { + return sourceStreamConfigCase_ == 102; + } + /** + * + * + *
+   * PostgreSQL data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * @return The postgresqlSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSourceConfig() { + if (sourceStreamConfigCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } + /** + * + * + *
+   * PostgreSQL data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder + getPostgresqlSourceConfigOrBuilder() { + if (sourceStreamConfigCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -382,6 +457,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); } + if (sourceStreamConfigCase_ == 102) { + output.writeMessage( + 102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); + } unknownFields.writeTo(output); } @@ -404,6 +483,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); } + if (sourceStreamConfigCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -429,6 +513,9 @@ public boolean equals(final java.lang.Object obj) { case 101: if (!getMysqlSourceConfig().equals(other.getMysqlSourceConfig())) return false; break; + case 102: + if (!getPostgresqlSourceConfig().equals(other.getPostgresqlSourceConfig())) return false; + break; case 0: default: } @@ -454,6 +541,10 @@ public int hashCode() { hash = (37 * hash) + MYSQL_SOURCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getMysqlSourceConfig().hashCode(); break; + case 102: + hash = (37 * hash) + POSTGRESQL_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlSourceConfig().hashCode(); + break; case 0: default: } @@ -648,6 +739,13 @@ public com.google.cloud.datastream.v1.SourceConfig buildPartial() { result.sourceStreamConfig_ = mysqlSourceConfigBuilder_.build(); } } + if (sourceStreamConfigCase_ == 102) { + if (postgresqlSourceConfigBuilder_ == null) { + result.sourceStreamConfig_ = sourceStreamConfig_; + } else { + result.sourceStreamConfig_ = postgresqlSourceConfigBuilder_.build(); + } + } result.sourceStreamConfigCase_ = sourceStreamConfigCase_; onBuilt(); return result; @@ -713,6 +811,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.SourceConfig other) { mergeMysqlSourceConfig(other.getMysqlSourceConfig()); break; } + case POSTGRESQL_SOURCE_CONFIG: + { + mergePostgresqlSourceConfig(other.getPostgresqlSourceConfig()); + break; + } case SOURCESTREAMCONFIG_NOT_SET: { break; @@ -891,7 +994,7 @@ public Builder setSourceConnectionProfileBytes(com.google.protobuf.ByteString va * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -906,7 +1009,7 @@ public boolean hasOracleSourceConfig() { * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -931,7 +1034,7 @@ public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -953,7 +1056,7 @@ public Builder setOracleSourceConfig(com.google.cloud.datastream.v1.OracleSource * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -973,7 +1076,7 @@ public Builder setOracleSourceConfig( * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -1007,7 +1110,7 @@ public Builder mergeOracleSourceConfig( * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -1032,7 +1135,7 @@ public Builder clearOracleSourceConfig() { * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -1045,7 +1148,7 @@ public Builder clearOracleSourceConfig() { * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -1066,7 +1169,7 @@ public Builder clearOracleSourceConfig() { * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -1106,7 +1209,7 @@ public Builder clearOracleSourceConfig() { * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1121,7 +1224,7 @@ public boolean hasMysqlSourceConfig() { * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1146,7 +1249,7 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig() { * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1168,7 +1271,7 @@ public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSourceCo * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1188,7 +1291,7 @@ public Builder setMysqlSourceConfig( * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1221,7 +1324,7 @@ public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSource * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1246,7 +1349,7 @@ public Builder clearMysqlSourceConfig() { * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1258,7 +1361,7 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1279,7 +1382,7 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1310,6 +1413,231 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo return mysqlSourceConfigBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSourceConfig, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder> + postgresqlSourceConfigBuilder_; + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * + * @return Whether the postgresqlSourceConfig field is set. + */ + @java.lang.Override + public boolean hasPostgresqlSourceConfig() { + return sourceStreamConfigCase_ == 102; + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * + * @return The postgresqlSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSourceConfig() { + if (postgresqlSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } else { + if (sourceStreamConfigCase_ == 102) { + return postgresqlSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + public Builder setPostgresqlSourceConfig( + com.google.cloud.datastream.v1.PostgresqlSourceConfig value) { + if (postgresqlSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceStreamConfig_ = value; + onChanged(); + } else { + postgresqlSourceConfigBuilder_.setMessage(value); + } + sourceStreamConfigCase_ = 102; + return this; + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + public Builder setPostgresqlSourceConfig( + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder builderForValue) { + if (postgresqlSourceConfigBuilder_ == null) { + sourceStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + postgresqlSourceConfigBuilder_.setMessage(builderForValue.build()); + } + sourceStreamConfigCase_ = 102; + return this; + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + public Builder mergePostgresqlSourceConfig( + com.google.cloud.datastream.v1.PostgresqlSourceConfig value) { + if (postgresqlSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 102 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.PostgresqlSourceConfig.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceStreamConfig_ = value; + } + onChanged(); + } else { + if (sourceStreamConfigCase_ == 102) { + postgresqlSourceConfigBuilder_.mergeFrom(value); + } else { + postgresqlSourceConfigBuilder_.setMessage(value); + } + } + sourceStreamConfigCase_ = 102; + return this; + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + public Builder clearPostgresqlSourceConfig() { + if (postgresqlSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 102) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + onChanged(); + } + } else { + if (sourceStreamConfigCase_ == 102) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + } + postgresqlSourceConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + public com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder + getPostgresqlSourceConfigBuilder() { + return getPostgresqlSourceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder + getPostgresqlSourceConfigOrBuilder() { + if ((sourceStreamConfigCase_ == 102) && (postgresqlSourceConfigBuilder_ != null)) { + return postgresqlSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceStreamConfigCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSourceConfig, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder> + getPostgresqlSourceConfigFieldBuilder() { + if (postgresqlSourceConfigBuilder_ == null) { + if (!(sourceStreamConfigCase_ == 102)) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } + postgresqlSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSourceConfig, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder>( + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_, + getParentForChildren(), + isClean()); + sourceStreamConfig_ = null; + } + sourceStreamConfigCase_ = 102; + onChanged(); + ; + return postgresqlSourceConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java index 7a825e7d..bf914fd2 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java @@ -58,7 +58,7 @@ public interface SourceConfigOrBuilder * * *
-   * Oracle data source configuration
+   * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -70,7 +70,7 @@ public interface SourceConfigOrBuilder * * *
-   * Oracle data source configuration
+   * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -82,7 +82,7 @@ public interface SourceConfigOrBuilder * * *
-   * Oracle data source configuration
+   * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -93,7 +93,7 @@ public interface SourceConfigOrBuilder * * *
-   * MySQL data source configuration
+   * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -105,7 +105,7 @@ public interface SourceConfigOrBuilder * * *
-   * MySQL data source configuration
+   * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -117,13 +117,49 @@ public interface SourceConfigOrBuilder * * *
-   * MySQL data source configuration
+   * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; */ com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder(); + /** + * + * + *
+   * PostgreSQL data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * @return Whether the postgresqlSourceConfig field is set. + */ + boolean hasPostgresqlSourceConfig(); + /** + * + * + *
+   * PostgreSQL data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * @return The postgresqlSourceConfig. + */ + com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSourceConfig(); + /** + * + * + *
+   * PostgreSQL data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + */ + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder + getPostgresqlSourceConfigOrBuilder(); + public com.google.cloud.datastream.v1.SourceConfig.SourceStreamConfigCase getSourceStreamConfigCase(); } diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java index f7fc5a3f..9a84e9e3 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java @@ -116,6 +116,33 @@ private SourceObjectIdentifier( sourceIdentifierCase_ = 2; break; } + case 26: + { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder + subBuilder = null; + if (sourceIdentifierCase_ == 3) { + subBuilder = + ((com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier) + sourceIdentifier_) + .toBuilder(); + } + sourceIdentifier_ = + input.readMessage( + com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier) + sourceIdentifier_); + sourceIdentifier_ = subBuilder.buildPartial(); + } + sourceIdentifierCase_ = 3; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -600,26 +627,918 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder + .class); + } + + // Construct using + // com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + schema_ = ""; + + table_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier build() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + buildPartial() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(this); + result.schema_ = schema_; + result.table_ = table_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) { + return mergeFrom( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier other) { + if (other + == com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance()) return this; + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + onChanged(); + } + if (!other.getTable().isEmpty()) { + table_ = other.table_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object schema_ = ""; + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schema_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSchema() { + + schema_ = getDefaultInstance().getSchema(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for schema to set. + * @return This builder for chaining. + */ + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schema_ = value; + onChanged(); + return this; + } + + private java.lang.Object table_ = ""; + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + table_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + + table_ = getDefaultInstance().getTable(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + table_ = value; + 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.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + private static final com.google.cloud.datastream.v1.SourceObjectIdentifier + .OracleObjectIdentifier + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleObjectIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OracleObjectIdentifier(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PostgresqlObjectIdentifierOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The schema name.
+     * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + java.lang.String getSchema(); + /** + * + * + *
+     * Required. The schema name.
+     * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + com.google.protobuf.ByteString getSchemaBytes(); + + /** + * + * + *
+     * Required. The table name.
+     * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + java.lang.String getTable(); + /** + * + * + *
+     * Required. The table name.
+     * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + } + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier} + */ + public static final class PostgresqlObjectIdentifier + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + PostgresqlObjectIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlObjectIdentifier.newBuilder() to construct. + private PostgresqlObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlObjectIdentifier() { + schema_ = ""; + table_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlObjectIdentifier(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlObjectIdentifier( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + schema_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + table_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder.class); + } + + public static final int SCHEMA_FIELD_NUMBER = 1; + private volatile java.lang.Object schema_; + /** + * + * + *
+     * Required. The schema name.
+     * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + @java.lang.Override + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + 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(); + schema_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The schema name.
+     * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_FIELD_NUMBER = 2; + private volatile java.lang.Object table_; + /** + * + * + *
+     * Required. The table name.
+     * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + 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(); + table_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The table name.
+     * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(schema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, table_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier other = + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) obj; + + if (!getSchema().equals(other.getSchema())) return false; + if (!getTable().equals(other.getTable())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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; + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder - .class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder.class); } // Construct using - // com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.newBuilder() + // com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -646,19 +1565,20 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier build() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + build() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -667,10 +1587,11 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentif } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier buildPartial() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = - new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(this); + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier( + this); result.schema_ = schema_; result.table_ = table_; onBuilt(); @@ -716,9 +1637,10 @@ public Builder addRepeatedField( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) { return mergeFrom( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) other); + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + other); } else { super.mergeFrom(other); return this; @@ -726,9 +1648,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier other) { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier other) { if (other - == com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + == com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier .getDefaultInstance()) return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; @@ -753,13 +1675,13 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parsedMessage = - null; + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { @@ -994,46 +1916,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) } - // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) private static final com.google.cloud.datastream.v1.SourceObjectIdentifier - .OracleObjectIdentifier + .PostgresqlObjectIdentifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(); + new com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier(); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public OracleObjectIdentifier parsePartialFrom( + public PostgresqlObjectIdentifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OracleObjectIdentifier(input, extensionRegistry); + return new PostgresqlObjectIdentifier(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1932,6 +2854,7 @@ public enum SourceIdentifierCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_IDENTIFIER(1), MYSQL_IDENTIFIER(2), + POSTGRESQL_IDENTIFIER(3), SOURCEIDENTIFIER_NOT_SET(0); private final int value; @@ -1954,6 +2877,8 @@ public static SourceIdentifierCase forNumber(int value) { return ORACLE_IDENTIFIER; case 2: return MYSQL_IDENTIFIER; + case 3: + return POSTGRESQL_IDENTIFIER; case 0: return SOURCEIDENTIFIER_NOT_SET; default: @@ -2096,6 +3021,69 @@ public boolean hasMysqlIdentifier() { .getDefaultInstance(); } + public static final int POSTGRESQL_IDENTIFIER_FIELD_NUMBER = 3; + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return Whether the postgresqlIdentifier field is set. + */ + @java.lang.Override + public boolean hasPostgresqlIdentifier() { + return sourceIdentifierCase_ == 3; + } + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return The postgresqlIdentifier. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + getPostgresqlIdentifier() { + if (sourceIdentifierCase_ == 3) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); + } + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder + getPostgresqlIdentifierOrBuilder() { + if (sourceIdentifierCase_ == 3) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2122,6 +3110,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_); } + if (sourceIdentifierCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_); + } unknownFields.writeTo(output); } @@ -2145,6 +3139,13 @@ public int getSerializedSize() { (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_); } + if (sourceIdentifierCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2169,6 +3170,9 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getMysqlIdentifier().equals(other.getMysqlIdentifier())) return false; break; + case 3: + if (!getPostgresqlIdentifier().equals(other.getPostgresqlIdentifier())) return false; + break; case 0: default: } @@ -2192,6 +3196,10 @@ public int hashCode() { hash = (37 * hash) + MYSQL_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getMysqlIdentifier().hashCode(); break; + case 3: + hash = (37 * hash) + POSTGRESQL_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlIdentifier().hashCode(); + break; case 0: default: } @@ -2384,6 +3392,13 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier buildPartial() { result.sourceIdentifier_ = mysqlIdentifierBuilder_.build(); } } + if (sourceIdentifierCase_ == 3) { + if (postgresqlIdentifierBuilder_ == null) { + result.sourceIdentifier_ = sourceIdentifier_; + } else { + result.sourceIdentifier_ = postgresqlIdentifierBuilder_.build(); + } + } result.sourceIdentifierCase_ = sourceIdentifierCase_; onBuilt(); return result; @@ -2446,6 +3461,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier o mergeMysqlIdentifier(other.getMysqlIdentifier()); break; } + case POSTGRESQL_IDENTIFIER: + { + mergePostgresqlIdentifier(other.getPostgresqlIdentifier()); + break; + } case SOURCEIDENTIFIER_NOT_SET: { break; @@ -2990,6 +4010,259 @@ public Builder clearMysqlIdentifier() { return mysqlIdentifierBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifierOrBuilder> + postgresqlIdentifierBuilder_; + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return Whether the postgresqlIdentifier field is set. + */ + @java.lang.Override + public boolean hasPostgresqlIdentifier() { + return sourceIdentifierCase_ == 3; + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return The postgresqlIdentifier. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + getPostgresqlIdentifier() { + if (postgresqlIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 3) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); + } else { + if (sourceIdentifierCase_ == 3) { + return postgresqlIdentifierBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + public Builder setPostgresqlIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier value) { + if (postgresqlIdentifierBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceIdentifier_ = value; + onChanged(); + } else { + postgresqlIdentifierBuilder_.setMessage(value); + } + sourceIdentifierCase_ = 3; + return this; + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + public Builder setPostgresqlIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder + builderForValue) { + if (postgresqlIdentifierBuilder_ == null) { + sourceIdentifier_ = builderForValue.build(); + onChanged(); + } else { + postgresqlIdentifierBuilder_.setMessage(builderForValue.build()); + } + sourceIdentifierCase_ = 3; + return this; + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + public Builder mergePostgresqlIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier value) { + if (postgresqlIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 3 + && sourceIdentifier_ + != com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance()) { + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .newBuilder( + (com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier) + sourceIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceIdentifier_ = value; + } + onChanged(); + } else { + if (sourceIdentifierCase_ == 3) { + postgresqlIdentifierBuilder_.mergeFrom(value); + } else { + postgresqlIdentifierBuilder_.setMessage(value); + } + } + sourceIdentifierCase_ = 3; + return this; + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + public Builder clearPostgresqlIdentifier() { + if (postgresqlIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 3) { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + onChanged(); + } + } else { + if (sourceIdentifierCase_ == 3) { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + } + postgresqlIdentifierBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder + getPostgresqlIdentifierBuilder() { + return getPostgresqlIdentifierFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder + getPostgresqlIdentifierOrBuilder() { + if ((sourceIdentifierCase_ == 3) && (postgresqlIdentifierBuilder_ != null)) { + return postgresqlIdentifierBuilder_.getMessageOrBuilder(); + } else { + if (sourceIdentifierCase_ == 3) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifierOrBuilder> + getPostgresqlIdentifierFieldBuilder() { + if (postgresqlIdentifierBuilder_ == null) { + if (!(sourceIdentifierCase_ == 3)) { + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); + } + postgresqlIdentifierBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifierOrBuilder>( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_, + getParentForChildren(), + isClean()); + sourceIdentifier_ = null; + } + sourceIdentifierCase_ = 3; + onChanged(); + ; + return postgresqlIdentifierBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java index 42a1e4fa..886a6d21 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java @@ -108,6 +108,49 @@ public interface SourceObjectIdentifierOrBuilder com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder getMysqlIdentifierOrBuilder(); + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return Whether the postgresqlIdentifier field is set. + */ + boolean hasPostgresqlIdentifier(); + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return The postgresqlIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + getPostgresqlIdentifier(); + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder + getPostgresqlIdentifierOrBuilder(); + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SourceIdentifierCase getSourceIdentifierCase(); } diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java index a2fcecae..f3a46f86 100644 --- a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java @@ -649,6 +649,41 @@ public interface BackfillAllStrategyOrBuilder */ com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder(); + /** + * + * + *
+     * PostgreSQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * + * @return Whether the postgresqlExcludedObjects field is set. + */ + boolean hasPostgresqlExcludedObjects(); + /** + * + * + *
+     * PostgreSQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * + * @return The postgresqlExcludedObjects. + */ + com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects(); + /** + * + * + *
+     * PostgreSQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcludedObjectsOrBuilder(); + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.ExcludedObjectsCase getExcludedObjectsCase(); } @@ -739,6 +774,25 @@ private BackfillAllStrategy( excludedObjectsCase_ = 2; break; } + case 26: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (excludedObjectsCase_ == 3) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_) + .toBuilder(); + } + excludedObjects_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); + excludedObjects_ = subBuilder.buildPartial(); + } + excludedObjectsCase_ = 3; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -784,6 +838,7 @@ public enum ExcludedObjectsCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_EXCLUDED_OBJECTS(1), MYSQL_EXCLUDED_OBJECTS(2), + POSTGRESQL_EXCLUDED_OBJECTS(3), EXCLUDEDOBJECTS_NOT_SET(0); private final int value; @@ -806,6 +861,8 @@ public static ExcludedObjectsCase forNumber(int value) { return ORACLE_EXCLUDED_OBJECTS; case 2: return MYSQL_EXCLUDED_OBJECTS; + case 3: + return POSTGRESQL_EXCLUDED_OBJECTS; case 0: return EXCLUDEDOBJECTS_NOT_SET; default: @@ -924,6 +981,58 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObject return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } + public static final int POSTGRESQL_EXCLUDED_OBJECTS_FIELD_NUMBER = 3; + /** + * + * + *
+     * PostgreSQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * + * @return Whether the postgresqlExcludedObjects field is set. + */ + @java.lang.Override + public boolean hasPostgresqlExcludedObjects() { + return excludedObjectsCase_ == 3; + } + /** + * + * + *
+     * PostgreSQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * + * @return The postgresqlExcludedObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects() { + if (excludedObjectsCase_ == 3) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + /** + * + * + *
+     * PostgreSQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder + getPostgresqlExcludedObjectsOrBuilder() { + if (excludedObjectsCase_ == 3) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -944,6 +1053,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (excludedObjectsCase_ == 2) { output.writeMessage(2, (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_); } + if (excludedObjectsCase_ == 3) { + output.writeMessage(3, (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); + } unknownFields.writeTo(output); } @@ -963,6 +1075,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_); } + if (excludedObjectsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -987,6 +1104,10 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getMysqlExcludedObjects().equals(other.getMysqlExcludedObjects())) return false; break; + case 3: + if (!getPostgresqlExcludedObjects().equals(other.getPostgresqlExcludedObjects())) + return false; + break; case 0: default: } @@ -1010,6 +1131,10 @@ public int hashCode() { hash = (37 * hash) + MYSQL_EXCLUDED_OBJECTS_FIELD_NUMBER; hash = (53 * hash) + getMysqlExcludedObjects().hashCode(); break; + case 3: + hash = (37 * hash) + POSTGRESQL_EXCLUDED_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlExcludedObjects().hashCode(); + break; case 0: default: } @@ -1205,6 +1330,13 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy buildPartial() result.excludedObjects_ = mysqlExcludedObjectsBuilder_.build(); } } + if (excludedObjectsCase_ == 3) { + if (postgresqlExcludedObjectsBuilder_ == null) { + result.excludedObjects_ = excludedObjects_; + } else { + result.excludedObjects_ = postgresqlExcludedObjectsBuilder_.build(); + } + } result.excludedObjectsCase_ = excludedObjectsCase_; onBuilt(); return result; @@ -1269,6 +1401,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillAllStrate mergeMysqlExcludedObjects(other.getMysqlExcludedObjects()); break; } + case POSTGRESQL_EXCLUDED_OBJECTS: + { + mergePostgresqlExcludedObjects(other.getPostgresqlExcludedObjects()); + break; + } case EXCLUDEDOBJECTS_NOT_SET: { break; @@ -1741,6 +1878,221 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObject return mysqlExcludedObjectsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + postgresqlExcludedObjectsBuilder_; + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * + * @return Whether the postgresqlExcludedObjects field is set. + */ + @java.lang.Override + public boolean hasPostgresqlExcludedObjects() { + return excludedObjectsCase_ == 3; + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * + * @return The postgresqlExcludedObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects() { + if (postgresqlExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 3) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } else { + if (excludedObjectsCase_ == 3) { + return postgresqlExcludedObjectsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + public Builder setPostgresqlExcludedObjects( + com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (postgresqlExcludedObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludedObjects_ = value; + onChanged(); + } else { + postgresqlExcludedObjectsBuilder_.setMessage(value); + } + excludedObjectsCase_ = 3; + return this; + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + public Builder setPostgresqlExcludedObjects( + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue) { + if (postgresqlExcludedObjectsBuilder_ == null) { + excludedObjects_ = builderForValue.build(); + onChanged(); + } else { + postgresqlExcludedObjectsBuilder_.setMessage(builderForValue.build()); + } + excludedObjectsCase_ = 3; + return this; + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + public Builder mergePostgresqlExcludedObjects( + com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (postgresqlExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 3 + && excludedObjects_ + != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + excludedObjects_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + excludedObjects_ = value; + } + onChanged(); + } else { + if (excludedObjectsCase_ == 3) { + postgresqlExcludedObjectsBuilder_.mergeFrom(value); + } else { + postgresqlExcludedObjectsBuilder_.setMessage(value); + } + } + excludedObjectsCase_ = 3; + return this; + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + public Builder clearPostgresqlExcludedObjects() { + if (postgresqlExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 3) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + onChanged(); + } + } else { + if (excludedObjectsCase_ == 3) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + } + postgresqlExcludedObjectsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder + getPostgresqlExcludedObjectsBuilder() { + return getPostgresqlExcludedObjectsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder + getPostgresqlExcludedObjectsOrBuilder() { + if ((excludedObjectsCase_ == 3) && (postgresqlExcludedObjectsBuilder_ != null)) { + return postgresqlExcludedObjectsBuilder_.getMessageOrBuilder(); + } else { + if (excludedObjectsCase_ == 3) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + getPostgresqlExcludedObjectsFieldBuilder() { + if (postgresqlExcludedObjectsBuilder_ == null) { + if (!(excludedObjectsCase_ == 3)) { + excludedObjects_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + postgresqlExcludedObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_, + getParentForChildren(), + isClean()); + excludedObjects_ = null; + } + excludedObjectsCase_ = 3; + onChanged(); + ; + return postgresqlExcludedObjectsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto b/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto index 0c11a1eb..a2963391 100644 --- a/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto +++ b/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto @@ -332,6 +332,9 @@ message DiscoverConnectionProfileRequest { // MySQL RDBMS to enrich with child data objects and metadata. MysqlRdbms mysql_rdbms = 101; + + // PostgreSQL RDBMS to enrich with child data objects and metadata. + PostgresqlRdbms postgresql_rdbms = 102; } } @@ -344,6 +347,9 @@ message DiscoverConnectionProfileResponse { // Enriched MySQL RDBMS object. MysqlRdbms mysql_rdbms = 101; + + // Enriched PostgreSQL RDBMS object. + PostgresqlRdbms postgresql_rdbms = 102; } } diff --git a/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto b/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto index efcd8632..58a2c7bd 100644 --- a/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto +++ b/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.datastream.v1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/duration.proto"; @@ -76,6 +75,24 @@ message MysqlProfile { MysqlSslConfig ssl_config = 5; } +// PostgreSQL database profile. +message PostgresqlProfile { + // Required. Hostname for the PostgreSQL connection. + string hostname = 1 [(google.api.field_behavior) = REQUIRED]; + + // Port for the PostgreSQL connection, default value is 5432. + int32 port = 2; + + // Required. Username for the PostgreSQL connection. + string username = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Password for the PostgreSQL connection. + string password = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. Database for the PostgreSQL connection. + string database = 5 [(google.api.field_behavior) = REQUIRED]; +} + // Cloud Storage bucket profile. message GcsProfile { // Required. The Cloud Storage bucket name. @@ -85,8 +102,15 @@ message GcsProfile { string root_path = 2; } +// BigQuery warehouse profile. +message BigQueryProfile { + +} + // Static IP address connectivity. -message StaticServiceIpConnectivity {} +message StaticServiceIpConnectivity { + +} // Forward SSH Tunnel connectivity. message ForwardSshTunnelConnectivity { @@ -157,12 +181,10 @@ message PrivateConnection { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create time of the resource. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update time of the resource. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels. map labels = 4; @@ -173,8 +195,7 @@ message PrivateConnection { // Output only. The state of the Private Connection. State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. In case of error, the details of the error in a user-friendly - // format. + // Output only. In case of error, the details of the error in a user-friendly format. Error error = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // VPC Peering Config. @@ -205,12 +226,10 @@ message Route { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create time of the resource. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update time of the resource. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels. map labels = 4; @@ -243,8 +262,8 @@ message MysqlSslConfig { // Output only. Indicates whether the client_certificate field is set. bool client_certificate_set = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Input only. PEM-encoded certificate of the CA that signed the source - // database server's certificate. + // Input only. PEM-encoded certificate of the CA that signed the source database + // server's certificate. string ca_certificate = 5 [(google.api.field_behavior) = INPUT_ONLY]; // Output only. Indicates whether the ca_certificate field is set. @@ -263,12 +282,10 @@ message ConnectionProfile { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create time of the resource. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update time of the resource. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels. map labels = 4; @@ -286,6 +303,12 @@ message ConnectionProfile { // MySQL ConnectionProfile configuration. MysqlProfile mysql_profile = 102; + + // BigQuery Connection Profile configuration. + BigQueryProfile bigquery_profile = 103; + + // PostgreSQL Connection Profile configuration. + PostgresqlProfile postgresql_profile = 104; } // Connectivity options used to establish a connection to the profile. @@ -337,7 +360,7 @@ message OracleTable { string table = 1; // Oracle columns in the schema. - // When unspecified as part of inclue/exclude lists, includes/excludes + // When unspecified as part of include/exclude objects, includes/excludes // everything. repeated OracleColumn oracle_columns = 2; } @@ -359,11 +382,104 @@ message OracleRdbms { // Oracle data source configuration message OracleSourceConfig { + // Configuration to drop large object values. + message DropLargeObjects { + + } + + // Configuration to stream large object values. + message StreamLargeObjects { + + } + // Oracle objects to include in the stream. OracleRdbms include_objects = 1; // Oracle objects to exclude from the stream. OracleRdbms exclude_objects = 2; + + // Maximum number of concurrent CDC tasks. The number should be non negative. + // If not set (or set to 0), the system's default value will be used. + int32 max_concurrent_cdc_tasks = 3; + + // The configuration for handle Oracle large objects. + oneof large_objects_handling { + // Drop large object values. + DropLargeObjects drop_large_objects = 100; + + // Stream large object values. + StreamLargeObjects stream_large_objects = 102; + } +} + +// PostgreSQL Column. +message PostgresqlColumn { + // Column name. + string column = 1; + + // The PostgreSQL data type. + string data_type = 2; + + // Column length. + int32 length = 3; + + // Column precision. + int32 precision = 4; + + // Column scale. + int32 scale = 5; + + // Whether or not the column represents a primary key. + bool primary_key = 7; + + // Whether or not the column can accept a null value. + bool nullable = 8; + + // The ordinal position of the column in the table. + int32 ordinal_position = 9; +} + +// PostgreSQL table. +message PostgresqlTable { + // Table name. + string table = 1; + + // PostgreSQL columns in the schema. + // When unspecified as part of include/exclude objects, + // includes/excludes everything. + repeated PostgresqlColumn postgresql_columns = 2; +} + +// PostgreSQL schema. +message PostgresqlSchema { + // Schema name. + string schema = 1; + + // Tables in the schema. + repeated PostgresqlTable postgresql_tables = 2; +} + +// PostgreSQL database structure. +message PostgresqlRdbms { + // PostgreSQL schemas in the database server. + repeated PostgresqlSchema postgresql_schemas = 1; +} + +// PostgreSQL data source configuration +message PostgresqlSourceConfig { + // PostgreSQL objects to include in the stream. + PostgresqlRdbms include_objects = 1; + + // PostgreSQL objects to exclude from the stream. + PostgresqlRdbms exclude_objects = 2; + + // Required. The name of the logical replication slot that's configured with the + // pgoutput plugin. + string replication_slot = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the publication that includes the set of all tables that are + // defined in the stream's include_objects. + string publication = 4 [(google.api.field_behavior) = REQUIRED]; } // MySQL Column. @@ -397,7 +513,7 @@ message MysqlTable { string table = 1; // MySQL columns in the database. - // When unspecified as part of include/exclude lists, includes/excludes + // When unspecified as part of include/exclude objects, includes/excludes // everything. repeated MysqlColumn mysql_columns = 2; } @@ -424,6 +540,10 @@ message MysqlSourceConfig { // MySQL objects to exclude from the stream. MysqlRdbms exclude_objects = 2; + + // Maximum number of concurrent CDC tasks. The number should be non negative. + // If not set (or set to 0), the system's default value will be used. + int32 max_concurrent_cdc_tasks = 3; } // The configuration of the stream source. @@ -439,16 +559,21 @@ message SourceConfig { // Stream configuration that is specific to the data source type. oneof source_stream_config { - // Oracle data source configuration + // Oracle data source configuration. OracleSourceConfig oracle_source_config = 100; - // MySQL data source configuration + // MySQL data source configuration. MysqlSourceConfig mysql_source_config = 101; + + // PostgreSQL data source configuration. + PostgresqlSourceConfig postgresql_source_config = 102; } } // AVRO file format configuration. -message AvroFileFormat {} +message AvroFileFormat { + +} // JSON file format configuration. message JsonFileFormat { @@ -505,6 +630,56 @@ message GcsDestinationConfig { } } +message BigQueryDestinationConfig { + // A single target dataset to which all data will be streamed. + message SingleTargetDataset { + string dataset_id = 1; + } + + // Destination datasets are created so that hierarchy of the destination data + // objects matches the source hierarchy. + message SourceHierarchyDatasets { + // Dataset template used for dynamic dataset creation. + message DatasetTemplate { + // Required. The geographic location where the dataset should reside. See + // https://cloud.google.com/bigquery/docs/locations for supported + // locations. + string location = 1 [(google.api.field_behavior) = REQUIRED]; + + // If supplied, every created dataset will have its name prefixed by the + // provided value. The prefix and name will be separated by an underscore. + // i.e. _. + string dataset_id_prefix = 2; + + // Describes the Cloud KMS encryption key that will be used to + // protect destination BigQuery table. The BigQuery Service Account + // associated with your project requires access to this encryption key. + // i.e. + // projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}. + // See https://cloud.google.com/bigquery/docs/customer-managed-encryption + // for more information. + string kms_key_name = 3; + } + + DatasetTemplate dataset_template = 2; + } + + // Target dataset(s) configuration. + oneof dataset_config { + // Single destination dataset. + SingleTargetDataset single_target_dataset = 201; + + // Source hierarchy datasets. + SourceHierarchyDatasets source_hierarchy_datasets = 202; + } + + // The guaranteed data freshness (in seconds) when querying tables created by + // the stream. Editing this field will only affect new tables created in the + // future, but existing tables will not be impacted. Lower values mean that + // queries will return fresher data, but may result in higher cost. + google.protobuf.Duration data_freshness = 300; +} + // The configuration of the stream destination. message DestinationConfig { // Required. Destination connection profile resource. @@ -520,6 +695,9 @@ message DestinationConfig { oneof destination_stream_config { // A configuration for how data should be loaded to Cloud Storage. GcsDestinationConfig gcs_destination_config = 100; + + // BigQuery destination configuration. + BigQueryDestinationConfig bigquery_destination_config = 101; } } @@ -574,22 +752,25 @@ message Stream { // MySQL data source objects to avoid backfilling. MysqlRdbms mysql_excluded_objects = 2; + + // PostgreSQL data source objects to avoid backfilling. + PostgresqlRdbms postgresql_excluded_objects = 3; } } // Backfill strategy to disable automatic backfill for the Stream's objects. - message BackfillNoneStrategy {} + message BackfillNoneStrategy { + + } // Output only. The stream's name. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The creation time of the stream. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update time of the stream. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels. map labels = 4; @@ -601,8 +782,7 @@ message Stream { SourceConfig source_config = 6 [(google.api.field_behavior) = REQUIRED]; // Required. Destination connection profile configuration. - DestinationConfig destination_config = 7 - [(google.api.field_behavior) = REQUIRED]; + DestinationConfig destination_config = 7 [(google.api.field_behavior) = REQUIRED]; // The state of the stream. State state = 8; @@ -624,8 +804,7 @@ message Stream { // If provided, it will be used to encrypt the data. // If left blank, data will be encrypted using an internal Stream-specific // encryption key provisioned through KMS. - optional string customer_managed_encryption_key = 10 - [(google.api.field_behavior) = IMMUTABLE]; + optional string customer_managed_encryption_key = 10 [(google.api.field_behavior) = IMMUTABLE]; } // A specific stream object (e.g a specific DB table). @@ -639,12 +818,10 @@ message StreamObject { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The creation time of the object. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update time of the object. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Display name. string display_name = 5 [(google.api.field_behavior) = REQUIRED]; @@ -670,6 +847,15 @@ message SourceObjectIdentifier { string table = 2 [(google.api.field_behavior) = REQUIRED]; } + // PostgreSQL data source object identifier. + message PostgresqlObjectIdentifier { + // Required. The schema name. + string schema = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The table name. + string table = 2 [(google.api.field_behavior) = REQUIRED]; + } + // Mysql data source object identifier. message MysqlObjectIdentifier { // Required. The database name. @@ -686,6 +872,9 @@ message SourceObjectIdentifier { // Mysql data source object identifier. MysqlObjectIdentifier mysql_identifier = 2; + + // PostgreSQL data source object identifier. + PostgresqlObjectIdentifier postgresql_identifier = 3; } } @@ -741,12 +930,10 @@ message BackfillJob { Trigger trigger = 2; // Output only. Backfill job's start time. - google.protobuf.Timestamp last_start_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp last_start_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Backfill job's end time. - google.protobuf.Timestamp last_end_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp last_end_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Errors which caused the backfill job to fail. repeated Error errors = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-datastream-v1alpha1/pom.xml b/proto-google-cloud-datastream-v1alpha1/pom.xml index e155d502..caa0d8d8 100644 --- a/proto-google-cloud-datastream-v1alpha1/pom.xml +++ b/proto-google-cloud-datastream-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.6.1 + 0.7.0 proto-google-cloud-datastream-v1alpha1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.1.1 + 1.2.0 diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java index 3c834769..f354bba7 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java @@ -205,215 +205,214 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "stream.v1alpha1\032\037google/api/field_behavi" + "or.proto\032\031google/api/resource.proto\032\036goo" + "gle/protobuf/duration.proto\032\037google/prot" - + "obuf/timestamp.proto\032\034google/api/annotat" - + "ions.proto\"\250\002\n\rOracleProfile\022\025\n\010hostname" - + "\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 " - + "\001(\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\002\022\035\n\020datab" - + "ase_service\030\005 \001(\tB\003\340A\002\022h\n\025connection_att" - + "ributes\030\006 \003(\0132I.google.cloud.datastream." - + "v1alpha1.OracleProfile.ConnectionAttribu" - + "tesEntry\032;\n\031ConnectionAttributesEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\014MysqlP" - + "rofile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 " - + "\001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004" - + " \001(\tB\006\340A\002\340A\004\022D\n\nssl_config\030\005 \001(\01320.googl" - + "e.cloud.datastream.v1alpha1.MysqlSslConf" - + "ig\"9\n\nGcsProfile\022\030\n\013bucket_name\030\001 \001(\tB\003\340" - + "A\002\022\021\n\troot_path\030\002 \001(\t\"\030\n\026NoConnectivityS" - + "ettings\"\035\n\033StaticServiceIpConnectivity\"\250" - + "\001\n\034ForwardSshTunnelConnectivity\022\025\n\010hostn" - + "ame\030\001 \001(\tB\003\340A\002\022\025\n\010username\030\002 \001(\tB\003\340A\002\022\014\n" - + "\004port\030\003 \001(\005\022\027\n\010password\030d \001(\tB\003\340A\004H\000\022\032\n\013" - + "private_key\030e \001(\tB\003\340A\004H\000B\027\n\025authenticati" - + "on_method\">\n\020VpcPeeringConfig\022\025\n\010vpc_nam" - + "e\030\001 \001(\tB\003\340A\002\022\023\n\006subnet\030\002 \001(\tB\003\340A\002\"\324\005\n\021Pr" - + "ivateConnection\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cr" - + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?" - + ".google.cloud.datastream.v1alpha1.Privat" - + "eConnection.LabelsEntry\022\031\n\014display_name\030" - + "\005 \001(\tB\003\340A\002\022M\n\005state\030\006 \001(\01629.google.cloud" - + ".datastream.v1alpha1.PrivateConnection.S" - + "tateB\003\340A\003\022;\n\005error\030\007 \001(\0132\'.google.cloud." - + "datastream.v1alpha1.ErrorB\003\340A\003\022N\n\022vpc_pe" - + "ering_config\030d \001(\01322.google.cloud.datast" - + "ream.v1alpha1.VpcPeeringConfig\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATIN" - + "G\020\001\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003:\201\001\352A~\n+data" - + "stream.googleapis.com/PrivateConnection\022" - + "Oprojects/{project}/locations/{location}" - + "/privateConnections/{private_connection}" - + "\";\n\023PrivateConnectivity\022$\n\027private_conne" - + "ction_name\030\001 \001(\tB\003\340A\002\"\331\003\n\005Route\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" - + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C" - + "\n\006labels\030\004 \003(\01323.google.cloud.datastream" - + ".v1alpha1.Route.LabelsEntry\022\031\n\014display_n" - + "ame\030\005 \001(\tB\003\340A\002\022 \n\023destination_address\030\006 " - + "\001(\tB\003\340A\002\022\030\n\020destination_port\030\007 \001(\005\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001:\205\001\352A\201\001\n\037datastream.googleapis.com/Rout" - + "e\022^projects/{project}/locations/{locatio" - + "n}/privateConnections/{private_connectio" - + "n}/routes/{route}\"\312\001\n\016MysqlSslConfig\022\027\n\n" - + "client_key\030\013 \001(\tB\003\340A\004\022\033\n\016client_key_set\030" - + "\014 \001(\010B\003\340A\003\022\037\n\022client_certificate\030\r \001(\tB\003" - + "\340A\004\022#\n\026client_certificate_set\030\016 \001(\010B\003\340A\003" - + "\022\033\n\016ca_certificate\030\017 \001(\tB\003\340A\004\022\037\n\022ca_cert" - + "ificate_set\030\020 \001(\010B\003\340A\003\"\242\010\n\021ConnectionPro" - + "file\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?.google.clo" - + "ud.datastream.v1alpha1.ConnectionProfile" - + ".LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022" - + "I\n\016oracle_profile\030d \001(\0132/.google.cloud.d" - + "atastream.v1alpha1.OracleProfileH\000\022C\n\013gc" - + "s_profile\030e \001(\0132,.google.cloud.datastrea" - + "m.v1alpha1.GcsProfileH\000\022G\n\rmysql_profile" - + "\030f \001(\0132..google.cloud.datastream.v1alpha" - + "1.MysqlProfileH\000\022T\n\017no_connectivity\030\310\001 \001" - + "(\01328.google.cloud.datastream.v1alpha1.No" - + "ConnectivitySettingsH\001\022h\n\036static_service" - + "_ip_connectivity\030\311\001 \001(\0132=.google.cloud.d" - + "atastream.v1alpha1.StaticServiceIpConnec" - + "tivityH\001\022c\n\030forward_ssh_connectivity\030\312\001 " - + "\001(\0132>.google.cloud.datastream.v1alpha1.F" - + "orwardSshTunnelConnectivityH\001\022V\n\024private" - + "_connectivity\030\313\001 \001(\01325.google.cloud.data" - + "stream.v1alpha1.PrivateConnectivityH\001\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001:\201\001\352A~\n+datastream.googleapis.com/Co" - + "nnectionProfile\022Oprojects/{project}/loca" - + "tions/{location}/connectionProfiles/{con" - + "nection_profile}B\t\n\007profileB\016\n\014connectiv" - + "ity\"\273\001\n\014OracleColumn\022\023\n\013column_name\030\001 \001(" - + "\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\t" - + "precision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encodi" - + "ng\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullabl" - + "e\030\010 \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"i\n\013Ora" - + "cleTable\022\022\n\ntable_name\030\001 \001(\t\022F\n\016oracle_c" - + "olumns\030\002 \003(\0132..google.cloud.datastream.v" - + "1alpha1.OracleColumn\"i\n\014OracleSchema\022\023\n\013" - + "schema_name\030\001 \001(\t\022D\n\roracle_tables\030\002 \003(\013" - + "2-.google.cloud.datastream.v1alpha1.Orac" - + "leTable\"U\n\013OracleRdbms\022F\n\016oracle_schemas" - + "\030\001 \003(\0132..google.cloud.datastream.v1alpha" - + "1.OracleSchema\"\231\001\n\022OracleSourceConfig\022@\n" - + "\tallowlist\030\001 \001(\0132-.google.cloud.datastre" - + "am.v1alpha1.OracleRdbms\022A\n\nrejectlist\030\002 " - + "\001(\0132-.google.cloud.datastream.v1alpha1.O" - + "racleRdbms\"\231\001\n\013MysqlColumn\022\023\n\013column_nam" - + "e\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001" - + "(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013primary_key\030\005 \001" - + "(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordinal_position" - + "\030\007 \001(\005\"f\n\nMysqlTable\022\022\n\ntable_name\030\001 \001(\t" - + "\022D\n\rmysql_columns\030\002 \003(\0132-.google.cloud.d" - + "atastream.v1alpha1.MysqlColumn\"j\n\rMysqlD" - + "atabase\022\025\n\rdatabase_name\030\001 \001(\t\022B\n\014mysql_" - + "tables\030\002 \003(\0132,.google.cloud.datastream.v" - + "1alpha1.MysqlTable\"V\n\nMysqlRdbms\022H\n\017mysq" - + "l_databases\030\001 \003(\0132/.google.cloud.datastr" - + "eam.v1alpha1.MysqlDatabase\"\226\001\n\021MysqlSour" - + "ceConfig\022?\n\tallowlist\030\001 \001(\0132,.google.clo" - + "ud.datastream.v1alpha1.MysqlRdbms\022@\n\nrej" - + "ectlist\030\002 \001(\0132,.google.cloud.datastream." - + "v1alpha1.MysqlRdbms\"\375\001\n\014SourceConfig\022+\n\036" - + "source_connection_profile_name\030\001 \001(\tB\003\340A" - + "\002\022T\n\024oracle_source_config\030d \001(\01324.google" - + ".cloud.datastream.v1alpha1.OracleSourceC" - + "onfigH\000\022R\n\023mysql_source_config\030e \001(\01323.g" - + "oogle.cloud.datastream.v1alpha1.MysqlSou" - + "rceConfigH\000B\026\n\024source_stream_config\"\020\n\016A" - + "vroFileFormat\"\212\002\n\016JsonFileFormat\022N\n\022sche" - + "ma_file_format\030\001 \001(\01622.google.cloud.data" - + "stream.v1alpha1.SchemaFileFormat\022U\n\013comp" - + "ression\030\002 \001(\0162@.google.cloud.datastream." - + "v1alpha1.JsonFileFormat.JsonCompression\"" - + "Q\n\017JsonCompression\022 \n\034JSON_COMPRESSION_U" - + "NSPECIFIED\020\000\022\022\n\016NO_COMPRESSION\020\001\022\010\n\004GZIP" - + "\020\002\"\362\002\n\024GcsDestinationConfig\022\014\n\004path\030\001 \001(" - + "\t\022L\n\017gcs_file_format\030\002 \001(\0162/.google.clou" - + "d.datastream.v1alpha1.GcsFileFormatB\002\030\001\022" - + "\030\n\020file_rotation_mb\030\003 \001(\005\0229\n\026file_rotati" - + "on_interval\030\004 \001(\0132\031.google.protobuf.Dura" - + "tion\022L\n\020avro_file_format\030d \001(\01320.google." - + "cloud.datastream.v1alpha1.AvroFileFormat" - + "H\000\022L\n\020json_file_format\030e \001(\01320.google.cl" - + "oud.datastream.v1alpha1.JsonFileFormatH\000" - + "B\r\n\013file_format\"\274\001\n\021DestinationConfig\0220\n" - + "#destination_connection_profile_name\030\001 \001" - + "(\tB\003\340A\002\022X\n\026gcs_destination_config\030d \001(\0132" - + "6.google.cloud.datastream.v1alpha1.GcsDe" - + "stinationConfigH\000B\033\n\031destination_stream_" - + "config\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013" - + "create_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022D\n\006labels\030\004 \003(\013" - + "24.google.cloud.datastream.v1alpha1.Stre" - + "am.LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A" - + "\002\022J\n\rsource_config\030\006 \001(\0132..google.cloud." - + "datastream.v1alpha1.SourceConfigB\003\340A\002\022T\n" - + "\022destination_config\030\007 \001(\01323.google.cloud" - + ".datastream.v1alpha1.DestinationConfigB\003" - + "\340A\002\022=\n\005state\030\010 \001(\0162..google.cloud.datast" - + "ream.v1alpha1.Stream.State\022T\n\014backfill_a" - + "ll\030e \001(\0132<.google.cloud.datastream.v1alp" - + "ha1.Stream.BackfillAllStrategyH\000\022V\n\rback" - + "fill_none\030f \001(\0132=.google.cloud.datastrea" - + "m.v1alpha1.Stream.BackfillNoneStrategyH\000" - + "\022<\n\006errors\030\t \003(\0132\'.google.cloud.datastre" - + "am.v1alpha1.ErrorB\003\340A\003\032\313\001\n\023BackfillAllSt" - + "rategy\022P\n\027oracle_excluded_objects\030\001 \001(\0132" - + "-.google.cloud.datastream.v1alpha1.Oracl" - + "eRdbmsH\000\022N\n\026mysql_excluded_objects\030\002 \001(\013" - + "2,.google.cloud.datastream.v1alpha1.Mysq" - + "lRdbmsH\000B\022\n\020excluded_objects\032\026\n\024Backfill" - + "NoneStrategy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\225\001\n\005State\022\025\n\021STATE_U" - + "NSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\n" - + "\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILED\020\005\022" - + "\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020\007\022\014\n" - + "\010DRAINING\020\010:_\352A\\\n datastream.googleapis." - + "com/Stream\0228projects/{project}/locations" - + "/{location}/streams/{stream}B\023\n\021backfill" - + "_strategy\"\343\001\n\005Error\022\016\n\006reason\030\001 \001(\t\022\022\n\ne" - + "rror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022.\n\nerro" - + "r_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "\022E\n\007details\030\005 \003(\01324.google.cloud.datastr" - + "eam.v1alpha1.Error.DetailsEntry\032.\n\014Detai" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "U\n\020ValidationResult\022A\n\013validations\030\001 \003(\013" - + "2,.google.cloud.datastream.v1alpha1.Vali" - + "dation\"\206\002\n\nValidation\022\023\n\013description\030\001 \001" - + "(\t\022C\n\006status\030\002 \001(\01623.google.cloud.datast" - + "ream.v1alpha1.Validation.Status\022D\n\007messa" - + "ge\030\003 \003(\01323.google.cloud.datastream.v1alp" - + "ha1.ValidationMessage\022\014\n\004code\030\004 \001(\t\"J\n\006S" - + "tatus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014NOT_EXE" - + "CUTED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020\003\"\272\002\n\021Vali" - + "dationMessage\022\017\n\007message\030\001 \001(\t\022H\n\005level\030" - + "\002 \001(\01629.google.cloud.datastream.v1alpha1" - + ".ValidationMessage.Level\022S\n\010metadata\030\003 \003" - + "(\0132A.google.cloud.datastream.v1alpha1.Va" - + "lidationMessage.MetadataEntry\022\014\n\004code\030\004 " - + "\001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNSPECIFI" - + "ED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>\n\rGcsFileF" - + "ormat\022\037\n\033GCS_FILE_FORMAT_UNSPECIFIED\020\000\022\010" - + "\n\004AVRO\020\001\032\002\030\001*`\n\020SchemaFileFormat\022\"\n\036SCHE" - + "MA_FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEM" - + "A_FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002B\377\001\n$com.g" - + "oogle.cloud.datastream.v1alpha1B\035CloudDa" - + "tastreamResourcesProtoP\001ZJgoogle.golang." - + "org/genproto/googleapis/cloud/datastream" - + "/v1alpha1;datastream\252\002 Google.Cloud.Data" - + "stream.V1Alpha1\312\002 Google\\Cloud\\Datastrea" - + "m\\V1alpha1\352\002#Google::Cloud::Datastream::" - + "V1alpha1b\006proto3" + + "obuf/timestamp.proto\"\250\002\n\rOracleProfile\022\025" + + "\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010u" + + "sername\030\003 \001(\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A" + + "\002\022\035\n\020database_service\030\005 \001(\tB\003\340A\002\022h\n\025conn" + + "ection_attributes\030\006 \003(\0132I.google.cloud.d" + + "atastream.v1alpha1.OracleProfile.Connect" + + "ionAttributesEntry\032;\n\031ConnectionAttribut" + + "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "\252\001\n\014MysqlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022" + + "\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010" + + "password\030\004 \001(\tB\006\340A\002\340A\004\022D\n\nssl_config\030\005 \001" + + "(\01320.google.cloud.datastream.v1alpha1.My" + + "sqlSslConfig\"9\n\nGcsProfile\022\030\n\013bucket_nam" + + "e\030\001 \001(\tB\003\340A\002\022\021\n\troot_path\030\002 \001(\t\"\030\n\026NoCon" + + "nectivitySettings\"\035\n\033StaticServiceIpConn" + + "ectivity\"\250\001\n\034ForwardSshTunnelConnectivit" + + "y\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\025\n\010username\030\002 \001" + + "(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010password\030d \001(\tB" + + "\003\340A\004H\000\022\032\n\013private_key\030e \001(\tB\003\340A\004H\000B\027\n\025au" + + "thentication_method\">\n\020VpcPeeringConfig\022" + + "\025\n\010vpc_name\030\001 \001(\tB\003\340A\002\022\023\n\006subnet\030\002 \001(\tB\003" + + "\340A\002\"\324\005\n\021PrivateConnection\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022O\n\006labe" + + "ls\030\004 \003(\0132?.google.cloud.datastream.v1alp" + + "ha1.PrivateConnection.LabelsEntry\022\031\n\014dis" + + "play_name\030\005 \001(\tB\003\340A\002\022M\n\005state\030\006 \001(\01629.go" + + "ogle.cloud.datastream.v1alpha1.PrivateCo" + + "nnection.StateB\003\340A\003\022;\n\005error\030\007 \001(\0132\'.goo" + + "gle.cloud.datastream.v1alpha1.ErrorB\003\340A\003" + + "\022N\n\022vpc_peering_config\030d \001(\01322.google.cl" + + "oud.datastream.v1alpha1.VpcPeeringConfig" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"E\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\014\n\010CREATING\020\001\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003:\201" + + "\001\352A~\n+datastream.googleapis.com/PrivateC" + + "onnection\022Oprojects/{project}/locations/" + + "{location}/privateConnections/{private_c" + + "onnection}\";\n\023PrivateConnectivity\022$\n\027pri" + + "vate_connection_name\030\001 \001(\tB\003\340A\002\"\331\003\n\005Rout" + + "e\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022C\n\006labels\030\004 \003(\01323.google.cloud." + + "datastream.v1alpha1.Route.LabelsEntry\022\031\n" + + "\014display_name\030\005 \001(\tB\003\340A\002\022 \n\023destination_" + + "address\030\006 \001(\tB\003\340A\002\022\030\n\020destination_port\030\007" + + " \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datastream.googleapi" + + "s.com/Route\022^projects/{project}/location" + + "s/{location}/privateConnections/{private" + + "_connection}/routes/{route}\"\312\001\n\016MysqlSsl" + + "Config\022\027\n\nclient_key\030\013 \001(\tB\003\340A\004\022\033\n\016clien" + + "t_key_set\030\014 \001(\010B\003\340A\003\022\037\n\022client_certifica" + + "te\030\r \001(\tB\003\340A\004\022#\n\026client_certificate_set\030" + + "\016 \001(\010B\003\340A\003\022\033\n\016ca_certificate\030\017 \001(\tB\003\340A\004\022" + + "\037\n\022ca_certificate_set\030\020 \001(\010B\003\340A\003\"\242\010\n\021Con" + + "nectionProfile\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cre" + + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?." + + "google.cloud.datastream.v1alpha1.Connect" + + "ionProfile.LabelsEntry\022\031\n\014display_name\030\005" + + " \001(\tB\003\340A\002\022I\n\016oracle_profile\030d \001(\0132/.goog" + + "le.cloud.datastream.v1alpha1.OracleProfi" + + "leH\000\022C\n\013gcs_profile\030e \001(\0132,.google.cloud" + + ".datastream.v1alpha1.GcsProfileH\000\022G\n\rmys" + + "ql_profile\030f \001(\0132..google.cloud.datastre" + + "am.v1alpha1.MysqlProfileH\000\022T\n\017no_connect" + + "ivity\030\310\001 \001(\01328.google.cloud.datastream.v" + + "1alpha1.NoConnectivitySettingsH\001\022h\n\036stat" + + "ic_service_ip_connectivity\030\311\001 \001(\0132=.goog" + + "le.cloud.datastream.v1alpha1.StaticServi" + + "ceIpConnectivityH\001\022c\n\030forward_ssh_connec" + + "tivity\030\312\001 \001(\0132>.google.cloud.datastream." + + "v1alpha1.ForwardSshTunnelConnectivityH\001\022" + + "V\n\024private_connectivity\030\313\001 \001(\01325.google." + + "cloud.datastream.v1alpha1.PrivateConnect" + + "ivityH\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001:\201\001\352A~\n+datastream.googlea" + + "pis.com/ConnectionProfile\022Oprojects/{pro" + + "ject}/locations/{location}/connectionPro" + + "files/{connection_profile}B\t\n\007profileB\016\n" + + "\014connectivity\"\273\001\n\014OracleColumn\022\023\n\013column" + + "_name\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006length" + + "\030\003 \001(\005\022\021\n\tprecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005" + + "\022\020\n\010encoding\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022" + + "\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position\030\t " + + "\001(\005\"i\n\013OracleTable\022\022\n\ntable_name\030\001 \001(\t\022F" + + "\n\016oracle_columns\030\002 \003(\0132..google.cloud.da" + + "tastream.v1alpha1.OracleColumn\"i\n\014Oracle" + + "Schema\022\023\n\013schema_name\030\001 \001(\t\022D\n\roracle_ta" + + "bles\030\002 \003(\0132-.google.cloud.datastream.v1a" + + "lpha1.OracleTable\"U\n\013OracleRdbms\022F\n\016orac" + + "le_schemas\030\001 \003(\0132..google.cloud.datastre" + + "am.v1alpha1.OracleSchema\"\231\001\n\022OracleSourc" + + "eConfig\022@\n\tallowlist\030\001 \001(\0132-.google.clou" + + "d.datastream.v1alpha1.OracleRdbms\022A\n\nrej" + + "ectlist\030\002 \001(\0132-.google.cloud.datastream." + + "v1alpha1.OracleRdbms\"\231\001\n\013MysqlColumn\022\023\n\013" + + "column_name\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006" + + "length\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013prima" + + "ry_key\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordina" + + "l_position\030\007 \001(\005\"f\n\nMysqlTable\022\022\n\ntable_" + + "name\030\001 \001(\t\022D\n\rmysql_columns\030\002 \003(\0132-.goog" + + "le.cloud.datastream.v1alpha1.MysqlColumn" + + "\"j\n\rMysqlDatabase\022\025\n\rdatabase_name\030\001 \001(\t" + + "\022B\n\014mysql_tables\030\002 \003(\0132,.google.cloud.da" + + "tastream.v1alpha1.MysqlTable\"V\n\nMysqlRdb" + + "ms\022H\n\017mysql_databases\030\001 \003(\0132/.google.clo" + + "ud.datastream.v1alpha1.MysqlDatabase\"\226\001\n" + + "\021MysqlSourceConfig\022?\n\tallowlist\030\001 \001(\0132,." + + "google.cloud.datastream.v1alpha1.MysqlRd" + + "bms\022@\n\nrejectlist\030\002 \001(\0132,.google.cloud.d" + + "atastream.v1alpha1.MysqlRdbms\"\375\001\n\014Source" + + "Config\022+\n\036source_connection_profile_name" + + "\030\001 \001(\tB\003\340A\002\022T\n\024oracle_source_config\030d \001(" + + "\01324.google.cloud.datastream.v1alpha1.Ora" + + "cleSourceConfigH\000\022R\n\023mysql_source_config" + + "\030e \001(\01323.google.cloud.datastream.v1alpha" + + "1.MysqlSourceConfigH\000B\026\n\024source_stream_c" + + "onfig\"\020\n\016AvroFileFormat\"\212\002\n\016JsonFileForm" + + "at\022N\n\022schema_file_format\030\001 \001(\01622.google." + + "cloud.datastream.v1alpha1.SchemaFileForm" + + "at\022U\n\013compression\030\002 \001(\0162@.google.cloud.d" + + "atastream.v1alpha1.JsonFileFormat.JsonCo" + + "mpression\"Q\n\017JsonCompression\022 \n\034JSON_COM" + + "PRESSION_UNSPECIFIED\020\000\022\022\n\016NO_COMPRESSION" + + "\020\001\022\010\n\004GZIP\020\002\"\362\002\n\024GcsDestinationConfig\022\014\n" + + "\004path\030\001 \001(\t\022L\n\017gcs_file_format\030\002 \001(\0162/.g" + + "oogle.cloud.datastream.v1alpha1.GcsFileF" + + "ormatB\002\030\001\022\030\n\020file_rotation_mb\030\003 \001(\005\0229\n\026f" + + "ile_rotation_interval\030\004 \001(\0132\031.google.pro" + + "tobuf.Duration\022L\n\020avro_file_format\030d \001(\013" + + "20.google.cloud.datastream.v1alpha1.Avro" + + "FileFormatH\000\022L\n\020json_file_format\030e \001(\01320" + + ".google.cloud.datastream.v1alpha1.JsonFi" + + "leFormatH\000B\r\n\013file_format\"\274\001\n\021Destinatio" + + "nConfig\0220\n#destination_connection_profil" + + "e_name\030\001 \001(\tB\003\340A\002\022X\n\026gcs_destination_con" + + "fig\030d \001(\01326.google.cloud.datastream.v1al" + + "pha1.GcsDestinationConfigH\000B\033\n\031destinati" + + "on_stream_config\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022D\n\006la" + + "bels\030\004 \003(\01324.google.cloud.datastream.v1a" + + "lpha1.Stream.LabelsEntry\022\031\n\014display_name" + + "\030\005 \001(\tB\003\340A\002\022J\n\rsource_config\030\006 \001(\0132..goo" + + "gle.cloud.datastream.v1alpha1.SourceConf" + + "igB\003\340A\002\022T\n\022destination_config\030\007 \001(\01323.go" + + "ogle.cloud.datastream.v1alpha1.Destinati" + + "onConfigB\003\340A\002\022=\n\005state\030\010 \001(\0162..google.cl" + + "oud.datastream.v1alpha1.Stream.State\022T\n\014" + + "backfill_all\030e \001(\0132<.google.cloud.datast" + + "ream.v1alpha1.Stream.BackfillAllStrategy" + + "H\000\022V\n\rbackfill_none\030f \001(\0132=.google.cloud" + + ".datastream.v1alpha1.Stream.BackfillNone" + + "StrategyH\000\022<\n\006errors\030\t \003(\0132\'.google.clou" + + "d.datastream.v1alpha1.ErrorB\003\340A\003\032\313\001\n\023Bac" + + "kfillAllStrategy\022P\n\027oracle_excluded_obje" + + "cts\030\001 \001(\0132-.google.cloud.datastream.v1al" + + "pha1.OracleRdbmsH\000\022N\n\026mysql_excluded_obj" + + "ects\030\002 \001(\0132,.google.cloud.datastream.v1a" + + "lpha1.MysqlRdbmsH\000B\022\n\020excluded_objects\032\026" + + "\n\024BackfillNoneStrategy\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\225\001\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007R" + + "UNNING\020\002\022\n\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n" + + "\006FAILED\020\005\022\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STA" + + "RTING\020\007\022\014\n\010DRAINING\020\010:_\352A\\\n datastream.g" + + "oogleapis.com/Stream\0228projects/{project}" + + "/locations/{location}/streams/{stream}B\023" + + "\n\021backfill_strategy\"\343\001\n\005Error\022\016\n\006reason\030" + + "\001 \001(\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001" + + "(\t\022.\n\nerror_time\030\004 \001(\0132\032.google.protobuf" + + ".Timestamp\022E\n\007details\030\005 \003(\01324.google.clo" + + "ud.datastream.v1alpha1.Error.DetailsEntr" + + "y\032.\n\014DetailsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"U\n\020ValidationResult\022A\n\013validat" + + "ions\030\001 \003(\0132,.google.cloud.datastream.v1a" + + "lpha1.Validation\"\206\002\n\nValidation\022\023\n\013descr" + + "iption\030\001 \001(\t\022C\n\006status\030\002 \001(\01623.google.cl" + + "oud.datastream.v1alpha1.Validation.Statu" + + "s\022D\n\007message\030\003 \003(\01323.google.cloud.datast" + + "ream.v1alpha1.ValidationMessage\022\014\n\004code\030" + + "\004 \001(\t\"J\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022" + + "\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020" + + "\003\"\272\002\n\021ValidationMessage\022\017\n\007message\030\001 \001(\t" + + "\022H\n\005level\030\002 \001(\01629.google.cloud.datastrea" + + "m.v1alpha1.ValidationMessage.Level\022S\n\010me" + + "tadata\030\003 \003(\0132A.google.cloud.datastream.v" + + "1alpha1.ValidationMessage.MetadataEntry\022" + + "\014\n\004code\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL" + + "_UNSPECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>" + + "\n\rGcsFileFormat\022\037\n\033GCS_FILE_FORMAT_UNSPE" + + "CIFIED\020\000\022\010\n\004AVRO\020\001\032\002\030\001*`\n\020SchemaFileForm" + + "at\022\"\n\036SCHEMA_FILE_FORMAT_UNSPECIFIED\020\000\022\022" + + "\n\016NO_SCHEMA_FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002" + + "B\377\001\n$com.google.cloud.datastream.v1alpha" + + "1B\035CloudDatastreamResourcesProtoP\001ZJgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "datastream/v1alpha1;datastream\252\002 Google." + + "Cloud.Datastream.V1Alpha1\312\002 Google\\Cloud" + + "\\Datastream\\V1alpha1\352\002#Google::Cloud::Da" + + "tastream::V1alpha1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -423,7 +422,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor = getDescriptor().getMessageTypes().get(0); @@ -828,7 +826,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java index 10f3029a..cdbd9748 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java @@ -289,7 +289,7 @@ public com.google.protobuf.ByteString getPathBytes() { *
* * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=477 + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The enum numeric value on the wire for gcsFileFormat. */ @java.lang.Override @@ -309,7 +309,7 @@ public int getGcsFileFormatValue() { *
* * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=477 + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The gcsFileFormat. */ @java.lang.Override @@ -1082,7 +1082,7 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { *
* * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=477 + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The enum numeric value on the wire for gcsFileFormat. */ @java.lang.Override @@ -1103,7 +1103,7 @@ public int getGcsFileFormatValue() { *
* * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=477 + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @param value The enum numeric value on the wire for gcsFileFormat to set. * @return This builder for chaining. */ @@ -1127,7 +1127,7 @@ public Builder setGcsFileFormatValue(int value) { *
* * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=477 + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The gcsFileFormat. */ @java.lang.Override @@ -1153,7 +1153,7 @@ public com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat() { *
* * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=477 + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @param value The gcsFileFormat to set. * @return This builder for chaining. */ @@ -1180,7 +1180,7 @@ public Builder setGcsFileFormat(com.google.cloud.datastream.v1alpha1.GcsFileForm *
* * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=477 + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java index fed6214d..806c5787 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java @@ -60,7 +60,7 @@ public interface GcsDestinationConfigOrBuilder *
* * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=477 + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The enum numeric value on the wire for gcsFileFormat. */ @java.lang.Deprecated @@ -77,7 +77,7 @@ public interface GcsDestinationConfigOrBuilder *
* * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=477 + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The gcsFileFormat. */ @java.lang.Deprecated diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto b/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto index 73320b91..b2a9ba3f 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto +++ b/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto @@ -20,7 +20,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/datastream/v1alpha1;datastream"; option java_multiple_files = true; diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 9cc5225a..c07e900e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datastream - 1.1.0 + 1.1.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4f2998fd..c8fde787 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datastream - 1.1.0 + 1.1.1 diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider.java index 0eafde96..46f97361 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 DatastreamSettings datastreamSettings = DatastreamSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java index 906399c2..31a5e2e7 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 DatastreamSettings datastreamSettings = DatastreamSettings.newBuilder() .setTransportChannelProvider( diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetEndpoint.java index 8640c529..fa77619b 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetEndpoint.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 DatastreamSettings datastreamSettings = DatastreamSettings.newBuilder().setEndpoint(myEndpoint).build(); DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java index 9ae734c7..b6dab5d9 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java index 12bb2a4d..14074f1d 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateConnectionProfileLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java index aec1f731..3e596a68 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java index 718c3cea..071b5560 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { public static void syncCreateConnectionProfileLocationnameConnectionprofileString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java index 992856de..6e247977 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateConnectionProfileStringConnectionprofileString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java index 43946d2f..1550d378 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreatePrivateConnection() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreatePrivateConnectionRequest request = CreatePrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java index b724fffc..7f3b297d 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreatePrivateConnectionLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreatePrivateConnectionRequest request = CreatePrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java index 2fa654b1..29692adb 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreatePrivateConnection() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreatePrivateConnectionRequest request = CreatePrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java index 9c2d78e1..d3e15c02 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { public static void syncCreatePrivateConnectionLocationnamePrivateconnectionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java index 0c5b58c2..dcffea4d 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreatePrivateConnectionStringPrivateconnectionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRoute.java index aa6ae727..f2472ad4 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRoute.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRoute.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateRoute() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateRouteRequest request = CreateRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRouteLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRouteLRO.java index 32f2c602..e01b2515 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRouteLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRouteLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateRouteLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateRouteRequest request = CreateRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoute.java index a68f373a..acf42eb8 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoute.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoute.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateRoute() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateRouteRequest request = CreateRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java index e06a83c1..e4e4d223 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateRoutePrivateconnectionnameRouteString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { PrivateConnectionName parent = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java index c1be72c3..85a6078b 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateRouteStringRouteString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStream.java index ab1777ce..e025e6e6 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStream.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateStreamRequest request = CreateStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStreamLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStreamLRO.java index c59f8c2c..590f95f0 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStreamLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStreamLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateStreamLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateStreamRequest request = CreateStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStream.java index 25b32190..9c308fe8 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStream.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateStreamRequest request = CreateStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java index e60e857d..1a904f20 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateStreamLocationnameStreamString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Stream stream = Stream.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java index 39aca78d..10214968 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateStreamStringStreamString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Stream stream = Stream.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java index 32b47d6c..b2800e83 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteConnectionProfileRequest request = DeleteConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java index 65283206..dceab3d1 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteConnectionProfileLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteConnectionProfileRequest request = DeleteConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java index e1f2d5e4..a6ec15b8 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteConnectionProfileRequest request = DeleteConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java index 354e50da..d66190f0 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteConnectionProfileConnectionprofilename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ConnectionProfileName name = ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java index ba47274e..0e3f7c10 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteConnectionProfileString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java index db22b7e3..f83ac4b7 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeletePrivateConnection() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeletePrivateConnectionRequest request = DeletePrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java index 19e2d59c..cebe98da 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeletePrivateConnectionLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeletePrivateConnectionRequest request = DeletePrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java index e396b343..75916b74 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeletePrivateConnection() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeletePrivateConnectionRequest request = DeletePrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java index b3941e8e..66a345f3 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeletePrivateConnectionPrivateconnectionname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { PrivateConnectionName name = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java index aae640d9..85ed9e43 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeletePrivateConnectionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRoute.java index 285d305e..ff83f188 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRoute.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRoute.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteRoute() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteRouteRequest request = DeleteRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java index c726dec0..933008ad 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteRouteLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteRouteRequest request = DeleteRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRoute.java index 12dad948..1d9e447d 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRoute.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRoute.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteRoute() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteRouteRequest request = DeleteRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java index 68845f52..6ea041c6 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteRouteRoutename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]"); datastreamClient.deleteRouteAsync(name).get(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteString.java index 802982d6..62f2add6 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteRouteString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStream.java index bf37999c..42860e43 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStream.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteStreamRequest request = DeleteStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java index 84948620..4481254b 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteStreamLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteStreamRequest request = DeleteStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStream.java index 720d045f..d2eca247 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStream.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteStreamRequest request = DeleteStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java index 7b0627d9..6656b072 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteStreamStreamname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); datastreamClient.deleteStreamAsync(name).get(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamString.java index 497041eb..bfe88839 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteStreamString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString(); datastreamClient.deleteStreamAsync(name).get(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java index c2769682..26af49ab 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDiscoverConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DiscoverConnectionProfileRequest request = DiscoverConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java index e73cf7bd..254478fe 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDiscoverConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DiscoverConnectionProfileRequest request = DiscoverConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java index c0a4c5c8..a03e50cd 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncFetchStaticIps() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { FetchStaticIpsRequest request = FetchStaticIpsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java index 6bab8dcd..5173694e 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncFetchStaticIpsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { FetchStaticIpsRequest request = FetchStaticIpsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java index 24182d94..b72c3e8b 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncFetchStaticIps() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { FetchStaticIpsRequest request = FetchStaticIpsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java index e21b2bc1..597b76d8 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncFetchStaticIpsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName name = LocationName.of("[PROJECT]", "[LOCATION]"); for (String element : datastreamClient.fetchStaticIps(name).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java index 2ca638da..a2833745 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncFetchStaticIpsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (String element : datastreamClient.fetchStaticIps(name).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java index 4da46211..43ca48ab 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetConnectionProfileRequest request = GetConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java index b1761319..a4b29d8e 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetConnectionProfileRequest request = GetConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java index 9780d6e2..c9fa1275 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetConnectionProfileConnectionprofilename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ConnectionProfileName name = ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java index b8bc07c6..37c001b7 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetConnectionProfileString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/AsyncGetLocation.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/AsyncGetLocation.java index 28b0338e..f4143255 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/AsyncGetLocation.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/AsyncGetLocation.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetLocation() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); ApiFuture future = datastreamClient.getLocationCallable().futureCall(request); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/SyncGetLocation.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/SyncGetLocation.java index d1facc9e..1bdc3a35 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/SyncGetLocation.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/SyncGetLocation.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetLocation() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); Location response = datastreamClient.getLocation(request); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java index 779f5233..837a40d8 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetPrivateConnection() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetPrivateConnectionRequest request = GetPrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java index d915695f..d36bb208 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetPrivateConnection() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetPrivateConnectionRequest request = GetPrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java index 7cdd509b..e889fd76 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetPrivateConnectionPrivateconnectionname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { PrivateConnectionName name = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java index 1d174f19..affe7fff 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetPrivateConnectionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/AsyncGetRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/AsyncGetRoute.java index e097c40c..7d9c015a 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/AsyncGetRoute.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/AsyncGetRoute.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetRoute() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetRouteRequest request = GetRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRoute.java index 280732e6..3dbb6a4e 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRoute.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRoute.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRoute() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetRouteRequest request = GetRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteRoutename.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteRoutename.java index 1c36a7eb..db2d305c 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteRoutename.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteRoutename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRouteRoutename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]"); Route response = datastreamClient.getRoute(name); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteString.java index 4883ed96..d878c6c5 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRouteString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/AsyncGetStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/AsyncGetStream.java index 7bbc3ad9..8a58834f 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/AsyncGetStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/AsyncGetStream.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetStreamRequest request = GetStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStream.java index e06c26cc..b6221c34 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStream.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetStreamRequest request = GetStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamStreamname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamStreamname.java index 64ed4175..6e7e2a6d 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamStreamname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamStreamname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetStreamStreamname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); Stream response = datastreamClient.getStream(name); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamString.java index c8d12068..91ee7c16 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetStreamString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString(); Stream response = datastreamClient.getStream(name); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/AsyncGetStreamObject.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/AsyncGetStreamObject.java index e57ba704..8ed18531 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/AsyncGetStreamObject.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/AsyncGetStreamObject.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetStreamObject() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetStreamObjectRequest request = GetStreamObjectRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObject.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObject.java index daadad9e..2c579384 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObject.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObject.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetStreamObject() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetStreamObjectRequest request = GetStreamObjectRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectStreamobjectname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectStreamobjectname.java index 80a1d92e..43c1fa71 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectStreamobjectname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectStreamobjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetStreamObjectStreamobjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { StreamObjectName name = StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectString.java index a4cd70cb..03e81aa1 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetStreamObjectString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java index f280bd8e..6bc04a12 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListConnectionProfiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListConnectionProfilesRequest request = ListConnectionProfilesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java index 8ab4f567..c63cf825 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListConnectionProfilesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListConnectionProfilesRequest request = ListConnectionProfilesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java index d079891c..ecd7b610 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListConnectionProfiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListConnectionProfilesRequest request = ListConnectionProfilesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java index 2e2c71aa..f9b2b284 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListConnectionProfilesLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (ConnectionProfile element : diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java index 5996bf5a..e2e5decf 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListConnectionProfilesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (ConnectionProfile element : diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocations.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocations.java index 668593a6..e54f91ef 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocations.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocations.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListLocations() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocationsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocationsPaged.java index 70ddb1b5..62e4f619 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocationsPaged.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocationsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListLocationsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/SyncListLocations.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/SyncListLocations.java index cc4a6212..6ced104a 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/SyncListLocations.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/SyncListLocations.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListLocations() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java index e5d8b3ca..a968974e 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListPrivateConnections() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListPrivateConnectionsRequest request = ListPrivateConnectionsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java index 6491deb9..8bb8a2b6 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListPrivateConnectionsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListPrivateConnectionsRequest request = ListPrivateConnectionsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java index d8a36ff7..b13caa7c 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListPrivateConnections() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListPrivateConnectionsRequest request = ListPrivateConnectionsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java index 9cb479c1..6e92b604 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListPrivateConnectionsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (PrivateConnection element : diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java index c9d2fdab..8a97c934 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListPrivateConnectionsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (PrivateConnection element : diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutes.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutes.java index 2b5296c1..b7b80348 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutes.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutes.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRoutes() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListRoutesRequest request = ListRoutesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutesPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutesPaged.java index 553ea725..d86c9cc4 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutesPaged.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRoutesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListRoutesRequest request = ListRoutesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutes.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutes.java index e99df138..00b811ff 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutes.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutes.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRoutes() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListRoutesRequest request = ListRoutesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java index 80797e38..92de9d10 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRoutesPrivateconnectionname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { PrivateConnectionName parent = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesString.java index d117db5c..4ea5fe2b 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRoutesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjects.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjects.java index 43c870b3..bc18ce4a 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjects.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjects.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListStreamObjects() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListStreamObjectsRequest request = ListStreamObjectsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjectsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjectsPaged.java index feb745d7..b2c27792 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjectsPaged.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjectsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListStreamObjectsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListStreamObjectsRequest request = ListStreamObjectsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjects.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjects.java index 1d63125d..a2111324 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjects.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjects.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListStreamObjects() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListStreamObjectsRequest request = ListStreamObjectsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsStreamname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsStreamname.java index 89146b80..31e7b2b0 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsStreamname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsStreamname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListStreamObjectsStreamname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { StreamName parent = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); for (StreamObject element : datastreamClient.listStreamObjects(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsString.java index 5b120a87..09202892 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListStreamObjectsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString(); for (StreamObject element : datastreamClient.listStreamObjects(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreams.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreams.java index 642de506..a2bbd7e3 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreams.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreams.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListStreams() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListStreamsRequest request = ListStreamsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreamsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreamsPaged.java index bf9d9a53..943546b8 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreamsPaged.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreamsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListStreamsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListStreamsRequest request = ListStreamsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreams.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreams.java index cfda6260..b6a1f841 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreams.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreams.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListStreams() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListStreamsRequest request = ListStreamsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsLocationname.java index 2731f0e3..e52d5a5a 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsLocationname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListStreamsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Stream element : datastreamClient.listStreams(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsString.java index 699f3380..c70b87bd 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListStreamsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Stream element : datastreamClient.listStreams(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/AsyncLookupStreamObject.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/AsyncLookupStreamObject.java index 326c6cc3..ce225504 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/AsyncLookupStreamObject.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/AsyncLookupStreamObject.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLookupStreamObject() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LookupStreamObjectRequest request = LookupStreamObjectRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/SyncLookupStreamObject.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/SyncLookupStreamObject.java index 0a6c1d0f..6b02bdf7 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/SyncLookupStreamObject.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/SyncLookupStreamObject.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncLookupStreamObject() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LookupStreamObjectRequest request = LookupStreamObjectRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/AsyncStartBackfillJob.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/AsyncStartBackfillJob.java index 68e69127..c62fcde3 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/AsyncStartBackfillJob.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/AsyncStartBackfillJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStartBackfillJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { StartBackfillJobRequest request = StartBackfillJobRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJob.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJob.java index 344cfc60..5587882d 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJob.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartBackfillJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { StartBackfillJobRequest request = StartBackfillJobRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobStreamobjectname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobStreamobjectname.java index d170df66..7e242d0f 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobStreamobjectname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobStreamobjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartBackfillJobStreamobjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { StreamObjectName object = StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobString.java index 41e84816..c6f40cdd 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartBackfillJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String object = StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/AsyncStopBackfillJob.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/AsyncStopBackfillJob.java index fc6003fa..dfe456a9 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/AsyncStopBackfillJob.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/AsyncStopBackfillJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStopBackfillJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { StopBackfillJobRequest request = StopBackfillJobRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJob.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJob.java index 5d748754..8cb25378 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJob.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopBackfillJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { StopBackfillJobRequest request = StopBackfillJobRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java index aab47b17..ed89311c 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopBackfillJobStreamobjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { StreamObjectName object = StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobString.java index af1d4233..ee0ce289 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopBackfillJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String object = StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java index ba59f850..dae9ca43 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { UpdateConnectionProfileRequest request = UpdateConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java index ee25d636..2a82fa81 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateConnectionProfileLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { UpdateConnectionProfileRequest request = UpdateConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java index e83322c9..b1b9c279 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { UpdateConnectionProfileRequest request = UpdateConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java index 39d7713b..b6877d7b 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateConnectionProfileConnectionprofileFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStream.java index ac391b69..dd6fb5bf 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStream.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { UpdateStreamRequest request = UpdateStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java index dfaf286c..8c7d74da 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateStreamLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { UpdateStreamRequest request = UpdateStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStream.java index 13b35c87..f01e1424 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStream.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { UpdateStreamRequest request = UpdateStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java index 00f5dfd4..5ca9d4ca 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateStreamStreamFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { Stream stream = Stream.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java index 2f9eb9e8..46c15261 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 DatastreamSettings.Builder datastreamSettingsBuilder = DatastreamSettings.newBuilder(); datastreamSettingsBuilder .getConnectionProfileSettings() .setRetrySettings( - datastreamSettingsBuilder - .getConnectionProfileSettings() - .getRetrySettings() - .toBuilder() + datastreamSettingsBuilder.getConnectionProfileSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); DatastreamSettings datastreamSettings = datastreamSettingsBuilder.build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java index 9e86dfda..6bd67abf 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 DatastreamStubSettings.Builder datastreamSettingsBuilder = DatastreamStubSettings.newBuilder(); datastreamSettingsBuilder .getConnectionProfileSettings() .setRetrySettings( - datastreamSettingsBuilder - .getConnectionProfileSettings() - .getRetrySettings() - .toBuilder() + datastreamSettingsBuilder.getConnectionProfileSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); DatastreamStubSettings datastreamSettings = datastreamSettingsBuilder.build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider.java index 154ec306..da4fd468 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 DatastreamSettings datastreamSettings = DatastreamSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java index 04dbdc70..952f5d87 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 DatastreamSettings datastreamSettings = DatastreamSettings.newBuilder() .setTransportChannelProvider( diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetEndpoint.java index a3d6a834..abcf7283 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetEndpoint.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 DatastreamSettings datastreamSettings = DatastreamSettings.newBuilder().setEndpoint(myEndpoint).build(); DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java index ec27fdb7..046f74fe 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java index e4d95f53..0dbd9536 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateConnectionProfileLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java index 4ce1011a..61670e36 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java index 807bfea2..a366139c 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { public static void syncCreateConnectionProfileLocationnameConnectionprofileString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java index 4a59dfab..371bec68 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateConnectionProfileStringConnectionprofileString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java index 6890a35d..5580d2a7 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreatePrivateConnection() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreatePrivateConnectionRequest request = CreatePrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java index 02990337..90ab3cca 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreatePrivateConnectionLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreatePrivateConnectionRequest request = CreatePrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java index c5235abb..aeb481a8 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreatePrivateConnection() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreatePrivateConnectionRequest request = CreatePrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java index 0b8b09d3..d5a1eb13 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { public static void syncCreatePrivateConnectionLocationnamePrivateconnectionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java index 2c6b1fce..a6de1936 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreatePrivateConnectionStringPrivateconnectionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRoute.java index 1e6a07be..45354dbb 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRoute.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRoute.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateRoute() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateRouteRequest request = CreateRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRouteLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRouteLRO.java index fcb10e9d..5e337d68 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRouteLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRouteLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateRouteLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateRouteRequest request = CreateRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoute.java index 012c1a62..9ee9a81c 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoute.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoute.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateRoute() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateRouteRequest request = CreateRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java index eca19388..955be8b2 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateRoutePrivateconnectionnameRouteString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { PrivateConnectionName parent = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java index 0f73a337..2eabe557 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateRouteStringRouteString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStream.java index a787d4ef..a7278d5a 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStream.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateStreamRequest request = CreateStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStreamLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStreamLRO.java index 78833470..7ec737ad 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStreamLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStreamLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateStreamLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateStreamRequest request = CreateStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStream.java index b84a3b17..750d7b32 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStream.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { CreateStreamRequest request = CreateStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java index eeb716d5..f0642ef3 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateStreamLocationnameStreamString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Stream stream = Stream.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java index 00fbfea6..afdd4df1 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateStreamStringStreamString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Stream stream = Stream.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java index fc438bdb..d4c0c05d 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteConnectionProfileRequest request = DeleteConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java index 6484b9fc..f6aef51a 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteConnectionProfileLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteConnectionProfileRequest request = DeleteConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java index 86cb4209..6d622e92 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteConnectionProfileRequest request = DeleteConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java index a9f4b46c..3c5cea3b 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteConnectionProfileConnectionprofilename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ConnectionProfileName name = ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java index b260c32f..c2d0d325 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteConnectionProfileString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java index df006ec0..4fa914d6 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeletePrivateConnection() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeletePrivateConnectionRequest request = DeletePrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java index 70c7d8ec..4afdf915 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeletePrivateConnectionLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeletePrivateConnectionRequest request = DeletePrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java index 498354f2..a798b91e 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeletePrivateConnection() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeletePrivateConnectionRequest request = DeletePrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java index 41451c9a..6a196631 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeletePrivateConnectionPrivateconnectionname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { PrivateConnectionName name = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java index 62dff45c..62116850 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeletePrivateConnectionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRoute.java index eb0c7836..80cbf164 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRoute.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRoute.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteRoute() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteRouteRequest request = DeleteRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java index 8d2e9955..842c9a23 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteRouteLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteRouteRequest request = DeleteRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRoute.java index 99e6339f..6d70abc8 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRoute.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRoute.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteRoute() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteRouteRequest request = DeleteRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java index 880b2945..be7c7dba 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteRouteRoutename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]"); datastreamClient.deleteRouteAsync(name).get(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteString.java index 86f3e21b..71db4bb4 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteRouteString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStream.java index 9ee548c6..6af423c0 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStream.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteStreamRequest request = DeleteStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java index 3f821411..9f7b6813 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteStreamLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteStreamRequest request = DeleteStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStream.java index f78f1fc0..19450668 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStream.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DeleteStreamRequest request = DeleteStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java index cc84517d..4c8c5240 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteStreamStreamname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); datastreamClient.deleteStreamAsync(name).get(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamString.java index c13d5ebc..afeb6967 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteStreamString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString(); datastreamClient.deleteStreamAsync(name).get(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java index 512417df..ec56cb1a 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDiscoverConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DiscoverConnectionProfileRequest request = DiscoverConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java index 94125893..98b2fdea 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDiscoverConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { DiscoverConnectionProfileRequest request = DiscoverConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrors.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrors.java index 5db14c50..28045527 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrors.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrors.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncFetchErrors() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { FetchErrorsRequest request = FetchErrorsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrorsLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrorsLRO.java index a072d0f1..9da5cd88 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrorsLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrorsLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncFetchErrorsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { FetchErrorsRequest request = FetchErrorsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/SyncFetchErrors.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/SyncFetchErrors.java index b857ec59..85f5798b 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/SyncFetchErrors.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/SyncFetchErrors.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncFetchErrors() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { FetchErrorsRequest request = FetchErrorsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java index 102c7dc0..e6e7b9dd 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncFetchStaticIps() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { FetchStaticIpsRequest request = FetchStaticIpsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java index 987e3df1..e1fa385c 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncFetchStaticIpsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { FetchStaticIpsRequest request = FetchStaticIpsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java index c6c548d4..53d2a421 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncFetchStaticIps() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { FetchStaticIpsRequest request = FetchStaticIpsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java index 40bd3c3c..bb0f1f2e 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncFetchStaticIpsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName name = LocationName.of("[PROJECT]", "[LOCATION]"); for (String element : datastreamClient.fetchStaticIps(name).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java index 3cd71199..ceafe3b2 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncFetchStaticIpsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (String element : datastreamClient.fetchStaticIps(name).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java index 83d2546e..9f56466e 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetConnectionProfileRequest request = GetConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java index 55ecdc49..1ad7ec6b 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetConnectionProfileRequest request = GetConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java index c59987d7..4cc3dd7a 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetConnectionProfileConnectionprofilename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ConnectionProfileName name = ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java index 53d0981a..97c40290 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetConnectionProfileString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java index e676f393..e1310eff 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetPrivateConnection() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetPrivateConnectionRequest request = GetPrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java index 517d136c..24e68975 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetPrivateConnection() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetPrivateConnectionRequest request = GetPrivateConnectionRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java index b6b2526c..c6a6ad9f 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetPrivateConnectionPrivateconnectionname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { PrivateConnectionName name = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java index 3c5dc0fa..0c7b20fc 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetPrivateConnectionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/AsyncGetRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/AsyncGetRoute.java index 8c4be667..b0faae66 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/AsyncGetRoute.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/AsyncGetRoute.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetRoute() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetRouteRequest request = GetRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRoute.java index 33a59dad..0d511051 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRoute.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRoute.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRoute() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetRouteRequest request = GetRouteRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteRoutename.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteRoutename.java index 4262e81c..4e8668f9 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteRoutename.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteRoutename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRouteRoutename() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]"); Route response = datastreamClient.getRoute(name); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteString.java index 78329ed0..57f7e98c 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetRouteString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/AsyncGetStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/AsyncGetStream.java index 6fe89312..d8d0425f 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/AsyncGetStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/AsyncGetStream.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetStreamRequest request = GetStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStream.java index d1f9b4c1..0cef2616 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStream.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { GetStreamRequest request = GetStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamStreamname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamStreamname.java index e7892230..c402fa0b 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamStreamname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamStreamname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetStreamStreamname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); Stream response = datastreamClient.getStream(name); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamString.java index b57272a0..2c9ec175 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetStreamString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString(); Stream response = datastreamClient.getStream(name); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java index c518319f..4222e351 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListConnectionProfiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListConnectionProfilesRequest request = ListConnectionProfilesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java index a5b205e7..54be672e 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListConnectionProfilesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListConnectionProfilesRequest request = ListConnectionProfilesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java index b09d38ff..3e022619 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListConnectionProfiles() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListConnectionProfilesRequest request = ListConnectionProfilesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java index e239e6d7..0046f482 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListConnectionProfilesLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (ConnectionProfile element : diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java index 8ff8cdd1..e1e0256f 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListConnectionProfilesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (ConnectionProfile element : diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java index fbb140c3..3f93ccb3 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListPrivateConnections() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListPrivateConnectionsRequest request = ListPrivateConnectionsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java index 2aa1535b..ee27945f 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListPrivateConnectionsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListPrivateConnectionsRequest request = ListPrivateConnectionsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java index 28591e76..a4d9fb2c 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListPrivateConnections() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListPrivateConnectionsRequest request = ListPrivateConnectionsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java index 557830f5..55199963 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListPrivateConnectionsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (PrivateConnection element : diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java index 57ef891f..38423b33 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListPrivateConnectionsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (PrivateConnection element : diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutes.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutes.java index 588a1d0f..04cadfe6 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutes.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutes.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRoutes() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListRoutesRequest request = ListRoutesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutesPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutesPaged.java index b33b990f..056f1acf 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutesPaged.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRoutesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListRoutesRequest request = ListRoutesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutes.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutes.java index 0fd289cf..c9a85d16 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutes.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutes.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRoutes() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListRoutesRequest request = ListRoutesRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java index c43e408b..c2816f00 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRoutesPrivateconnectionname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { PrivateConnectionName parent = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesString.java index 7306f84d..4f8e6a1a 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRoutesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreams.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreams.java index 9fbd60f1..bd7e0654 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreams.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreams.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListStreams() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListStreamsRequest request = ListStreamsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreamsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreamsPaged.java index fd13d3c5..46ec5d4a 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreamsPaged.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreamsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListStreamsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListStreamsRequest request = ListStreamsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreams.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreams.java index 6d95caf3..e03577b3 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreams.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreams.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListStreams() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ListStreamsRequest request = ListStreamsRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsLocationname.java index 3c547b48..0399938c 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsLocationname.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListStreamsLocationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Stream element : datastreamClient.listStreams(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsString.java index 273bd71d..dc0ef969 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsString.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListStreamsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Stream element : datastreamClient.listStreams(parent).iterateAll()) { diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java index de42de78..52e990fd 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { UpdateConnectionProfileRequest request = UpdateConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java index 0dfdd204..e3997aea 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateConnectionProfileLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { UpdateConnectionProfileRequest request = UpdateConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java index 3b0fb0c4..6ac86b5a 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { UpdateConnectionProfileRequest request = UpdateConnectionProfileRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java index 58c9d974..03839172 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateConnectionProfileConnectionprofileFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStream.java index ff02b15f..eb4c2bea 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStream.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { UpdateStreamRequest request = UpdateStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java index 6554853a..632df803 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateStreamLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { UpdateStreamRequest request = UpdateStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStream.java index 109b116c..845a66dc 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStream.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStream.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateStream() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { UpdateStreamRequest request = UpdateStreamRequest.newBuilder() diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java index 4c5a320d..55ed965e 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateStreamStreamFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 (DatastreamClient datastreamClient = DatastreamClient.create()) { Stream stream = Stream.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java index 023ff532..28ad8e7e 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 DatastreamSettings.Builder datastreamSettingsBuilder = DatastreamSettings.newBuilder(); datastreamSettingsBuilder .getConnectionProfileSettings() .setRetrySettings( - datastreamSettingsBuilder - .getConnectionProfileSettings() - .getRetrySettings() - .toBuilder() + datastreamSettingsBuilder.getConnectionProfileSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); DatastreamSettings datastreamSettings = datastreamSettingsBuilder.build(); diff --git a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java index a1ec0dc7..5ecf42f0 100644 --- a/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java +++ b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetConnectionProfile() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // 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 DatastreamStubSettings.Builder datastreamSettingsBuilder = DatastreamStubSettings.newBuilder(); datastreamSettingsBuilder .getConnectionProfileSettings() .setRetrySettings( - datastreamSettingsBuilder - .getConnectionProfileSettings() - .getRetrySettings() - .toBuilder() + datastreamSettingsBuilder.getConnectionProfileSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); DatastreamStubSettings datastreamSettings = datastreamSettingsBuilder.build(); diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 6fed0d73..1c5bc5f2 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datastream - 1.1.0 + 1.1.1 diff --git a/versions.txt b/versions.txt index 14837966..17548b1c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-datastream:1.1.1:1.1.1 -grpc-google-cloud-datastream-v1alpha1:0.6.1:0.6.1 -proto-google-cloud-datastream-v1alpha1:0.6.1:0.6.1 -proto-google-cloud-datastream-v1:1.1.1:1.1.1 -grpc-google-cloud-datastream-v1:1.1.1:1.1.1 +google-cloud-datastream:1.2.0:1.2.0 +grpc-google-cloud-datastream-v1alpha1:0.7.0:0.7.0 +proto-google-cloud-datastream-v1alpha1:0.7.0:0.7.0 +proto-google-cloud-datastream-v1:1.2.0:1.2.0 +grpc-google-cloud-datastream-v1:1.2.0:1.2.0 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy