diff --git a/java-dms/README.md b/java-dms/README.md index 5fb7a3ee7b5d..e107ea36b8f8 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.11.0 + 26.15.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.16.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java index c072f4e12131..b4ab01edce27 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java @@ -200,7 +200,7 @@ public final OperationsClient getOperationsClient() { * } * } * - * @param parent Required. The parent, which owns this collection of migrationJobs. + * @param parent Required. The parent which owns this collection of migrationJobs. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMigrationJobsPagedResponse listMigrationJobs(LocationName parent) { @@ -233,7 +233,7 @@ public final ListMigrationJobsPagedResponse listMigrationJobs(LocationName paren * } * } * - * @param parent Required. The parent, which owns this collection of migrationJobs. + * @param parent Required. The parent which owns this collection of migrationJobs. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMigrationJobsPagedResponse listMigrationJobs(String parent) { @@ -494,7 +494,7 @@ public final UnaryCallable getMigrationJob * } * } * - * @param parent Required. The parent, which owns this collection of migration jobs. + * @param parent Required. The parent which owns this collection of migration jobs. * @param migrationJob Required. Represents a [migration * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs) * object. @@ -536,7 +536,7 @@ public final OperationFuture createMigrationJob * } * } * - * @param parent Required. The parent, which owns this collection of migration jobs. + * @param parent Required. The parent which owns this collection of migration jobs. * @param migrationJob Required. Represents a [migration * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs) * object. @@ -674,8 +674,8 @@ public final UnaryCallable createMigration * } * * @param migrationJob Required. The migration job parameters to update. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * migration job resource by the update. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten by the + * update in the conversion workspace resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateMigrationJobAsync( @@ -1549,7 +1549,7 @@ public final UnaryCallable generateSshScrip // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a list of all connection profiles in a given project and location. + * Retrieves a list of all connection profiles in a given project and location. * *

Sample code: * @@ -1569,7 +1569,7 @@ public final UnaryCallable generateSshScrip * } * } * - * @param parent Required. The parent, which owns this collection of connection profiles. + * @param parent Required. The parent which owns this collection of connection profiles. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListConnectionProfilesPagedResponse listConnectionProfiles(LocationName parent) { @@ -1582,7 +1582,7 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(Location // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a list of all connection profiles in a given project and location. + * Retrieves a list of all connection profiles in a given project and location. * *

Sample code: * @@ -1602,7 +1602,7 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(Location * } * } * - * @param parent Required. The parent, which owns this collection of connection profiles. + * @param parent Required. The parent which owns this collection of connection profiles. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListConnectionProfilesPagedResponse listConnectionProfiles(String parent) { @@ -1613,7 +1613,7 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles(String p // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a list of all connection profiles in a given project and location. + * Retrieves a list of all connection profiles in a given project and location. * *

Sample code: * @@ -1650,7 +1650,7 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a list of all connection profiles in a given project and location. + * Retrieves a list of all connection profiles in a given project and location. * *

Sample code: * @@ -1686,7 +1686,7 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a list of all connection profiles in a given project and location. + * Retrieves a list of all connection profiles in a given project and location. * *

Sample code: * @@ -1875,7 +1875,7 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest * } * } * - * @param parent Required. The parent, which owns this collection of connection profiles. + * @param parent Required. The parent which owns this collection of connection profiles. * @param connectionProfile Required. The create request body including the connection profile * data * @param connectionProfileId Required. The connection profile identifier. @@ -1919,7 +1919,7 @@ public final OperationFuture createConnect * } * } * - * @param parent Required. The parent, which owns this collection of connection profiles. + * @param parent Required. The parent which owns this collection of connection profiles. * @param connectionProfile Required. The create request body including the connection profile * data * @param connectionProfileId Required. The connection profile identifier. @@ -1958,6 +1958,8 @@ public final OperationFuture createConnect * .setConnectionProfileId("connectionProfileId597575526") * .setConnectionProfile(ConnectionProfile.newBuilder().build()) * .setRequestId("requestId693933066") + * .setValidateOnly(true) + * .setSkipValidation(true) * .build(); * ConnectionProfile response = * dataMigrationServiceClient.createConnectionProfileAsync(request).get(); @@ -1994,6 +1996,8 @@ public final OperationFuture createConnect * .setConnectionProfileId("connectionProfileId597575526") * .setConnectionProfile(ConnectionProfile.newBuilder().build()) * .setRequestId("requestId693933066") + * .setValidateOnly(true) + * .setSkipValidation(true) * .build(); * OperationFuture future = * dataMigrationServiceClient.createConnectionProfileOperationCallable().futureCall(request); @@ -2030,6 +2034,8 @@ public final OperationFuture createConnect * .setConnectionProfileId("connectionProfileId597575526") * .setConnectionProfile(ConnectionProfile.newBuilder().build()) * .setRequestId("requestId693933066") + * .setValidateOnly(true) + * .setSkipValidation(true) * .build(); * ApiFuture future = * dataMigrationServiceClient.createConnectionProfileCallable().futureCall(request); @@ -2067,8 +2073,8 @@ public final OperationFuture createConnect * } * * @param connectionProfile Required. The connection profile parameters to update. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * connection profile resource by the update. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten by the + * update in the conversion workspace resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateConnectionProfileAsync( @@ -2100,6 +2106,8 @@ public final OperationFuture updateConnect * .setUpdateMask(FieldMask.newBuilder().build()) * .setConnectionProfile(ConnectionProfile.newBuilder().build()) * .setRequestId("requestId693933066") + * .setValidateOnly(true) + * .setSkipValidation(true) * .build(); * ConnectionProfile response = * dataMigrationServiceClient.updateConnectionProfileAsync(request).get(); @@ -2133,6 +2141,8 @@ public final OperationFuture updateConnect * .setUpdateMask(FieldMask.newBuilder().build()) * .setConnectionProfile(ConnectionProfile.newBuilder().build()) * .setRequestId("requestId693933066") + * .setValidateOnly(true) + * .setSkipValidation(true) * .build(); * OperationFuture future = * dataMigrationServiceClient.updateConnectionProfileOperationCallable().futureCall(request); @@ -2166,6 +2176,8 @@ public final OperationFuture updateConnect * .setUpdateMask(FieldMask.newBuilder().build()) * .setConnectionProfile(ConnectionProfile.newBuilder().build()) * .setRequestId("requestId693933066") + * .setValidateOnly(true) + * .setSkipValidation(true) * .build(); * ApiFuture future = * dataMigrationServiceClient.updateConnectionProfileCallable().futureCall(request); @@ -2347,6 +2359,2528 @@ public final OperationFuture deleteConnectionProfileAs return stub.deleteConnectionProfileCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new private connection in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+   *   String privateConnectionId = "privateConnectionId-1926654532";
+   *   PrivateConnection response =
+   *       dataMigrationServiceClient
+   *           .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of PrivateConnections. + * @param privateConnection Required. The private connection resource to create. + * @param privateConnectionId Required. The private connection identifier. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createPrivateConnectionAsync( + LocationName parent, PrivateConnection privateConnection, String privateConnectionId) { + CreatePrivateConnectionRequest request = + CreatePrivateConnectionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setPrivateConnection(privateConnection) + .setPrivateConnectionId(privateConnectionId) + .build(); + return createPrivateConnectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new private connection in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+   *   String privateConnectionId = "privateConnectionId-1926654532";
+   *   PrivateConnection response =
+   *       dataMigrationServiceClient
+   *           .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of PrivateConnections. + * @param privateConnection Required. The private connection resource to create. + * @param privateConnectionId Required. The private connection identifier. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createPrivateConnectionAsync( + String parent, PrivateConnection privateConnection, String privateConnectionId) { + CreatePrivateConnectionRequest request = + CreatePrivateConnectionRequest.newBuilder() + .setParent(parent) + .setPrivateConnection(privateConnection) + .setPrivateConnectionId(privateConnectionId) + .build(); + return createPrivateConnectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new private connection in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   CreatePrivateConnectionRequest request =
+   *       CreatePrivateConnectionRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateConnectionId("privateConnectionId-1926654532")
+   *           .setPrivateConnection(PrivateConnection.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setSkipValidation(true)
+   *           .build();
+   *   PrivateConnection response =
+   *       dataMigrationServiceClient.createPrivateConnectionAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createPrivateConnectionAsync( + CreatePrivateConnectionRequest request) { + return createPrivateConnectionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new private connection in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   CreatePrivateConnectionRequest request =
+   *       CreatePrivateConnectionRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateConnectionId("privateConnectionId-1926654532")
+   *           .setPrivateConnection(PrivateConnection.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setSkipValidation(true)
+   *           .build();
+   *   OperationFuture future =
+   *       dataMigrationServiceClient.createPrivateConnectionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateConnection response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationCallable() { + return stub.createPrivateConnectionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new private connection in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   CreatePrivateConnectionRequest request =
+   *       CreatePrivateConnectionRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateConnectionId("privateConnectionId-1926654532")
+   *           .setPrivateConnection(PrivateConnection.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setSkipValidation(true)
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.createPrivateConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createPrivateConnectionCallable() { + return stub.createPrivateConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single private connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   PrivateConnectionName name =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+   *   PrivateConnection response = dataMigrationServiceClient.getPrivateConnection(name);
+   * }
+   * }
+ * + * @param name Required. The name of the private connection to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateConnection getPrivateConnection(PrivateConnectionName name) { + GetPrivateConnectionRequest request = + GetPrivateConnectionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getPrivateConnection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single private connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   String name =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
+   *   PrivateConnection response = dataMigrationServiceClient.getPrivateConnection(name);
+   * }
+   * }
+ * + * @param name Required. The name of the private connection to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateConnection getPrivateConnection(String name) { + GetPrivateConnectionRequest request = + GetPrivateConnectionRequest.newBuilder().setName(name).build(); + return getPrivateConnection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single private connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   GetPrivateConnectionRequest request =
+   *       GetPrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .build();
+   *   PrivateConnection response = dataMigrationServiceClient.getPrivateConnection(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest request) { + return getPrivateConnectionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single private connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   GetPrivateConnectionRequest request =
+   *       GetPrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.getPrivateConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateConnection response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getPrivateConnectionCallable() { + return stub.getPrivateConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of private connections in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (PrivateConnection element :
+   *       dataMigrationServiceClient.listPrivateConnections(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of private connections. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateConnectionsPagedResponse listPrivateConnections(LocationName parent) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPrivateConnections(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of private connections in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (PrivateConnection element :
+   *       dataMigrationServiceClient.listPrivateConnections(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of private connections. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateConnectionsPagedResponse listPrivateConnections(String parent) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder().setParent(parent).build(); + return listPrivateConnections(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of private connections in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ListPrivateConnectionsRequest request =
+   *       ListPrivateConnectionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (PrivateConnection element :
+   *       dataMigrationServiceClient.listPrivateConnections(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateConnectionsPagedResponse listPrivateConnections( + ListPrivateConnectionsRequest request) { + return listPrivateConnectionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of private connections in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ListPrivateConnectionsRequest request =
+   *       ListPrivateConnectionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.listPrivateConnectionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PrivateConnection element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateConnectionsPagedCallable() { + return stub.listPrivateConnectionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of private connections in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ListPrivateConnectionsRequest request =
+   *       ListPrivateConnectionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListPrivateConnectionsResponse response =
+   *         dataMigrationServiceClient.listPrivateConnectionsCallable().call(request);
+   *     for (PrivateConnection element : response.getPrivateConnectionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateConnectionsCallable() { + return stub.listPrivateConnectionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Database Migration Service private connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   PrivateConnectionName name =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+   *   dataMigrationServiceClient.deletePrivateConnectionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the private connection to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePrivateConnectionAsync( + PrivateConnectionName name) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deletePrivateConnectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Database Migration Service private connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   String name =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
+   *   dataMigrationServiceClient.deletePrivateConnectionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the private connection to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePrivateConnectionAsync(String name) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder().setName(name).build(); + return deletePrivateConnectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Database Migration Service private connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   DeletePrivateConnectionRequest request =
+   *       DeletePrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   dataMigrationServiceClient.deletePrivateConnectionAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePrivateConnectionAsync( + DeletePrivateConnectionRequest request) { + return deletePrivateConnectionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Database Migration Service private connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   DeletePrivateConnectionRequest request =
+   *       DeletePrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       dataMigrationServiceClient.deletePrivateConnectionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deletePrivateConnectionOperationCallable() { + return stub.deletePrivateConnectionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Database Migration Service private connection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   DeletePrivateConnectionRequest request =
+   *       DeletePrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.deletePrivateConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deletePrivateConnectionCallable() { + return stub.deletePrivateConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ConversionWorkspaceName name =
+   *       ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
+   *   ConversionWorkspace response = dataMigrationServiceClient.getConversionWorkspace(name);
+   * }
+   * }
+ * + * @param name Required. Name of the conversion workspace resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConversionWorkspace getConversionWorkspace(ConversionWorkspaceName name) { + GetConversionWorkspaceRequest request = + GetConversionWorkspaceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getConversionWorkspace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   String name =
+   *       ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *           .toString();
+   *   ConversionWorkspace response = dataMigrationServiceClient.getConversionWorkspace(name);
+   * }
+   * }
+ * + * @param name Required. Name of the conversion workspace resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConversionWorkspace getConversionWorkspace(String name) { + GetConversionWorkspaceRequest request = + GetConversionWorkspaceRequest.newBuilder().setName(name).build(); + return getConversionWorkspace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   GetConversionWorkspaceRequest request =
+   *       GetConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .build();
+   *   ConversionWorkspace response = dataMigrationServiceClient.getConversionWorkspace(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConversionWorkspace getConversionWorkspace(GetConversionWorkspaceRequest request) { + return getConversionWorkspaceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   GetConversionWorkspaceRequest request =
+   *       GetConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.getConversionWorkspaceCallable().futureCall(request);
+   *   // Do something.
+   *   ConversionWorkspace response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getConversionWorkspaceCallable() { + return stub.getConversionWorkspaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists conversion workspaces in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (ConversionWorkspace element :
+   *       dataMigrationServiceClient.listConversionWorkspaces(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent which owns this collection of conversion workspaces. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConversionWorkspacesPagedResponse listConversionWorkspaces(LocationName parent) { + ListConversionWorkspacesRequest request = + ListConversionWorkspacesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listConversionWorkspaces(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists conversion workspaces in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (ConversionWorkspace element :
+   *       dataMigrationServiceClient.listConversionWorkspaces(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent which owns this collection of conversion workspaces. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConversionWorkspacesPagedResponse listConversionWorkspaces(String parent) { + ListConversionWorkspacesRequest request = + ListConversionWorkspacesRequest.newBuilder().setParent(parent).build(); + return listConversionWorkspaces(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists conversion workspaces in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ListConversionWorkspacesRequest request =
+   *       ListConversionWorkspacesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (ConversionWorkspace element :
+   *       dataMigrationServiceClient.listConversionWorkspaces(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConversionWorkspacesPagedResponse listConversionWorkspaces( + ListConversionWorkspacesRequest request) { + return listConversionWorkspacesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists conversion workspaces in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ListConversionWorkspacesRequest request =
+   *       ListConversionWorkspacesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.listConversionWorkspacesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ConversionWorkspace element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listConversionWorkspacesPagedCallable() { + return stub.listConversionWorkspacesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists conversion workspaces in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ListConversionWorkspacesRequest request =
+   *       ListConversionWorkspacesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListConversionWorkspacesResponse response =
+   *         dataMigrationServiceClient.listConversionWorkspacesCallable().call(request);
+   *     for (ConversionWorkspace element : response.getConversionWorkspacesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listConversionWorkspacesCallable() { + return stub.listConversionWorkspacesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new conversion workspace in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ConversionWorkspace conversionWorkspace = ConversionWorkspace.newBuilder().build();
+   *   String conversionWorkspaceId = "conversionWorkspaceId-928604774";
+   *   ConversionWorkspace response =
+   *       dataMigrationServiceClient
+   *           .createConversionWorkspaceAsync(parent, conversionWorkspace, conversionWorkspaceId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent which owns this collection of conversion workspaces. + * @param conversionWorkspace Required. Represents a conversion workspace object. + * @param conversionWorkspaceId Required. The ID of the conversion workspace to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createConversionWorkspaceAsync( + LocationName parent, + ConversionWorkspace conversionWorkspace, + String conversionWorkspaceId) { + CreateConversionWorkspaceRequest request = + CreateConversionWorkspaceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConversionWorkspace(conversionWorkspace) + .setConversionWorkspaceId(conversionWorkspaceId) + .build(); + return createConversionWorkspaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new conversion workspace in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   ConversionWorkspace conversionWorkspace = ConversionWorkspace.newBuilder().build();
+   *   String conversionWorkspaceId = "conversionWorkspaceId-928604774";
+   *   ConversionWorkspace response =
+   *       dataMigrationServiceClient
+   *           .createConversionWorkspaceAsync(parent, conversionWorkspace, conversionWorkspaceId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent which owns this collection of conversion workspaces. + * @param conversionWorkspace Required. Represents a conversion workspace object. + * @param conversionWorkspaceId Required. The ID of the conversion workspace to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createConversionWorkspaceAsync( + String parent, ConversionWorkspace conversionWorkspace, String conversionWorkspaceId) { + CreateConversionWorkspaceRequest request = + CreateConversionWorkspaceRequest.newBuilder() + .setParent(parent) + .setConversionWorkspace(conversionWorkspace) + .setConversionWorkspaceId(conversionWorkspaceId) + .build(); + return createConversionWorkspaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new conversion workspace in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   CreateConversionWorkspaceRequest request =
+   *       CreateConversionWorkspaceRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConversionWorkspaceId("conversionWorkspaceId-928604774")
+   *           .setConversionWorkspace(ConversionWorkspace.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ConversionWorkspace response =
+   *       dataMigrationServiceClient.createConversionWorkspaceAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createConversionWorkspaceAsync(CreateConversionWorkspaceRequest request) { + return createConversionWorkspaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new conversion workspace in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   CreateConversionWorkspaceRequest request =
+   *       CreateConversionWorkspaceRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConversionWorkspaceId("conversionWorkspaceId-928604774")
+   *           .setConversionWorkspace(ConversionWorkspace.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       dataMigrationServiceClient
+   *           .createConversionWorkspaceOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   ConversionWorkspace response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + createConversionWorkspaceOperationCallable() { + return stub.createConversionWorkspaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new conversion workspace in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   CreateConversionWorkspaceRequest request =
+   *       CreateConversionWorkspaceRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConversionWorkspaceId("conversionWorkspaceId-928604774")
+   *           .setConversionWorkspace(ConversionWorkspace.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.createConversionWorkspaceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createConversionWorkspaceCallable() { + return stub.createConversionWorkspaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ConversionWorkspace conversionWorkspace = ConversionWorkspace.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ConversionWorkspace response =
+   *       dataMigrationServiceClient
+   *           .updateConversionWorkspaceAsync(conversionWorkspace, updateMask)
+   *           .get();
+   * }
+   * }
+ * + * @param conversionWorkspace Required. The conversion workspace parameters to update. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten by the + * update in the conversion workspace resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateConversionWorkspaceAsync( + ConversionWorkspace conversionWorkspace, FieldMask updateMask) { + UpdateConversionWorkspaceRequest request = + UpdateConversionWorkspaceRequest.newBuilder() + .setConversionWorkspace(conversionWorkspace) + .setUpdateMask(updateMask) + .build(); + return updateConversionWorkspaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   UpdateConversionWorkspaceRequest request =
+   *       UpdateConversionWorkspaceRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setConversionWorkspace(ConversionWorkspace.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ConversionWorkspace response =
+   *       dataMigrationServiceClient.updateConversionWorkspaceAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateConversionWorkspaceAsync(UpdateConversionWorkspaceRequest request) { + return updateConversionWorkspaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   UpdateConversionWorkspaceRequest request =
+   *       UpdateConversionWorkspaceRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setConversionWorkspace(ConversionWorkspace.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       dataMigrationServiceClient
+   *           .updateConversionWorkspaceOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   ConversionWorkspace response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + updateConversionWorkspaceOperationCallable() { + return stub.updateConversionWorkspaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   UpdateConversionWorkspaceRequest request =
+   *       UpdateConversionWorkspaceRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setConversionWorkspace(ConversionWorkspace.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.updateConversionWorkspaceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateConversionWorkspaceCallable() { + return stub.updateConversionWorkspaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ConversionWorkspaceName name =
+   *       ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
+   *   dataMigrationServiceClient.deleteConversionWorkspaceAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the conversion workspace resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteConversionWorkspaceAsync( + ConversionWorkspaceName name) { + DeleteConversionWorkspaceRequest request = + DeleteConversionWorkspaceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteConversionWorkspaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   String name =
+   *       ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *           .toString();
+   *   dataMigrationServiceClient.deleteConversionWorkspaceAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the conversion workspace resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteConversionWorkspaceAsync( + String name) { + DeleteConversionWorkspaceRequest request = + DeleteConversionWorkspaceRequest.newBuilder().setName(name).build(); + return deleteConversionWorkspaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   DeleteConversionWorkspaceRequest request =
+   *       DeleteConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   dataMigrationServiceClient.deleteConversionWorkspaceAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteConversionWorkspaceAsync( + DeleteConversionWorkspaceRequest request) { + return deleteConversionWorkspaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   DeleteConversionWorkspaceRequest request =
+   *       DeleteConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       dataMigrationServiceClient
+   *           .deleteConversionWorkspaceOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteConversionWorkspaceOperationCallable() { + return stub.deleteConversionWorkspaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   DeleteConversionWorkspaceRequest request =
+   *       DeleteConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.deleteConversionWorkspaceCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteConversionWorkspaceCallable() { + return stub.deleteConversionWorkspaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports a snapshot of the source database into the conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   SeedConversionWorkspaceRequest request =
+   *       SeedConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setAutoCommit(true)
+   *           .build();
+   *   ConversionWorkspace response =
+   *       dataMigrationServiceClient.seedConversionWorkspaceAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture seedConversionWorkspaceAsync( + SeedConversionWorkspaceRequest request) { + return seedConversionWorkspaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports a snapshot of the source database into the conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   SeedConversionWorkspaceRequest request =
+   *       SeedConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setAutoCommit(true)
+   *           .build();
+   *   OperationFuture future =
+   *       dataMigrationServiceClient.seedConversionWorkspaceOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ConversionWorkspace response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + SeedConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + seedConversionWorkspaceOperationCallable() { + return stub.seedConversionWorkspaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports a snapshot of the source database into the conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   SeedConversionWorkspaceRequest request =
+   *       SeedConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setAutoCommit(true)
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.seedConversionWorkspaceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + seedConversionWorkspaceCallable() { + return stub.seedConversionWorkspaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports the mapping rules for a given conversion workspace. Supports various formats of + * external rules files. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ImportMappingRulesRequest request =
+   *       ImportMappingRulesRequest.newBuilder()
+   *           .setParent(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setRulesFormat(ImportRulesFileFormat.forNumber(0))
+   *           .addAllRulesFiles(new ArrayList())
+   *           .setAutoCommit(true)
+   *           .build();
+   *   ConversionWorkspace response =
+   *       dataMigrationServiceClient.importMappingRulesAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importMappingRulesAsync( + ImportMappingRulesRequest request) { + return importMappingRulesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports the mapping rules for a given conversion workspace. Supports various formats of + * external rules files. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ImportMappingRulesRequest request =
+   *       ImportMappingRulesRequest.newBuilder()
+   *           .setParent(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setRulesFormat(ImportRulesFileFormat.forNumber(0))
+   *           .addAllRulesFiles(new ArrayList())
+   *           .setAutoCommit(true)
+   *           .build();
+   *   OperationFuture future =
+   *       dataMigrationServiceClient.importMappingRulesOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ConversionWorkspace response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + importMappingRulesOperationCallable() { + return stub.importMappingRulesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports the mapping rules for a given conversion workspace. Supports various formats of + * external rules files. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ImportMappingRulesRequest request =
+   *       ImportMappingRulesRequest.newBuilder()
+   *           .setParent(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setRulesFormat(ImportRulesFileFormat.forNumber(0))
+   *           .addAllRulesFiles(new ArrayList())
+   *           .setAutoCommit(true)
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.importMappingRulesCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable importMappingRulesCallable() { + return stub.importMappingRulesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a draft tree schema for the destination database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ConvertConversionWorkspaceRequest request =
+   *       ConvertConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setAutoCommit(true)
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ConversionWorkspace response =
+   *       dataMigrationServiceClient.convertConversionWorkspaceAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + convertConversionWorkspaceAsync(ConvertConversionWorkspaceRequest request) { + return convertConversionWorkspaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a draft tree schema for the destination database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ConvertConversionWorkspaceRequest request =
+   *       ConvertConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setAutoCommit(true)
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   OperationFuture future =
+   *       dataMigrationServiceClient
+   *           .convertConversionWorkspaceOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   ConversionWorkspace response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + convertConversionWorkspaceOperationCallable() { + return stub.convertConversionWorkspaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a draft tree schema for the destination database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ConvertConversionWorkspaceRequest request =
+   *       ConvertConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setAutoCommit(true)
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.convertConversionWorkspaceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + convertConversionWorkspaceCallable() { + return stub.convertConversionWorkspaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Marks all the data in the conversion workspace as committed. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   CommitConversionWorkspaceRequest request =
+   *       CommitConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setCommitName("commitName1018078306")
+   *           .build();
+   *   ConversionWorkspace response =
+   *       dataMigrationServiceClient.commitConversionWorkspaceAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + commitConversionWorkspaceAsync(CommitConversionWorkspaceRequest request) { + return commitConversionWorkspaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Marks all the data in the conversion workspace as committed. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   CommitConversionWorkspaceRequest request =
+   *       CommitConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setCommitName("commitName1018078306")
+   *           .build();
+   *   OperationFuture future =
+   *       dataMigrationServiceClient
+   *           .commitConversionWorkspaceOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   ConversionWorkspace response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CommitConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + commitConversionWorkspaceOperationCallable() { + return stub.commitConversionWorkspaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Marks all the data in the conversion workspace as committed. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   CommitConversionWorkspaceRequest request =
+   *       CommitConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setCommitName("commitName1018078306")
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.commitConversionWorkspaceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + commitConversionWorkspaceCallable() { + return stub.commitConversionWorkspaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rolls back a conversion workspace to the last committed snapshot. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   RollbackConversionWorkspaceRequest request =
+   *       RollbackConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .build();
+   *   ConversionWorkspace response =
+   *       dataMigrationServiceClient.rollbackConversionWorkspaceAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + rollbackConversionWorkspaceAsync(RollbackConversionWorkspaceRequest request) { + return rollbackConversionWorkspaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rolls back a conversion workspace to the last committed snapshot. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   RollbackConversionWorkspaceRequest request =
+   *       RollbackConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       dataMigrationServiceClient
+   *           .rollbackConversionWorkspaceOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   ConversionWorkspace response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + RollbackConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + rollbackConversionWorkspaceOperationCallable() { + return stub.rollbackConversionWorkspaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rolls back a conversion workspace to the last committed snapshot. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   RollbackConversionWorkspaceRequest request =
+   *       RollbackConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.rollbackConversionWorkspaceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + rollbackConversionWorkspaceCallable() { + return stub.rollbackConversionWorkspaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies draft tree onto a specific destination database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ApplyConversionWorkspaceRequest request =
+   *       ApplyConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ConversionWorkspace response =
+   *       dataMigrationServiceClient.applyConversionWorkspaceAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + applyConversionWorkspaceAsync(ApplyConversionWorkspaceRequest request) { + return applyConversionWorkspaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies draft tree onto a specific destination database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ApplyConversionWorkspaceRequest request =
+   *       ApplyConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   OperationFuture future =
+   *       dataMigrationServiceClient
+   *           .applyConversionWorkspaceOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   ConversionWorkspace response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ApplyConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + applyConversionWorkspaceOperationCallable() { + return stub.applyConversionWorkspaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies draft tree onto a specific destination database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   ApplyConversionWorkspaceRequest request =
+   *       ApplyConversionWorkspaceRequest.newBuilder()
+   *           .setName(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.applyConversionWorkspaceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + applyConversionWorkspaceCallable() { + return stub.applyConversionWorkspaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Describes the database entities tree for a specific conversion workspace and a specific tree + * type. + * + *

Database entities are not resources like conversion workspaces or mapping rules, and they + * can't be created, updated or deleted. Instead, they are simple data objects describing the + * structure of the client database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   DescribeDatabaseEntitiesRequest request =
+   *       DescribeDatabaseEntitiesRequest.newBuilder()
+   *           .setConversionWorkspace(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setUncommitted(true)
+   *           .setCommitId("commitId-602292046")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (DatabaseEntity element :
+   *       dataMigrationServiceClient.describeDatabaseEntities(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DescribeDatabaseEntitiesPagedResponse describeDatabaseEntities( + DescribeDatabaseEntitiesRequest request) { + return describeDatabaseEntitiesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Describes the database entities tree for a specific conversion workspace and a specific tree + * type. + * + *

Database entities are not resources like conversion workspaces or mapping rules, and they + * can't be created, updated or deleted. Instead, they are simple data objects describing the + * structure of the client database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   DescribeDatabaseEntitiesRequest request =
+   *       DescribeDatabaseEntitiesRequest.newBuilder()
+   *           .setConversionWorkspace(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setUncommitted(true)
+   *           .setCommitId("commitId-602292046")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.describeDatabaseEntitiesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DatabaseEntity element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + describeDatabaseEntitiesPagedCallable() { + return stub.describeDatabaseEntitiesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Describes the database entities tree for a specific conversion workspace and a specific tree + * type. + * + *

Database entities are not resources like conversion workspaces or mapping rules, and they + * can't be created, updated or deleted. Instead, they are simple data objects describing the + * structure of the client database. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   DescribeDatabaseEntitiesRequest request =
+   *       DescribeDatabaseEntitiesRequest.newBuilder()
+   *           .setConversionWorkspace(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setUncommitted(true)
+   *           .setCommitId("commitId-602292046")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     DescribeDatabaseEntitiesResponse response =
+   *         dataMigrationServiceClient.describeDatabaseEntitiesCallable().call(request);
+   *     for (DatabaseEntity element : response.getDatabaseEntitiesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + describeDatabaseEntitiesCallable() { + return stub.describeDatabaseEntitiesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches/lists the background jobs for a specific conversion workspace. + * + *

The background jobs are not resources like conversion workspaces or mapping rules, and they + * can't be created, updated or deleted. Instead, they are a way to expose the data plane jobs + * log. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   SearchBackgroundJobsRequest request =
+   *       SearchBackgroundJobsRequest.newBuilder()
+   *           .setConversionWorkspace(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setReturnMostRecentPerJobType(true)
+   *           .setMaxSize(408072700)
+   *           .setCompletedUntilTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   SearchBackgroundJobsResponse response =
+   *       dataMigrationServiceClient.searchBackgroundJobs(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchBackgroundJobsResponse searchBackgroundJobs( + SearchBackgroundJobsRequest request) { + return searchBackgroundJobsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches/lists the background jobs for a specific conversion workspace. + * + *

The background jobs are not resources like conversion workspaces or mapping rules, and they + * can't be created, updated or deleted. Instead, they are a way to expose the data plane jobs + * log. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   SearchBackgroundJobsRequest request =
+   *       SearchBackgroundJobsRequest.newBuilder()
+   *           .setConversionWorkspace(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setReturnMostRecentPerJobType(true)
+   *           .setMaxSize(408072700)
+   *           .setCompletedUntilTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.searchBackgroundJobsCallable().futureCall(request);
+   *   // Do something.
+   *   SearchBackgroundJobsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + searchBackgroundJobsCallable() { + return stub.searchBackgroundJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of committed revisions of a specific conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   DescribeConversionWorkspaceRevisionsRequest request =
+   *       DescribeConversionWorkspaceRevisionsRequest.newBuilder()
+   *           .setConversionWorkspace(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setCommitId("commitId-602292046")
+   *           .build();
+   *   DescribeConversionWorkspaceRevisionsResponse response =
+   *       dataMigrationServiceClient.describeConversionWorkspaceRevisions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DescribeConversionWorkspaceRevisionsResponse describeConversionWorkspaceRevisions( + DescribeConversionWorkspaceRevisionsRequest request) { + return describeConversionWorkspaceRevisionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of committed revisions of a specific conversion workspace. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   DescribeConversionWorkspaceRevisionsRequest request =
+   *       DescribeConversionWorkspaceRevisionsRequest.newBuilder()
+   *           .setConversionWorkspace(
+   *               ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+   *                   .toString())
+   *           .setCommitId("commitId-602292046")
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient
+   *           .describeConversionWorkspaceRevisionsCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   DescribeConversionWorkspaceRevisionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + DescribeConversionWorkspaceRevisionsRequest, DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisionsCallable() { + return stub.describeConversionWorkspaceRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a set of static IP addresses that need to be allowlisted by the customer when using the + * static-IP connectivity method. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (String element : dataMigrationServiceClient.fetchStaticIps(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The resource name for the location for which static IPs should be + * returned. Must be in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchStaticIpsPagedResponse fetchStaticIps(LocationName name) { + FetchStaticIpsRequest request = + FetchStaticIpsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return fetchStaticIps(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a set of static IP addresses that need to be allowlisted by the customer when using the + * static-IP connectivity method. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   String name = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (String element : dataMigrationServiceClient.fetchStaticIps(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The resource name for the location for which static IPs should be + * returned. Must be in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchStaticIpsPagedResponse fetchStaticIps(String name) { + FetchStaticIpsRequest request = FetchStaticIpsRequest.newBuilder().setName(name).build(); + return fetchStaticIps(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a set of static IP addresses that need to be allowlisted by the customer when using the + * static-IP connectivity method. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   FetchStaticIpsRequest request =
+   *       FetchStaticIpsRequest.newBuilder()
+   *           .setName(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (String element : dataMigrationServiceClient.fetchStaticIps(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest request) { + return fetchStaticIpsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a set of static IP addresses that need to be allowlisted by the customer when using the + * static-IP connectivity method. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   FetchStaticIpsRequest request =
+   *       FetchStaticIpsRequest.newBuilder()
+   *           .setName(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       dataMigrationServiceClient.fetchStaticIpsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (String element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + fetchStaticIpsPagedCallable() { + return stub.fetchStaticIpsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a set of static IP addresses that need to be allowlisted by the customer when using the + * static-IP connectivity method. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataMigrationServiceClient dataMigrationServiceClient =
+   *     DataMigrationServiceClient.create()) {
+   *   FetchStaticIpsRequest request =
+   *       FetchStaticIpsRequest.newBuilder()
+   *           .setName(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     FetchStaticIpsResponse response =
+   *         dataMigrationServiceClient.fetchStaticIpsCallable().call(request);
+   *     for (String element : response.getStaticIpsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + fetchStaticIpsCallable() { + return stub.fetchStaticIpsCallable(); + } + @Override public final void close() { stub.close(); @@ -2544,4 +5078,352 @@ protected ListConnectionProfilesFixedSizeCollection createCollection( return new ListConnectionProfilesFixedSizeCollection(pages, collectionSize); } } + + public static class ListPrivateConnectionsPagedResponse + extends AbstractPagedListResponse< + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection, + ListPrivateConnectionsPage, + ListPrivateConnectionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPrivateConnectionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPrivateConnectionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPrivateConnectionsPagedResponse(ListPrivateConnectionsPage page) { + super(page, ListPrivateConnectionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPrivateConnectionsPage + extends AbstractPage< + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection, + ListPrivateConnectionsPage> { + + private ListPrivateConnectionsPage( + PageContext< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> + context, + ListPrivateConnectionsResponse response) { + super(context, response); + } + + private static ListPrivateConnectionsPage createEmptyPage() { + return new ListPrivateConnectionsPage(null, null); + } + + @Override + protected ListPrivateConnectionsPage createPage( + PageContext< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> + context, + ListPrivateConnectionsResponse response) { + return new ListPrivateConnectionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListPrivateConnectionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection, + ListPrivateConnectionsPage, + ListPrivateConnectionsFixedSizeCollection> { + + private ListPrivateConnectionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPrivateConnectionsFixedSizeCollection createEmptyCollection() { + return new ListPrivateConnectionsFixedSizeCollection(null, 0); + } + + @Override + protected ListPrivateConnectionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPrivateConnectionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListConversionWorkspacesPagedResponse + extends AbstractPagedListResponse< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ConversionWorkspace, + ListConversionWorkspacesPage, + ListConversionWorkspacesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ConversionWorkspace> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListConversionWorkspacesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListConversionWorkspacesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListConversionWorkspacesPagedResponse(ListConversionWorkspacesPage page) { + super(page, ListConversionWorkspacesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListConversionWorkspacesPage + extends AbstractPage< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ConversionWorkspace, + ListConversionWorkspacesPage> { + + private ListConversionWorkspacesPage( + PageContext< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ConversionWorkspace> + context, + ListConversionWorkspacesResponse response) { + super(context, response); + } + + private static ListConversionWorkspacesPage createEmptyPage() { + return new ListConversionWorkspacesPage(null, null); + } + + @Override + protected ListConversionWorkspacesPage createPage( + PageContext< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ConversionWorkspace> + context, + ListConversionWorkspacesResponse response) { + return new ListConversionWorkspacesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ConversionWorkspace> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListConversionWorkspacesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ConversionWorkspace, + ListConversionWorkspacesPage, + ListConversionWorkspacesFixedSizeCollection> { + + private ListConversionWorkspacesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListConversionWorkspacesFixedSizeCollection createEmptyCollection() { + return new ListConversionWorkspacesFixedSizeCollection(null, 0); + } + + @Override + protected ListConversionWorkspacesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListConversionWorkspacesFixedSizeCollection(pages, collectionSize); + } + } + + public static class DescribeDatabaseEntitiesPagedResponse + extends AbstractPagedListResponse< + DescribeDatabaseEntitiesRequest, + DescribeDatabaseEntitiesResponse, + DatabaseEntity, + DescribeDatabaseEntitiesPage, + DescribeDatabaseEntitiesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesResponse, DatabaseEntity> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + DescribeDatabaseEntitiesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new DescribeDatabaseEntitiesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private DescribeDatabaseEntitiesPagedResponse(DescribeDatabaseEntitiesPage page) { + super(page, DescribeDatabaseEntitiesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class DescribeDatabaseEntitiesPage + extends AbstractPage< + DescribeDatabaseEntitiesRequest, + DescribeDatabaseEntitiesResponse, + DatabaseEntity, + DescribeDatabaseEntitiesPage> { + + private DescribeDatabaseEntitiesPage( + PageContext< + DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesResponse, DatabaseEntity> + context, + DescribeDatabaseEntitiesResponse response) { + super(context, response); + } + + private static DescribeDatabaseEntitiesPage createEmptyPage() { + return new DescribeDatabaseEntitiesPage(null, null); + } + + @Override + protected DescribeDatabaseEntitiesPage createPage( + PageContext< + DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesResponse, DatabaseEntity> + context, + DescribeDatabaseEntitiesResponse response) { + return new DescribeDatabaseEntitiesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesResponse, DatabaseEntity> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class DescribeDatabaseEntitiesFixedSizeCollection + extends AbstractFixedSizeCollection< + DescribeDatabaseEntitiesRequest, + DescribeDatabaseEntitiesResponse, + DatabaseEntity, + DescribeDatabaseEntitiesPage, + DescribeDatabaseEntitiesFixedSizeCollection> { + + private DescribeDatabaseEntitiesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static DescribeDatabaseEntitiesFixedSizeCollection createEmptyCollection() { + return new DescribeDatabaseEntitiesFixedSizeCollection(null, 0); + } + + @Override + protected DescribeDatabaseEntitiesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new DescribeDatabaseEntitiesFixedSizeCollection(pages, collectionSize); + } + } + + public static class FetchStaticIpsPagedResponse + extends AbstractPagedListResponse< + FetchStaticIpsRequest, + FetchStaticIpsResponse, + String, + FetchStaticIpsPage, + FetchStaticIpsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FetchStaticIpsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new FetchStaticIpsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private FetchStaticIpsPagedResponse(FetchStaticIpsPage page) { + super(page, FetchStaticIpsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class FetchStaticIpsPage + extends AbstractPage< + FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage> { + + private FetchStaticIpsPage( + PageContext context, + FetchStaticIpsResponse response) { + super(context, response); + } + + private static FetchStaticIpsPage createEmptyPage() { + return new FetchStaticIpsPage(null, null); + } + + @Override + protected FetchStaticIpsPage createPage( + PageContext context, + FetchStaticIpsResponse response) { + return new FetchStaticIpsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class FetchStaticIpsFixedSizeCollection + extends AbstractFixedSizeCollection< + FetchStaticIpsRequest, + FetchStaticIpsResponse, + String, + FetchStaticIpsPage, + FetchStaticIpsFixedSizeCollection> { + + private FetchStaticIpsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static FetchStaticIpsFixedSizeCollection createEmptyCollection() { + return new FetchStaticIpsFixedSizeCollection(null, 0); + } + + @Override + protected FetchStaticIpsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new FetchStaticIpsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java index 039127f31eaa..4255a5bddc12 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java @@ -16,8 +16,12 @@ package com.google.cloud.clouddms.v1; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.DescribeDatabaseEntitiesPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.FetchStaticIpsPagedResponse; import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConnectionProfilesPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConversionWorkspacesPagedResponse; import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -258,6 +262,226 @@ public UnaryCallSettings generateSshScriptS .deleteConnectionProfileOperationSettings(); } + /** Returns the object with the settings used for calls to createPrivateConnection. */ + public UnaryCallSettings + createPrivateConnectionSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()).createPrivateConnectionSettings(); + } + + /** Returns the object with the settings used for calls to createPrivateConnection. */ + public OperationCallSettings + createPrivateConnectionOperationSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .createPrivateConnectionOperationSettings(); + } + + /** Returns the object with the settings used for calls to getPrivateConnection. */ + public UnaryCallSettings + getPrivateConnectionSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()).getPrivateConnectionSettings(); + } + + /** Returns the object with the settings used for calls to listPrivateConnections. */ + public PagedCallSettings< + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + listPrivateConnectionsSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()).listPrivateConnectionsSettings(); + } + + /** Returns the object with the settings used for calls to deletePrivateConnection. */ + public UnaryCallSettings + deletePrivateConnectionSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()).deletePrivateConnectionSettings(); + } + + /** Returns the object with the settings used for calls to deletePrivateConnection. */ + public OperationCallSettings + deletePrivateConnectionOperationSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .deletePrivateConnectionOperationSettings(); + } + + /** Returns the object with the settings used for calls to getConversionWorkspace. */ + public UnaryCallSettings + getConversionWorkspaceSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()).getConversionWorkspaceSettings(); + } + + /** Returns the object with the settings used for calls to listConversionWorkspaces. */ + public PagedCallSettings< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ListConversionWorkspacesPagedResponse> + listConversionWorkspacesSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .listConversionWorkspacesSettings(); + } + + /** Returns the object with the settings used for calls to createConversionWorkspace. */ + public UnaryCallSettings + createConversionWorkspaceSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .createConversionWorkspaceSettings(); + } + + /** Returns the object with the settings used for calls to createConversionWorkspace. */ + public OperationCallSettings< + CreateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + createConversionWorkspaceOperationSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .createConversionWorkspaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateConversionWorkspace. */ + public UnaryCallSettings + updateConversionWorkspaceSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .updateConversionWorkspaceSettings(); + } + + /** Returns the object with the settings used for calls to updateConversionWorkspace. */ + public OperationCallSettings< + UpdateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + updateConversionWorkspaceOperationSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .updateConversionWorkspaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteConversionWorkspace. */ + public UnaryCallSettings + deleteConversionWorkspaceSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .deleteConversionWorkspaceSettings(); + } + + /** Returns the object with the settings used for calls to deleteConversionWorkspace. */ + public OperationCallSettings + deleteConversionWorkspaceOperationSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .deleteConversionWorkspaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to seedConversionWorkspace. */ + public UnaryCallSettings + seedConversionWorkspaceSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()).seedConversionWorkspaceSettings(); + } + + /** Returns the object with the settings used for calls to seedConversionWorkspace. */ + public OperationCallSettings< + SeedConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + seedConversionWorkspaceOperationSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .seedConversionWorkspaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to importMappingRules. */ + public UnaryCallSettings importMappingRulesSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()).importMappingRulesSettings(); + } + + /** Returns the object with the settings used for calls to importMappingRules. */ + public OperationCallSettings + importMappingRulesOperationSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .importMappingRulesOperationSettings(); + } + + /** Returns the object with the settings used for calls to convertConversionWorkspace. */ + public UnaryCallSettings + convertConversionWorkspaceSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .convertConversionWorkspaceSettings(); + } + + /** Returns the object with the settings used for calls to convertConversionWorkspace. */ + public OperationCallSettings< + ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + convertConversionWorkspaceOperationSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .convertConversionWorkspaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to commitConversionWorkspace. */ + public UnaryCallSettings + commitConversionWorkspaceSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .commitConversionWorkspaceSettings(); + } + + /** Returns the object with the settings used for calls to commitConversionWorkspace. */ + public OperationCallSettings< + CommitConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + commitConversionWorkspaceOperationSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .commitConversionWorkspaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to rollbackConversionWorkspace. */ + public UnaryCallSettings + rollbackConversionWorkspaceSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .rollbackConversionWorkspaceSettings(); + } + + /** Returns the object with the settings used for calls to rollbackConversionWorkspace. */ + public OperationCallSettings< + RollbackConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + rollbackConversionWorkspaceOperationSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .rollbackConversionWorkspaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to applyConversionWorkspace. */ + public UnaryCallSettings + applyConversionWorkspaceSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .applyConversionWorkspaceSettings(); + } + + /** Returns the object with the settings used for calls to applyConversionWorkspace. */ + public OperationCallSettings< + ApplyConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + applyConversionWorkspaceOperationSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .applyConversionWorkspaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to describeDatabaseEntities. */ + public PagedCallSettings< + DescribeDatabaseEntitiesRequest, + DescribeDatabaseEntitiesResponse, + DescribeDatabaseEntitiesPagedResponse> + describeDatabaseEntitiesSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .describeDatabaseEntitiesSettings(); + } + + /** Returns the object with the settings used for calls to searchBackgroundJobs. */ + public UnaryCallSettings + searchBackgroundJobsSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()).searchBackgroundJobsSettings(); + } + + /** + * Returns the object with the settings used for calls to describeConversionWorkspaceRevisions. + */ + public UnaryCallSettings< + DescribeConversionWorkspaceRevisionsRequest, DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisionsSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()) + .describeConversionWorkspaceRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to fetchStaticIps. */ + public PagedCallSettings< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + fetchStaticIpsSettings() { + return ((DataMigrationServiceStubSettings) getStubSettings()).fetchStaticIpsSettings(); + } + public static final DataMigrationServiceSettings create(DataMigrationServiceStubSettings stub) throws IOException { return new DataMigrationServiceSettings.Builder(stub.toBuilder()).build(); @@ -538,6 +762,209 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().deleteConnectionProfileOperationSettings(); } + /** Returns the builder for the settings used for calls to createPrivateConnection. */ + public UnaryCallSettings.Builder + createPrivateConnectionSettings() { + return getStubSettingsBuilder().createPrivateConnectionSettings(); + } + + /** Returns the builder for the settings used for calls to createPrivateConnection. */ + public OperationCallSettings.Builder< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationSettings() { + return getStubSettingsBuilder().createPrivateConnectionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getPrivateConnection. */ + public UnaryCallSettings.Builder + getPrivateConnectionSettings() { + return getStubSettingsBuilder().getPrivateConnectionSettings(); + } + + /** Returns the builder for the settings used for calls to listPrivateConnections. */ + public PagedCallSettings.Builder< + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + listPrivateConnectionsSettings() { + return getStubSettingsBuilder().listPrivateConnectionsSettings(); + } + + /** Returns the builder for the settings used for calls to deletePrivateConnection. */ + public UnaryCallSettings.Builder + deletePrivateConnectionSettings() { + return getStubSettingsBuilder().deletePrivateConnectionSettings(); + } + + /** Returns the builder for the settings used for calls to deletePrivateConnection. */ + public OperationCallSettings.Builder + deletePrivateConnectionOperationSettings() { + return getStubSettingsBuilder().deletePrivateConnectionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getConversionWorkspace. */ + public UnaryCallSettings.Builder + getConversionWorkspaceSettings() { + return getStubSettingsBuilder().getConversionWorkspaceSettings(); + } + + /** Returns the builder for the settings used for calls to listConversionWorkspaces. */ + public PagedCallSettings.Builder< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ListConversionWorkspacesPagedResponse> + listConversionWorkspacesSettings() { + return getStubSettingsBuilder().listConversionWorkspacesSettings(); + } + + /** Returns the builder for the settings used for calls to createConversionWorkspace. */ + public UnaryCallSettings.Builder + createConversionWorkspaceSettings() { + return getStubSettingsBuilder().createConversionWorkspaceSettings(); + } + + /** Returns the builder for the settings used for calls to createConversionWorkspace. */ + public OperationCallSettings.Builder< + CreateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + createConversionWorkspaceOperationSettings() { + return getStubSettingsBuilder().createConversionWorkspaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateConversionWorkspace. */ + public UnaryCallSettings.Builder + updateConversionWorkspaceSettings() { + return getStubSettingsBuilder().updateConversionWorkspaceSettings(); + } + + /** Returns the builder for the settings used for calls to updateConversionWorkspace. */ + public OperationCallSettings.Builder< + UpdateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + updateConversionWorkspaceOperationSettings() { + return getStubSettingsBuilder().updateConversionWorkspaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConversionWorkspace. */ + public UnaryCallSettings.Builder + deleteConversionWorkspaceSettings() { + return getStubSettingsBuilder().deleteConversionWorkspaceSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConversionWorkspace. */ + public OperationCallSettings.Builder + deleteConversionWorkspaceOperationSettings() { + return getStubSettingsBuilder().deleteConversionWorkspaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to seedConversionWorkspace. */ + public UnaryCallSettings.Builder + seedConversionWorkspaceSettings() { + return getStubSettingsBuilder().seedConversionWorkspaceSettings(); + } + + /** Returns the builder for the settings used for calls to seedConversionWorkspace. */ + public OperationCallSettings.Builder< + SeedConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + seedConversionWorkspaceOperationSettings() { + return getStubSettingsBuilder().seedConversionWorkspaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to importMappingRules. */ + public UnaryCallSettings.Builder + importMappingRulesSettings() { + return getStubSettingsBuilder().importMappingRulesSettings(); + } + + /** Returns the builder for the settings used for calls to importMappingRules. */ + public OperationCallSettings.Builder< + ImportMappingRulesRequest, ConversionWorkspace, OperationMetadata> + importMappingRulesOperationSettings() { + return getStubSettingsBuilder().importMappingRulesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to convertConversionWorkspace. */ + public UnaryCallSettings.Builder + convertConversionWorkspaceSettings() { + return getStubSettingsBuilder().convertConversionWorkspaceSettings(); + } + + /** Returns the builder for the settings used for calls to convertConversionWorkspace. */ + public OperationCallSettings.Builder< + ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + convertConversionWorkspaceOperationSettings() { + return getStubSettingsBuilder().convertConversionWorkspaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to commitConversionWorkspace. */ + public UnaryCallSettings.Builder + commitConversionWorkspaceSettings() { + return getStubSettingsBuilder().commitConversionWorkspaceSettings(); + } + + /** Returns the builder for the settings used for calls to commitConversionWorkspace. */ + public OperationCallSettings.Builder< + CommitConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + commitConversionWorkspaceOperationSettings() { + return getStubSettingsBuilder().commitConversionWorkspaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to rollbackConversionWorkspace. */ + public UnaryCallSettings.Builder + rollbackConversionWorkspaceSettings() { + return getStubSettingsBuilder().rollbackConversionWorkspaceSettings(); + } + + /** Returns the builder for the settings used for calls to rollbackConversionWorkspace. */ + public OperationCallSettings.Builder< + RollbackConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + rollbackConversionWorkspaceOperationSettings() { + return getStubSettingsBuilder().rollbackConversionWorkspaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to applyConversionWorkspace. */ + public UnaryCallSettings.Builder + applyConversionWorkspaceSettings() { + return getStubSettingsBuilder().applyConversionWorkspaceSettings(); + } + + /** Returns the builder for the settings used for calls to applyConversionWorkspace. */ + public OperationCallSettings.Builder< + ApplyConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + applyConversionWorkspaceOperationSettings() { + return getStubSettingsBuilder().applyConversionWorkspaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to describeDatabaseEntities. */ + public PagedCallSettings.Builder< + DescribeDatabaseEntitiesRequest, + DescribeDatabaseEntitiesResponse, + DescribeDatabaseEntitiesPagedResponse> + describeDatabaseEntitiesSettings() { + return getStubSettingsBuilder().describeDatabaseEntitiesSettings(); + } + + /** Returns the builder for the settings used for calls to searchBackgroundJobs. */ + public UnaryCallSettings.Builder + searchBackgroundJobsSettings() { + return getStubSettingsBuilder().searchBackgroundJobsSettings(); + } + + /** + * Returns the builder for the settings used for calls to describeConversionWorkspaceRevisions. + */ + public UnaryCallSettings.Builder< + DescribeConversionWorkspaceRevisionsRequest, + DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisionsSettings() { + return getStubSettingsBuilder().describeConversionWorkspaceRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to fetchStaticIps. */ + public PagedCallSettings.Builder< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + fetchStaticIpsSettings() { + return getStubSettingsBuilder().fetchStaticIpsSettings(); + } + @Override public DataMigrationServiceSettings build() throws IOException { return new DataMigrationServiceSettings(this); diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json index b8506b5f06ad..7195fc8fc75e 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/gapic_metadata.json @@ -10,33 +10,78 @@ "grpc": { "libraryClient": "DataMigrationServiceClient", "rpcs": { + "ApplyConversionWorkspace": { + "methods": ["applyConversionWorkspaceAsync", "applyConversionWorkspaceOperationCallable", "applyConversionWorkspaceCallable"] + }, + "CommitConversionWorkspace": { + "methods": ["commitConversionWorkspaceAsync", "commitConversionWorkspaceOperationCallable", "commitConversionWorkspaceCallable"] + }, + "ConvertConversionWorkspace": { + "methods": ["convertConversionWorkspaceAsync", "convertConversionWorkspaceOperationCallable", "convertConversionWorkspaceCallable"] + }, "CreateConnectionProfile": { "methods": ["createConnectionProfileAsync", "createConnectionProfileAsync", "createConnectionProfileAsync", "createConnectionProfileOperationCallable", "createConnectionProfileCallable"] }, + "CreateConversionWorkspace": { + "methods": ["createConversionWorkspaceAsync", "createConversionWorkspaceAsync", "createConversionWorkspaceAsync", "createConversionWorkspaceOperationCallable", "createConversionWorkspaceCallable"] + }, "CreateMigrationJob": { "methods": ["createMigrationJobAsync", "createMigrationJobAsync", "createMigrationJobAsync", "createMigrationJobOperationCallable", "createMigrationJobCallable"] }, + "CreatePrivateConnection": { + "methods": ["createPrivateConnectionAsync", "createPrivateConnectionAsync", "createPrivateConnectionAsync", "createPrivateConnectionOperationCallable", "createPrivateConnectionCallable"] + }, "DeleteConnectionProfile": { "methods": ["deleteConnectionProfileAsync", "deleteConnectionProfileAsync", "deleteConnectionProfileAsync", "deleteConnectionProfileOperationCallable", "deleteConnectionProfileCallable"] }, + "DeleteConversionWorkspace": { + "methods": ["deleteConversionWorkspaceAsync", "deleteConversionWorkspaceAsync", "deleteConversionWorkspaceAsync", "deleteConversionWorkspaceOperationCallable", "deleteConversionWorkspaceCallable"] + }, "DeleteMigrationJob": { "methods": ["deleteMigrationJobAsync", "deleteMigrationJobAsync", "deleteMigrationJobAsync", "deleteMigrationJobOperationCallable", "deleteMigrationJobCallable"] }, + "DeletePrivateConnection": { + "methods": ["deletePrivateConnectionAsync", "deletePrivateConnectionAsync", "deletePrivateConnectionAsync", "deletePrivateConnectionOperationCallable", "deletePrivateConnectionCallable"] + }, + "DescribeConversionWorkspaceRevisions": { + "methods": ["describeConversionWorkspaceRevisions", "describeConversionWorkspaceRevisionsCallable"] + }, + "DescribeDatabaseEntities": { + "methods": ["describeDatabaseEntities", "describeDatabaseEntitiesPagedCallable", "describeDatabaseEntitiesCallable"] + }, + "FetchStaticIps": { + "methods": ["fetchStaticIps", "fetchStaticIps", "fetchStaticIps", "fetchStaticIpsPagedCallable", "fetchStaticIpsCallable"] + }, "GenerateSshScript": { "methods": ["generateSshScript", "generateSshScriptCallable"] }, "GetConnectionProfile": { "methods": ["getConnectionProfile", "getConnectionProfile", "getConnectionProfile", "getConnectionProfileCallable"] }, + "GetConversionWorkspace": { + "methods": ["getConversionWorkspace", "getConversionWorkspace", "getConversionWorkspace", "getConversionWorkspaceCallable"] + }, "GetMigrationJob": { "methods": ["getMigrationJob", "getMigrationJob", "getMigrationJob", "getMigrationJobCallable"] }, + "GetPrivateConnection": { + "methods": ["getPrivateConnection", "getPrivateConnection", "getPrivateConnection", "getPrivateConnectionCallable"] + }, + "ImportMappingRules": { + "methods": ["importMappingRulesAsync", "importMappingRulesOperationCallable", "importMappingRulesCallable"] + }, "ListConnectionProfiles": { "methods": ["listConnectionProfiles", "listConnectionProfiles", "listConnectionProfiles", "listConnectionProfilesPagedCallable", "listConnectionProfilesCallable"] }, + "ListConversionWorkspaces": { + "methods": ["listConversionWorkspaces", "listConversionWorkspaces", "listConversionWorkspaces", "listConversionWorkspacesPagedCallable", "listConversionWorkspacesCallable"] + }, "ListMigrationJobs": { "methods": ["listMigrationJobs", "listMigrationJobs", "listMigrationJobs", "listMigrationJobsPagedCallable", "listMigrationJobsCallable"] }, + "ListPrivateConnections": { + "methods": ["listPrivateConnections", "listPrivateConnections", "listPrivateConnections", "listPrivateConnectionsPagedCallable", "listPrivateConnectionsCallable"] + }, "PromoteMigrationJob": { "methods": ["promoteMigrationJobAsync", "promoteMigrationJobOperationCallable", "promoteMigrationJobCallable"] }, @@ -46,6 +91,15 @@ "ResumeMigrationJob": { "methods": ["resumeMigrationJobAsync", "resumeMigrationJobOperationCallable", "resumeMigrationJobCallable"] }, + "RollbackConversionWorkspace": { + "methods": ["rollbackConversionWorkspaceAsync", "rollbackConversionWorkspaceOperationCallable", "rollbackConversionWorkspaceCallable"] + }, + "SearchBackgroundJobs": { + "methods": ["searchBackgroundJobs", "searchBackgroundJobsCallable"] + }, + "SeedConversionWorkspace": { + "methods": ["seedConversionWorkspaceAsync", "seedConversionWorkspaceOperationCallable", "seedConversionWorkspaceCallable"] + }, "StartMigrationJob": { "methods": ["startMigrationJobAsync", "startMigrationJobOperationCallable", "startMigrationJobCallable"] }, @@ -55,6 +109,9 @@ "UpdateConnectionProfile": { "methods": ["updateConnectionProfileAsync", "updateConnectionProfileAsync", "updateConnectionProfileOperationCallable", "updateConnectionProfileCallable"] }, + "UpdateConversionWorkspace": { + "methods": ["updateConversionWorkspaceAsync", "updateConversionWorkspaceAsync", "updateConversionWorkspaceOperationCallable", "updateConversionWorkspaceCallable"] + }, "UpdateMigrationJob": { "methods": ["updateMigrationJobAsync", "updateMigrationJobAsync", "updateMigrationJobOperationCallable", "updateMigrationJobCallable"] }, diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java index b797da96a92b..3319912584da 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java @@ -16,33 +16,64 @@ package com.google.cloud.clouddms.v1.stub; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.DescribeDatabaseEntitiesPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.FetchStaticIpsPagedResponse; import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConnectionProfilesPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConversionWorkspacesPagedResponse; import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest; +import com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.CreateMigrationJobRequest; +import com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest; import com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest; +import com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest; +import com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest; +import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest; +import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse; +import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest; +import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse; +import com.google.cloud.clouddms.v1.FetchStaticIpsRequest; +import com.google.cloud.clouddms.v1.FetchStaticIpsResponse; import com.google.cloud.clouddms.v1.GenerateSshScriptRequest; import com.google.cloud.clouddms.v1.GetConnectionProfileRequest; +import com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.GetMigrationJobRequest; +import com.google.cloud.clouddms.v1.GetPrivateConnectionRequest; +import com.google.cloud.clouddms.v1.ImportMappingRulesRequest; import com.google.cloud.clouddms.v1.ListConnectionProfilesRequest; import com.google.cloud.clouddms.v1.ListConnectionProfilesResponse; +import com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest; +import com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse; import com.google.cloud.clouddms.v1.ListMigrationJobsRequest; import com.google.cloud.clouddms.v1.ListMigrationJobsResponse; +import com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest; +import com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse; import com.google.cloud.clouddms.v1.MigrationJob; import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.PrivateConnection; import com.google.cloud.clouddms.v1.PromoteMigrationJobRequest; import com.google.cloud.clouddms.v1.RestartMigrationJobRequest; import com.google.cloud.clouddms.v1.ResumeMigrationJobRequest; +import com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest; +import com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse; +import com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.SshScript; import com.google.cloud.clouddms.v1.StartMigrationJobRequest; import com.google.cloud.clouddms.v1.StopMigrationJobRequest; import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest; +import com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest; import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest; import com.google.longrunning.Operation; @@ -219,6 +250,194 @@ public UnaryCallable generateSshScriptCalla throw new UnsupportedOperationException("Not implemented: deleteConnectionProfileCallable()"); } + public OperationCallable + createPrivateConnectionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createPrivateConnectionOperationCallable()"); + } + + public UnaryCallable + createPrivateConnectionCallable() { + throw new UnsupportedOperationException("Not implemented: createPrivateConnectionCallable()"); + } + + public UnaryCallable + getPrivateConnectionCallable() { + throw new UnsupportedOperationException("Not implemented: getPrivateConnectionCallable()"); + } + + public UnaryCallable + listPrivateConnectionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listPrivateConnectionsPagedCallable()"); + } + + public UnaryCallable + listPrivateConnectionsCallable() { + throw new UnsupportedOperationException("Not implemented: listPrivateConnectionsCallable()"); + } + + public OperationCallable + deletePrivateConnectionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deletePrivateConnectionOperationCallable()"); + } + + public UnaryCallable + deletePrivateConnectionCallable() { + throw new UnsupportedOperationException("Not implemented: deletePrivateConnectionCallable()"); + } + + public UnaryCallable + getConversionWorkspaceCallable() { + throw new UnsupportedOperationException("Not implemented: getConversionWorkspaceCallable()"); + } + + public UnaryCallable + listConversionWorkspacesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listConversionWorkspacesPagedCallable()"); + } + + public UnaryCallable + listConversionWorkspacesCallable() { + throw new UnsupportedOperationException("Not implemented: listConversionWorkspacesCallable()"); + } + + public OperationCallable + createConversionWorkspaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createConversionWorkspaceOperationCallable()"); + } + + public UnaryCallable + createConversionWorkspaceCallable() { + throw new UnsupportedOperationException("Not implemented: createConversionWorkspaceCallable()"); + } + + public OperationCallable + updateConversionWorkspaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateConversionWorkspaceOperationCallable()"); + } + + public UnaryCallable + updateConversionWorkspaceCallable() { + throw new UnsupportedOperationException("Not implemented: updateConversionWorkspaceCallable()"); + } + + public OperationCallable + deleteConversionWorkspaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteConversionWorkspaceOperationCallable()"); + } + + public UnaryCallable + deleteConversionWorkspaceCallable() { + throw new UnsupportedOperationException("Not implemented: deleteConversionWorkspaceCallable()"); + } + + public OperationCallable + seedConversionWorkspaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: seedConversionWorkspaceOperationCallable()"); + } + + public UnaryCallable + seedConversionWorkspaceCallable() { + throw new UnsupportedOperationException("Not implemented: seedConversionWorkspaceCallable()"); + } + + public OperationCallable + importMappingRulesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: importMappingRulesOperationCallable()"); + } + + public UnaryCallable importMappingRulesCallable() { + throw new UnsupportedOperationException("Not implemented: importMappingRulesCallable()"); + } + + public OperationCallable< + ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + convertConversionWorkspaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: convertConversionWorkspaceOperationCallable()"); + } + + public UnaryCallable + convertConversionWorkspaceCallable() { + throw new UnsupportedOperationException( + "Not implemented: convertConversionWorkspaceCallable()"); + } + + public OperationCallable + commitConversionWorkspaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: commitConversionWorkspaceOperationCallable()"); + } + + public UnaryCallable + commitConversionWorkspaceCallable() { + throw new UnsupportedOperationException("Not implemented: commitConversionWorkspaceCallable()"); + } + + public OperationCallable< + RollbackConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + rollbackConversionWorkspaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: rollbackConversionWorkspaceOperationCallable()"); + } + + public UnaryCallable + rollbackConversionWorkspaceCallable() { + throw new UnsupportedOperationException( + "Not implemented: rollbackConversionWorkspaceCallable()"); + } + + public OperationCallable + applyConversionWorkspaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: applyConversionWorkspaceOperationCallable()"); + } + + public UnaryCallable + applyConversionWorkspaceCallable() { + throw new UnsupportedOperationException("Not implemented: applyConversionWorkspaceCallable()"); + } + + public UnaryCallable + describeDatabaseEntitiesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: describeDatabaseEntitiesPagedCallable()"); + } + + public UnaryCallable + describeDatabaseEntitiesCallable() { + throw new UnsupportedOperationException("Not implemented: describeDatabaseEntitiesCallable()"); + } + + public UnaryCallable + searchBackgroundJobsCallable() { + throw new UnsupportedOperationException("Not implemented: searchBackgroundJobsCallable()"); + } + + public UnaryCallable< + DescribeConversionWorkspaceRevisionsRequest, DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: describeConversionWorkspaceRevisionsCallable()"); + } + + public UnaryCallable + fetchStaticIpsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: fetchStaticIpsPagedCallable()"); + } + + public UnaryCallable fetchStaticIpsCallable() { + throw new UnsupportedOperationException("Not implemented: fetchStaticIpsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java index 6b8e60b8a7fd..37c99d5b2ec5 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java @@ -16,8 +16,12 @@ package com.google.cloud.clouddms.v1.stub; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.DescribeDatabaseEntitiesPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.FetchStaticIpsPagedResponse; import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConnectionProfilesPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConversionWorkspacesPagedResponse; import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -45,27 +49,55 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest; +import com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.CreateMigrationJobRequest; +import com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest; +import com.google.cloud.clouddms.v1.DatabaseEntity; import com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest; +import com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest; +import com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest; +import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest; +import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse; +import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest; +import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse; +import com.google.cloud.clouddms.v1.FetchStaticIpsRequest; +import com.google.cloud.clouddms.v1.FetchStaticIpsResponse; import com.google.cloud.clouddms.v1.GenerateSshScriptRequest; import com.google.cloud.clouddms.v1.GetConnectionProfileRequest; +import com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.GetMigrationJobRequest; +import com.google.cloud.clouddms.v1.GetPrivateConnectionRequest; +import com.google.cloud.clouddms.v1.ImportMappingRulesRequest; import com.google.cloud.clouddms.v1.ListConnectionProfilesRequest; import com.google.cloud.clouddms.v1.ListConnectionProfilesResponse; +import com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest; +import com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse; import com.google.cloud.clouddms.v1.ListMigrationJobsRequest; import com.google.cloud.clouddms.v1.ListMigrationJobsResponse; +import com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest; +import com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse; import com.google.cloud.clouddms.v1.MigrationJob; import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.PrivateConnection; import com.google.cloud.clouddms.v1.PromoteMigrationJobRequest; import com.google.cloud.clouddms.v1.RestartMigrationJobRequest; import com.google.cloud.clouddms.v1.ResumeMigrationJobRequest; +import com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest; +import com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse; +import com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.SshScript; import com.google.cloud.clouddms.v1.StartMigrationJobRequest; import com.google.cloud.clouddms.v1.StopMigrationJobRequest; import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest; +import com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest; import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest; import com.google.common.collect.ImmutableList; @@ -179,6 +211,85 @@ public class DataMigrationServiceStubSettings deleteConnectionProfileSettings; private final OperationCallSettings deleteConnectionProfileOperationSettings; + private final UnaryCallSettings + createPrivateConnectionSettings; + private final OperationCallSettings< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationSettings; + private final UnaryCallSettings + getPrivateConnectionSettings; + private final PagedCallSettings< + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + listPrivateConnectionsSettings; + private final UnaryCallSettings + deletePrivateConnectionSettings; + private final OperationCallSettings + deletePrivateConnectionOperationSettings; + private final UnaryCallSettings + getConversionWorkspaceSettings; + private final PagedCallSettings< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ListConversionWorkspacesPagedResponse> + listConversionWorkspacesSettings; + private final UnaryCallSettings + createConversionWorkspaceSettings; + private final OperationCallSettings< + CreateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + createConversionWorkspaceOperationSettings; + private final UnaryCallSettings + updateConversionWorkspaceSettings; + private final OperationCallSettings< + UpdateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + updateConversionWorkspaceOperationSettings; + private final UnaryCallSettings + deleteConversionWorkspaceSettings; + private final OperationCallSettings + deleteConversionWorkspaceOperationSettings; + private final UnaryCallSettings + seedConversionWorkspaceSettings; + private final OperationCallSettings< + SeedConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + seedConversionWorkspaceOperationSettings; + private final UnaryCallSettings importMappingRulesSettings; + private final OperationCallSettings< + ImportMappingRulesRequest, ConversionWorkspace, OperationMetadata> + importMappingRulesOperationSettings; + private final UnaryCallSettings + convertConversionWorkspaceSettings; + private final OperationCallSettings< + ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + convertConversionWorkspaceOperationSettings; + private final UnaryCallSettings + commitConversionWorkspaceSettings; + private final OperationCallSettings< + CommitConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + commitConversionWorkspaceOperationSettings; + private final UnaryCallSettings + rollbackConversionWorkspaceSettings; + private final OperationCallSettings< + RollbackConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + rollbackConversionWorkspaceOperationSettings; + private final UnaryCallSettings + applyConversionWorkspaceSettings; + private final OperationCallSettings< + ApplyConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + applyConversionWorkspaceOperationSettings; + private final PagedCallSettings< + DescribeDatabaseEntitiesRequest, + DescribeDatabaseEntitiesResponse, + DescribeDatabaseEntitiesPagedResponse> + describeDatabaseEntitiesSettings; + private final UnaryCallSettings + searchBackgroundJobsSettings; + private final UnaryCallSettings< + DescribeConversionWorkspaceRevisionsRequest, DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisionsSettings; + private final PagedCallSettings< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + fetchStaticIpsSettings; private static final PagedListDescriptor< ListMigrationJobsRequest, ListMigrationJobsResponse, MigrationJob> @@ -263,6 +374,178 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> + LIST_PRIVATE_CONNECTIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPrivateConnectionsRequest injectToken( + ListPrivateConnectionsRequest payload, String token) { + return ListPrivateConnectionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPrivateConnectionsRequest injectPageSize( + ListPrivateConnectionsRequest payload, int pageSize) { + return ListPrivateConnectionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListPrivateConnectionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPrivateConnectionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListPrivateConnectionsResponse payload) { + return payload.getPrivateConnectionsList() == null + ? ImmutableList.of() + : payload.getPrivateConnectionsList(); + } + }; + + private static final PagedListDescriptor< + ListConversionWorkspacesRequest, ListConversionWorkspacesResponse, ConversionWorkspace> + LIST_CONVERSION_WORKSPACES_PAGE_STR_DESC = + new PagedListDescriptor< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ConversionWorkspace>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListConversionWorkspacesRequest injectToken( + ListConversionWorkspacesRequest payload, String token) { + return ListConversionWorkspacesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListConversionWorkspacesRequest injectPageSize( + ListConversionWorkspacesRequest payload, int pageSize) { + return ListConversionWorkspacesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListConversionWorkspacesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListConversionWorkspacesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListConversionWorkspacesResponse payload) { + return payload.getConversionWorkspacesList() == null + ? ImmutableList.of() + : payload.getConversionWorkspacesList(); + } + }; + + private static final PagedListDescriptor< + DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesResponse, DatabaseEntity> + DESCRIBE_DATABASE_ENTITIES_PAGE_STR_DESC = + new PagedListDescriptor< + DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesResponse, DatabaseEntity>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public DescribeDatabaseEntitiesRequest injectToken( + DescribeDatabaseEntitiesRequest payload, String token) { + return DescribeDatabaseEntitiesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public DescribeDatabaseEntitiesRequest injectPageSize( + DescribeDatabaseEntitiesRequest payload, int pageSize) { + return DescribeDatabaseEntitiesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(DescribeDatabaseEntitiesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(DescribeDatabaseEntitiesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + DescribeDatabaseEntitiesResponse payload) { + return payload.getDatabaseEntitiesList() == null + ? ImmutableList.of() + : payload.getDatabaseEntitiesList(); + } + }; + + private static final PagedListDescriptor + FETCH_STATIC_IPS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public FetchStaticIpsRequest injectToken(FetchStaticIpsRequest payload, String token) { + return FetchStaticIpsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public FetchStaticIpsRequest injectPageSize( + FetchStaticIpsRequest payload, int pageSize) { + return FetchStaticIpsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(FetchStaticIpsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(FetchStaticIpsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(FetchStaticIpsResponse payload) { + return payload.getStaticIpsList() == null + ? ImmutableList.of() + : payload.getStaticIpsList(); + } + }; + private static final PagedListResponseFactory< ListMigrationJobsRequest, ListMigrationJobsResponse, ListMigrationJobsPagedResponse> LIST_MIGRATION_JOBS_PAGE_STR_FACT = @@ -311,6 +594,104 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + LIST_PRIVATE_CONNECTIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListPrivateConnectionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection> + pageContext = + PageContext.create( + callable, LIST_PRIVATE_CONNECTIONS_PAGE_STR_DESC, request, context); + return ListPrivateConnectionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ListConversionWorkspacesPagedResponse> + LIST_CONVERSION_WORKSPACES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ListConversionWorkspacesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListConversionWorkspacesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ConversionWorkspace> + pageContext = + PageContext.create( + callable, LIST_CONVERSION_WORKSPACES_PAGE_STR_DESC, request, context); + return ListConversionWorkspacesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + DescribeDatabaseEntitiesRequest, + DescribeDatabaseEntitiesResponse, + DescribeDatabaseEntitiesPagedResponse> + DESCRIBE_DATABASE_ENTITIES_PAGE_STR_FACT = + new PagedListResponseFactory< + DescribeDatabaseEntitiesRequest, + DescribeDatabaseEntitiesResponse, + DescribeDatabaseEntitiesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + DescribeDatabaseEntitiesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + DescribeDatabaseEntitiesRequest, + DescribeDatabaseEntitiesResponse, + DatabaseEntity> + pageContext = + PageContext.create( + callable, DESCRIBE_DATABASE_ENTITIES_PAGE_STR_DESC, request, context); + return DescribeDatabaseEntitiesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + FETCH_STATIC_IPS_PAGE_STR_FACT = + new PagedListResponseFactory< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + FetchStaticIpsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, FETCH_STATIC_IPS_PAGE_STR_DESC, request, context); + return FetchStaticIpsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to listMigrationJobs. */ public PagedCallSettings< ListMigrationJobsRequest, ListMigrationJobsResponse, ListMigrationJobsPagedResponse> @@ -478,6 +859,205 @@ public UnaryCallSettings generateSshScriptS return deleteConnectionProfileOperationSettings; } + /** Returns the object with the settings used for calls to createPrivateConnection. */ + public UnaryCallSettings + createPrivateConnectionSettings() { + return createPrivateConnectionSettings; + } + + /** Returns the object with the settings used for calls to createPrivateConnection. */ + public OperationCallSettings + createPrivateConnectionOperationSettings() { + return createPrivateConnectionOperationSettings; + } + + /** Returns the object with the settings used for calls to getPrivateConnection. */ + public UnaryCallSettings + getPrivateConnectionSettings() { + return getPrivateConnectionSettings; + } + + /** Returns the object with the settings used for calls to listPrivateConnections. */ + public PagedCallSettings< + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + listPrivateConnectionsSettings() { + return listPrivateConnectionsSettings; + } + + /** Returns the object with the settings used for calls to deletePrivateConnection. */ + public UnaryCallSettings + deletePrivateConnectionSettings() { + return deletePrivateConnectionSettings; + } + + /** Returns the object with the settings used for calls to deletePrivateConnection. */ + public OperationCallSettings + deletePrivateConnectionOperationSettings() { + return deletePrivateConnectionOperationSettings; + } + + /** Returns the object with the settings used for calls to getConversionWorkspace. */ + public UnaryCallSettings + getConversionWorkspaceSettings() { + return getConversionWorkspaceSettings; + } + + /** Returns the object with the settings used for calls to listConversionWorkspaces. */ + public PagedCallSettings< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ListConversionWorkspacesPagedResponse> + listConversionWorkspacesSettings() { + return listConversionWorkspacesSettings; + } + + /** Returns the object with the settings used for calls to createConversionWorkspace. */ + public UnaryCallSettings + createConversionWorkspaceSettings() { + return createConversionWorkspaceSettings; + } + + /** Returns the object with the settings used for calls to createConversionWorkspace. */ + public OperationCallSettings< + CreateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + createConversionWorkspaceOperationSettings() { + return createConversionWorkspaceOperationSettings; + } + + /** Returns the object with the settings used for calls to updateConversionWorkspace. */ + public UnaryCallSettings + updateConversionWorkspaceSettings() { + return updateConversionWorkspaceSettings; + } + + /** Returns the object with the settings used for calls to updateConversionWorkspace. */ + public OperationCallSettings< + UpdateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + updateConversionWorkspaceOperationSettings() { + return updateConversionWorkspaceOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteConversionWorkspace. */ + public UnaryCallSettings + deleteConversionWorkspaceSettings() { + return deleteConversionWorkspaceSettings; + } + + /** Returns the object with the settings used for calls to deleteConversionWorkspace. */ + public OperationCallSettings + deleteConversionWorkspaceOperationSettings() { + return deleteConversionWorkspaceOperationSettings; + } + + /** Returns the object with the settings used for calls to seedConversionWorkspace. */ + public UnaryCallSettings + seedConversionWorkspaceSettings() { + return seedConversionWorkspaceSettings; + } + + /** Returns the object with the settings used for calls to seedConversionWorkspace. */ + public OperationCallSettings< + SeedConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + seedConversionWorkspaceOperationSettings() { + return seedConversionWorkspaceOperationSettings; + } + + /** Returns the object with the settings used for calls to importMappingRules. */ + public UnaryCallSettings importMappingRulesSettings() { + return importMappingRulesSettings; + } + + /** Returns the object with the settings used for calls to importMappingRules. */ + public OperationCallSettings + importMappingRulesOperationSettings() { + return importMappingRulesOperationSettings; + } + + /** Returns the object with the settings used for calls to convertConversionWorkspace. */ + public UnaryCallSettings + convertConversionWorkspaceSettings() { + return convertConversionWorkspaceSettings; + } + + /** Returns the object with the settings used for calls to convertConversionWorkspace. */ + public OperationCallSettings< + ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + convertConversionWorkspaceOperationSettings() { + return convertConversionWorkspaceOperationSettings; + } + + /** Returns the object with the settings used for calls to commitConversionWorkspace. */ + public UnaryCallSettings + commitConversionWorkspaceSettings() { + return commitConversionWorkspaceSettings; + } + + /** Returns the object with the settings used for calls to commitConversionWorkspace. */ + public OperationCallSettings< + CommitConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + commitConversionWorkspaceOperationSettings() { + return commitConversionWorkspaceOperationSettings; + } + + /** Returns the object with the settings used for calls to rollbackConversionWorkspace. */ + public UnaryCallSettings + rollbackConversionWorkspaceSettings() { + return rollbackConversionWorkspaceSettings; + } + + /** Returns the object with the settings used for calls to rollbackConversionWorkspace. */ + public OperationCallSettings< + RollbackConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + rollbackConversionWorkspaceOperationSettings() { + return rollbackConversionWorkspaceOperationSettings; + } + + /** Returns the object with the settings used for calls to applyConversionWorkspace. */ + public UnaryCallSettings + applyConversionWorkspaceSettings() { + return applyConversionWorkspaceSettings; + } + + /** Returns the object with the settings used for calls to applyConversionWorkspace. */ + public OperationCallSettings< + ApplyConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + applyConversionWorkspaceOperationSettings() { + return applyConversionWorkspaceOperationSettings; + } + + /** Returns the object with the settings used for calls to describeDatabaseEntities. */ + public PagedCallSettings< + DescribeDatabaseEntitiesRequest, + DescribeDatabaseEntitiesResponse, + DescribeDatabaseEntitiesPagedResponse> + describeDatabaseEntitiesSettings() { + return describeDatabaseEntitiesSettings; + } + + /** Returns the object with the settings used for calls to searchBackgroundJobs. */ + public UnaryCallSettings + searchBackgroundJobsSettings() { + return searchBackgroundJobsSettings; + } + + /** + * Returns the object with the settings used for calls to describeConversionWorkspaceRevisions. + */ + public UnaryCallSettings< + DescribeConversionWorkspaceRevisionsRequest, DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisionsSettings() { + return describeConversionWorkspaceRevisionsSettings; + } + + /** Returns the object with the settings used for calls to fetchStaticIps. */ + public PagedCallSettings< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + fetchStaticIpsSettings() { + return fetchStaticIpsSettings; + } + public DataMigrationServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -593,6 +1173,50 @@ protected DataMigrationServiceStubSettings(Builder settingsBuilder) throws IOExc deleteConnectionProfileSettings = settingsBuilder.deleteConnectionProfileSettings().build(); deleteConnectionProfileOperationSettings = settingsBuilder.deleteConnectionProfileOperationSettings().build(); + createPrivateConnectionSettings = settingsBuilder.createPrivateConnectionSettings().build(); + createPrivateConnectionOperationSettings = + settingsBuilder.createPrivateConnectionOperationSettings().build(); + getPrivateConnectionSettings = settingsBuilder.getPrivateConnectionSettings().build(); + listPrivateConnectionsSettings = settingsBuilder.listPrivateConnectionsSettings().build(); + deletePrivateConnectionSettings = settingsBuilder.deletePrivateConnectionSettings().build(); + deletePrivateConnectionOperationSettings = + settingsBuilder.deletePrivateConnectionOperationSettings().build(); + getConversionWorkspaceSettings = settingsBuilder.getConversionWorkspaceSettings().build(); + listConversionWorkspacesSettings = settingsBuilder.listConversionWorkspacesSettings().build(); + createConversionWorkspaceSettings = settingsBuilder.createConversionWorkspaceSettings().build(); + createConversionWorkspaceOperationSettings = + settingsBuilder.createConversionWorkspaceOperationSettings().build(); + updateConversionWorkspaceSettings = settingsBuilder.updateConversionWorkspaceSettings().build(); + updateConversionWorkspaceOperationSettings = + settingsBuilder.updateConversionWorkspaceOperationSettings().build(); + deleteConversionWorkspaceSettings = settingsBuilder.deleteConversionWorkspaceSettings().build(); + deleteConversionWorkspaceOperationSettings = + settingsBuilder.deleteConversionWorkspaceOperationSettings().build(); + seedConversionWorkspaceSettings = settingsBuilder.seedConversionWorkspaceSettings().build(); + seedConversionWorkspaceOperationSettings = + settingsBuilder.seedConversionWorkspaceOperationSettings().build(); + importMappingRulesSettings = settingsBuilder.importMappingRulesSettings().build(); + importMappingRulesOperationSettings = + settingsBuilder.importMappingRulesOperationSettings().build(); + convertConversionWorkspaceSettings = + settingsBuilder.convertConversionWorkspaceSettings().build(); + convertConversionWorkspaceOperationSettings = + settingsBuilder.convertConversionWorkspaceOperationSettings().build(); + commitConversionWorkspaceSettings = settingsBuilder.commitConversionWorkspaceSettings().build(); + commitConversionWorkspaceOperationSettings = + settingsBuilder.commitConversionWorkspaceOperationSettings().build(); + rollbackConversionWorkspaceSettings = + settingsBuilder.rollbackConversionWorkspaceSettings().build(); + rollbackConversionWorkspaceOperationSettings = + settingsBuilder.rollbackConversionWorkspaceOperationSettings().build(); + applyConversionWorkspaceSettings = settingsBuilder.applyConversionWorkspaceSettings().build(); + applyConversionWorkspaceOperationSettings = + settingsBuilder.applyConversionWorkspaceOperationSettings().build(); + describeDatabaseEntitiesSettings = settingsBuilder.describeDatabaseEntitiesSettings().build(); + searchBackgroundJobsSettings = settingsBuilder.searchBackgroundJobsSettings().build(); + describeConversionWorkspaceRevisionsSettings = + settingsBuilder.describeConversionWorkspaceRevisionsSettings().build(); + fetchStaticIpsSettings = settingsBuilder.fetchStaticIpsSettings().build(); } /** Builder for DataMigrationServiceStubSettings. */ @@ -672,6 +1296,90 @@ public static class Builder private final OperationCallSettings.Builder< DeleteConnectionProfileRequest, Empty, OperationMetadata> deleteConnectionProfileOperationSettings; + private final UnaryCallSettings.Builder + createPrivateConnectionSettings; + private final OperationCallSettings.Builder< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationSettings; + private final UnaryCallSettings.Builder + getPrivateConnectionSettings; + private final PagedCallSettings.Builder< + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + listPrivateConnectionsSettings; + private final UnaryCallSettings.Builder + deletePrivateConnectionSettings; + private final OperationCallSettings.Builder< + DeletePrivateConnectionRequest, Empty, OperationMetadata> + deletePrivateConnectionOperationSettings; + private final UnaryCallSettings.Builder + getConversionWorkspaceSettings; + private final PagedCallSettings.Builder< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ListConversionWorkspacesPagedResponse> + listConversionWorkspacesSettings; + private final UnaryCallSettings.Builder + createConversionWorkspaceSettings; + private final OperationCallSettings.Builder< + CreateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + createConversionWorkspaceOperationSettings; + private final UnaryCallSettings.Builder + updateConversionWorkspaceSettings; + private final OperationCallSettings.Builder< + UpdateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + updateConversionWorkspaceOperationSettings; + private final UnaryCallSettings.Builder + deleteConversionWorkspaceSettings; + private final OperationCallSettings.Builder< + DeleteConversionWorkspaceRequest, Empty, OperationMetadata> + deleteConversionWorkspaceOperationSettings; + private final UnaryCallSettings.Builder + seedConversionWorkspaceSettings; + private final OperationCallSettings.Builder< + SeedConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + seedConversionWorkspaceOperationSettings; + private final UnaryCallSettings.Builder + importMappingRulesSettings; + private final OperationCallSettings.Builder< + ImportMappingRulesRequest, ConversionWorkspace, OperationMetadata> + importMappingRulesOperationSettings; + private final UnaryCallSettings.Builder + convertConversionWorkspaceSettings; + private final OperationCallSettings.Builder< + ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + convertConversionWorkspaceOperationSettings; + private final UnaryCallSettings.Builder + commitConversionWorkspaceSettings; + private final OperationCallSettings.Builder< + CommitConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + commitConversionWorkspaceOperationSettings; + private final UnaryCallSettings.Builder + rollbackConversionWorkspaceSettings; + private final OperationCallSettings.Builder< + RollbackConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + rollbackConversionWorkspaceOperationSettings; + private final UnaryCallSettings.Builder + applyConversionWorkspaceSettings; + private final OperationCallSettings.Builder< + ApplyConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + applyConversionWorkspaceOperationSettings; + private final PagedCallSettings.Builder< + DescribeDatabaseEntitiesRequest, + DescribeDatabaseEntitiesResponse, + DescribeDatabaseEntitiesPagedResponse> + describeDatabaseEntitiesSettings; + private final UnaryCallSettings.Builder< + SearchBackgroundJobsRequest, SearchBackgroundJobsResponse> + searchBackgroundJobsSettings; + private final UnaryCallSettings.Builder< + DescribeConversionWorkspaceRevisionsRequest, + DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisionsSettings; + private final PagedCallSettings.Builder< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + fetchStaticIpsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -736,6 +1444,40 @@ protected Builder(ClientContext clientContext) { updateConnectionProfileOperationSettings = OperationCallSettings.newBuilder(); deleteConnectionProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteConnectionProfileOperationSettings = OperationCallSettings.newBuilder(); + createPrivateConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createPrivateConnectionOperationSettings = OperationCallSettings.newBuilder(); + getPrivateConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listPrivateConnectionsSettings = + PagedCallSettings.newBuilder(LIST_PRIVATE_CONNECTIONS_PAGE_STR_FACT); + deletePrivateConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deletePrivateConnectionOperationSettings = OperationCallSettings.newBuilder(); + getConversionWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listConversionWorkspacesSettings = + PagedCallSettings.newBuilder(LIST_CONVERSION_WORKSPACES_PAGE_STR_FACT); + createConversionWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createConversionWorkspaceOperationSettings = OperationCallSettings.newBuilder(); + updateConversionWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateConversionWorkspaceOperationSettings = OperationCallSettings.newBuilder(); + deleteConversionWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteConversionWorkspaceOperationSettings = OperationCallSettings.newBuilder(); + seedConversionWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + seedConversionWorkspaceOperationSettings = OperationCallSettings.newBuilder(); + importMappingRulesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importMappingRulesOperationSettings = OperationCallSettings.newBuilder(); + convertConversionWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + convertConversionWorkspaceOperationSettings = OperationCallSettings.newBuilder(); + commitConversionWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + commitConversionWorkspaceOperationSettings = OperationCallSettings.newBuilder(); + rollbackConversionWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + rollbackConversionWorkspaceOperationSettings = OperationCallSettings.newBuilder(); + applyConversionWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + applyConversionWorkspaceOperationSettings = OperationCallSettings.newBuilder(); + describeDatabaseEntitiesSettings = + PagedCallSettings.newBuilder(DESCRIBE_DATABASE_ENTITIES_PAGE_STR_FACT); + searchBackgroundJobsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + describeConversionWorkspaceRevisionsSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + fetchStaticIpsSettings = PagedCallSettings.newBuilder(FETCH_STATIC_IPS_PAGE_STR_FACT); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -755,7 +1497,26 @@ protected Builder(ClientContext clientContext) { getConnectionProfileSettings, createConnectionProfileSettings, updateConnectionProfileSettings, - deleteConnectionProfileSettings); + deleteConnectionProfileSettings, + createPrivateConnectionSettings, + getPrivateConnectionSettings, + listPrivateConnectionsSettings, + deletePrivateConnectionSettings, + getConversionWorkspaceSettings, + listConversionWorkspacesSettings, + createConversionWorkspaceSettings, + updateConversionWorkspaceSettings, + deleteConversionWorkspaceSettings, + seedConversionWorkspaceSettings, + importMappingRulesSettings, + convertConversionWorkspaceSettings, + commitConversionWorkspaceSettings, + rollbackConversionWorkspaceSettings, + applyConversionWorkspaceSettings, + describeDatabaseEntitiesSettings, + searchBackgroundJobsSettings, + describeConversionWorkspaceRevisionsSettings, + fetchStaticIpsSettings); initDefaults(this); } @@ -801,6 +1562,49 @@ protected Builder(DataMigrationServiceStubSettings settings) { deleteConnectionProfileSettings = settings.deleteConnectionProfileSettings.toBuilder(); deleteConnectionProfileOperationSettings = settings.deleteConnectionProfileOperationSettings.toBuilder(); + createPrivateConnectionSettings = settings.createPrivateConnectionSettings.toBuilder(); + createPrivateConnectionOperationSettings = + settings.createPrivateConnectionOperationSettings.toBuilder(); + getPrivateConnectionSettings = settings.getPrivateConnectionSettings.toBuilder(); + listPrivateConnectionsSettings = settings.listPrivateConnectionsSettings.toBuilder(); + deletePrivateConnectionSettings = settings.deletePrivateConnectionSettings.toBuilder(); + deletePrivateConnectionOperationSettings = + settings.deletePrivateConnectionOperationSettings.toBuilder(); + getConversionWorkspaceSettings = settings.getConversionWorkspaceSettings.toBuilder(); + listConversionWorkspacesSettings = settings.listConversionWorkspacesSettings.toBuilder(); + createConversionWorkspaceSettings = settings.createConversionWorkspaceSettings.toBuilder(); + createConversionWorkspaceOperationSettings = + settings.createConversionWorkspaceOperationSettings.toBuilder(); + updateConversionWorkspaceSettings = settings.updateConversionWorkspaceSettings.toBuilder(); + updateConversionWorkspaceOperationSettings = + settings.updateConversionWorkspaceOperationSettings.toBuilder(); + deleteConversionWorkspaceSettings = settings.deleteConversionWorkspaceSettings.toBuilder(); + deleteConversionWorkspaceOperationSettings = + settings.deleteConversionWorkspaceOperationSettings.toBuilder(); + seedConversionWorkspaceSettings = settings.seedConversionWorkspaceSettings.toBuilder(); + seedConversionWorkspaceOperationSettings = + settings.seedConversionWorkspaceOperationSettings.toBuilder(); + importMappingRulesSettings = settings.importMappingRulesSettings.toBuilder(); + importMappingRulesOperationSettings = + settings.importMappingRulesOperationSettings.toBuilder(); + convertConversionWorkspaceSettings = settings.convertConversionWorkspaceSettings.toBuilder(); + convertConversionWorkspaceOperationSettings = + settings.convertConversionWorkspaceOperationSettings.toBuilder(); + commitConversionWorkspaceSettings = settings.commitConversionWorkspaceSettings.toBuilder(); + commitConversionWorkspaceOperationSettings = + settings.commitConversionWorkspaceOperationSettings.toBuilder(); + rollbackConversionWorkspaceSettings = + settings.rollbackConversionWorkspaceSettings.toBuilder(); + rollbackConversionWorkspaceOperationSettings = + settings.rollbackConversionWorkspaceOperationSettings.toBuilder(); + applyConversionWorkspaceSettings = settings.applyConversionWorkspaceSettings.toBuilder(); + applyConversionWorkspaceOperationSettings = + settings.applyConversionWorkspaceOperationSettings.toBuilder(); + describeDatabaseEntitiesSettings = settings.describeDatabaseEntitiesSettings.toBuilder(); + searchBackgroundJobsSettings = settings.searchBackgroundJobsSettings.toBuilder(); + describeConversionWorkspaceRevisionsSettings = + settings.describeConversionWorkspaceRevisionsSettings.toBuilder(); + fetchStaticIpsSettings = settings.fetchStaticIpsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -820,7 +1624,26 @@ protected Builder(DataMigrationServiceStubSettings settings) { getConnectionProfileSettings, createConnectionProfileSettings, updateConnectionProfileSettings, - deleteConnectionProfileSettings); + deleteConnectionProfileSettings, + createPrivateConnectionSettings, + getPrivateConnectionSettings, + listPrivateConnectionsSettings, + deletePrivateConnectionSettings, + getConversionWorkspaceSettings, + listConversionWorkspacesSettings, + createConversionWorkspaceSettings, + updateConversionWorkspaceSettings, + deleteConversionWorkspaceSettings, + seedConversionWorkspaceSettings, + importMappingRulesSettings, + convertConversionWorkspaceSettings, + commitConversionWorkspaceSettings, + rollbackConversionWorkspaceSettings, + applyConversionWorkspaceSettings, + describeDatabaseEntitiesSettings, + searchBackgroundJobsSettings, + describeConversionWorkspaceRevisionsSettings, + fetchStaticIpsSettings); } private static Builder createDefault() { @@ -923,24 +1746,119 @@ private static Builder initDefaults(Builder builder) { .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder - .createMigrationJobOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(MigrationJob.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) + .createPrivateConnectionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getPrivateConnectionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listPrivateConnectionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deletePrivateConnectionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getConversionWorkspaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listConversionWorkspacesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createConversionWorkspaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateConversionWorkspaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteConversionWorkspaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .seedConversionWorkspaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .importMappingRulesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .convertConversionWorkspaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .commitConversionWorkspaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .rollbackConversionWorkspaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .applyConversionWorkspaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .describeDatabaseEntitiesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .searchBackgroundJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .describeConversionWorkspaceRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .fetchStaticIpsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createMigrationJobOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(MigrationJob.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) @@ -1210,6 +2128,276 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .createPrivateConnectionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(PrivateConnection.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deletePrivateConnectionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createConversionWorkspaceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ConversionWorkspace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateConversionWorkspaceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ConversionWorkspace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteConversionWorkspaceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .seedConversionWorkspaceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ConversionWorkspace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .importMappingRulesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ConversionWorkspace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .convertConversionWorkspaceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ConversionWorkspace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .commitConversionWorkspaceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ConversionWorkspace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .rollbackConversionWorkspaceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ConversionWorkspace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .applyConversionWorkspaceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ConversionWorkspace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -1434,6 +2622,231 @@ public Builder applyToAllUnaryMethods( return deleteConnectionProfileOperationSettings; } + /** Returns the builder for the settings used for calls to createPrivateConnection. */ + public UnaryCallSettings.Builder + createPrivateConnectionSettings() { + return createPrivateConnectionSettings; + } + + /** Returns the builder for the settings used for calls to createPrivateConnection. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationSettings() { + return createPrivateConnectionOperationSettings; + } + + /** Returns the builder for the settings used for calls to getPrivateConnection. */ + public UnaryCallSettings.Builder + getPrivateConnectionSettings() { + return getPrivateConnectionSettings; + } + + /** Returns the builder for the settings used for calls to listPrivateConnections. */ + public PagedCallSettings.Builder< + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + listPrivateConnectionsSettings() { + return listPrivateConnectionsSettings; + } + + /** Returns the builder for the settings used for calls to deletePrivateConnection. */ + public UnaryCallSettings.Builder + deletePrivateConnectionSettings() { + return deletePrivateConnectionSettings; + } + + /** Returns the builder for the settings used for calls to deletePrivateConnection. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deletePrivateConnectionOperationSettings() { + return deletePrivateConnectionOperationSettings; + } + + /** Returns the builder for the settings used for calls to getConversionWorkspace. */ + public UnaryCallSettings.Builder + getConversionWorkspaceSettings() { + return getConversionWorkspaceSettings; + } + + /** Returns the builder for the settings used for calls to listConversionWorkspaces. */ + public PagedCallSettings.Builder< + ListConversionWorkspacesRequest, + ListConversionWorkspacesResponse, + ListConversionWorkspacesPagedResponse> + listConversionWorkspacesSettings() { + return listConversionWorkspacesSettings; + } + + /** Returns the builder for the settings used for calls to createConversionWorkspace. */ + public UnaryCallSettings.Builder + createConversionWorkspaceSettings() { + return createConversionWorkspaceSettings; + } + + /** Returns the builder for the settings used for calls to createConversionWorkspace. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + createConversionWorkspaceOperationSettings() { + return createConversionWorkspaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateConversionWorkspace. */ + public UnaryCallSettings.Builder + updateConversionWorkspaceSettings() { + return updateConversionWorkspaceSettings; + } + + /** Returns the builder for the settings used for calls to updateConversionWorkspace. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + updateConversionWorkspaceOperationSettings() { + return updateConversionWorkspaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteConversionWorkspace. */ + public UnaryCallSettings.Builder + deleteConversionWorkspaceSettings() { + return deleteConversionWorkspaceSettings; + } + + /** Returns the builder for the settings used for calls to deleteConversionWorkspace. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteConversionWorkspaceOperationSettings() { + return deleteConversionWorkspaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to seedConversionWorkspace. */ + public UnaryCallSettings.Builder + seedConversionWorkspaceSettings() { + return seedConversionWorkspaceSettings; + } + + /** Returns the builder for the settings used for calls to seedConversionWorkspace. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + SeedConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + seedConversionWorkspaceOperationSettings() { + return seedConversionWorkspaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to importMappingRules. */ + public UnaryCallSettings.Builder + importMappingRulesSettings() { + return importMappingRulesSettings; + } + + /** Returns the builder for the settings used for calls to importMappingRules. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + ImportMappingRulesRequest, ConversionWorkspace, OperationMetadata> + importMappingRulesOperationSettings() { + return importMappingRulesOperationSettings; + } + + /** Returns the builder for the settings used for calls to convertConversionWorkspace. */ + public UnaryCallSettings.Builder + convertConversionWorkspaceSettings() { + return convertConversionWorkspaceSettings; + } + + /** Returns the builder for the settings used for calls to convertConversionWorkspace. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + convertConversionWorkspaceOperationSettings() { + return convertConversionWorkspaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to commitConversionWorkspace. */ + public UnaryCallSettings.Builder + commitConversionWorkspaceSettings() { + return commitConversionWorkspaceSettings; + } + + /** Returns the builder for the settings used for calls to commitConversionWorkspace. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CommitConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + commitConversionWorkspaceOperationSettings() { + return commitConversionWorkspaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to rollbackConversionWorkspace. */ + public UnaryCallSettings.Builder + rollbackConversionWorkspaceSettings() { + return rollbackConversionWorkspaceSettings; + } + + /** Returns the builder for the settings used for calls to rollbackConversionWorkspace. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + RollbackConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + rollbackConversionWorkspaceOperationSettings() { + return rollbackConversionWorkspaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to applyConversionWorkspace. */ + public UnaryCallSettings.Builder + applyConversionWorkspaceSettings() { + return applyConversionWorkspaceSettings; + } + + /** Returns the builder for the settings used for calls to applyConversionWorkspace. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + ApplyConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + applyConversionWorkspaceOperationSettings() { + return applyConversionWorkspaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to describeDatabaseEntities. */ + public PagedCallSettings.Builder< + DescribeDatabaseEntitiesRequest, + DescribeDatabaseEntitiesResponse, + DescribeDatabaseEntitiesPagedResponse> + describeDatabaseEntitiesSettings() { + return describeDatabaseEntitiesSettings; + } + + /** Returns the builder for the settings used for calls to searchBackgroundJobs. */ + public UnaryCallSettings.Builder + searchBackgroundJobsSettings() { + return searchBackgroundJobsSettings; + } + + /** + * Returns the builder for the settings used for calls to describeConversionWorkspaceRevisions. + */ + public UnaryCallSettings.Builder< + DescribeConversionWorkspaceRevisionsRequest, + DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisionsSettings() { + return describeConversionWorkspaceRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to fetchStaticIps. */ + public PagedCallSettings.Builder< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + fetchStaticIpsSettings() { + return fetchStaticIpsSettings; + } + @Override public DataMigrationServiceStubSettings build() throws IOException { return new DataMigrationServiceStubSettings(this); diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java index 4933ad1a9669..42289c6dad35 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/GrpcDataMigrationServiceStub.java @@ -16,8 +16,12 @@ package com.google.cloud.clouddms.v1.stub; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.DescribeDatabaseEntitiesPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.FetchStaticIpsPagedResponse; import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConnectionProfilesPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConversionWorkspacesPagedResponse; import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -26,27 +30,54 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.ConnectionProfile; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest; +import com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.CreateMigrationJobRequest; +import com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest; import com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest; +import com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest; +import com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest; +import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest; +import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse; +import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest; +import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse; +import com.google.cloud.clouddms.v1.FetchStaticIpsRequest; +import com.google.cloud.clouddms.v1.FetchStaticIpsResponse; import com.google.cloud.clouddms.v1.GenerateSshScriptRequest; import com.google.cloud.clouddms.v1.GetConnectionProfileRequest; +import com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.GetMigrationJobRequest; +import com.google.cloud.clouddms.v1.GetPrivateConnectionRequest; +import com.google.cloud.clouddms.v1.ImportMappingRulesRequest; import com.google.cloud.clouddms.v1.ListConnectionProfilesRequest; import com.google.cloud.clouddms.v1.ListConnectionProfilesResponse; +import com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest; +import com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse; import com.google.cloud.clouddms.v1.ListMigrationJobsRequest; import com.google.cloud.clouddms.v1.ListMigrationJobsResponse; +import com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest; +import com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse; import com.google.cloud.clouddms.v1.MigrationJob; import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.PrivateConnection; import com.google.cloud.clouddms.v1.PromoteMigrationJobRequest; import com.google.cloud.clouddms.v1.RestartMigrationJobRequest; import com.google.cloud.clouddms.v1.ResumeMigrationJobRequest; +import com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest; +import com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse; +import com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.SshScript; import com.google.cloud.clouddms.v1.StartMigrationJobRequest; import com.google.cloud.clouddms.v1.StopMigrationJobRequest; import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest; +import com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest; import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest; import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest; import com.google.common.collect.ImmutableMap; @@ -248,6 +279,232 @@ public class GrpcDataMigrationServiceStub extends DataMigrationServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + createPrivateConnectionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/CreatePrivateConnection") + .setRequestMarshaller( + ProtoUtils.marshaller(CreatePrivateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getPrivateConnectionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/GetPrivateConnection") + .setRequestMarshaller( + ProtoUtils.marshaller(GetPrivateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PrivateConnection.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse> + listPrivateConnectionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/ListPrivateConnections") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPrivateConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPrivateConnectionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deletePrivateConnectionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/DeletePrivateConnection") + .setRequestMarshaller( + ProtoUtils.marshaller(DeletePrivateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getConversionWorkspaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/GetConversionWorkspace") + .setRequestMarshaller( + ProtoUtils.marshaller(GetConversionWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ConversionWorkspace.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListConversionWorkspacesRequest, ListConversionWorkspacesResponse> + listConversionWorkspacesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/ListConversionWorkspaces") + .setRequestMarshaller( + ProtoUtils.marshaller(ListConversionWorkspacesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListConversionWorkspacesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createConversionWorkspaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/CreateConversionWorkspace") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateConversionWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateConversionWorkspaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/UpdateConversionWorkspace") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateConversionWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteConversionWorkspaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/DeleteConversionWorkspace") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteConversionWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + seedConversionWorkspaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/SeedConversionWorkspace") + .setRequestMarshaller( + ProtoUtils.marshaller(SeedConversionWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + importMappingRulesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/ImportMappingRules") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportMappingRulesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + convertConversionWorkspaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/ConvertConversionWorkspace") + .setRequestMarshaller( + ProtoUtils.marshaller(ConvertConversionWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + commitConversionWorkspaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/CommitConversionWorkspace") + .setRequestMarshaller( + ProtoUtils.marshaller(CommitConversionWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + rollbackConversionWorkspaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/RollbackConversionWorkspace") + .setRequestMarshaller( + ProtoUtils.marshaller(RollbackConversionWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + applyConversionWorkspaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/ApplyConversionWorkspace") + .setRequestMarshaller( + ProtoUtils.marshaller(ApplyConversionWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesResponse> + describeDatabaseEntitiesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/DescribeDatabaseEntities") + .setRequestMarshaller( + ProtoUtils.marshaller(DescribeDatabaseEntitiesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DescribeDatabaseEntitiesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + searchBackgroundJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/SearchBackgroundJobs") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchBackgroundJobsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchBackgroundJobsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + DescribeConversionWorkspaceRevisionsRequest, DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisionsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.clouddms.v1.DataMigrationService/DescribeConversionWorkspaceRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller( + DescribeConversionWorkspaceRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + DescribeConversionWorkspaceRevisionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + fetchStaticIpsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/FetchStaticIps") + .setRequestMarshaller( + ProtoUtils.marshaller(FetchStaticIpsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FetchStaticIpsResponse.getDefaultInstance())) + .build(); + private final UnaryCallable listMigrationJobsCallable; private final UnaryCallable @@ -301,6 +558,83 @@ public class GrpcDataMigrationServiceStub extends DataMigrationServiceStub { deleteConnectionProfileCallable; private final OperationCallable deleteConnectionProfileOperationCallable; + private final UnaryCallable + createPrivateConnectionCallable; + private final OperationCallable< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationCallable; + private final UnaryCallable + getPrivateConnectionCallable; + private final UnaryCallable + listPrivateConnectionsCallable; + private final UnaryCallable + listPrivateConnectionsPagedCallable; + private final UnaryCallable + deletePrivateConnectionCallable; + private final OperationCallable + deletePrivateConnectionOperationCallable; + private final UnaryCallable + getConversionWorkspaceCallable; + private final UnaryCallable + listConversionWorkspacesCallable; + private final UnaryCallable< + ListConversionWorkspacesRequest, ListConversionWorkspacesPagedResponse> + listConversionWorkspacesPagedCallable; + private final UnaryCallable + createConversionWorkspaceCallable; + private final OperationCallable< + CreateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + createConversionWorkspaceOperationCallable; + private final UnaryCallable + updateConversionWorkspaceCallable; + private final OperationCallable< + UpdateConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + updateConversionWorkspaceOperationCallable; + private final UnaryCallable + deleteConversionWorkspaceCallable; + private final OperationCallable + deleteConversionWorkspaceOperationCallable; + private final UnaryCallable + seedConversionWorkspaceCallable; + private final OperationCallable< + SeedConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + seedConversionWorkspaceOperationCallable; + private final UnaryCallable importMappingRulesCallable; + private final OperationCallable + importMappingRulesOperationCallable; + private final UnaryCallable + convertConversionWorkspaceCallable; + private final OperationCallable< + ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + convertConversionWorkspaceOperationCallable; + private final UnaryCallable + commitConversionWorkspaceCallable; + private final OperationCallable< + CommitConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + commitConversionWorkspaceOperationCallable; + private final UnaryCallable + rollbackConversionWorkspaceCallable; + private final OperationCallable< + RollbackConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + rollbackConversionWorkspaceOperationCallable; + private final UnaryCallable + applyConversionWorkspaceCallable; + private final OperationCallable< + ApplyConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + applyConversionWorkspaceOperationCallable; + private final UnaryCallable + describeDatabaseEntitiesCallable; + private final UnaryCallable< + DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesPagedResponse> + describeDatabaseEntitiesPagedCallable; + private final UnaryCallable + searchBackgroundJobsCallable; + private final UnaryCallable< + DescribeConversionWorkspaceRevisionsRequest, DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisionsCallable; + private final UnaryCallable fetchStaticIpsCallable; + private final UnaryCallable + fetchStaticIpsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -526,6 +860,227 @@ protected GrpcDataMigrationServiceStub( return params.build(); }) .build(); + GrpcCallSettings + createPrivateConnectionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createPrivateConnectionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getPrivateConnectionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPrivateConnectionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listPrivateConnectionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listPrivateConnectionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + deletePrivateConnectionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deletePrivateConnectionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + getConversionWorkspaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getConversionWorkspaceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listConversionWorkspacesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listConversionWorkspacesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + createConversionWorkspaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createConversionWorkspaceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + updateConversionWorkspaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateConversionWorkspaceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "conversion_workspace.name", + String.valueOf(request.getConversionWorkspace().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + deleteConversionWorkspaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteConversionWorkspaceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + seedConversionWorkspaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(seedConversionWorkspaceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings importMappingRulesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importMappingRulesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + convertConversionWorkspaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(convertConversionWorkspaceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + commitConversionWorkspaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(commitConversionWorkspaceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + rollbackConversionWorkspaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(rollbackConversionWorkspaceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + applyConversionWorkspaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(applyConversionWorkspaceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + describeDatabaseEntitiesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(describeDatabaseEntitiesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "conversion_workspace", String.valueOf(request.getConversionWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings + searchBackgroundJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchBackgroundJobsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "conversion_workspace", String.valueOf(request.getConversionWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings< + DescribeConversionWorkspaceRevisionsRequest, + DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisionsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(describeConversionWorkspaceRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "conversion_workspace", String.valueOf(request.getConversionWorkspace())); + return params.build(); + }) + .build(); + GrpcCallSettings + fetchStaticIpsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(fetchStaticIpsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); this.listMigrationJobsCallable = callableFactory.createUnaryCallable( @@ -690,6 +1245,183 @@ protected GrpcDataMigrationServiceStub( settings.deleteConnectionProfileOperationSettings(), clientContext, operationsStub); + this.createPrivateConnectionCallable = + callableFactory.createUnaryCallable( + createPrivateConnectionTransportSettings, + settings.createPrivateConnectionSettings(), + clientContext); + this.createPrivateConnectionOperationCallable = + callableFactory.createOperationCallable( + createPrivateConnectionTransportSettings, + settings.createPrivateConnectionOperationSettings(), + clientContext, + operationsStub); + this.getPrivateConnectionCallable = + callableFactory.createUnaryCallable( + getPrivateConnectionTransportSettings, + settings.getPrivateConnectionSettings(), + clientContext); + this.listPrivateConnectionsCallable = + callableFactory.createUnaryCallable( + listPrivateConnectionsTransportSettings, + settings.listPrivateConnectionsSettings(), + clientContext); + this.listPrivateConnectionsPagedCallable = + callableFactory.createPagedCallable( + listPrivateConnectionsTransportSettings, + settings.listPrivateConnectionsSettings(), + clientContext); + this.deletePrivateConnectionCallable = + callableFactory.createUnaryCallable( + deletePrivateConnectionTransportSettings, + settings.deletePrivateConnectionSettings(), + clientContext); + this.deletePrivateConnectionOperationCallable = + callableFactory.createOperationCallable( + deletePrivateConnectionTransportSettings, + settings.deletePrivateConnectionOperationSettings(), + clientContext, + operationsStub); + this.getConversionWorkspaceCallable = + callableFactory.createUnaryCallable( + getConversionWorkspaceTransportSettings, + settings.getConversionWorkspaceSettings(), + clientContext); + this.listConversionWorkspacesCallable = + callableFactory.createUnaryCallable( + listConversionWorkspacesTransportSettings, + settings.listConversionWorkspacesSettings(), + clientContext); + this.listConversionWorkspacesPagedCallable = + callableFactory.createPagedCallable( + listConversionWorkspacesTransportSettings, + settings.listConversionWorkspacesSettings(), + clientContext); + this.createConversionWorkspaceCallable = + callableFactory.createUnaryCallable( + createConversionWorkspaceTransportSettings, + settings.createConversionWorkspaceSettings(), + clientContext); + this.createConversionWorkspaceOperationCallable = + callableFactory.createOperationCallable( + createConversionWorkspaceTransportSettings, + settings.createConversionWorkspaceOperationSettings(), + clientContext, + operationsStub); + this.updateConversionWorkspaceCallable = + callableFactory.createUnaryCallable( + updateConversionWorkspaceTransportSettings, + settings.updateConversionWorkspaceSettings(), + clientContext); + this.updateConversionWorkspaceOperationCallable = + callableFactory.createOperationCallable( + updateConversionWorkspaceTransportSettings, + settings.updateConversionWorkspaceOperationSettings(), + clientContext, + operationsStub); + this.deleteConversionWorkspaceCallable = + callableFactory.createUnaryCallable( + deleteConversionWorkspaceTransportSettings, + settings.deleteConversionWorkspaceSettings(), + clientContext); + this.deleteConversionWorkspaceOperationCallable = + callableFactory.createOperationCallable( + deleteConversionWorkspaceTransportSettings, + settings.deleteConversionWorkspaceOperationSettings(), + clientContext, + operationsStub); + this.seedConversionWorkspaceCallable = + callableFactory.createUnaryCallable( + seedConversionWorkspaceTransportSettings, + settings.seedConversionWorkspaceSettings(), + clientContext); + this.seedConversionWorkspaceOperationCallable = + callableFactory.createOperationCallable( + seedConversionWorkspaceTransportSettings, + settings.seedConversionWorkspaceOperationSettings(), + clientContext, + operationsStub); + this.importMappingRulesCallable = + callableFactory.createUnaryCallable( + importMappingRulesTransportSettings, + settings.importMappingRulesSettings(), + clientContext); + this.importMappingRulesOperationCallable = + callableFactory.createOperationCallable( + importMappingRulesTransportSettings, + settings.importMappingRulesOperationSettings(), + clientContext, + operationsStub); + this.convertConversionWorkspaceCallable = + callableFactory.createUnaryCallable( + convertConversionWorkspaceTransportSettings, + settings.convertConversionWorkspaceSettings(), + clientContext); + this.convertConversionWorkspaceOperationCallable = + callableFactory.createOperationCallable( + convertConversionWorkspaceTransportSettings, + settings.convertConversionWorkspaceOperationSettings(), + clientContext, + operationsStub); + this.commitConversionWorkspaceCallable = + callableFactory.createUnaryCallable( + commitConversionWorkspaceTransportSettings, + settings.commitConversionWorkspaceSettings(), + clientContext); + this.commitConversionWorkspaceOperationCallable = + callableFactory.createOperationCallable( + commitConversionWorkspaceTransportSettings, + settings.commitConversionWorkspaceOperationSettings(), + clientContext, + operationsStub); + this.rollbackConversionWorkspaceCallable = + callableFactory.createUnaryCallable( + rollbackConversionWorkspaceTransportSettings, + settings.rollbackConversionWorkspaceSettings(), + clientContext); + this.rollbackConversionWorkspaceOperationCallable = + callableFactory.createOperationCallable( + rollbackConversionWorkspaceTransportSettings, + settings.rollbackConversionWorkspaceOperationSettings(), + clientContext, + operationsStub); + this.applyConversionWorkspaceCallable = + callableFactory.createUnaryCallable( + applyConversionWorkspaceTransportSettings, + settings.applyConversionWorkspaceSettings(), + clientContext); + this.applyConversionWorkspaceOperationCallable = + callableFactory.createOperationCallable( + applyConversionWorkspaceTransportSettings, + settings.applyConversionWorkspaceOperationSettings(), + clientContext, + operationsStub); + this.describeDatabaseEntitiesCallable = + callableFactory.createUnaryCallable( + describeDatabaseEntitiesTransportSettings, + settings.describeDatabaseEntitiesSettings(), + clientContext); + this.describeDatabaseEntitiesPagedCallable = + callableFactory.createPagedCallable( + describeDatabaseEntitiesTransportSettings, + settings.describeDatabaseEntitiesSettings(), + clientContext); + this.searchBackgroundJobsCallable = + callableFactory.createUnaryCallable( + searchBackgroundJobsTransportSettings, + settings.searchBackgroundJobsSettings(), + clientContext); + this.describeConversionWorkspaceRevisionsCallable = + callableFactory.createUnaryCallable( + describeConversionWorkspaceRevisionsTransportSettings, + settings.describeConversionWorkspaceRevisionsSettings(), + clientContext); + this.fetchStaticIpsCallable = + callableFactory.createUnaryCallable( + fetchStaticIpsTransportSettings, settings.fetchStaticIpsSettings(), clientContext); + this.fetchStaticIpsPagedCallable = + callableFactory.createPagedCallable( + fetchStaticIpsTransportSettings, settings.fetchStaticIpsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -874,6 +1606,211 @@ public UnaryCallable generateSshScriptCalla return deleteConnectionProfileOperationCallable; } + @Override + public UnaryCallable + createPrivateConnectionCallable() { + return createPrivateConnectionCallable; + } + + @Override + public OperationCallable + createPrivateConnectionOperationCallable() { + return createPrivateConnectionOperationCallable; + } + + @Override + public UnaryCallable + getPrivateConnectionCallable() { + return getPrivateConnectionCallable; + } + + @Override + public UnaryCallable + listPrivateConnectionsCallable() { + return listPrivateConnectionsCallable; + } + + @Override + public UnaryCallable + listPrivateConnectionsPagedCallable() { + return listPrivateConnectionsPagedCallable; + } + + @Override + public UnaryCallable + deletePrivateConnectionCallable() { + return deletePrivateConnectionCallable; + } + + @Override + public OperationCallable + deletePrivateConnectionOperationCallable() { + return deletePrivateConnectionOperationCallable; + } + + @Override + public UnaryCallable + getConversionWorkspaceCallable() { + return getConversionWorkspaceCallable; + } + + @Override + public UnaryCallable + listConversionWorkspacesCallable() { + return listConversionWorkspacesCallable; + } + + @Override + public UnaryCallable + listConversionWorkspacesPagedCallable() { + return listConversionWorkspacesPagedCallable; + } + + @Override + public UnaryCallable + createConversionWorkspaceCallable() { + return createConversionWorkspaceCallable; + } + + @Override + public OperationCallable + createConversionWorkspaceOperationCallable() { + return createConversionWorkspaceOperationCallable; + } + + @Override + public UnaryCallable + updateConversionWorkspaceCallable() { + return updateConversionWorkspaceCallable; + } + + @Override + public OperationCallable + updateConversionWorkspaceOperationCallable() { + return updateConversionWorkspaceOperationCallable; + } + + @Override + public UnaryCallable + deleteConversionWorkspaceCallable() { + return deleteConversionWorkspaceCallable; + } + + @Override + public OperationCallable + deleteConversionWorkspaceOperationCallable() { + return deleteConversionWorkspaceOperationCallable; + } + + @Override + public UnaryCallable + seedConversionWorkspaceCallable() { + return seedConversionWorkspaceCallable; + } + + @Override + public OperationCallable + seedConversionWorkspaceOperationCallable() { + return seedConversionWorkspaceOperationCallable; + } + + @Override + public UnaryCallable importMappingRulesCallable() { + return importMappingRulesCallable; + } + + @Override + public OperationCallable + importMappingRulesOperationCallable() { + return importMappingRulesOperationCallable; + } + + @Override + public UnaryCallable + convertConversionWorkspaceCallable() { + return convertConversionWorkspaceCallable; + } + + @Override + public OperationCallable< + ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + convertConversionWorkspaceOperationCallable() { + return convertConversionWorkspaceOperationCallable; + } + + @Override + public UnaryCallable + commitConversionWorkspaceCallable() { + return commitConversionWorkspaceCallable; + } + + @Override + public OperationCallable + commitConversionWorkspaceOperationCallable() { + return commitConversionWorkspaceOperationCallable; + } + + @Override + public UnaryCallable + rollbackConversionWorkspaceCallable() { + return rollbackConversionWorkspaceCallable; + } + + @Override + public OperationCallable< + RollbackConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata> + rollbackConversionWorkspaceOperationCallable() { + return rollbackConversionWorkspaceOperationCallable; + } + + @Override + public UnaryCallable + applyConversionWorkspaceCallable() { + return applyConversionWorkspaceCallable; + } + + @Override + public OperationCallable + applyConversionWorkspaceOperationCallable() { + return applyConversionWorkspaceOperationCallable; + } + + @Override + public UnaryCallable + describeDatabaseEntitiesCallable() { + return describeDatabaseEntitiesCallable; + } + + @Override + public UnaryCallable + describeDatabaseEntitiesPagedCallable() { + return describeDatabaseEntitiesPagedCallable; + } + + @Override + public UnaryCallable + searchBackgroundJobsCallable() { + return searchBackgroundJobsCallable; + } + + @Override + public UnaryCallable< + DescribeConversionWorkspaceRevisionsRequest, DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisionsCallable() { + return describeConversionWorkspaceRevisionsCallable; + } + + @Override + public UnaryCallable fetchStaticIpsCallable() { + return fetchStaticIpsCallable; + } + + @Override + public UnaryCallable + fetchStaticIpsPagedCallable() { + return fetchStaticIpsPagedCallable; + } + @Override public final void close() { try { diff --git a/java-dms/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java b/java-dms/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java index 7f70be5b204d..97d34f062fe5 100644 --- a/java-dms/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java +++ b/java-dms/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/DataMigrationServiceClientTest.java @@ -16,8 +16,12 @@ package com.google.cloud.clouddms.v1; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.DescribeDatabaseEntitiesPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.FetchStaticIpsPagedResponse; import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConnectionProfilesPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConversionWorkspacesPagedResponse; import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse; +import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -38,6 +42,7 @@ import com.google.rpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; @@ -187,6 +192,7 @@ public void getMigrationJobTest() throws Exception { .putAllLabels(new HashMap()) .setDisplayName("displayName1714148973") .setDumpPath("dumpPath-2122385351") + .setDumpFlags(MigrationJob.DumpFlags.newBuilder().build()) .setSource("source-896505829") .setDestination("destination-1429847026") .setDuration(Duration.newBuilder().build()) @@ -194,6 +200,9 @@ public void getMigrationJobTest() throws Exception { .setSourceDatabase(DatabaseType.newBuilder().build()) .setDestinationDatabase(DatabaseType.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build()) + .setFilter("filter-1274492040") + .setCmekKeyName("cmekKeyName-1267813158") .build(); mockDataMigrationService.addResponse(expectedResponse); @@ -237,6 +246,7 @@ public void getMigrationJobTest2() throws Exception { .putAllLabels(new HashMap()) .setDisplayName("displayName1714148973") .setDumpPath("dumpPath-2122385351") + .setDumpFlags(MigrationJob.DumpFlags.newBuilder().build()) .setSource("source-896505829") .setDestination("destination-1429847026") .setDuration(Duration.newBuilder().build()) @@ -244,6 +254,9 @@ public void getMigrationJobTest2() throws Exception { .setSourceDatabase(DatabaseType.newBuilder().build()) .setDestinationDatabase(DatabaseType.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build()) + .setFilter("filter-1274492040") + .setCmekKeyName("cmekKeyName-1267813158") .build(); mockDataMigrationService.addResponse(expectedResponse); @@ -287,6 +300,7 @@ public void createMigrationJobTest() throws Exception { .putAllLabels(new HashMap()) .setDisplayName("displayName1714148973") .setDumpPath("dumpPath-2122385351") + .setDumpFlags(MigrationJob.DumpFlags.newBuilder().build()) .setSource("source-896505829") .setDestination("destination-1429847026") .setDuration(Duration.newBuilder().build()) @@ -294,6 +308,9 @@ public void createMigrationJobTest() throws Exception { .setSourceDatabase(DatabaseType.newBuilder().build()) .setDestinationDatabase(DatabaseType.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build()) + .setFilter("filter-1274492040") + .setCmekKeyName("cmekKeyName-1267813158") .build(); Operation resultOperation = Operation.newBuilder() @@ -352,6 +369,7 @@ public void createMigrationJobTest2() throws Exception { .putAllLabels(new HashMap()) .setDisplayName("displayName1714148973") .setDumpPath("dumpPath-2122385351") + .setDumpFlags(MigrationJob.DumpFlags.newBuilder().build()) .setSource("source-896505829") .setDestination("destination-1429847026") .setDuration(Duration.newBuilder().build()) @@ -359,6 +377,9 @@ public void createMigrationJobTest2() throws Exception { .setSourceDatabase(DatabaseType.newBuilder().build()) .setDestinationDatabase(DatabaseType.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build()) + .setFilter("filter-1274492040") + .setCmekKeyName("cmekKeyName-1267813158") .build(); Operation resultOperation = Operation.newBuilder() @@ -417,6 +438,7 @@ public void updateMigrationJobTest() throws Exception { .putAllLabels(new HashMap()) .setDisplayName("displayName1714148973") .setDumpPath("dumpPath-2122385351") + .setDumpFlags(MigrationJob.DumpFlags.newBuilder().build()) .setSource("source-896505829") .setDestination("destination-1429847026") .setDuration(Duration.newBuilder().build()) @@ -424,6 +446,9 @@ public void updateMigrationJobTest() throws Exception { .setSourceDatabase(DatabaseType.newBuilder().build()) .setDestinationDatabase(DatabaseType.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build()) + .setFilter("filter-1274492040") + .setCmekKeyName("cmekKeyName-1267813158") .build(); Operation resultOperation = Operation.newBuilder() @@ -562,6 +587,7 @@ public void startMigrationJobTest() throws Exception { .putAllLabels(new HashMap()) .setDisplayName("displayName1714148973") .setDumpPath("dumpPath-2122385351") + .setDumpFlags(MigrationJob.DumpFlags.newBuilder().build()) .setSource("source-896505829") .setDestination("destination-1429847026") .setDuration(Duration.newBuilder().build()) @@ -569,6 +595,9 @@ public void startMigrationJobTest() throws Exception { .setSourceDatabase(DatabaseType.newBuilder().build()) .setDestinationDatabase(DatabaseType.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build()) + .setFilter("filter-1274492040") + .setCmekKeyName("cmekKeyName-1267813158") .build(); Operation resultOperation = Operation.newBuilder() @@ -626,6 +655,7 @@ public void stopMigrationJobTest() throws Exception { .putAllLabels(new HashMap()) .setDisplayName("displayName1714148973") .setDumpPath("dumpPath-2122385351") + .setDumpFlags(MigrationJob.DumpFlags.newBuilder().build()) .setSource("source-896505829") .setDestination("destination-1429847026") .setDuration(Duration.newBuilder().build()) @@ -633,6 +663,9 @@ public void stopMigrationJobTest() throws Exception { .setSourceDatabase(DatabaseType.newBuilder().build()) .setDestinationDatabase(DatabaseType.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build()) + .setFilter("filter-1274492040") + .setCmekKeyName("cmekKeyName-1267813158") .build(); Operation resultOperation = Operation.newBuilder() @@ -690,6 +723,7 @@ public void resumeMigrationJobTest() throws Exception { .putAllLabels(new HashMap()) .setDisplayName("displayName1714148973") .setDumpPath("dumpPath-2122385351") + .setDumpFlags(MigrationJob.DumpFlags.newBuilder().build()) .setSource("source-896505829") .setDestination("destination-1429847026") .setDuration(Duration.newBuilder().build()) @@ -697,6 +731,9 @@ public void resumeMigrationJobTest() throws Exception { .setSourceDatabase(DatabaseType.newBuilder().build()) .setDestinationDatabase(DatabaseType.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build()) + .setFilter("filter-1274492040") + .setCmekKeyName("cmekKeyName-1267813158") .build(); Operation resultOperation = Operation.newBuilder() @@ -754,6 +791,7 @@ public void promoteMigrationJobTest() throws Exception { .putAllLabels(new HashMap()) .setDisplayName("displayName1714148973") .setDumpPath("dumpPath-2122385351") + .setDumpFlags(MigrationJob.DumpFlags.newBuilder().build()) .setSource("source-896505829") .setDestination("destination-1429847026") .setDuration(Duration.newBuilder().build()) @@ -761,6 +799,9 @@ public void promoteMigrationJobTest() throws Exception { .setSourceDatabase(DatabaseType.newBuilder().build()) .setDestinationDatabase(DatabaseType.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build()) + .setFilter("filter-1274492040") + .setCmekKeyName("cmekKeyName-1267813158") .build(); Operation resultOperation = Operation.newBuilder() @@ -818,6 +859,7 @@ public void verifyMigrationJobTest() throws Exception { .putAllLabels(new HashMap()) .setDisplayName("displayName1714148973") .setDumpPath("dumpPath-2122385351") + .setDumpFlags(MigrationJob.DumpFlags.newBuilder().build()) .setSource("source-896505829") .setDestination("destination-1429847026") .setDuration(Duration.newBuilder().build()) @@ -825,6 +867,9 @@ public void verifyMigrationJobTest() throws Exception { .setSourceDatabase(DatabaseType.newBuilder().build()) .setDestinationDatabase(DatabaseType.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build()) + .setFilter("filter-1274492040") + .setCmekKeyName("cmekKeyName-1267813158") .build(); Operation resultOperation = Operation.newBuilder() @@ -882,6 +927,7 @@ public void restartMigrationJobTest() throws Exception { .putAllLabels(new HashMap()) .setDisplayName("displayName1714148973") .setDumpPath("dumpPath-2122385351") + .setDumpFlags(MigrationJob.DumpFlags.newBuilder().build()) .setSource("source-896505829") .setDestination("destination-1429847026") .setDuration(Duration.newBuilder().build()) @@ -889,6 +935,9 @@ public void restartMigrationJobTest() throws Exception { .setSourceDatabase(DatabaseType.newBuilder().build()) .setDestinationDatabase(DatabaseType.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build()) + .setFilter("filter-1274492040") + .setCmekKeyName("cmekKeyName-1267813158") .build(); Operation resultOperation = Operation.newBuilder() @@ -1445,4 +1494,1588 @@ public void deleteConnectionProfileExceptionTest2() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void createPrivateConnectionTest() throws Exception { + PrivateConnection expectedResponse = + PrivateConnection.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setError(Status.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createPrivateConnectionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + String privateConnectionId = "privateConnectionId-1926654532"; + + PrivateConnection actualResponse = + client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreatePrivateConnectionRequest actualRequest = + ((CreatePrivateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(privateConnection, actualRequest.getPrivateConnection()); + Assert.assertEquals(privateConnectionId, actualRequest.getPrivateConnectionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createPrivateConnectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + String privateConnectionId = "privateConnectionId-1926654532"; + client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createPrivateConnectionTest2() throws Exception { + PrivateConnection expectedResponse = + PrivateConnection.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setError(Status.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createPrivateConnectionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + String privateConnectionId = "privateConnectionId-1926654532"; + + PrivateConnection actualResponse = + client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreatePrivateConnectionRequest actualRequest = + ((CreatePrivateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(privateConnection, actualRequest.getPrivateConnection()); + Assert.assertEquals(privateConnectionId, actualRequest.getPrivateConnectionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createPrivateConnectionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + String parent = "parent-995424086"; + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + String privateConnectionId = "privateConnectionId-1926654532"; + client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getPrivateConnectionTest() throws Exception { + PrivateConnection expectedResponse = + PrivateConnection.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setError(Status.newBuilder().build()) + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + PrivateConnectionName name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + + PrivateConnection actualResponse = client.getPrivateConnection(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPrivateConnectionRequest actualRequest = + ((GetPrivateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPrivateConnectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + PrivateConnectionName name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + client.getPrivateConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPrivateConnectionTest2() throws Exception { + PrivateConnection expectedResponse = + PrivateConnection.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setError(Status.newBuilder().build()) + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + String name = "name3373707"; + + PrivateConnection actualResponse = client.getPrivateConnection(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPrivateConnectionRequest actualRequest = + ((GetPrivateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPrivateConnectionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + String name = "name3373707"; + client.getPrivateConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPrivateConnectionsTest() throws Exception { + PrivateConnection responsesElement = PrivateConnection.newBuilder().build(); + ListPrivateConnectionsResponse expectedResponse = + ListPrivateConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllPrivateConnections(Arrays.asList(responsesElement)) + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPrivateConnectionsPagedResponse pagedListResponse = client.listPrivateConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPrivateConnectionsList().get(0), resources.get(0)); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPrivateConnectionsRequest actualRequest = + ((ListPrivateConnectionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPrivateConnectionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPrivateConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPrivateConnectionsTest2() throws Exception { + PrivateConnection responsesElement = PrivateConnection.newBuilder().build(); + ListPrivateConnectionsResponse expectedResponse = + ListPrivateConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllPrivateConnections(Arrays.asList(responsesElement)) + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPrivateConnectionsPagedResponse pagedListResponse = client.listPrivateConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPrivateConnectionsList().get(0), resources.get(0)); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPrivateConnectionsRequest actualRequest = + ((ListPrivateConnectionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPrivateConnectionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPrivateConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePrivateConnectionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deletePrivateConnectionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + PrivateConnectionName name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + + client.deletePrivateConnectionAsync(name).get(); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePrivateConnectionRequest actualRequest = + ((DeletePrivateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deletePrivateConnectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + PrivateConnectionName name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + client.deletePrivateConnectionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deletePrivateConnectionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deletePrivateConnectionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deletePrivateConnectionAsync(name).get(); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePrivateConnectionRequest actualRequest = + ((DeletePrivateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deletePrivateConnectionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + String name = "name3373707"; + client.deletePrivateConnectionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getConversionWorkspaceTest() throws Exception { + ConversionWorkspace expectedResponse = + ConversionWorkspace.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setSource(DatabaseEngineInfo.newBuilder().build()) + .setDestination(DatabaseEngineInfo.newBuilder().build()) + .putAllGlobalSettings(new HashMap()) + .setHasUncommittedChanges(true) + .setLatestCommitId("latestCommitId-1343996583") + .setLatestCommitTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + ConversionWorkspaceName name = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"); + + ConversionWorkspace actualResponse = client.getConversionWorkspace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConversionWorkspaceRequest actualRequest = + ((GetConversionWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConversionWorkspaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + ConversionWorkspaceName name = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"); + client.getConversionWorkspace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversionWorkspaceTest2() throws Exception { + ConversionWorkspace expectedResponse = + ConversionWorkspace.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setSource(DatabaseEngineInfo.newBuilder().build()) + .setDestination(DatabaseEngineInfo.newBuilder().build()) + .putAllGlobalSettings(new HashMap()) + .setHasUncommittedChanges(true) + .setLatestCommitId("latestCommitId-1343996583") + .setLatestCommitTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + String name = "name3373707"; + + ConversionWorkspace actualResponse = client.getConversionWorkspace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConversionWorkspaceRequest actualRequest = + ((GetConversionWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConversionWorkspaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + String name = "name3373707"; + client.getConversionWorkspace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversionWorkspacesTest() throws Exception { + ConversionWorkspace responsesElement = ConversionWorkspace.newBuilder().build(); + ListConversionWorkspacesResponse expectedResponse = + ListConversionWorkspacesResponse.newBuilder() + .setNextPageToken("") + .addAllConversionWorkspaces(Arrays.asList(responsesElement)) + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListConversionWorkspacesPagedResponse pagedListResponse = + client.listConversionWorkspaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversionWorkspacesList().get(0), resources.get(0)); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConversionWorkspacesRequest actualRequest = + ((ListConversionWorkspacesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConversionWorkspacesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listConversionWorkspaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversionWorkspacesTest2() throws Exception { + ConversionWorkspace responsesElement = ConversionWorkspace.newBuilder().build(); + ListConversionWorkspacesResponse expectedResponse = + ListConversionWorkspacesResponse.newBuilder() + .setNextPageToken("") + .addAllConversionWorkspaces(Arrays.asList(responsesElement)) + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListConversionWorkspacesPagedResponse pagedListResponse = + client.listConversionWorkspaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversionWorkspacesList().get(0), resources.get(0)); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConversionWorkspacesRequest actualRequest = + ((ListConversionWorkspacesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConversionWorkspacesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listConversionWorkspaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConversionWorkspaceTest() throws Exception { + ConversionWorkspace expectedResponse = + ConversionWorkspace.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setSource(DatabaseEngineInfo.newBuilder().build()) + .setDestination(DatabaseEngineInfo.newBuilder().build()) + .putAllGlobalSettings(new HashMap()) + .setHasUncommittedChanges(true) + .setLatestCommitId("latestCommitId-1343996583") + .setLatestCommitTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createConversionWorkspaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ConversionWorkspace conversionWorkspace = ConversionWorkspace.newBuilder().build(); + String conversionWorkspaceId = "conversionWorkspaceId-928604774"; + + ConversionWorkspace actualResponse = + client + .createConversionWorkspaceAsync(parent, conversionWorkspace, conversionWorkspaceId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConversionWorkspaceRequest actualRequest = + ((CreateConversionWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(conversionWorkspace, actualRequest.getConversionWorkspace()); + Assert.assertEquals(conversionWorkspaceId, actualRequest.getConversionWorkspaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConversionWorkspaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ConversionWorkspace conversionWorkspace = ConversionWorkspace.newBuilder().build(); + String conversionWorkspaceId = "conversionWorkspaceId-928604774"; + client + .createConversionWorkspaceAsync(parent, conversionWorkspace, conversionWorkspaceId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createConversionWorkspaceTest2() throws Exception { + ConversionWorkspace expectedResponse = + ConversionWorkspace.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setSource(DatabaseEngineInfo.newBuilder().build()) + .setDestination(DatabaseEngineInfo.newBuilder().build()) + .putAllGlobalSettings(new HashMap()) + .setHasUncommittedChanges(true) + .setLatestCommitId("latestCommitId-1343996583") + .setLatestCommitTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createConversionWorkspaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + ConversionWorkspace conversionWorkspace = ConversionWorkspace.newBuilder().build(); + String conversionWorkspaceId = "conversionWorkspaceId-928604774"; + + ConversionWorkspace actualResponse = + client + .createConversionWorkspaceAsync(parent, conversionWorkspace, conversionWorkspaceId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConversionWorkspaceRequest actualRequest = + ((CreateConversionWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(conversionWorkspace, actualRequest.getConversionWorkspace()); + Assert.assertEquals(conversionWorkspaceId, actualRequest.getConversionWorkspaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConversionWorkspaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + String parent = "parent-995424086"; + ConversionWorkspace conversionWorkspace = ConversionWorkspace.newBuilder().build(); + String conversionWorkspaceId = "conversionWorkspaceId-928604774"; + client + .createConversionWorkspaceAsync(parent, conversionWorkspace, conversionWorkspaceId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateConversionWorkspaceTest() throws Exception { + ConversionWorkspace expectedResponse = + ConversionWorkspace.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setSource(DatabaseEngineInfo.newBuilder().build()) + .setDestination(DatabaseEngineInfo.newBuilder().build()) + .putAllGlobalSettings(new HashMap()) + .setHasUncommittedChanges(true) + .setLatestCommitId("latestCommitId-1343996583") + .setLatestCommitTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateConversionWorkspaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + ConversionWorkspace conversionWorkspace = ConversionWorkspace.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ConversionWorkspace actualResponse = + client.updateConversionWorkspaceAsync(conversionWorkspace, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateConversionWorkspaceRequest actualRequest = + ((UpdateConversionWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(conversionWorkspace, actualRequest.getConversionWorkspace()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateConversionWorkspaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + ConversionWorkspace conversionWorkspace = ConversionWorkspace.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConversionWorkspaceAsync(conversionWorkspace, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteConversionWorkspaceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteConversionWorkspaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + ConversionWorkspaceName name = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"); + + client.deleteConversionWorkspaceAsync(name).get(); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConversionWorkspaceRequest actualRequest = + ((DeleteConversionWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConversionWorkspaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + ConversionWorkspaceName name = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"); + client.deleteConversionWorkspaceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteConversionWorkspaceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteConversionWorkspaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteConversionWorkspaceAsync(name).get(); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConversionWorkspaceRequest actualRequest = + ((DeleteConversionWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConversionWorkspaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + String name = "name3373707"; + client.deleteConversionWorkspaceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void seedConversionWorkspaceTest() throws Exception { + ConversionWorkspace expectedResponse = + ConversionWorkspace.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setSource(DatabaseEngineInfo.newBuilder().build()) + .setDestination(DatabaseEngineInfo.newBuilder().build()) + .putAllGlobalSettings(new HashMap()) + .setHasUncommittedChanges(true) + .setLatestCommitId("latestCommitId-1343996583") + .setLatestCommitTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("seedConversionWorkspaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + SeedConversionWorkspaceRequest request = + SeedConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setAutoCommit(true) + .build(); + + ConversionWorkspace actualResponse = client.seedConversionWorkspaceAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SeedConversionWorkspaceRequest actualRequest = + ((SeedConversionWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getAutoCommit(), actualRequest.getAutoCommit()); + Assert.assertEquals( + request.getSourceConnectionProfile(), actualRequest.getSourceConnectionProfile()); + Assert.assertEquals( + request.getDestinationConnectionProfile(), actualRequest.getDestinationConnectionProfile()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void seedConversionWorkspaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + SeedConversionWorkspaceRequest request = + SeedConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setAutoCommit(true) + .build(); + client.seedConversionWorkspaceAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void importMappingRulesTest() throws Exception { + ConversionWorkspace expectedResponse = + ConversionWorkspace.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setSource(DatabaseEngineInfo.newBuilder().build()) + .setDestination(DatabaseEngineInfo.newBuilder().build()) + .putAllGlobalSettings(new HashMap()) + .setHasUncommittedChanges(true) + .setLatestCommitId("latestCommitId-1343996583") + .setLatestCommitTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importMappingRulesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + ImportMappingRulesRequest request = + ImportMappingRulesRequest.newBuilder() + .setParent( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setRulesFormat(ImportRulesFileFormat.forNumber(0)) + .addAllRulesFiles(new ArrayList()) + .setAutoCommit(true) + .build(); + + ConversionWorkspace actualResponse = client.importMappingRulesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportMappingRulesRequest actualRequest = ((ImportMappingRulesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRulesFormat(), actualRequest.getRulesFormat()); + Assert.assertEquals(request.getRulesFilesList(), actualRequest.getRulesFilesList()); + Assert.assertEquals(request.getAutoCommit(), actualRequest.getAutoCommit()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importMappingRulesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + ImportMappingRulesRequest request = + ImportMappingRulesRequest.newBuilder() + .setParent( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setRulesFormat(ImportRulesFileFormat.forNumber(0)) + .addAllRulesFiles(new ArrayList()) + .setAutoCommit(true) + .build(); + client.importMappingRulesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void convertConversionWorkspaceTest() throws Exception { + ConversionWorkspace expectedResponse = + ConversionWorkspace.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setSource(DatabaseEngineInfo.newBuilder().build()) + .setDestination(DatabaseEngineInfo.newBuilder().build()) + .putAllGlobalSettings(new HashMap()) + .setHasUncommittedChanges(true) + .setLatestCommitId("latestCommitId-1343996583") + .setLatestCommitTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("convertConversionWorkspaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + ConvertConversionWorkspaceRequest request = + ConvertConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setAutoCommit(true) + .setFilter("filter-1274492040") + .build(); + + ConversionWorkspace actualResponse = client.convertConversionWorkspaceAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ConvertConversionWorkspaceRequest actualRequest = + ((ConvertConversionWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getAutoCommit(), actualRequest.getAutoCommit()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void convertConversionWorkspaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + ConvertConversionWorkspaceRequest request = + ConvertConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setAutoCommit(true) + .setFilter("filter-1274492040") + .build(); + client.convertConversionWorkspaceAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void commitConversionWorkspaceTest() throws Exception { + ConversionWorkspace expectedResponse = + ConversionWorkspace.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setSource(DatabaseEngineInfo.newBuilder().build()) + .setDestination(DatabaseEngineInfo.newBuilder().build()) + .putAllGlobalSettings(new HashMap()) + .setHasUncommittedChanges(true) + .setLatestCommitId("latestCommitId-1343996583") + .setLatestCommitTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("commitConversionWorkspaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + CommitConversionWorkspaceRequest request = + CommitConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setCommitName("commitName1018078306") + .build(); + + ConversionWorkspace actualResponse = client.commitConversionWorkspaceAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CommitConversionWorkspaceRequest actualRequest = + ((CommitConversionWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getCommitName(), actualRequest.getCommitName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void commitConversionWorkspaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + CommitConversionWorkspaceRequest request = + CommitConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setCommitName("commitName1018078306") + .build(); + client.commitConversionWorkspaceAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void rollbackConversionWorkspaceTest() throws Exception { + ConversionWorkspace expectedResponse = + ConversionWorkspace.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setSource(DatabaseEngineInfo.newBuilder().build()) + .setDestination(DatabaseEngineInfo.newBuilder().build()) + .putAllGlobalSettings(new HashMap()) + .setHasUncommittedChanges(true) + .setLatestCommitId("latestCommitId-1343996583") + .setLatestCommitTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("rollbackConversionWorkspaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + RollbackConversionWorkspaceRequest request = + RollbackConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .build(); + + ConversionWorkspace actualResponse = client.rollbackConversionWorkspaceAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RollbackConversionWorkspaceRequest actualRequest = + ((RollbackConversionWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rollbackConversionWorkspaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + RollbackConversionWorkspaceRequest request = + RollbackConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .build(); + client.rollbackConversionWorkspaceAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void applyConversionWorkspaceTest() throws Exception { + ConversionWorkspace expectedResponse = + ConversionWorkspace.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setSource(DatabaseEngineInfo.newBuilder().build()) + .setDestination(DatabaseEngineInfo.newBuilder().build()) + .putAllGlobalSettings(new HashMap()) + .setHasUncommittedChanges(true) + .setLatestCommitId("latestCommitId-1343996583") + .setLatestCommitTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("applyConversionWorkspaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataMigrationService.addResponse(resultOperation); + + ApplyConversionWorkspaceRequest request = + ApplyConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setFilter("filter-1274492040") + .build(); + + ConversionWorkspace actualResponse = client.applyConversionWorkspaceAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApplyConversionWorkspaceRequest actualRequest = + ((ApplyConversionWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getConnectionProfile(), actualRequest.getConnectionProfile()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void applyConversionWorkspaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + ApplyConversionWorkspaceRequest request = + ApplyConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setFilter("filter-1274492040") + .build(); + client.applyConversionWorkspaceAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void describeDatabaseEntitiesTest() throws Exception { + DatabaseEntity responsesElement = DatabaseEntity.newBuilder().build(); + DescribeDatabaseEntitiesResponse expectedResponse = + DescribeDatabaseEntitiesResponse.newBuilder() + .setNextPageToken("") + .addAllDatabaseEntities(Arrays.asList(responsesElement)) + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + DescribeDatabaseEntitiesRequest request = + DescribeDatabaseEntitiesRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setUncommitted(true) + .setCommitId("commitId-602292046") + .setFilter("filter-1274492040") + .build(); + + DescribeDatabaseEntitiesPagedResponse pagedListResponse = + client.describeDatabaseEntities(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatabaseEntitiesList().get(0), resources.get(0)); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DescribeDatabaseEntitiesRequest actualRequest = + ((DescribeDatabaseEntitiesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getConversionWorkspace(), actualRequest.getConversionWorkspace()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getTree(), actualRequest.getTree()); + Assert.assertEquals(request.getUncommitted(), actualRequest.getUncommitted()); + Assert.assertEquals(request.getCommitId(), actualRequest.getCommitId()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void describeDatabaseEntitiesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + DescribeDatabaseEntitiesRequest request = + DescribeDatabaseEntitiesRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setUncommitted(true) + .setCommitId("commitId-602292046") + .setFilter("filter-1274492040") + .build(); + client.describeDatabaseEntities(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchBackgroundJobsTest() throws Exception { + SearchBackgroundJobsResponse expectedResponse = + SearchBackgroundJobsResponse.newBuilder() + .addAllJobs(new ArrayList()) + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + SearchBackgroundJobsRequest request = + SearchBackgroundJobsRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setReturnMostRecentPerJobType(true) + .setMaxSize(408072700) + .setCompletedUntilTime(Timestamp.newBuilder().build()) + .build(); + + SearchBackgroundJobsResponse actualResponse = client.searchBackgroundJobs(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchBackgroundJobsRequest actualRequest = + ((SearchBackgroundJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getConversionWorkspace(), actualRequest.getConversionWorkspace()); + Assert.assertEquals( + request.getReturnMostRecentPerJobType(), actualRequest.getReturnMostRecentPerJobType()); + Assert.assertEquals(request.getMaxSize(), actualRequest.getMaxSize()); + Assert.assertEquals(request.getCompletedUntilTime(), actualRequest.getCompletedUntilTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchBackgroundJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + SearchBackgroundJobsRequest request = + SearchBackgroundJobsRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setReturnMostRecentPerJobType(true) + .setMaxSize(408072700) + .setCompletedUntilTime(Timestamp.newBuilder().build()) + .build(); + client.searchBackgroundJobs(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void describeConversionWorkspaceRevisionsTest() throws Exception { + DescribeConversionWorkspaceRevisionsResponse expectedResponse = + DescribeConversionWorkspaceRevisionsResponse.newBuilder() + .addAllRevisions(new ArrayList()) + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + DescribeConversionWorkspaceRevisionsRequest request = + DescribeConversionWorkspaceRevisionsRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setCommitId("commitId-602292046") + .build(); + + DescribeConversionWorkspaceRevisionsResponse actualResponse = + client.describeConversionWorkspaceRevisions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DescribeConversionWorkspaceRevisionsRequest actualRequest = + ((DescribeConversionWorkspaceRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getConversionWorkspace(), actualRequest.getConversionWorkspace()); + Assert.assertEquals(request.getCommitId(), actualRequest.getCommitId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void describeConversionWorkspaceRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + DescribeConversionWorkspaceRevisionsRequest request = + DescribeConversionWorkspaceRevisionsRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setCommitId("commitId-602292046") + .build(); + client.describeConversionWorkspaceRevisions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchStaticIpsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + FetchStaticIpsResponse expectedResponse = + FetchStaticIpsResponse.newBuilder() + .setNextPageToken("") + .addAllStaticIps(Arrays.asList(responsesElement)) + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + LocationName name = LocationName.of("[PROJECT]", "[LOCATION]"); + + FetchStaticIpsPagedResponse pagedListResponse = client.fetchStaticIps(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStaticIpsList().get(0), resources.get(0)); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchStaticIpsRequest actualRequest = ((FetchStaticIpsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchStaticIpsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + LocationName name = LocationName.of("[PROJECT]", "[LOCATION]"); + client.fetchStaticIps(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchStaticIpsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + FetchStaticIpsResponse expectedResponse = + FetchStaticIpsResponse.newBuilder() + .setNextPageToken("") + .addAllStaticIps(Arrays.asList(responsesElement)) + .build(); + mockDataMigrationService.addResponse(expectedResponse); + + String name = "name3373707"; + + FetchStaticIpsPagedResponse pagedListResponse = client.fetchStaticIps(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStaticIpsList().get(0), resources.get(0)); + + List actualRequests = mockDataMigrationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchStaticIpsRequest actualRequest = ((FetchStaticIpsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchStaticIpsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataMigrationService.addException(exception); + + try { + String name = "name3373707"; + client.fetchStaticIps(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-dms/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java b/java-dms/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java index c16e3e1e017a..f9beab0045fd 100644 --- a/java-dms/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java +++ b/java-dms/google-cloud-dms/src/test/java/com/google/cloud/clouddms/v1/MockDataMigrationServiceImpl.java @@ -417,4 +417,408 @@ public void deleteConnectionProfile( Exception.class.getName()))); } } + + @Override + public void createPrivateConnection( + CreatePrivateConnectionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreatePrivateConnection, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getPrivateConnection( + GetPrivateConnectionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PrivateConnection) { + requests.add(request); + responseObserver.onNext(((PrivateConnection) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetPrivateConnection, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PrivateConnection.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listPrivateConnections( + ListPrivateConnectionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPrivateConnectionsResponse) { + requests.add(request); + responseObserver.onNext(((ListPrivateConnectionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListPrivateConnections, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPrivateConnectionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deletePrivateConnection( + DeletePrivateConnectionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeletePrivateConnection, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getConversionWorkspace( + GetConversionWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ConversionWorkspace) { + requests.add(request); + responseObserver.onNext(((ConversionWorkspace) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetConversionWorkspace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ConversionWorkspace.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listConversionWorkspaces( + ListConversionWorkspacesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListConversionWorkspacesResponse) { + requests.add(request); + responseObserver.onNext(((ListConversionWorkspacesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListConversionWorkspaces, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListConversionWorkspacesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createConversionWorkspace( + CreateConversionWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateConversionWorkspace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateConversionWorkspace( + UpdateConversionWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateConversionWorkspace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteConversionWorkspace( + DeleteConversionWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteConversionWorkspace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void seedConversionWorkspace( + SeedConversionWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SeedConversionWorkspace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importMappingRules( + ImportMappingRulesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ImportMappingRules, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void convertConversionWorkspace( + ConvertConversionWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ConvertConversionWorkspace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void commitConversionWorkspace( + CommitConversionWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CommitConversionWorkspace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void rollbackConversionWorkspace( + RollbackConversionWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RollbackConversionWorkspace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void applyConversionWorkspace( + ApplyConversionWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ApplyConversionWorkspace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void describeDatabaseEntities( + DescribeDatabaseEntitiesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DescribeDatabaseEntitiesResponse) { + requests.add(request); + responseObserver.onNext(((DescribeDatabaseEntitiesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DescribeDatabaseEntities, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DescribeDatabaseEntitiesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchBackgroundJobs( + SearchBackgroundJobsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchBackgroundJobsResponse) { + requests.add(request); + responseObserver.onNext(((SearchBackgroundJobsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SearchBackgroundJobs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchBackgroundJobsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void describeConversionWorkspaceRevisions( + DescribeConversionWorkspaceRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DescribeConversionWorkspaceRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((DescribeConversionWorkspaceRevisionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DescribeConversionWorkspaceRevisions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DescribeConversionWorkspaceRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchStaticIps( + FetchStaticIpsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchStaticIpsResponse) { + requests.add(request); + responseObserver.onNext(((FetchStaticIpsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method FetchStaticIps, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FetchStaticIpsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-dms/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java b/java-dms/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java index 1c106f8b2ca2..a13f970e5a71 100644 --- a/java-dms/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java +++ b/java-dms/grpc-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceGrpc.java @@ -849,55 +849,2237 @@ private DataMigrationServiceGrpc() {} return getDeleteConnectionProfileMethod; } - /** Creates a new async stub that supports all call types for the service */ - public static DataMigrationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataMigrationServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceStub(channel, callOptions); - } - }; - return DataMigrationServiceStub.newStub(factory, channel); + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation> + getCreatePrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePrivateConnection", + requestType = com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation> + getCreatePrivateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation> + getCreatePrivateConnectionMethod; + if ((getCreatePrivateConnectionMethod = + DataMigrationServiceGrpc.getCreatePrivateConnectionMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getCreatePrivateConnectionMethod = + DataMigrationServiceGrpc.getCreatePrivateConnectionMethod) + == null) { + DataMigrationServiceGrpc.getCreatePrivateConnectionMethod = + getCreatePrivateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreatePrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "CreatePrivateConnection")) + .build(); + } + } + } + return getCreatePrivateConnectionMethod; } - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataMigrationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataMigrationServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceBlockingStub(channel, callOptions); - } - }; - return DataMigrationServiceBlockingStub.newStub(factory, channel); + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest, + com.google.cloud.clouddms.v1.PrivateConnection> + getGetPrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPrivateConnection", + requestType = com.google.cloud.clouddms.v1.GetPrivateConnectionRequest.class, + responseType = com.google.cloud.clouddms.v1.PrivateConnection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest, + com.google.cloud.clouddms.v1.PrivateConnection> + getGetPrivateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest, + com.google.cloud.clouddms.v1.PrivateConnection> + getGetPrivateConnectionMethod; + if ((getGetPrivateConnectionMethod = DataMigrationServiceGrpc.getGetPrivateConnectionMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getGetPrivateConnectionMethod = DataMigrationServiceGrpc.getGetPrivateConnectionMethod) + == null) { + DataMigrationServiceGrpc.getGetPrivateConnectionMethod = + getGetPrivateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetPrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.PrivateConnection.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("GetPrivateConnection")) + .build(); + } + } + } + return getGetPrivateConnectionMethod; } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DataMigrationServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataMigrationServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceFutureStub(channel, callOptions); - } - }; - return DataMigrationServiceFutureStub.newStub(factory, channel); + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest, + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse> + getListPrivateConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPrivateConnections", + requestType = com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest.class, + responseType = com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest, + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse> + getListPrivateConnectionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest, + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse> + getListPrivateConnectionsMethod; + if ((getListPrivateConnectionsMethod = DataMigrationServiceGrpc.getListPrivateConnectionsMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getListPrivateConnectionsMethod = + DataMigrationServiceGrpc.getListPrivateConnectionsMethod) + == null) { + DataMigrationServiceGrpc.getListPrivateConnectionsMethod = + getListPrivateConnectionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListPrivateConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "ListPrivateConnections")) + .build(); + } + } + } + return getListPrivateConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation> + getDeletePrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePrivateConnection", + requestType = com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation> + getDeletePrivateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation> + getDeletePrivateConnectionMethod; + if ((getDeletePrivateConnectionMethod = + DataMigrationServiceGrpc.getDeletePrivateConnectionMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getDeletePrivateConnectionMethod = + DataMigrationServiceGrpc.getDeletePrivateConnectionMethod) + == null) { + DataMigrationServiceGrpc.getDeletePrivateConnectionMethod = + getDeletePrivateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeletePrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "DeletePrivateConnection")) + .build(); + } + } + } + return getDeletePrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest, + com.google.cloud.clouddms.v1.ConversionWorkspace> + getGetConversionWorkspaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConversionWorkspace", + requestType = com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest.class, + responseType = com.google.cloud.clouddms.v1.ConversionWorkspace.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest, + com.google.cloud.clouddms.v1.ConversionWorkspace> + getGetConversionWorkspaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest, + com.google.cloud.clouddms.v1.ConversionWorkspace> + getGetConversionWorkspaceMethod; + if ((getGetConversionWorkspaceMethod = DataMigrationServiceGrpc.getGetConversionWorkspaceMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getGetConversionWorkspaceMethod = + DataMigrationServiceGrpc.getGetConversionWorkspaceMethod) + == null) { + DataMigrationServiceGrpc.getGetConversionWorkspaceMethod = + getGetConversionWorkspaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetConversionWorkspace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ConversionWorkspace + .getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "GetConversionWorkspace")) + .build(); + } + } + } + return getGetConversionWorkspaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest, + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse> + getListConversionWorkspacesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConversionWorkspaces", + requestType = com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest.class, + responseType = com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest, + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse> + getListConversionWorkspacesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest, + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse> + getListConversionWorkspacesMethod; + if ((getListConversionWorkspacesMethod = + DataMigrationServiceGrpc.getListConversionWorkspacesMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getListConversionWorkspacesMethod = + DataMigrationServiceGrpc.getListConversionWorkspacesMethod) + == null) { + DataMigrationServiceGrpc.getListConversionWorkspacesMethod = + getListConversionWorkspacesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListConversionWorkspaces")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "ListConversionWorkspaces")) + .build(); + } + } + } + return getListConversionWorkspacesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest, + com.google.longrunning.Operation> + getCreateConversionWorkspaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConversionWorkspace", + requestType = com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest, + com.google.longrunning.Operation> + getCreateConversionWorkspaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest, + com.google.longrunning.Operation> + getCreateConversionWorkspaceMethod; + if ((getCreateConversionWorkspaceMethod = + DataMigrationServiceGrpc.getCreateConversionWorkspaceMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getCreateConversionWorkspaceMethod = + DataMigrationServiceGrpc.getCreateConversionWorkspaceMethod) + == null) { + DataMigrationServiceGrpc.getCreateConversionWorkspaceMethod = + getCreateConversionWorkspaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateConversionWorkspace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "CreateConversionWorkspace")) + .build(); + } + } + } + return getCreateConversionWorkspaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest, + com.google.longrunning.Operation> + getUpdateConversionWorkspaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConversionWorkspace", + requestType = com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest, + com.google.longrunning.Operation> + getUpdateConversionWorkspaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest, + com.google.longrunning.Operation> + getUpdateConversionWorkspaceMethod; + if ((getUpdateConversionWorkspaceMethod = + DataMigrationServiceGrpc.getUpdateConversionWorkspaceMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getUpdateConversionWorkspaceMethod = + DataMigrationServiceGrpc.getUpdateConversionWorkspaceMethod) + == null) { + DataMigrationServiceGrpc.getUpdateConversionWorkspaceMethod = + getUpdateConversionWorkspaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateConversionWorkspace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "UpdateConversionWorkspace")) + .build(); + } + } + } + return getUpdateConversionWorkspaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest, + com.google.longrunning.Operation> + getDeleteConversionWorkspaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConversionWorkspace", + requestType = com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest, + com.google.longrunning.Operation> + getDeleteConversionWorkspaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest, + com.google.longrunning.Operation> + getDeleteConversionWorkspaceMethod; + if ((getDeleteConversionWorkspaceMethod = + DataMigrationServiceGrpc.getDeleteConversionWorkspaceMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getDeleteConversionWorkspaceMethod = + DataMigrationServiceGrpc.getDeleteConversionWorkspaceMethod) + == null) { + DataMigrationServiceGrpc.getDeleteConversionWorkspaceMethod = + getDeleteConversionWorkspaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteConversionWorkspace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "DeleteConversionWorkspace")) + .build(); + } + } + } + return getDeleteConversionWorkspaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest, + com.google.longrunning.Operation> + getSeedConversionWorkspaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SeedConversionWorkspace", + requestType = com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest, + com.google.longrunning.Operation> + getSeedConversionWorkspaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest, + com.google.longrunning.Operation> + getSeedConversionWorkspaceMethod; + if ((getSeedConversionWorkspaceMethod = + DataMigrationServiceGrpc.getSeedConversionWorkspaceMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getSeedConversionWorkspaceMethod = + DataMigrationServiceGrpc.getSeedConversionWorkspaceMethod) + == null) { + DataMigrationServiceGrpc.getSeedConversionWorkspaceMethod = + getSeedConversionWorkspaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SeedConversionWorkspace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "SeedConversionWorkspace")) + .build(); + } + } + } + return getSeedConversionWorkspaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ImportMappingRulesRequest, com.google.longrunning.Operation> + getImportMappingRulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportMappingRules", + requestType = com.google.cloud.clouddms.v1.ImportMappingRulesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ImportMappingRulesRequest, com.google.longrunning.Operation> + getImportMappingRulesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ImportMappingRulesRequest, + com.google.longrunning.Operation> + getImportMappingRulesMethod; + if ((getImportMappingRulesMethod = DataMigrationServiceGrpc.getImportMappingRulesMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getImportMappingRulesMethod = DataMigrationServiceGrpc.getImportMappingRulesMethod) + == null) { + DataMigrationServiceGrpc.getImportMappingRulesMethod = + getImportMappingRulesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportMappingRules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("ImportMappingRules")) + .build(); + } + } + } + return getImportMappingRulesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest, + com.google.longrunning.Operation> + getConvertConversionWorkspaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ConvertConversionWorkspace", + requestType = com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest, + com.google.longrunning.Operation> + getConvertConversionWorkspaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest, + com.google.longrunning.Operation> + getConvertConversionWorkspaceMethod; + if ((getConvertConversionWorkspaceMethod = + DataMigrationServiceGrpc.getConvertConversionWorkspaceMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getConvertConversionWorkspaceMethod = + DataMigrationServiceGrpc.getConvertConversionWorkspaceMethod) + == null) { + DataMigrationServiceGrpc.getConvertConversionWorkspaceMethod = + getConvertConversionWorkspaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ConvertConversionWorkspace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "ConvertConversionWorkspace")) + .build(); + } + } + } + return getConvertConversionWorkspaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest, + com.google.longrunning.Operation> + getCommitConversionWorkspaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CommitConversionWorkspace", + requestType = com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest, + com.google.longrunning.Operation> + getCommitConversionWorkspaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest, + com.google.longrunning.Operation> + getCommitConversionWorkspaceMethod; + if ((getCommitConversionWorkspaceMethod = + DataMigrationServiceGrpc.getCommitConversionWorkspaceMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getCommitConversionWorkspaceMethod = + DataMigrationServiceGrpc.getCommitConversionWorkspaceMethod) + == null) { + DataMigrationServiceGrpc.getCommitConversionWorkspaceMethod = + getCommitConversionWorkspaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CommitConversionWorkspace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "CommitConversionWorkspace")) + .build(); + } + } + } + return getCommitConversionWorkspaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest, + com.google.longrunning.Operation> + getRollbackConversionWorkspaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RollbackConversionWorkspace", + requestType = com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest, + com.google.longrunning.Operation> + getRollbackConversionWorkspaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest, + com.google.longrunning.Operation> + getRollbackConversionWorkspaceMethod; + if ((getRollbackConversionWorkspaceMethod = + DataMigrationServiceGrpc.getRollbackConversionWorkspaceMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getRollbackConversionWorkspaceMethod = + DataMigrationServiceGrpc.getRollbackConversionWorkspaceMethod) + == null) { + DataMigrationServiceGrpc.getRollbackConversionWorkspaceMethod = + getRollbackConversionWorkspaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RollbackConversionWorkspace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "RollbackConversionWorkspace")) + .build(); + } + } + } + return getRollbackConversionWorkspaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest, + com.google.longrunning.Operation> + getApplyConversionWorkspaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApplyConversionWorkspace", + requestType = com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest, + com.google.longrunning.Operation> + getApplyConversionWorkspaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest, + com.google.longrunning.Operation> + getApplyConversionWorkspaceMethod; + if ((getApplyConversionWorkspaceMethod = + DataMigrationServiceGrpc.getApplyConversionWorkspaceMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getApplyConversionWorkspaceMethod = + DataMigrationServiceGrpc.getApplyConversionWorkspaceMethod) + == null) { + DataMigrationServiceGrpc.getApplyConversionWorkspaceMethod = + getApplyConversionWorkspaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ApplyConversionWorkspace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "ApplyConversionWorkspace")) + .build(); + } + } + } + return getApplyConversionWorkspaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest, + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse> + getDescribeDatabaseEntitiesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DescribeDatabaseEntities", + requestType = com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.class, + responseType = com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest, + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse> + getDescribeDatabaseEntitiesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest, + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse> + getDescribeDatabaseEntitiesMethod; + if ((getDescribeDatabaseEntitiesMethod = + DataMigrationServiceGrpc.getDescribeDatabaseEntitiesMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getDescribeDatabaseEntitiesMethod = + DataMigrationServiceGrpc.getDescribeDatabaseEntitiesMethod) + == null) { + DataMigrationServiceGrpc.getDescribeDatabaseEntitiesMethod = + getDescribeDatabaseEntitiesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DescribeDatabaseEntities")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "DescribeDatabaseEntities")) + .build(); + } + } + } + return getDescribeDatabaseEntitiesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest, + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse> + getSearchBackgroundJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchBackgroundJobs", + requestType = com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest.class, + responseType = com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest, + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse> + getSearchBackgroundJobsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest, + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse> + getSearchBackgroundJobsMethod; + if ((getSearchBackgroundJobsMethod = DataMigrationServiceGrpc.getSearchBackgroundJobsMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getSearchBackgroundJobsMethod = DataMigrationServiceGrpc.getSearchBackgroundJobsMethod) + == null) { + DataMigrationServiceGrpc.getSearchBackgroundJobsMethod = + getSearchBackgroundJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchBackgroundJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("SearchBackgroundJobs")) + .build(); + } + } + } + return getSearchBackgroundJobsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest, + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse> + getDescribeConversionWorkspaceRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DescribeConversionWorkspaceRevisions", + requestType = com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest.class, + responseType = + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest, + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse> + getDescribeConversionWorkspaceRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest, + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse> + getDescribeConversionWorkspaceRevisionsMethod; + if ((getDescribeConversionWorkspaceRevisionsMethod = + DataMigrationServiceGrpc.getDescribeConversionWorkspaceRevisionsMethod) + == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getDescribeConversionWorkspaceRevisionsMethod = + DataMigrationServiceGrpc.getDescribeConversionWorkspaceRevisionsMethod) + == null) { + DataMigrationServiceGrpc.getDescribeConversionWorkspaceRevisionsMethod = + getDescribeConversionWorkspaceRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DescribeConversionWorkspaceRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1 + .DescribeConversionWorkspaceRevisionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1 + .DescribeConversionWorkspaceRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier( + "DescribeConversionWorkspaceRevisions")) + .build(); + } + } + } + return getDescribeConversionWorkspaceRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.FetchStaticIpsRequest, + com.google.cloud.clouddms.v1.FetchStaticIpsResponse> + getFetchStaticIpsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchStaticIps", + requestType = com.google.cloud.clouddms.v1.FetchStaticIpsRequest.class, + responseType = com.google.cloud.clouddms.v1.FetchStaticIpsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.FetchStaticIpsRequest, + com.google.cloud.clouddms.v1.FetchStaticIpsResponse> + getFetchStaticIpsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.clouddms.v1.FetchStaticIpsRequest, + com.google.cloud.clouddms.v1.FetchStaticIpsResponse> + getFetchStaticIpsMethod; + if ((getFetchStaticIpsMethod = DataMigrationServiceGrpc.getFetchStaticIpsMethod) == null) { + synchronized (DataMigrationServiceGrpc.class) { + if ((getFetchStaticIpsMethod = DataMigrationServiceGrpc.getFetchStaticIpsMethod) == null) { + DataMigrationServiceGrpc.getFetchStaticIpsMethod = + getFetchStaticIpsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchStaticIps")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.FetchStaticIpsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.clouddms.v1.FetchStaticIpsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataMigrationServiceMethodDescriptorSupplier("FetchStaticIps")) + .build(); + } + } + } + return getFetchStaticIpsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DataMigrationServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataMigrationServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceStub(channel, callOptions); + } + }; + return DataMigrationServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataMigrationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataMigrationServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceBlockingStub(channel, callOptions); + } + }; + return DataMigrationServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DataMigrationServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataMigrationServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceFutureStub(channel, callOptions); + } + }; + return DataMigrationServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Database Migration service
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists migration jobs in a given project and location.
+     * 
+ */ + default void listMigrationJobs( + com.google.cloud.clouddms.v1.ListMigrationJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMigrationJobsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single migration job.
+     * 
+ */ + default void getMigrationJob( + com.google.cloud.clouddms.v1.GetMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new migration job in a given project and location.
+     * 
+ */ + default void createMigrationJob( + com.google.cloud.clouddms.v1.CreateMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single migration job.
+     * 
+ */ + default void updateMigrationJob( + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single migration job.
+     * 
+ */ + default void deleteMigrationJob( + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Start an already created migration job.
+     * 
+ */ + default void startMigrationJob( + com.google.cloud.clouddms.v1.StartMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops a running migration job.
+     * 
+ */ + default void stopMigrationJob( + com.google.cloud.clouddms.v1.StopMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Resume a migration job that is currently stopped and is resumable (was
+     * stopped during CDC phase).
+     * 
+ */ + default void resumeMigrationJob( + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResumeMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Promote a migration job, stopping replication to the destination and
+     * promoting the destination to be a standalone database.
+     * 
+ */ + default void promoteMigrationJob( + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPromoteMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Verify a migration job, making sure the destination can reach the source
+     * and that all configuration and prerequisites are met.
+     * 
+ */ + default void verifyMigrationJob( + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getVerifyMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Restart a stopped or failed migration job, resetting the destination
+     * instance to its original state and starting the migration process from
+     * scratch.
+     * 
+ */ + default void restartMigrationJob( + com.google.cloud.clouddms.v1.RestartMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestartMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Generate a SSH configuration script to configure the reverse SSH
+     * connectivity.
+     * 
+ */ + default void generateSshScript( + com.google.cloud.clouddms.v1.GenerateSshScriptRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateSshScriptMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a list of all connection profiles in a given project and
+     * location.
+     * 
+ */ + default void listConnectionProfiles( + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectionProfilesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single connection profile.
+     * 
+ */ + default void getConnectionProfile( + com.google.cloud.clouddms.v1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new connection profile in a given project and location.
+     * 
+ */ + default void createConnectionProfile( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Update the configuration of a single connection profile.
+     * 
+ */ + default void updateConnectionProfile( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Database Migration Service connection profile.
+     * A connection profile can only be deleted if it is not in use by any
+     * active migration jobs.
+     * 
+ */ + default void deleteConnectionProfile( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new private connection in a given project and location.
+     * 
+ */ + default void createPrivateConnection( + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single private connection.
+     * 
+ */ + default void getPrivateConnection( + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a list of private connections in a given project and location.
+     * 
+ */ + default void listPrivateConnections( + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPrivateConnectionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Database Migration Service private connection.
+     * 
+ */ + default void deletePrivateConnection( + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single conversion workspace.
+     * 
+ */ + default void getConversionWorkspace( + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConversionWorkspaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists conversion workspaces in a given project and location.
+     * 
+ */ + default void listConversionWorkspaces( + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConversionWorkspacesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new conversion workspace in a given project and location.
+     * 
+ */ + default void createConversionWorkspace( + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConversionWorkspaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single conversion workspace.
+     * 
+ */ + default void updateConversionWorkspace( + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConversionWorkspaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single conversion workspace.
+     * 
+ */ + default void deleteConversionWorkspace( + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConversionWorkspaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Imports a snapshot of the source database into the
+     * conversion workspace.
+     * 
+ */ + default void seedConversionWorkspace( + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSeedConversionWorkspaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Imports the mapping rules for a given conversion workspace.
+     * Supports various formats of external rules files.
+     * 
+ */ + default void importMappingRules( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportMappingRulesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a draft tree schema for the destination database.
+     * 
+ */ + default void convertConversionWorkspace( + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getConvertConversionWorkspaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Marks all the data in the conversion workspace as committed.
+     * 
+ */ + default void commitConversionWorkspace( + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCommitConversionWorkspaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Rolls back a conversion workspace to the last committed snapshot.
+     * 
+ */ + default void rollbackConversionWorkspace( + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRollbackConversionWorkspaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Applies draft tree onto a specific destination database.
+     * 
+ */ + default void applyConversionWorkspace( + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApplyConversionWorkspaceMethod(), responseObserver); + } + + /** + * + * + *
+     * Describes the database entities tree for a specific conversion workspace
+     * and a specific tree type.
+     * Database entities are not resources like conversion workspaces or mapping
+     * rules, and they can't be created, updated or deleted. Instead, they are
+     * simple data objects describing the structure of the client database.
+     * 
+ */ + default void describeDatabaseEntities( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDescribeDatabaseEntitiesMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches/lists the background jobs for a specific
+     * conversion workspace.
+     * The background jobs are not resources like conversion workspaces or
+     * mapping rules, and they can't be created, updated or deleted.
+     * Instead, they are a way to expose the data plane jobs log.
+     * 
+ */ + default void searchBackgroundJobs( + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchBackgroundJobsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a list of committed revisions of a specific conversion
+     * workspace.
+     * 
+ */ + default void describeConversionWorkspaceRevisions( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDescribeConversionWorkspaceRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches a set of static IP addresses that need to be allowlisted by the
+     * customer when using the static-IP connectivity method.
+     * 
+ */ + default void fetchStaticIps( + com.google.cloud.clouddms.v1.FetchStaticIpsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchStaticIpsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DataMigrationService. + * + *
+   * Database Migration service
+   * 
+ */ + public abstract static class DataMigrationServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DataMigrationServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DataMigrationService. + * + *
+   * Database Migration service
+   * 
+ */ + public static final class DataMigrationServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DataMigrationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataMigrationServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists migration jobs in a given project and location.
+     * 
+ */ + public void listMigrationJobs( + com.google.cloud.clouddms.v1.ListMigrationJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMigrationJobsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single migration job.
+     * 
+ */ + public void getMigrationJob( + com.google.cloud.clouddms.v1.GetMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new migration job in a given project and location.
+     * 
+ */ + public void createMigrationJob( + com.google.cloud.clouddms.v1.CreateMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single migration job.
+     * 
+ */ + public void updateMigrationJob( + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single migration job.
+     * 
+ */ + public void deleteMigrationJob( + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Start an already created migration job.
+     * 
+ */ + public void startMigrationJob( + com.google.cloud.clouddms.v1.StartMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops a running migration job.
+     * 
+ */ + public void stopMigrationJob( + com.google.cloud.clouddms.v1.StopMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Resume a migration job that is currently stopped and is resumable (was
+     * stopped during CDC phase).
+     * 
+ */ + public void resumeMigrationJob( + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResumeMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Promote a migration job, stopping replication to the destination and
+     * promoting the destination to be a standalone database.
+     * 
+ */ + public void promoteMigrationJob( + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPromoteMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Verify a migration job, making sure the destination can reach the source
+     * and that all configuration and prerequisites are met.
+     * 
+ */ + public void verifyMigrationJob( + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Restart a stopped or failed migration job, resetting the destination
+     * instance to its original state and starting the migration process from
+     * scratch.
+     * 
+ */ + public void restartMigrationJob( + com.google.cloud.clouddms.v1.RestartMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestartMigrationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generate a SSH configuration script to configure the reverse SSH
+     * connectivity.
+     * 
+ */ + public void generateSshScript( + com.google.cloud.clouddms.v1.GenerateSshScriptRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a list of all connection profiles in a given project and
+     * location.
+     * 
+ */ + public void listConnectionProfiles( + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single connection profile.
+     * 
+ */ + public void getConnectionProfile( + com.google.cloud.clouddms.v1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new connection profile in a given project and location.
+     * 
+ */ + public void createConnectionProfile( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update the configuration of a single connection profile.
+     * 
+ */ + public void updateConnectionProfile( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Database Migration Service connection profile.
+     * A connection profile can only be deleted if it is not in use by any
+     * active migration jobs.
+     * 
+ */ + public void deleteConnectionProfile( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new private connection in a given project and location.
+     * 
+ */ + public void createPrivateConnection( + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single private connection.
+     * 
+ */ + public void getPrivateConnection( + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a list of private connections in a given project and location.
+     * 
+ */ + public void listPrivateConnections( + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Database Migration Service private connection.
+     * 
+ */ + public void deletePrivateConnection( + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single conversion workspace.
+     * 
+ */ + public void getConversionWorkspace( + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConversionWorkspaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists conversion workspaces in a given project and location.
+     * 
+ */ + public void listConversionWorkspaces( + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConversionWorkspacesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new conversion workspace in a given project and location.
+     * 
+ */ + public void createConversionWorkspace( + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConversionWorkspaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single conversion workspace.
+     * 
+ */ + public void updateConversionWorkspace( + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConversionWorkspaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single conversion workspace.
+     * 
+ */ + public void deleteConversionWorkspace( + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConversionWorkspaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports a snapshot of the source database into the
+     * conversion workspace.
+     * 
+ */ + public void seedConversionWorkspace( + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSeedConversionWorkspaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports the mapping rules for a given conversion workspace.
+     * Supports various formats of external rules files.
+     * 
+ */ + public void importMappingRules( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportMappingRulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a draft tree schema for the destination database.
+     * 
+ */ + public void convertConversionWorkspace( + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getConvertConversionWorkspaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Marks all the data in the conversion workspace as committed.
+     * 
+ */ + public void commitConversionWorkspace( + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCommitConversionWorkspaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Rolls back a conversion workspace to the last committed snapshot.
+     * 
+ */ + public void rollbackConversionWorkspace( + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRollbackConversionWorkspaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Applies draft tree onto a specific destination database.
+     * 
+ */ + public void applyConversionWorkspace( + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApplyConversionWorkspaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Describes the database entities tree for a specific conversion workspace
+     * and a specific tree type.
+     * Database entities are not resources like conversion workspaces or mapping
+     * rules, and they can't be created, updated or deleted. Instead, they are
+     * simple data objects describing the structure of the client database.
+     * 
+ */ + public void describeDatabaseEntities( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDescribeDatabaseEntitiesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches/lists the background jobs for a specific
+     * conversion workspace.
+     * The background jobs are not resources like conversion workspaces or
+     * mapping rules, and they can't be created, updated or deleted.
+     * Instead, they are a way to expose the data plane jobs log.
+     * 
+ */ + public void searchBackgroundJobs( + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchBackgroundJobsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a list of committed revisions of a specific conversion
+     * workspace.
+     * 
+ */ + public void describeConversionWorkspaceRevisions( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDescribeConversionWorkspaceRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches a set of static IP addresses that need to be allowlisted by the
+     * customer when using the static-IP connectivity method.
+     * 
+ */ + public void fetchStaticIps( + com.google.cloud.clouddms.v1.FetchStaticIpsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), + request, + responseObserver); + } } /** - * + * A stub to allow clients to do synchronous rpc calls to service DataMigrationService. * *
    * Database Migration service
    * 
*/ - public interface AsyncService { + public static final class DataMigrationServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DataMigrationServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataMigrationServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataMigrationServiceBlockingStub(channel, callOptions); + } /** * @@ -906,12 +3088,10 @@ public interface AsyncService { * Lists migration jobs in a given project and location. * */ - default void listMigrationJobs( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMigrationJobsMethod(), responseObserver); + public com.google.cloud.clouddms.v1.ListMigrationJobsResponse listMigrationJobs( + com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMigrationJobsMethod(), getCallOptions(), request); } /** @@ -921,11 +3101,10 @@ default void listMigrationJobs( * Gets details of a single migration job. * */ - default void getMigrationJob( - com.google.cloud.clouddms.v1.GetMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetMigrationJobMethod(), responseObserver); + public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob( + com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMigrationJobMethod(), getCallOptions(), request); } /** @@ -935,11 +3114,10 @@ default void getMigrationJob( * Creates a new migration job in a given project and location. * */ - default void createMigrationJob( - com.google.cloud.clouddms.v1.CreateMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateMigrationJobMethod(), responseObserver); + public com.google.longrunning.Operation createMigrationJob( + com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMigrationJobMethod(), getCallOptions(), request); } /** @@ -949,11 +3127,10 @@ default void createMigrationJob( * Updates the parameters of a single migration job. * */ - default void updateMigrationJob( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateMigrationJobMethod(), responseObserver); + public com.google.longrunning.Operation updateMigrationJob( + com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMigrationJobMethod(), getCallOptions(), request); } /** @@ -963,11 +3140,10 @@ default void updateMigrationJob( * Deletes a single migration job. * */ - default void deleteMigrationJob( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteMigrationJobMethod(), responseObserver); + public com.google.longrunning.Operation deleteMigrationJob( + com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMigrationJobMethod(), getCallOptions(), request); } /** @@ -977,11 +3153,10 @@ default void deleteMigrationJob( * Start an already created migration job. * */ - default void startMigrationJob( - com.google.cloud.clouddms.v1.StartMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartMigrationJobMethod(), responseObserver); + public com.google.longrunning.Operation startMigrationJob( + com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartMigrationJobMethod(), getCallOptions(), request); } /** @@ -991,11 +3166,10 @@ default void startMigrationJob( * Stops a running migration job. * */ - default void stopMigrationJob( - com.google.cloud.clouddms.v1.StopMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopMigrationJobMethod(), responseObserver); + public com.google.longrunning.Operation stopMigrationJob( + com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopMigrationJobMethod(), getCallOptions(), request); } /** @@ -1006,11 +3180,10 @@ default void stopMigrationJob( * stopped during CDC phase). * */ - default void resumeMigrationJob( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResumeMigrationJobMethod(), responseObserver); + public com.google.longrunning.Operation resumeMigrationJob( + com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResumeMigrationJobMethod(), getCallOptions(), request); } /** @@ -1021,11 +3194,10 @@ default void resumeMigrationJob( * promoting the destination to be a standalone database. * */ - default void promoteMigrationJob( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPromoteMigrationJobMethod(), responseObserver); + public com.google.longrunning.Operation promoteMigrationJob( + com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPromoteMigrationJobMethod(), getCallOptions(), request); } /** @@ -1036,11 +3208,10 @@ default void promoteMigrationJob( * and that all configuration and prerequisites are met. * */ - default void verifyMigrationJob( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getVerifyMigrationJobMethod(), responseObserver); + public com.google.longrunning.Operation verifyMigrationJob( + com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyMigrationJobMethod(), getCallOptions(), request); } /** @@ -1052,11 +3223,10 @@ default void verifyMigrationJob( * scratch. * */ - default void restartMigrationJob( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestartMigrationJobMethod(), responseObserver); + public com.google.longrunning.Operation restartMigrationJob( + com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestartMigrationJobMethod(), getCallOptions(), request); } /** @@ -1067,26 +3237,24 @@ default void restartMigrationJob( * connectivity. * */ - default void generateSshScript( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateSshScriptMethod(), responseObserver); + public com.google.cloud.clouddms.v1.SshScript generateSshScript( + com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateSshScriptMethod(), getCallOptions(), request); } /** * * *
-     * Retrieve a list of all connection profiles in a given project and location.
+     * Retrieves a list of all connection profiles in a given project and
+     * location.
      * 
*/ - default void listConnectionProfiles( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConnectionProfilesMethod(), responseObserver); + public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse listConnectionProfiles( + com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); } /** @@ -1096,12 +3264,10 @@ default void listConnectionProfiles( * Gets details of a single connection profile. * */ - default void getConnectionProfile( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConnectionProfileMethod(), responseObserver); + public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile( + com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); } /** @@ -1111,11 +3277,10 @@ default void getConnectionProfile( * Creates a new connection profile in a given project and location. * */ - default void createConnectionProfile( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConnectionProfileMethod(), responseObserver); + public com.google.longrunning.Operation createConnectionProfile( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); } /** @@ -1125,11 +3290,10 @@ default void createConnectionProfile( * Update the configuration of a single connection profile. * */ - default void updateConnectionProfile( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConnectionProfileMethod(), responseObserver); + public com.google.longrunning.Operation updateConnectionProfile( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); } /** @@ -1141,351 +3305,291 @@ default void updateConnectionProfile( * active migration jobs. * */ - default void deleteConnectionProfile( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConnectionProfileMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DataMigrationService. - * - *
-   * Database Migration service
-   * 
- */ - public abstract static class DataMigrationServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return DataMigrationServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service DataMigrationService. - * - *
-   * Database Migration service
-   * 
- */ - public static final class DataMigrationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DataMigrationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + public com.google.longrunning.Operation deleteConnectionProfile( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); } - @java.lang.Override - protected DataMigrationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceStub(channel, callOptions); + /** + * + * + *
+     * Creates a new private connection in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createPrivateConnection( + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); } /** * * *
-     * Lists migration jobs in a given project and location.
+     * Gets details of a single private connection.
      * 
*/ - public void listMigrationJobs( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMigrationJobsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.clouddms.v1.PrivateConnection getPrivateConnection( + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single migration job.
+     * Retrieves a list of private connections in a given project and location.
      * 
*/ - public void getMigrationJob( - com.google.cloud.clouddms.v1.GetMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMigrationJobMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse listPrivateConnections( + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); } /** * * *
-     * Creates a new migration job in a given project and location.
+     * Deletes a single Database Migration Service private connection.
      * 
*/ - public void createMigrationJob( - com.google.cloud.clouddms.v1.CreateMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMigrationJobMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deletePrivateConnection( + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single conversion workspace.
+     * 
+ */ + public com.google.cloud.clouddms.v1.ConversionWorkspace getConversionWorkspace( + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConversionWorkspaceMethod(), getCallOptions(), request); } /** * * *
-     * Updates the parameters of a single migration job.
+     * Lists conversion workspaces in a given project and location.
      * 
*/ - public void updateMigrationJob( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMigrationJobMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse listConversionWorkspaces( + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConversionWorkspacesMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a single migration job.
+     * Creates a new conversion workspace in a given project and location.
      * 
*/ - public void deleteMigrationJob( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMigrationJobMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createConversionWorkspace( + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConversionWorkspaceMethod(), getCallOptions(), request); } /** * * *
-     * Start an already created migration job.
+     * Updates the parameters of a single conversion workspace.
      * 
*/ - public void startMigrationJob( - com.google.cloud.clouddms.v1.StartMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartMigrationJobMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateConversionWorkspace( + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConversionWorkspaceMethod(), getCallOptions(), request); } /** * * *
-     * Stops a running migration job.
+     * Deletes a single conversion workspace.
      * 
*/ - public void stopMigrationJob( - com.google.cloud.clouddms.v1.StopMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopMigrationJobMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteConversionWorkspace( + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConversionWorkspaceMethod(), getCallOptions(), request); } /** * * *
-     * Resume a migration job that is currently stopped and is resumable (was
-     * stopped during CDC phase).
+     * Imports a snapshot of the source database into the
+     * conversion workspace.
      * 
*/ - public void resumeMigrationJob( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResumeMigrationJobMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation seedConversionWorkspace( + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSeedConversionWorkspaceMethod(), getCallOptions(), request); } /** * * *
-     * Promote a migration job, stopping replication to the destination and
-     * promoting the destination to be a standalone database.
+     * Imports the mapping rules for a given conversion workspace.
+     * Supports various formats of external rules files.
      * 
*/ - public void promoteMigrationJob( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPromoteMigrationJobMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation importMappingRules( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportMappingRulesMethod(), getCallOptions(), request); } /** * * *
-     * Verify a migration job, making sure the destination can reach the source
-     * and that all configuration and prerequisites are met.
+     * Creates a draft tree schema for the destination database.
      * 
*/ - public void verifyMigrationJob( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getVerifyMigrationJobMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation convertConversionWorkspace( + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getConvertConversionWorkspaceMethod(), getCallOptions(), request); } /** * * *
-     * Restart a stopped or failed migration job, resetting the destination
-     * instance to its original state and starting the migration process from
-     * scratch.
+     * Marks all the data in the conversion workspace as committed.
      * 
*/ - public void restartMigrationJob( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestartMigrationJobMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation commitConversionWorkspace( + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCommitConversionWorkspaceMethod(), getCallOptions(), request); } /** * * *
-     * Generate a SSH configuration script to configure the reverse SSH
-     * connectivity.
+     * Rolls back a conversion workspace to the last committed snapshot.
      * 
*/ - public void generateSshScript( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation rollbackConversionWorkspace( + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRollbackConversionWorkspaceMethod(), getCallOptions(), request); } /** * * *
-     * Retrieve a list of all connection profiles in a given project and location.
+     * Applies draft tree onto a specific destination database.
      * 
*/ - public void listConnectionProfiles( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation applyConversionWorkspace( + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApplyConversionWorkspaceMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single connection profile.
+     * Describes the database entities tree for a specific conversion workspace
+     * and a specific tree type.
+     * Database entities are not resources like conversion workspaces or mapping
+     * rules, and they can't be created, updated or deleted. Instead, they are
+     * simple data objects describing the structure of the client database.
      * 
*/ - public void getConnectionProfile( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse describeDatabaseEntities( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDescribeDatabaseEntitiesMethod(), getCallOptions(), request); } /** * * *
-     * Creates a new connection profile in a given project and location.
+     * Searches/lists the background jobs for a specific
+     * conversion workspace.
+     * The background jobs are not resources like conversion workspaces or
+     * mapping rules, and they can't be created, updated or deleted.
+     * Instead, they are a way to expose the data plane jobs log.
      * 
*/ - public void createConnectionProfile( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse searchBackgroundJobs( + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchBackgroundJobsMethod(), getCallOptions(), request); } /** * * *
-     * Update the configuration of a single connection profile.
+     * Retrieves a list of committed revisions of a specific conversion
+     * workspace.
      * 
*/ - public void updateConnectionProfile( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse + describeConversionWorkspaceRevisions( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDescribeConversionWorkspaceRevisionsMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a single Database Migration Service connection profile.
-     * A connection profile can only be deleted if it is not in use by any
-     * active migration jobs.
+     * Fetches a set of static IP addresses that need to be allowlisted by the
+     * customer when using the static-IP connectivity method.
      * 
*/ - public void deleteConnectionProfile( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.clouddms.v1.FetchStaticIpsResponse fetchStaticIps( + com.google.cloud.clouddms.v1.FetchStaticIpsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchStaticIpsMethod(), getCallOptions(), request); } } /** - * A stub to allow clients to do synchronous rpc calls to service DataMigrationService. + * A stub to allow clients to do ListenableFuture-style rpc calls to service DataMigrationService. * *
    * Database Migration service
    * 
*/ - public static final class DataMigrationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DataMigrationServiceBlockingStub( + public static final class DataMigrationServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DataMigrationServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected DataMigrationServiceBlockingStub build( + protected DataMigrationServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceBlockingStub(channel, callOptions); + return new DataMigrationServiceFutureStub(channel, callOptions); } /** @@ -1495,10 +3599,11 @@ protected DataMigrationServiceBlockingStub build( * Lists migration jobs in a given project and location. * */ - public com.google.cloud.clouddms.v1.ListMigrationJobsResponse listMigrationJobs( - com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMigrationJobsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.ListMigrationJobsResponse> + listMigrationJobs(com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMigrationJobsMethod(), getCallOptions()), request); } /** @@ -1508,10 +3613,11 @@ public com.google.cloud.clouddms.v1.ListMigrationJobsResponse listMigrationJobs( * Gets details of a single migration job. * */ - public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob( - com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMigrationJobMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.MigrationJob> + getMigrationJob(com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMigrationJobMethod(), getCallOptions()), request); } /** @@ -1521,10 +3627,10 @@ public com.google.cloud.clouddms.v1.MigrationJob getMigrationJob( * Creates a new migration job in a given project and location. * */ - public com.google.longrunning.Operation createMigrationJob( - com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMigrationJobMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createMigrationJob(com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMigrationJobMethod(), getCallOptions()), request); } /** @@ -1534,10 +3640,10 @@ public com.google.longrunning.Operation createMigrationJob( * Updates the parameters of a single migration job. * */ - public com.google.longrunning.Operation updateMigrationJob( - com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMigrationJobMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateMigrationJob(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMigrationJobMethod(), getCallOptions()), request); } /** @@ -1547,10 +3653,10 @@ public com.google.longrunning.Operation updateMigrationJob( * Deletes a single migration job. * */ - public com.google.longrunning.Operation deleteMigrationJob( - com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMigrationJobMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteMigrationJob(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMigrationJobMethod(), getCallOptions()), request); } /** @@ -1560,10 +3666,10 @@ public com.google.longrunning.Operation deleteMigrationJob( * Start an already created migration job. * */ - public com.google.longrunning.Operation startMigrationJob( - com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartMigrationJobMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + startMigrationJob(com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartMigrationJobMethod(), getCallOptions()), request); } /** @@ -1573,10 +3679,10 @@ public com.google.longrunning.Operation startMigrationJob( * Stops a running migration job. * */ - public com.google.longrunning.Operation stopMigrationJob( - com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopMigrationJobMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + stopMigrationJob(com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopMigrationJobMethod(), getCallOptions()), request); } /** @@ -1587,10 +3693,10 @@ public com.google.longrunning.Operation stopMigrationJob( * stopped during CDC phase). * */ - public com.google.longrunning.Operation resumeMigrationJob( - com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResumeMigrationJobMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + resumeMigrationJob(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResumeMigrationJobMethod(), getCallOptions()), request); } /** @@ -1601,10 +3707,10 @@ public com.google.longrunning.Operation resumeMigrationJob( * promoting the destination to be a standalone database. * */ - public com.google.longrunning.Operation promoteMigrationJob( - com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPromoteMigrationJobMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + promoteMigrationJob(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPromoteMigrationJobMethod(), getCallOptions()), request); } /** @@ -1615,10 +3721,10 @@ public com.google.longrunning.Operation promoteMigrationJob( * and that all configuration and prerequisites are met. * */ - public com.google.longrunning.Operation verifyMigrationJob( - com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getVerifyMigrationJobMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + verifyMigrationJob(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyMigrationJobMethod(), getCallOptions()), request); } /** @@ -1630,10 +3736,10 @@ public com.google.longrunning.Operation verifyMigrationJob( * scratch. * */ - public com.google.longrunning.Operation restartMigrationJob( - com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestartMigrationJobMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + restartMigrationJob(com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestartMigrationJobMethod(), getCallOptions()), request); } /** @@ -1644,23 +3750,26 @@ public com.google.longrunning.Operation restartMigrationJob( * connectivity. * */ - public com.google.cloud.clouddms.v1.SshScript generateSshScript( - com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateSshScriptMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.SshScript> + generateSshScript(com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), request); } /** * * *
-     * Retrieve a list of all connection profiles in a given project and location.
+     * Retrieves a list of all connection profiles in a given project and
+     * location.
      * 
*/ - public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse listConnectionProfiles( - com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.ListConnectionProfilesResponse> + listConnectionProfiles(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); } /** @@ -1670,10 +3779,11 @@ public com.google.cloud.clouddms.v1.ListConnectionProfilesResponse listConnectio * Gets details of a single connection profile. * */ - public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile( - com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.ConnectionProfile> + getConnectionProfile(com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); } /** @@ -1683,10 +3793,11 @@ public com.google.cloud.clouddms.v1.ConnectionProfile getConnectionProfile( * Creates a new connection profile in a given project and location. * */ - public com.google.longrunning.Operation createConnectionProfile( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createConnectionProfile( + com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); } /** @@ -1696,10 +3807,11 @@ public com.google.longrunning.Operation createConnectionProfile( * Update the configuration of a single connection profile. * */ - public com.google.longrunning.Operation updateConnectionProfile( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateConnectionProfile( + com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); } /** @@ -1711,268 +3823,292 @@ public com.google.longrunning.Operation updateConnectionProfile( * active migration jobs. * */ - public com.google.longrunning.Operation deleteConnectionProfile( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service DataMigrationService. - * - *
-   * Database Migration service
-   * 
- */ - public static final class DataMigrationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DataMigrationServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + public com.google.common.util.concurrent.ListenableFuture + deleteConnectionProfile( + com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); } - @java.lang.Override - protected DataMigrationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataMigrationServiceFutureStub(channel, callOptions); + /** + * + * + *
+     * Creates a new private connection in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createPrivateConnection( + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request); } /** * * *
-     * Lists migration jobs in a given project and location.
+     * Gets details of a single private connection.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.clouddms.v1.ListMigrationJobsResponse> - listMigrationJobs(com.google.cloud.clouddms.v1.ListMigrationJobsRequest request) { + com.google.cloud.clouddms.v1.PrivateConnection> + getPrivateConnection(com.google.cloud.clouddms.v1.GetPrivateConnectionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMigrationJobsMethod(), getCallOptions()), request); + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request); } /** * * *
-     * Gets details of a single migration job.
+     * Retrieves a list of private connections in a given project and location.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.clouddms.v1.MigrationJob> - getMigrationJob(com.google.cloud.clouddms.v1.GetMigrationJobRequest request) { + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse> + listPrivateConnections(com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMigrationJobMethod(), getCallOptions()), request); + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request); } /** * * *
-     * Creates a new migration job in a given project and location.
+     * Deletes a single Database Migration Service private connection.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture - createMigrationJob(com.google.cloud.clouddms.v1.CreateMigrationJobRequest request) { + deletePrivateConnection( + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMigrationJobMethod(), getCallOptions()), request); + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request); } /** * * *
-     * Updates the parameters of a single migration job.
+     * Gets details of a single conversion workspace.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateMigrationJob(com.google.cloud.clouddms.v1.UpdateMigrationJobRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.ConversionWorkspace> + getConversionWorkspace(com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMigrationJobMethod(), getCallOptions()), request); + getChannel().newCall(getGetConversionWorkspaceMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a single migration job.
+     * Lists conversion workspaces in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse> + listConversionWorkspaces( + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConversionWorkspacesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new conversion workspace in a given project and location.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture - deleteMigrationJob(com.google.cloud.clouddms.v1.DeleteMigrationJobRequest request) { + createConversionWorkspace( + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMigrationJobMethod(), getCallOptions()), request); + getChannel().newCall(getCreateConversionWorkspaceMethod(), getCallOptions()), request); } /** * * *
-     * Start an already created migration job.
+     * Updates the parameters of a single conversion workspace.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture - startMigrationJob(com.google.cloud.clouddms.v1.StartMigrationJobRequest request) { + updateConversionWorkspace( + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartMigrationJobMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateConversionWorkspaceMethod(), getCallOptions()), request); } /** * * *
-     * Stops a running migration job.
+     * Deletes a single conversion workspace.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture - stopMigrationJob(com.google.cloud.clouddms.v1.StopMigrationJobRequest request) { + deleteConversionWorkspace( + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopMigrationJobMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteConversionWorkspaceMethod(), getCallOptions()), request); } /** * * *
-     * Resume a migration job that is currently stopped and is resumable (was
-     * stopped during CDC phase).
+     * Imports a snapshot of the source database into the
+     * conversion workspace.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture - resumeMigrationJob(com.google.cloud.clouddms.v1.ResumeMigrationJobRequest request) { + seedConversionWorkspace( + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResumeMigrationJobMethod(), getCallOptions()), request); + getChannel().newCall(getSeedConversionWorkspaceMethod(), getCallOptions()), request); } /** * * *
-     * Promote a migration job, stopping replication to the destination and
-     * promoting the destination to be a standalone database.
+     * Imports the mapping rules for a given conversion workspace.
+     * Supports various formats of external rules files.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture - promoteMigrationJob(com.google.cloud.clouddms.v1.PromoteMigrationJobRequest request) { + importMappingRules(com.google.cloud.clouddms.v1.ImportMappingRulesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPromoteMigrationJobMethod(), getCallOptions()), request); + getChannel().newCall(getImportMappingRulesMethod(), getCallOptions()), request); } /** * * *
-     * Verify a migration job, making sure the destination can reach the source
-     * and that all configuration and prerequisites are met.
+     * Creates a draft tree schema for the destination database.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture - verifyMigrationJob(com.google.cloud.clouddms.v1.VerifyMigrationJobRequest request) { + convertConversionWorkspace( + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getVerifyMigrationJobMethod(), getCallOptions()), request); + getChannel().newCall(getConvertConversionWorkspaceMethod(), getCallOptions()), request); } /** * * *
-     * Restart a stopped or failed migration job, resetting the destination
-     * instance to its original state and starting the migration process from
-     * scratch.
+     * Marks all the data in the conversion workspace as committed.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture - restartMigrationJob(com.google.cloud.clouddms.v1.RestartMigrationJobRequest request) { + commitConversionWorkspace( + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestartMigrationJobMethod(), getCallOptions()), request); + getChannel().newCall(getCommitConversionWorkspaceMethod(), getCallOptions()), request); } /** * * *
-     * Generate a SSH configuration script to configure the reverse SSH
-     * connectivity.
+     * Rolls back a conversion workspace to the last committed snapshot.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.clouddms.v1.SshScript> - generateSshScript(com.google.cloud.clouddms.v1.GenerateSshScriptRequest request) { + public com.google.common.util.concurrent.ListenableFuture + rollbackConversionWorkspace( + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), request); + getChannel().newCall(getRollbackConversionWorkspaceMethod(), getCallOptions()), request); } /** * * *
-     * Retrieve a list of all connection profiles in a given project and location.
+     * Applies draft tree onto a specific destination database.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.clouddms.v1.ListConnectionProfilesResponse> - listConnectionProfiles(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest request) { + public com.google.common.util.concurrent.ListenableFuture + applyConversionWorkspace( + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); + getChannel().newCall(getApplyConversionWorkspaceMethod(), getCallOptions()), request); } /** * * *
-     * Gets details of a single connection profile.
+     * Describes the database entities tree for a specific conversion workspace
+     * and a specific tree type.
+     * Database entities are not resources like conversion workspaces or mapping
+     * rules, and they can't be created, updated or deleted. Instead, they are
+     * simple data objects describing the structure of the client database.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.clouddms.v1.ConnectionProfile> - getConnectionProfile(com.google.cloud.clouddms.v1.GetConnectionProfileRequest request) { + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse> + describeDatabaseEntities( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); + getChannel().newCall(getDescribeDatabaseEntitiesMethod(), getCallOptions()), request); } /** * * *
-     * Creates a new connection profile in a given project and location.
+     * Searches/lists the background jobs for a specific
+     * conversion workspace.
+     * The background jobs are not resources like conversion workspaces or
+     * mapping rules, and they can't be created, updated or deleted.
+     * Instead, they are a way to expose the data plane jobs log.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createConnectionProfile( - com.google.cloud.clouddms.v1.CreateConnectionProfileRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse> + searchBackgroundJobs(com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); + getChannel().newCall(getSearchBackgroundJobsMethod(), getCallOptions()), request); } /** * * *
-     * Update the configuration of a single connection profile.
+     * Retrieves a list of committed revisions of a specific conversion
+     * workspace.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateConnectionProfile( - com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse> + describeConversionWorkspaceRevisions( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); + getChannel().newCall(getDescribeConversionWorkspaceRevisionsMethod(), getCallOptions()), + request); } /** * * *
-     * Deletes a single Database Migration Service connection profile.
-     * A connection profile can only be deleted if it is not in use by any
-     * active migration jobs.
+     * Fetches a set of static IP addresses that need to be allowlisted by the
+     * customer when using the static-IP connectivity method.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteConnectionProfile( - com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.clouddms.v1.FetchStaticIpsResponse> + fetchStaticIps(com.google.cloud.clouddms.v1.FetchStaticIpsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); + getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request); } } @@ -1993,6 +4129,25 @@ protected DataMigrationServiceFutureStub build( private static final int METHODID_CREATE_CONNECTION_PROFILE = 14; private static final int METHODID_UPDATE_CONNECTION_PROFILE = 15; private static final int METHODID_DELETE_CONNECTION_PROFILE = 16; + private static final int METHODID_CREATE_PRIVATE_CONNECTION = 17; + private static final int METHODID_GET_PRIVATE_CONNECTION = 18; + private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 19; + private static final int METHODID_DELETE_PRIVATE_CONNECTION = 20; + private static final int METHODID_GET_CONVERSION_WORKSPACE = 21; + private static final int METHODID_LIST_CONVERSION_WORKSPACES = 22; + private static final int METHODID_CREATE_CONVERSION_WORKSPACE = 23; + private static final int METHODID_UPDATE_CONVERSION_WORKSPACE = 24; + private static final int METHODID_DELETE_CONVERSION_WORKSPACE = 25; + private static final int METHODID_SEED_CONVERSION_WORKSPACE = 26; + private static final int METHODID_IMPORT_MAPPING_RULES = 27; + private static final int METHODID_CONVERT_CONVERSION_WORKSPACE = 28; + private static final int METHODID_COMMIT_CONVERSION_WORKSPACE = 29; + private static final int METHODID_ROLLBACK_CONVERSION_WORKSPACE = 30; + private static final int METHODID_APPLY_CONVERSION_WORKSPACE = 31; + private static final int METHODID_DESCRIBE_DATABASE_ENTITIES = 32; + private static final int METHODID_SEARCH_BACKGROUND_JOBS = 33; + private static final int METHODID_DESCRIBE_CONVERSION_WORKSPACE_REVISIONS = 34; + private static final int METHODID_FETCH_STATIC_IPS = 35; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2102,6 +4257,114 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_PRIVATE_CONNECTION: + serviceImpl.createPrivateConnection( + (com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PRIVATE_CONNECTION: + serviceImpl.getPrivateConnection( + (com.google.cloud.clouddms.v1.GetPrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PRIVATE_CONNECTIONS: + serviceImpl.listPrivateConnections( + (com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse>) + responseObserver); + break; + case METHODID_DELETE_PRIVATE_CONNECTION: + serviceImpl.deletePrivateConnection( + (com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONVERSION_WORKSPACE: + serviceImpl.getConversionWorkspace( + (com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CONVERSION_WORKSPACES: + serviceImpl.listConversionWorkspaces( + (com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse>) + responseObserver); + break; + case METHODID_CREATE_CONVERSION_WORKSPACE: + serviceImpl.createConversionWorkspace( + (com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONVERSION_WORKSPACE: + serviceImpl.updateConversionWorkspace( + (com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONVERSION_WORKSPACE: + serviceImpl.deleteConversionWorkspace( + (com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEED_CONVERSION_WORKSPACE: + serviceImpl.seedConversionWorkspace( + (com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_MAPPING_RULES: + serviceImpl.importMappingRules( + (com.google.cloud.clouddms.v1.ImportMappingRulesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CONVERT_CONVERSION_WORKSPACE: + serviceImpl.convertConversionWorkspace( + (com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMMIT_CONVERSION_WORKSPACE: + serviceImpl.commitConversionWorkspace( + (com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLLBACK_CONVERSION_WORKSPACE: + serviceImpl.rollbackConversionWorkspace( + (com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_APPLY_CONVERSION_WORKSPACE: + serviceImpl.applyConversionWorkspace( + (com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DESCRIBE_DATABASE_ENTITIES: + serviceImpl.describeDatabaseEntities( + (com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse>) + responseObserver); + break; + case METHODID_SEARCH_BACKGROUND_JOBS: + serviceImpl.searchBackgroundJobs( + (com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse>) + responseObserver); + break; + case METHODID_DESCRIBE_CONVERSION_WORKSPACE_REVISIONS: + serviceImpl.describeConversionWorkspaceRevisions( + (com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse>) + responseObserver); + break; + case METHODID_FETCH_STATIC_IPS: + serviceImpl.fetchStaticIps( + (com.google.cloud.clouddms.v1.FetchStaticIpsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -2226,6 +4489,135 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_CONNECTION_PROFILE))) + .addMethod( + getCreatePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_PRIVATE_CONNECTION))) + .addMethod( + getGetPrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest, + com.google.cloud.clouddms.v1.PrivateConnection>( + service, METHODID_GET_PRIVATE_CONNECTION))) + .addMethod( + getListPrivateConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest, + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse>( + service, METHODID_LIST_PRIVATE_CONNECTIONS))) + .addMethod( + getDeletePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_PRIVATE_CONNECTION))) + .addMethod( + getGetConversionWorkspaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest, + com.google.cloud.clouddms.v1.ConversionWorkspace>( + service, METHODID_GET_CONVERSION_WORKSPACE))) + .addMethod( + getListConversionWorkspacesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest, + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse>( + service, METHODID_LIST_CONVERSION_WORKSPACES))) + .addMethod( + getCreateConversionWorkspaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_CONVERSION_WORKSPACE))) + .addMethod( + getUpdateConversionWorkspaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_CONVERSION_WORKSPACE))) + .addMethod( + getDeleteConversionWorkspaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_CONVERSION_WORKSPACE))) + .addMethod( + getSeedConversionWorkspaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest, + com.google.longrunning.Operation>(service, METHODID_SEED_CONVERSION_WORKSPACE))) + .addMethod( + getImportMappingRulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.ImportMappingRulesRequest, + com.google.longrunning.Operation>(service, METHODID_IMPORT_MAPPING_RULES))) + .addMethod( + getConvertConversionWorkspaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest, + com.google.longrunning.Operation>( + service, METHODID_CONVERT_CONVERSION_WORKSPACE))) + .addMethod( + getCommitConversionWorkspaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest, + com.google.longrunning.Operation>( + service, METHODID_COMMIT_CONVERSION_WORKSPACE))) + .addMethod( + getRollbackConversionWorkspaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest, + com.google.longrunning.Operation>( + service, METHODID_ROLLBACK_CONVERSION_WORKSPACE))) + .addMethod( + getApplyConversionWorkspaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest, + com.google.longrunning.Operation>( + service, METHODID_APPLY_CONVERSION_WORKSPACE))) + .addMethod( + getDescribeDatabaseEntitiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest, + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse>( + service, METHODID_DESCRIBE_DATABASE_ENTITIES))) + .addMethod( + getSearchBackgroundJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest, + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse>( + service, METHODID_SEARCH_BACKGROUND_JOBS))) + .addMethod( + getDescribeConversionWorkspaceRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest, + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse>( + service, METHODID_DESCRIBE_CONVERSION_WORKSPACE_REVISIONS))) + .addMethod( + getFetchStaticIpsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.clouddms.v1.FetchStaticIpsRequest, + com.google.cloud.clouddms.v1.FetchStaticIpsResponse>( + service, METHODID_FETCH_STATIC_IPS))) .build(); } @@ -2294,6 +4686,25 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateConnectionProfileMethod()) .addMethod(getUpdateConnectionProfileMethod()) .addMethod(getDeleteConnectionProfileMethod()) + .addMethod(getCreatePrivateConnectionMethod()) + .addMethod(getGetPrivateConnectionMethod()) + .addMethod(getListPrivateConnectionsMethod()) + .addMethod(getDeletePrivateConnectionMethod()) + .addMethod(getGetConversionWorkspaceMethod()) + .addMethod(getListConversionWorkspacesMethod()) + .addMethod(getCreateConversionWorkspaceMethod()) + .addMethod(getUpdateConversionWorkspaceMethod()) + .addMethod(getDeleteConversionWorkspaceMethod()) + .addMethod(getSeedConversionWorkspaceMethod()) + .addMethod(getImportMappingRulesMethod()) + .addMethod(getConvertConversionWorkspaceMethod()) + .addMethod(getCommitConversionWorkspaceMethod()) + .addMethod(getRollbackConversionWorkspaceMethod()) + .addMethod(getApplyConversionWorkspaceMethod()) + .addMethod(getDescribeDatabaseEntitiesMethod()) + .addMethod(getSearchBackgroundJobsMethod()) + .addMethod(getDescribeConversionWorkspaceRevisionsMethod()) + .addMethod(getFetchStaticIpsMethod()) .build(); } } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AlloyDbConnectionProfile.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AlloyDbConnectionProfile.java new file mode 100644 index 000000000000..81a2f294896d --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AlloyDbConnectionProfile.java @@ -0,0 +1,928 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Specifies required connection parameters, and the parameters
+ * required to create an AlloyDB destination cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.AlloyDbConnectionProfile} + */ +public final class AlloyDbConnectionProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.AlloyDbConnectionProfile) + AlloyDbConnectionProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlloyDbConnectionProfile.newBuilder() to construct. + private AlloyDbConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AlloyDbConnectionProfile() { + clusterId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AlloyDbConnectionProfile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbConnectionProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbConnectionProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.class, + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.Builder.class); + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + * + * + *
+   * Required. The AlloyDB cluster ID that this connection profile is associated
+   * with.
+   * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + 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(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The AlloyDB cluster ID that this connection profile is associated
+   * with.
+   * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SETTINGS_FIELD_NUMBER = 2; + private com.google.cloud.clouddms.v1.AlloyDbSettings settings_; + /** + * + * + *
+   * Immutable. Metadata used to create the destination AlloyDB cluster.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the settings field is set. + */ + @java.lang.Override + public boolean hasSettings() { + return settings_ != null; + } + /** + * + * + *
+   * Immutable. Metadata used to create the destination AlloyDB cluster.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The settings. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings getSettings() { + return settings_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.getDefaultInstance() + : settings_; + } + /** + * + * + *
+   * Immutable. Metadata used to create the destination AlloyDB cluster.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettingsOrBuilder getSettingsOrBuilder() { + return settings_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.getDefaultInstance() + : settings_; + } + + 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(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_); + } + if (settings_ != null) { + output.writeMessage(2, getSettings()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_); + } + if (settings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.AlloyDbConnectionProfile)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile other = + (com.google.cloud.clouddms.v1.AlloyDbConnectionProfile) obj; + + if (!getClusterId().equals(other.getClusterId())) return false; + if (hasSettings() != other.hasSettings()) return false; + if (hasSettings()) { + if (!getSettings().equals(other.getSettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasSettings()) { + hash = (37 * hash) + SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.AlloyDbConnectionProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbConnectionProfile 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.clouddms.v1.AlloyDbConnectionProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbConnectionProfile 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.clouddms.v1.AlloyDbConnectionProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbConnectionProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.AlloyDbConnectionProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbConnectionProfile 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.clouddms.v1.AlloyDbConnectionProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbConnectionProfile 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.clouddms.v1.AlloyDbConnectionProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbConnectionProfile 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.clouddms.v1.AlloyDbConnectionProfile 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; + } + /** + * + * + *
+   * Specifies required connection parameters, and the parameters
+   * required to create an AlloyDB destination cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.AlloyDbConnectionProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.AlloyDbConnectionProfile) + com.google.cloud.clouddms.v1.AlloyDbConnectionProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbConnectionProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbConnectionProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.class, + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterId_ = ""; + settings_ = null; + if (settingsBuilder_ != null) { + settingsBuilder_.dispose(); + settingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbConnectionProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbConnectionProfile getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbConnectionProfile build() { + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbConnectionProfile buildPartial() { + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile result = + new com.google.cloud.clouddms.v1.AlloyDbConnectionProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.AlloyDbConnectionProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.settings_ = settingsBuilder_ == null ? settings_ : settingsBuilder_.build(); + } + } + + @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.clouddms.v1.AlloyDbConnectionProfile) { + return mergeFrom((com.google.cloud.clouddms.v1.AlloyDbConnectionProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.AlloyDbConnectionProfile other) { + if (other == com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.getDefaultInstance()) + return this; + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSettings()) { + mergeSettings(other.getSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. The AlloyDB cluster ID that this connection profile is associated
+     * with.
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The AlloyDB cluster ID that this connection profile is associated
+     * with.
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The AlloyDB cluster ID that this connection profile is associated
+     * with.
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The AlloyDB cluster ID that this connection profile is associated
+     * with.
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The AlloyDB cluster ID that this connection profile is associated
+     * with.
+     * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.clouddms.v1.AlloyDbSettings settings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings, + com.google.cloud.clouddms.v1.AlloyDbSettings.Builder, + com.google.cloud.clouddms.v1.AlloyDbSettingsOrBuilder> + settingsBuilder_; + /** + * + * + *
+     * Immutable. Metadata used to create the destination AlloyDB cluster.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the settings field is set. + */ + public boolean hasSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Immutable. Metadata used to create the destination AlloyDB cluster.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The settings. + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings getSettings() { + if (settingsBuilder_ == null) { + return settings_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.getDefaultInstance() + : settings_; + } else { + return settingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Metadata used to create the destination AlloyDB cluster.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setSettings(com.google.cloud.clouddms.v1.AlloyDbSettings value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + settings_ = value; + } else { + settingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Metadata used to create the destination AlloyDB cluster.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setSettings( + com.google.cloud.clouddms.v1.AlloyDbSettings.Builder builderForValue) { + if (settingsBuilder_ == null) { + settings_ = builderForValue.build(); + } else { + settingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Metadata used to create the destination AlloyDB cluster.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeSettings(com.google.cloud.clouddms.v1.AlloyDbSettings value) { + if (settingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && settings_ != null + && settings_ != com.google.cloud.clouddms.v1.AlloyDbSettings.getDefaultInstance()) { + getSettingsBuilder().mergeFrom(value); + } else { + settings_ = value; + } + } else { + settingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Metadata used to create the destination AlloyDB cluster.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearSettings() { + bitField0_ = (bitField0_ & ~0x00000002); + settings_ = null; + if (settingsBuilder_ != null) { + settingsBuilder_.dispose(); + settingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Metadata used to create the destination AlloyDB cluster.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.Builder getSettingsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Metadata used to create the destination AlloyDB cluster.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.clouddms.v1.AlloyDbSettingsOrBuilder getSettingsOrBuilder() { + if (settingsBuilder_ != null) { + return settingsBuilder_.getMessageOrBuilder(); + } else { + return settings_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.getDefaultInstance() + : settings_; + } + } + /** + * + * + *
+     * Immutable. Metadata used to create the destination AlloyDB cluster.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings, + com.google.cloud.clouddms.v1.AlloyDbSettings.Builder, + com.google.cloud.clouddms.v1.AlloyDbSettingsOrBuilder> + getSettingsFieldBuilder() { + if (settingsBuilder_ == null) { + settingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings, + com.google.cloud.clouddms.v1.AlloyDbSettings.Builder, + com.google.cloud.clouddms.v1.AlloyDbSettingsOrBuilder>( + getSettings(), getParentForChildren(), isClean()); + settings_ = null; + } + return settingsBuilder_; + } + + @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.clouddms.v1.AlloyDbConnectionProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.AlloyDbConnectionProfile) + private static final com.google.cloud.clouddms.v1.AlloyDbConnectionProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.AlloyDbConnectionProfile(); + } + + public static com.google.cloud.clouddms.v1.AlloyDbConnectionProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlloyDbConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbConnectionProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AlloyDbConnectionProfileOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AlloyDbConnectionProfileOrBuilder.java new file mode 100644 index 000000000000..4afd84663871 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AlloyDbConnectionProfileOrBuilder.java @@ -0,0 +1,93 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface AlloyDbConnectionProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.AlloyDbConnectionProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The AlloyDB cluster ID that this connection profile is associated
+   * with.
+   * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + /** + * + * + *
+   * Required. The AlloyDB cluster ID that this connection profile is associated
+   * with.
+   * 
+ * + * string cluster_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Immutable. Metadata used to create the destination AlloyDB cluster.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the settings field is set. + */ + boolean hasSettings(); + /** + * + * + *
+   * Immutable. Metadata used to create the destination AlloyDB cluster.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The settings. + */ + com.google.cloud.clouddms.v1.AlloyDbSettings getSettings(); + /** + * + * + *
+   * Immutable. Metadata used to create the destination AlloyDB cluster.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.clouddms.v1.AlloyDbSettingsOrBuilder getSettingsOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AlloyDbSettings.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AlloyDbSettings.java new file mode 100644 index 000000000000..fdce451aa366 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AlloyDbSettings.java @@ -0,0 +1,6193 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Settings for creating an AlloyDB cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.AlloyDbSettings} + */ +public final class AlloyDbSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.AlloyDbSettings) + AlloyDbSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlloyDbSettings.newBuilder() to construct. + private AlloyDbSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AlloyDbSettings() { + vpcNetwork_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AlloyDbSettings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.AlloyDbSettings.class, + com.google.cloud.clouddms.v1.AlloyDbSettings.Builder.class); + } + + public interface UserPasswordOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.AlloyDbSettings.UserPassword) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The database username.
+     * 
+ * + * string user = 1; + * + * @return The user. + */ + java.lang.String getUser(); + /** + * + * + *
+     * The database username.
+     * 
+ * + * string user = 1; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + /** + * + * + *
+     * The initial password for the user.
+     * 
+ * + * string password = 2; + * + * @return The password. + */ + java.lang.String getPassword(); + /** + * + * + *
+     * The initial password for the user.
+     * 
+ * + * string password = 2; + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); + + /** + * + * + *
+     * Output only. Indicates if the initial_user.password field has been set.
+     * 
+ * + * bool password_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The passwordSet. + */ + boolean getPasswordSet(); + } + /** + * + * + *
+   * The username/password for a database user. Used for specifying initial
+   * users at cluster creation time.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.AlloyDbSettings.UserPassword} + */ + public static final class UserPassword extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.AlloyDbSettings.UserPassword) + UserPasswordOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserPassword.newBuilder() to construct. + private UserPassword(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserPassword() { + user_ = ""; + password_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserPassword(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_UserPassword_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_UserPassword_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.class, + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.Builder.class); + } + + public static final int USER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + /** + * + * + *
+     * The database username.
+     * 
+ * + * string user = 1; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = user_; + 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(); + user_ = s; + return s; + } + } + /** + * + * + *
+     * The database username.
+     * 
+ * + * string user = 1; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object password_ = ""; + /** + * + * + *
+     * The initial password for the user.
+     * 
+ * + * string password = 2; + * + * @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; + } + } + /** + * + * + *
+     * The initial password for the user.
+     * 
+ * + * string password = 2; + * + * @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 PASSWORD_SET_FIELD_NUMBER = 3; + private boolean passwordSet_ = false; + /** + * + * + *
+     * Output only. Indicates if the initial_user.password field has been set.
+     * 
+ * + * bool password_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The passwordSet. + */ + @java.lang.Override + public boolean getPasswordSet() { + return passwordSet_; + } + + 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(user_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, user_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + if (passwordSet_ != false) { + output.writeBool(3, passwordSet_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, user_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + if (passwordSet_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, passwordSet_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword other = + (com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword) obj; + + if (!getUser().equals(other.getUser())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (getPasswordSet() != other.getPasswordSet()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + PASSWORD_SET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPasswordSet()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword 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.clouddms.v1.AlloyDbSettings.UserPassword parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword 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.clouddms.v1.AlloyDbSettings.UserPassword parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword 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.clouddms.v1.AlloyDbSettings.UserPassword parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword 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.clouddms.v1.AlloyDbSettings.UserPassword parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword 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.clouddms.v1.AlloyDbSettings.UserPassword 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; + } + /** + * + * + *
+     * The username/password for a database user. Used for specifying initial
+     * users at cluster creation time.
+     * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.AlloyDbSettings.UserPassword} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.AlloyDbSettings.UserPassword) + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPasswordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_UserPassword_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_UserPassword_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.class, + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + user_ = ""; + password_ = ""; + passwordSet_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_UserPassword_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword build() { + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword buildPartial() { + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword result = + new com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.user_ = user_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.password_ = password_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.passwordSet_ = passwordSet_; + } + } + + @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.clouddms.v1.AlloyDbSettings.UserPassword) { + return mergeFrom((com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword other) { + if (other == com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.getDefaultInstance()) + return this; + if (!other.getUser().isEmpty()) { + user_ = other.user_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPasswordSet() != false) { + setPasswordSet(other.getPasswordSet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + user_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + passwordSet_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object user_ = ""; + /** + * + * + *
+       * The database username.
+       * 
+ * + * string user = 1; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The database username.
+       * 
+ * + * string user = 1; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The database username.
+       * 
+ * + * string user = 1; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The database username.
+       * 
+ * + * string user = 1; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The database username.
+       * 
+ * + * string user = 1; + * + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + user_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * + * + *
+       * The initial password for the user.
+       * 
+ * + * string password = 2; + * + * @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; + } + } + /** + * + * + *
+       * The initial password for the user.
+       * 
+ * + * string password = 2; + * + * @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; + } + } + /** + * + * + *
+       * The initial password for the user.
+       * 
+ * + * string password = 2; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The initial password for the user.
+       * 
+ * + * string password = 2; + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + password_ = getDefaultInstance().getPassword(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * The initial password for the user.
+       * 
+ * + * string password = 2; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean passwordSet_; + /** + * + * + *
+       * Output only. Indicates if the initial_user.password field has been set.
+       * 
+ * + * bool password_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The passwordSet. + */ + @java.lang.Override + public boolean getPasswordSet() { + return passwordSet_; + } + /** + * + * + *
+       * Output only. Indicates if the initial_user.password field has been set.
+       * 
+ * + * bool password_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The passwordSet to set. + * @return This builder for chaining. + */ + public Builder setPasswordSet(boolean value) { + + passwordSet_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Indicates if the initial_user.password field has been set.
+       * 
+ * + * bool password_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPasswordSet() { + bitField0_ = (bitField0_ & ~0x00000004); + passwordSet_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.AlloyDbSettings.UserPassword) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.AlloyDbSettings.UserPassword) + private static final com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword(); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserPassword parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PrimaryInstanceSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The ID of the AlloyDB primary instance. The ID must satisfy the
+     * regex expression "[a-z0-9-]+".
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+     * Required. The ID of the AlloyDB primary instance. The ID must satisfy the
+     * regex expression "[a-z0-9-]+".
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+     * Configuration for the machines that host the underlying
+     * database engine.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + * + * @return Whether the machineConfig field is set. + */ + boolean hasMachineConfig(); + /** + * + * + *
+     * Configuration for the machines that host the underlying
+     * database engine.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + * + * @return The machineConfig. + */ + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + getMachineConfig(); + /** + * + * + *
+     * Configuration for the machines that host the underlying
+     * database engine.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + */ + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfigOrBuilder + getMachineConfigOrBuilder(); + + /** + * + * + *
+     * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+     * cluster and instances. See the AlloyDB documentation for how these can be
+     * used.
+     * 
+ * + * map<string, string> database_flags = 6; + */ + int getDatabaseFlagsCount(); + /** + * + * + *
+     * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+     * cluster and instances. See the AlloyDB documentation for how these can be
+     * used.
+     * 
+ * + * map<string, string> database_flags = 6; + */ + boolean containsDatabaseFlags(java.lang.String key); + /** Use {@link #getDatabaseFlagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getDatabaseFlags(); + /** + * + * + *
+     * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+     * cluster and instances. See the AlloyDB documentation for how these can be
+     * used.
+     * 
+ * + * map<string, string> database_flags = 6; + */ + java.util.Map getDatabaseFlagsMap(); + /** + * + * + *
+     * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+     * cluster and instances. See the AlloyDB documentation for how these can be
+     * used.
+     * 
+ * + * map<string, string> database_flags = 6; + */ + /* nullable */ + java.lang.String getDatabaseFlagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+     * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+     * cluster and instances. See the AlloyDB documentation for how these can be
+     * used.
+     * 
+ * + * map<string, string> database_flags = 6; + */ + java.lang.String getDatabaseFlagsOrThrow(java.lang.String key); + + /** + * + * + *
+     * Labels for the AlloyDB primary instance created by DMS. An object
+     * containing a list of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + int getLabelsCount(); + /** + * + * + *
+     * Labels for the AlloyDB primary instance created by DMS. An object
+     * containing a list of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+     * Labels for the AlloyDB primary instance created by DMS. An object
+     * containing a list of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+     * Labels for the AlloyDB primary instance created by DMS. An object
+     * containing a list of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+     * Labels for the AlloyDB primary instance created by DMS. An object
+     * containing a list of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+     * Output only. The private IP address for the Instance.
+     * This is the connection endpoint for an end-user application.
+     * 
+ * + * string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The privateIp. + */ + java.lang.String getPrivateIp(); + /** + * + * + *
+     * Output only. The private IP address for the Instance.
+     * This is the connection endpoint for an end-user application.
+     * 
+ * + * string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for privateIp. + */ + com.google.protobuf.ByteString getPrivateIpBytes(); + } + /** + * + * + *
+   * Settings for the cluster's primary instance
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings} + */ + public static final class PrimaryInstanceSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings) + PrimaryInstanceSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrimaryInstanceSettings.newBuilder() to construct. + private PrimaryInstanceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrimaryInstanceSettings() { + id_ = ""; + privateIp_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrimaryInstanceSettings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetDatabaseFlags(); + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.class, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.Builder.class); + } + + public interface MachineConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The number of CPU's in the VM instance.
+       * 
+ * + * int32 cpu_count = 1; + * + * @return The cpuCount. + */ + int getCpuCount(); + } + /** + * + * + *
+     * MachineConfig describes the configuration of a machine.
+     * 
+ * + * Protobuf type {@code + * google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig} + */ + public static final class MachineConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig) + MachineConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MachineConfig.newBuilder() to construct. + private MachineConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MachineConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MachineConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_MachineConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_MachineConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .class, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .Builder.class); + } + + public static final int CPU_COUNT_FIELD_NUMBER = 1; + private int cpuCount_ = 0; + /** + * + * + *
+       * The number of CPU's in the VM instance.
+       * 
+ * + * int32 cpu_count = 1; + * + * @return The cpuCount. + */ + @java.lang.Override + public int getCpuCount() { + return cpuCount_; + } + + 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 (cpuCount_ != 0) { + output.writeInt32(1, cpuCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cpuCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, cpuCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig other = + (com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig) + obj; + + if (getCpuCount() != other.getCpuCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CPU_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCpuCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + 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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + 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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + 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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + 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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + 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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + 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; + } + /** + * + * + *
+       * MachineConfig describes the configuration of a machine.
+       * 
+ * + * Protobuf type {@code + * google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig) + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_MachineConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_MachineConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .class, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cpuCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_MachineConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + build() { + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + buildPartial() { + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + result = + new com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cpuCount_ = cpuCount_; + } + } + + @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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig) { + return mergeFrom( + (com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + other) { + if (other + == com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .getDefaultInstance()) return this; + if (other.getCpuCount() != 0) { + setCpuCount(other.getCpuCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + cpuCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int cpuCount_; + /** + * + * + *
+         * The number of CPU's in the VM instance.
+         * 
+ * + * int32 cpu_count = 1; + * + * @return The cpuCount. + */ + @java.lang.Override + public int getCpuCount() { + return cpuCount_; + } + /** + * + * + *
+         * The number of CPU's in the VM instance.
+         * 
+ * + * int32 cpu_count = 1; + * + * @param value The cpuCount to set. + * @return This builder for chaining. + */ + public Builder setCpuCount(int value) { + + cpuCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The number of CPU's in the VM instance.
+         * 
+ * + * int32 cpu_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearCpuCount() { + bitField0_ = (bitField0_ & ~0x00000001); + cpuCount_ = 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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig) + private static final com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig(); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MachineConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * + * + *
+     * Required. The ID of the AlloyDB primary instance. The ID must satisfy the
+     * regex expression "[a-z0-9-]+".
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The ID of the AlloyDB primary instance. The ID must satisfy the
+     * regex expression "[a-z0-9-]+".
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MACHINE_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + machineConfig_; + /** + * + * + *
+     * Configuration for the machines that host the underlying
+     * database engine.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + * + * @return Whether the machineConfig field is set. + */ + @java.lang.Override + public boolean hasMachineConfig() { + return machineConfig_ != null; + } + /** + * + * + *
+     * Configuration for the machines that host the underlying
+     * database engine.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + * + * @return The machineConfig. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + getMachineConfig() { + return machineConfig_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .getDefaultInstance() + : machineConfig_; + } + /** + * + * + *
+     * Configuration for the machines that host the underlying
+     * database engine.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfigOrBuilder + getMachineConfigOrBuilder() { + return machineConfig_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .getDefaultInstance() + : machineConfig_; + } + + public static final int DATABASE_FLAGS_FIELD_NUMBER = 6; + + private static final class DatabaseFlagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_DatabaseFlagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField databaseFlags_; + + private com.google.protobuf.MapField + internalGetDatabaseFlags() { + if (databaseFlags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DatabaseFlagsDefaultEntryHolder.defaultEntry); + } + return databaseFlags_; + } + + public int getDatabaseFlagsCount() { + return internalGetDatabaseFlags().getMap().size(); + } + /** + * + * + *
+     * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+     * cluster and instances. See the AlloyDB documentation for how these can be
+     * used.
+     * 
+ * + * map<string, string> database_flags = 6; + */ + @java.lang.Override + public boolean containsDatabaseFlags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDatabaseFlags().getMap().containsKey(key); + } + /** Use {@link #getDatabaseFlagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDatabaseFlags() { + return getDatabaseFlagsMap(); + } + /** + * + * + *
+     * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+     * cluster and instances. See the AlloyDB documentation for how these can be
+     * used.
+     * 
+ * + * map<string, string> database_flags = 6; + */ + @java.lang.Override + public java.util.Map getDatabaseFlagsMap() { + return internalGetDatabaseFlags().getMap(); + } + /** + * + * + *
+     * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+     * cluster and instances. See the AlloyDB documentation for how these can be
+     * used.
+     * 
+ * + * map<string, string> database_flags = 6; + */ + @java.lang.Override + public /* nullable */ java.lang.String getDatabaseFlagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDatabaseFlags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+     * cluster and instances. See the AlloyDB documentation for how these can be
+     * used.
+     * 
+ * + * map<string, string> database_flags = 6; + */ + @java.lang.Override + public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDatabaseFlags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABELS_FIELD_NUMBER = 7; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Labels for the AlloyDB primary instance created by DMS. An object
+     * containing a list of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * Labels for the AlloyDB primary instance created by DMS. An object
+     * containing a list of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Labels for the AlloyDB primary instance created by DMS. An object
+     * containing a list of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Labels for the AlloyDB primary instance created by DMS. An object
+     * containing a list of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PRIVATE_IP_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateIp_ = ""; + /** + * + * + *
+     * Output only. The private IP address for the Instance.
+     * This is the connection endpoint for an end-user application.
+     * 
+ * + * string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The privateIp. + */ + @java.lang.Override + public java.lang.String getPrivateIp() { + java.lang.Object ref = privateIp_; + 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(); + privateIp_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The private IP address for the Instance.
+     * This is the connection endpoint for an end-user application.
+     * 
+ * + * string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for privateIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateIpBytes() { + java.lang.Object ref = privateIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateIp_ = 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(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (machineConfig_ != null) { + output.writeMessage(2, getMachineConfig()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetDatabaseFlags(), DatabaseFlagsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, privateIp_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (machineConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMachineConfig()); + } + for (java.util.Map.Entry entry : + internalGetDatabaseFlags().getMap().entrySet()) { + com.google.protobuf.MapEntry databaseFlags__ = + DatabaseFlagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, databaseFlags__); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, privateIp_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings other = + (com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings) obj; + + if (!getId().equals(other.getId())) return false; + if (hasMachineConfig() != other.hasMachineConfig()) return false; + if (hasMachineConfig()) { + if (!getMachineConfig().equals(other.getMachineConfig())) return false; + } + if (!internalGetDatabaseFlags().equals(other.internalGetDatabaseFlags())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getPrivateIp().equals(other.getPrivateIp())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasMachineConfig()) { + hash = (37 * hash) + MACHINE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMachineConfig().hashCode(); + } + if (!internalGetDatabaseFlags().getMap().isEmpty()) { + hash = (37 * hash) + DATABASE_FLAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDatabaseFlags().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + PRIVATE_IP_FIELD_NUMBER; + hash = (53 * hash) + getPrivateIp().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings 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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings 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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings 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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + 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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings 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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings 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; + } + /** + * + * + *
+     * Settings for the cluster's primary instance
+     * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings) + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetDatabaseFlags(); + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 6: + return internalGetMutableDatabaseFlags(); + case 7: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.class, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.Builder.class); + } + + // Construct using + // com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + machineConfig_ = null; + if (machineConfigBuilder_ != null) { + machineConfigBuilder_.dispose(); + machineConfigBuilder_ = null; + } + internalGetMutableDatabaseFlags().clear(); + internalGetMutableLabels().clear(); + privateIp_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings build() { + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings buildPartial() { + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings result = + new com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.machineConfig_ = + machineConfigBuilder_ == null ? machineConfig_ : machineConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.databaseFlags_ = internalGetDatabaseFlags(); + result.databaseFlags_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.privateIp_ = privateIp_; + } + } + + @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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings) { + return mergeFrom( + (com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings other) { + if (other + == com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMachineConfig()) { + mergeMachineConfig(other.getMachineConfig()); + } + internalGetMutableDatabaseFlags().mergeFrom(other.internalGetDatabaseFlags()); + bitField0_ |= 0x00000004; + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getPrivateIp().isEmpty()) { + privateIp_ = other.privateIp_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getMachineConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 50: + { + com.google.protobuf.MapEntry databaseFlags__ = + input.readMessage( + DatabaseFlagsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDatabaseFlags() + .getMutableMap() + .put(databaseFlags__.getKey(), databaseFlags__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 66: + { + privateIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * + * + *
+       * Required. The ID of the AlloyDB primary instance. The ID must satisfy the
+       * regex expression "[a-z0-9-]+".
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The ID of the AlloyDB primary instance. The ID must satisfy the
+       * regex expression "[a-z0-9-]+".
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The ID of the AlloyDB primary instance. The ID must satisfy the
+       * regex expression "[a-z0-9-]+".
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The ID of the AlloyDB primary instance. The ID must satisfy the
+       * regex expression "[a-z0-9-]+".
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The ID of the AlloyDB primary instance. The ID must satisfy the
+       * regex expression "[a-z0-9-]+".
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + machineConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .Builder, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfigOrBuilder> + machineConfigBuilder_; + /** + * + * + *
+       * Configuration for the machines that host the underlying
+       * database engine.
+       * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + * + * @return Whether the machineConfig field is set. + */ + public boolean hasMachineConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Configuration for the machines that host the underlying
+       * database engine.
+       * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + * + * @return The machineConfig. + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + getMachineConfig() { + if (machineConfigBuilder_ == null) { + return machineConfig_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .getDefaultInstance() + : machineConfig_; + } else { + return machineConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Configuration for the machines that host the underlying
+       * database engine.
+       * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + */ + public Builder setMachineConfig( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + value) { + if (machineConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + machineConfig_ = value; + } else { + machineConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for the machines that host the underlying
+       * database engine.
+       * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + */ + public Builder setMachineConfig( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig.Builder + builderForValue) { + if (machineConfigBuilder_ == null) { + machineConfig_ = builderForValue.build(); + } else { + machineConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for the machines that host the underlying
+       * database engine.
+       * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + */ + public Builder mergeMachineConfig( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + value) { + if (machineConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && machineConfig_ != null + && machineConfig_ + != com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig.getDefaultInstance()) { + getMachineConfigBuilder().mergeFrom(value); + } else { + machineConfig_ = value; + } + } else { + machineConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for the machines that host the underlying
+       * database engine.
+       * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + */ + public Builder clearMachineConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + machineConfig_ = null; + if (machineConfigBuilder_ != null) { + machineConfigBuilder_.dispose(); + machineConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for the machines that host the underlying
+       * database engine.
+       * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .Builder + getMachineConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMachineConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Configuration for the machines that host the underlying
+       * database engine.
+       * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfigOrBuilder + getMachineConfigOrBuilder() { + if (machineConfigBuilder_ != null) { + return machineConfigBuilder_.getMessageOrBuilder(); + } else { + return machineConfig_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .getDefaultInstance() + : machineConfig_; + } + } + /** + * + * + *
+       * Configuration for the machines that host the underlying
+       * database engine.
+       * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .Builder, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfigOrBuilder> + getMachineConfigFieldBuilder() { + if (machineConfigBuilder_ == null) { + machineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfig, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig + .Builder, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .MachineConfigOrBuilder>( + getMachineConfig(), getParentForChildren(), isClean()); + machineConfig_ = null; + } + return machineConfigBuilder_; + } + + private com.google.protobuf.MapField databaseFlags_; + + private com.google.protobuf.MapField + internalGetDatabaseFlags() { + if (databaseFlags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DatabaseFlagsDefaultEntryHolder.defaultEntry); + } + return databaseFlags_; + } + + private com.google.protobuf.MapField + internalGetMutableDatabaseFlags() { + if (databaseFlags_ == null) { + databaseFlags_ = + com.google.protobuf.MapField.newMapField( + DatabaseFlagsDefaultEntryHolder.defaultEntry); + } + if (!databaseFlags_.isMutable()) { + databaseFlags_ = databaseFlags_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return databaseFlags_; + } + + public int getDatabaseFlagsCount() { + return internalGetDatabaseFlags().getMap().size(); + } + /** + * + * + *
+       * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+       * cluster and instances. See the AlloyDB documentation for how these can be
+       * used.
+       * 
+ * + * map<string, string> database_flags = 6; + */ + @java.lang.Override + public boolean containsDatabaseFlags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDatabaseFlags().getMap().containsKey(key); + } + /** Use {@link #getDatabaseFlagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDatabaseFlags() { + return getDatabaseFlagsMap(); + } + /** + * + * + *
+       * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+       * cluster and instances. See the AlloyDB documentation for how these can be
+       * used.
+       * 
+ * + * map<string, string> database_flags = 6; + */ + @java.lang.Override + public java.util.Map getDatabaseFlagsMap() { + return internalGetDatabaseFlags().getMap(); + } + /** + * + * + *
+       * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+       * cluster and instances. See the AlloyDB documentation for how these can be
+       * used.
+       * 
+ * + * map<string, string> database_flags = 6; + */ + @java.lang.Override + public /* nullable */ java.lang.String getDatabaseFlagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDatabaseFlags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+       * cluster and instances. See the AlloyDB documentation for how these can be
+       * used.
+       * 
+ * + * map<string, string> database_flags = 6; + */ + @java.lang.Override + public java.lang.String getDatabaseFlagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDatabaseFlags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDatabaseFlags() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableDatabaseFlags().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+       * cluster and instances. See the AlloyDB documentation for how these can be
+       * used.
+       * 
+ * + * map<string, string> database_flags = 6; + */ + public Builder removeDatabaseFlags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableDatabaseFlags().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableDatabaseFlags() { + bitField0_ |= 0x00000004; + return internalGetMutableDatabaseFlags().getMutableMap(); + } + /** + * + * + *
+       * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+       * cluster and instances. See the AlloyDB documentation for how these can be
+       * used.
+       * 
+ * + * map<string, string> database_flags = 6; + */ + public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableDatabaseFlags().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + /** + * + * + *
+       * Database flags to pass to AlloyDB when DMS is creating the AlloyDB
+       * cluster and instances. See the AlloyDB documentation for how these can be
+       * used.
+       * 
+ * + * map<string, string> database_flags = 6; + */ + public Builder putAllDatabaseFlags(java.util.Map values) { + internalGetMutableDatabaseFlags().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+       * Labels for the AlloyDB primary instance created by DMS. An object
+       * containing a list of 'key', 'value' pairs.
+       * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+       * Labels for the AlloyDB primary instance created by DMS. An object
+       * containing a list of 'key', 'value' pairs.
+       * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+       * Labels for the AlloyDB primary instance created by DMS. An object
+       * containing a list of 'key', 'value' pairs.
+       * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * Labels for the AlloyDB primary instance created by DMS. An object
+       * containing a list of 'key', 'value' pairs.
+       * 
+ * + * map<string, string> labels = 7; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * Labels for the AlloyDB primary instance created by DMS. An object
+       * containing a list of 'key', 'value' pairs.
+       * 
+ * + * map<string, string> labels = 7; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+       * Labels for the AlloyDB primary instance created by DMS. An object
+       * containing a list of 'key', 'value' pairs.
+       * 
+ * + * map<string, string> labels = 7; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
+       * Labels for the AlloyDB primary instance created by DMS. An object
+       * containing a list of 'key', 'value' pairs.
+       * 
+ * + * map<string, string> labels = 7; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object privateIp_ = ""; + /** + * + * + *
+       * Output only. The private IP address for the Instance.
+       * This is the connection endpoint for an end-user application.
+       * 
+ * + * string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The privateIp. + */ + public java.lang.String getPrivateIp() { + java.lang.Object ref = privateIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The private IP address for the Instance.
+       * This is the connection endpoint for an end-user application.
+       * 
+ * + * string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for privateIp. + */ + public com.google.protobuf.ByteString getPrivateIpBytes() { + java.lang.Object ref = privateIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The private IP address for the Instance.
+       * This is the connection endpoint for an end-user application.
+       * 
+ * + * string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The privateIp to set. + * @return This builder for chaining. + */ + public Builder setPrivateIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The private IP address for the Instance.
+       * This is the connection endpoint for an end-user application.
+       * 
+ * + * string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPrivateIp() { + privateIp_ = getDefaultInstance().getPrivateIp(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The private IP address for the Instance.
+       * This is the connection endpoint for an end-user application.
+       * 
+ * + * string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for privateIp to set. + * @return This builder for chaining. + */ + public Builder setPrivateIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateIp_ = value; + bitField0_ |= 0x00000010; + 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.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings) + private static final com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings(); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrimaryInstanceSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EncryptionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The fully-qualified resource name of the KMS key.
+     * Each Cloud KMS key is regionalized and has the following format:
+     * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+     * 
+ * + * string kms_key_name = 1; + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + /** + * + * + *
+     * The fully-qualified resource name of the KMS key.
+     * Each Cloud KMS key is regionalized and has the following format:
+     * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+     * 
+ * + * string kms_key_name = 1; + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); + } + /** + * + * + *
+   * EncryptionConfig describes the encryption config of a cluster that is
+   * encrypted with a CMEK (customer-managed encryption key).
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig} + */ + public static final class EncryptionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig) + EncryptionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use EncryptionConfig.newBuilder() to construct. + private EncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EncryptionConfig() { + kmsKeyName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EncryptionConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_EncryptionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_EncryptionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.class, + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.Builder.class); + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + /** + * + * + *
+     * The fully-qualified resource name of the KMS key.
+     * Each Cloud KMS key is regionalized and has the following format:
+     * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+     * 
+ * + * string kms_key_name = 1; + * + * @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; + } + } + /** + * + * + *
+     * The fully-qualified resource name of the KMS key.
+     * Each Cloud KMS key is regionalized and has the following format:
+     * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+     * 
+ * + * string kms_key_name = 1; + * + * @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(kmsKeyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKeyName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kmsKeyName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig other = + (com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig) obj; + + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig 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.clouddms.v1.AlloyDbSettings.EncryptionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig 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.clouddms.v1.AlloyDbSettings.EncryptionConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig 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.clouddms.v1.AlloyDbSettings.EncryptionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig 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.clouddms.v1.AlloyDbSettings.EncryptionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig 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.clouddms.v1.AlloyDbSettings.EncryptionConfig 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; + } + /** + * + * + *
+     * EncryptionConfig describes the encryption config of a cluster that is
+     * encrypted with a CMEK (customer-managed encryption key).
+     * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig) + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_EncryptionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_EncryptionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.class, + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kmsKeyName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_EncryptionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig build() { + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig buildPartial() { + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig result = + new com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + } + } + + @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.clouddms.v1.AlloyDbSettings.EncryptionConfig) { + return mergeFrom((com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig other) { + if (other + == com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.getDefaultInstance()) + return this; + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object kmsKeyName_ = ""; + /** + * + * + *
+       * The fully-qualified resource name of the KMS key.
+       * Each Cloud KMS key is regionalized and has the following format:
+       * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+       * 
+ * + * string kms_key_name = 1; + * + * @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; + } + } + /** + * + * + *
+       * The fully-qualified resource name of the KMS key.
+       * Each Cloud KMS key is regionalized and has the following format:
+       * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+       * 
+ * + * string kms_key_name = 1; + * + * @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; + } + } + /** + * + * + *
+       * The fully-qualified resource name of the KMS key.
+       * Each Cloud KMS key is regionalized and has the following format:
+       * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+       * 
+ * + * string kms_key_name = 1; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The fully-qualified resource name of the KMS key.
+       * Each Cloud KMS key is regionalized and has the following format:
+       * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+       * 
+ * + * string kms_key_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The fully-qualified resource name of the KMS key.
+       * Each Cloud KMS key is regionalized and has the following format:
+       * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+       * 
+ * + * string kms_key_name = 1; + * + * @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; + bitField0_ |= 0x00000001; + 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.clouddms.v1.AlloyDbSettings.EncryptionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig) + private static final com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig(); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int INITIAL_USER_FIELD_NUMBER = 1; + private com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initialUser_; + /** + * + * + *
+   * Required. Input only. Initial user to setup during cluster creation.
+   * Required.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the initialUser field is set. + */ + @java.lang.Override + public boolean hasInitialUser() { + return initialUser_ != null; + } + /** + * + * + *
+   * Required. Input only. Initial user to setup during cluster creation.
+   * Required.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The initialUser. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword getInitialUser() { + return initialUser_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.getDefaultInstance() + : initialUser_; + } + /** + * + * + *
+   * Required. Input only. Initial user to setup during cluster creation.
+   * Required.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.UserPasswordOrBuilder + getInitialUserOrBuilder() { + return initialUser_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.getDefaultInstance() + : initialUser_; + } + + public static final int VPC_NETWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object vpcNetwork_ = ""; + /** + * + * + *
+   * Required. The resource link for the VPC network in which cluster resources
+   * are created and from which they are accessible via Private IP. The network
+   * must belong to the same project as the cluster. It is specified in the
+   * form: "projects/{project_number}/global/networks/{network_id}". This is
+   * required to create a cluster.
+   * 
+ * + * string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vpcNetwork. + */ + @java.lang.Override + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + 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(); + vpcNetwork_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource link for the VPC network in which cluster resources
+   * are created and from which they are accessible via Private IP. The network
+   * must belong to the same project as the cluster. It is specified in the
+   * form: "projects/{project_number}/global/networks/{network_id}". This is
+   * required to create a cluster.
+   * 
+ * + * string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vpcNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 3; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * Labels for the AlloyDB cluster created by DMS. An object containing a list
+   * of 'key', 'value' pairs.
+   * 
+ * + * map<string, string> labels = 3; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * Labels for the AlloyDB cluster created by DMS. An object containing a list
+   * of 'key', 'value' pairs.
+   * 
+ * + * map<string, string> labels = 3; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Labels for the AlloyDB cluster created by DMS. An object containing a list
+   * of 'key', 'value' pairs.
+   * 
+ * + * map<string, string> labels = 3; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Labels for the AlloyDB cluster created by DMS. An object containing a list
+   * of 'key', 'value' pairs.
+   * 
+ * + * map<string, string> labels = 3; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PRIMARY_INSTANCE_SETTINGS_FIELD_NUMBER = 4; + private com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + primaryInstanceSettings_; + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + * + * @return Whether the primaryInstanceSettings field is set. + */ + @java.lang.Override + public boolean hasPrimaryInstanceSettings() { + return primaryInstanceSettings_ != null; + } + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + * + * @return The primaryInstanceSettings. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + getPrimaryInstanceSettings() { + return primaryInstanceSettings_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.getDefaultInstance() + : primaryInstanceSettings_; + } + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettingsOrBuilder + getPrimaryInstanceSettingsOrBuilder() { + return primaryInstanceSettings_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.getDefaultInstance() + : primaryInstanceSettings_; + } + + public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryptionConfig_; + /** + * + * + *
+   * Optional. The encryption config can be specified to encrypt the data disks
+   * and other persistent data resources of a cluster with a
+   * customer-managed encryption key (CMEK). When this field is not
+   * specified, the cluster will then use default encryption scheme to
+   * protect the user data.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionConfig field is set. + */ + @java.lang.Override + public boolean hasEncryptionConfig() { + return encryptionConfig_ != null; + } + /** + * + * + *
+   * Optional. The encryption config can be specified to encrypt the data disks
+   * and other persistent data resources of a cluster with a
+   * customer-managed encryption key (CMEK). When this field is not
+   * specified, the cluster will then use default encryption scheme to
+   * protect the user data.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionConfig. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig getEncryptionConfig() { + return encryptionConfig_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; + } + /** + * + * + *
+   * Optional. The encryption config can be specified to encrypt the data disks
+   * and other persistent data resources of a cluster with a
+   * customer-managed encryption key (CMEK). When this field is not
+   * specified, the cluster will then use default encryption scheme to
+   * protect the user data.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfigOrBuilder + getEncryptionConfigOrBuilder() { + return encryptionConfig_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; + } + + 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 (initialUser_ != null) { + output.writeMessage(1, getInitialUser()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vpcNetwork_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); + if (primaryInstanceSettings_ != null) { + output.writeMessage(4, getPrimaryInstanceSettings()); + } + if (encryptionConfig_ != null) { + output.writeMessage(5, getEncryptionConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (initialUser_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInitialUser()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vpcNetwork_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__); + } + if (primaryInstanceSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPrimaryInstanceSettings()); + } + if (encryptionConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryptionConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.AlloyDbSettings)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.AlloyDbSettings other = + (com.google.cloud.clouddms.v1.AlloyDbSettings) obj; + + if (hasInitialUser() != other.hasInitialUser()) return false; + if (hasInitialUser()) { + if (!getInitialUser().equals(other.getInitialUser())) return false; + } + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasPrimaryInstanceSettings() != other.hasPrimaryInstanceSettings()) return false; + if (hasPrimaryInstanceSettings()) { + if (!getPrimaryInstanceSettings().equals(other.getPrimaryInstanceSettings())) return false; + } + if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; + if (hasEncryptionConfig()) { + if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInitialUser()) { + hash = (37 * hash) + INITIAL_USER_FIELD_NUMBER; + hash = (53 * hash) + getInitialUser().hashCode(); + } + hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVpcNetwork().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasPrimaryInstanceSettings()) { + hash = (37 * hash) + PRIMARY_INSTANCE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryInstanceSettings().hashCode(); + } + if (hasEncryptionConfig()) { + hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings 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.clouddms.v1.AlloyDbSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings 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.clouddms.v1.AlloyDbSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings 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.clouddms.v1.AlloyDbSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings 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.clouddms.v1.AlloyDbSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings 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.clouddms.v1.AlloyDbSettings 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; + } + /** + * + * + *
+   * Settings for creating an AlloyDB cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.AlloyDbSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.AlloyDbSettings) + com.google.cloud.clouddms.v1.AlloyDbSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.AlloyDbSettings.class, + com.google.cloud.clouddms.v1.AlloyDbSettings.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.AlloyDbSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + initialUser_ = null; + if (initialUserBuilder_ != null) { + initialUserBuilder_.dispose(); + initialUserBuilder_ = null; + } + vpcNetwork_ = ""; + internalGetMutableLabels().clear(); + primaryInstanceSettings_ = null; + if (primaryInstanceSettingsBuilder_ != null) { + primaryInstanceSettingsBuilder_.dispose(); + primaryInstanceSettingsBuilder_ = null; + } + encryptionConfig_ = null; + if (encryptionConfigBuilder_ != null) { + encryptionConfigBuilder_.dispose(); + encryptionConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_AlloyDbSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.AlloyDbSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings build() { + com.google.cloud.clouddms.v1.AlloyDbSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings buildPartial() { + com.google.cloud.clouddms.v1.AlloyDbSettings result = + new com.google.cloud.clouddms.v1.AlloyDbSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.AlloyDbSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.initialUser_ = + initialUserBuilder_ == null ? initialUser_ : initialUserBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vpcNetwork_ = vpcNetwork_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.primaryInstanceSettings_ = + primaryInstanceSettingsBuilder_ == null + ? primaryInstanceSettings_ + : primaryInstanceSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.encryptionConfig_ = + encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + } + } + + @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.clouddms.v1.AlloyDbSettings) { + return mergeFrom((com.google.cloud.clouddms.v1.AlloyDbSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.AlloyDbSettings other) { + if (other == com.google.cloud.clouddms.v1.AlloyDbSettings.getDefaultInstance()) return this; + if (other.hasInitialUser()) { + mergeInitialUser(other.getInitialUser()); + } + if (!other.getVpcNetwork().isEmpty()) { + vpcNetwork_ = other.vpcNetwork_; + bitField0_ |= 0x00000002; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000004; + if (other.hasPrimaryInstanceSettings()) { + mergePrimaryInstanceSettings(other.getPrimaryInstanceSettings()); + } + if (other.hasEncryptionConfig()) { + mergeEncryptionConfig(other.getEncryptionConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getInitialUserFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + vpcNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getPrimaryInstanceSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initialUser_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword, + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.Builder, + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPasswordOrBuilder> + initialUserBuilder_; + /** + * + * + *
+     * Required. Input only. Initial user to setup during cluster creation.
+     * Required.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the initialUser field is set. + */ + public boolean hasInitialUser() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Input only. Initial user to setup during cluster creation.
+     * Required.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The initialUser. + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword getInitialUser() { + if (initialUserBuilder_ == null) { + return initialUser_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.getDefaultInstance() + : initialUser_; + } else { + return initialUserBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Input only. Initial user to setup during cluster creation.
+     * Required.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setInitialUser(com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword value) { + if (initialUserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initialUser_ = value; + } else { + initialUserBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Input only. Initial user to setup during cluster creation.
+     * Required.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setInitialUser( + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.Builder builderForValue) { + if (initialUserBuilder_ == null) { + initialUser_ = builderForValue.build(); + } else { + initialUserBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Input only. Initial user to setup during cluster creation.
+     * Required.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder mergeInitialUser( + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword value) { + if (initialUserBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && initialUser_ != null + && initialUser_ + != com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.getDefaultInstance()) { + getInitialUserBuilder().mergeFrom(value); + } else { + initialUser_ = value; + } + } else { + initialUserBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Input only. Initial user to setup during cluster creation.
+     * Required.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder clearInitialUser() { + bitField0_ = (bitField0_ & ~0x00000001); + initialUser_ = null; + if (initialUserBuilder_ != null) { + initialUserBuilder_.dispose(); + initialUserBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Input only. Initial user to setup during cluster creation.
+     * Required.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.Builder + getInitialUserBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInitialUserFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Input only. Initial user to setup during cluster creation.
+     * Required.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.UserPasswordOrBuilder + getInitialUserOrBuilder() { + if (initialUserBuilder_ != null) { + return initialUserBuilder_.getMessageOrBuilder(); + } else { + return initialUser_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.getDefaultInstance() + : initialUser_; + } + } + /** + * + * + *
+     * Required. Input only. Initial user to setup during cluster creation.
+     * Required.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword, + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.Builder, + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPasswordOrBuilder> + getInitialUserFieldBuilder() { + if (initialUserBuilder_ == null) { + initialUserBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword, + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword.Builder, + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPasswordOrBuilder>( + getInitialUser(), getParentForChildren(), isClean()); + initialUser_ = null; + } + return initialUserBuilder_; + } + + private java.lang.Object vpcNetwork_ = ""; + /** + * + * + *
+     * Required. The resource link for the VPC network in which cluster resources
+     * are created and from which they are accessible via Private IP. The network
+     * must belong to the same project as the cluster. It is specified in the
+     * form: "projects/{project_number}/global/networks/{network_id}". This is
+     * required to create a cluster.
+     * 
+ * + * string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vpcNetwork. + */ + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource link for the VPC network in which cluster resources
+     * are created and from which they are accessible via Private IP. The network
+     * must belong to the same project as the cluster. It is specified in the
+     * form: "projects/{project_number}/global/networks/{network_id}". This is
+     * required to create a cluster.
+     * 
+ * + * string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vpcNetwork. + */ + public com.google.protobuf.ByteString getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource link for the VPC network in which cluster resources
+     * are created and from which they are accessible via Private IP. The network
+     * must belong to the same project as the cluster. It is specified in the
+     * form: "projects/{project_number}/global/networks/{network_id}". This is
+     * required to create a cluster.
+     * 
+ * + * string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vpcNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource link for the VPC network in which cluster resources
+     * are created and from which they are accessible via Private IP. The network
+     * must belong to the same project as the cluster. It is specified in the
+     * form: "projects/{project_number}/global/networks/{network_id}". This is
+     * required to create a cluster.
+     * 
+ * + * string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVpcNetwork() { + vpcNetwork_ = getDefaultInstance().getVpcNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource link for the VPC network in which cluster resources
+     * are created and from which they are accessible via Private IP. The network
+     * must belong to the same project as the cluster. It is specified in the
+     * form: "projects/{project_number}/global/networks/{network_id}". This is
+     * required to create a cluster.
+     * 
+ * + * string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Labels for the AlloyDB cluster created by DMS. An object containing a list
+     * of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 3; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * Labels for the AlloyDB cluster created by DMS. An object containing a list
+     * of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 3; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Labels for the AlloyDB cluster created by DMS. An object containing a list
+     * of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 3; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Labels for the AlloyDB cluster created by DMS. An object containing a list
+     * of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 3; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Labels for the AlloyDB cluster created by DMS. An object containing a list
+     * of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 3; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000004; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Labels for the AlloyDB cluster created by DMS. An object containing a list
+     * of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 3; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + /** + * + * + *
+     * Labels for the AlloyDB cluster created by DMS. An object containing a list
+     * of 'key', 'value' pairs.
+     * 
+ * + * map<string, string> labels = 3; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + private com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + primaryInstanceSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.Builder, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettingsOrBuilder> + primaryInstanceSettingsBuilder_; + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + * + * @return Whether the primaryInstanceSettings field is set. + */ + public boolean hasPrimaryInstanceSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + * + * @return The primaryInstanceSettings. + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + getPrimaryInstanceSettings() { + if (primaryInstanceSettingsBuilder_ == null) { + return primaryInstanceSettings_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .getDefaultInstance() + : primaryInstanceSettings_; + } else { + return primaryInstanceSettingsBuilder_.getMessage(); + } + } + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + */ + public Builder setPrimaryInstanceSettings( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings value) { + if (primaryInstanceSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + primaryInstanceSettings_ = value; + } else { + primaryInstanceSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + */ + public Builder setPrimaryInstanceSettings( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.Builder + builderForValue) { + if (primaryInstanceSettingsBuilder_ == null) { + primaryInstanceSettings_ = builderForValue.build(); + } else { + primaryInstanceSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + */ + public Builder mergePrimaryInstanceSettings( + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings value) { + if (primaryInstanceSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && primaryInstanceSettings_ != null + && primaryInstanceSettings_ + != com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .getDefaultInstance()) { + getPrimaryInstanceSettingsBuilder().mergeFrom(value); + } else { + primaryInstanceSettings_ = value; + } + } else { + primaryInstanceSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + */ + public Builder clearPrimaryInstanceSettings() { + bitField0_ = (bitField0_ & ~0x00000008); + primaryInstanceSettings_ = null; + if (primaryInstanceSettingsBuilder_ != null) { + primaryInstanceSettingsBuilder_.dispose(); + primaryInstanceSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.Builder + getPrimaryInstanceSettingsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPrimaryInstanceSettingsFieldBuilder().getBuilder(); + } + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettingsOrBuilder + getPrimaryInstanceSettingsOrBuilder() { + if (primaryInstanceSettingsBuilder_ != null) { + return primaryInstanceSettingsBuilder_.getMessageOrBuilder(); + } else { + return primaryInstanceSettings_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings + .getDefaultInstance() + : primaryInstanceSettings_; + } + } + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.Builder, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettingsOrBuilder> + getPrimaryInstanceSettingsFieldBuilder() { + if (primaryInstanceSettingsBuilder_ == null) { + primaryInstanceSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.Builder, + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettingsOrBuilder>( + getPrimaryInstanceSettings(), getParentForChildren(), isClean()); + primaryInstanceSettings_ = null; + } + return primaryInstanceSettingsBuilder_; + } + + private com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryptionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig, + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.Builder, + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfigOrBuilder> + encryptionConfigBuilder_; + /** + * + * + *
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionConfig field is set. + */ + public boolean hasEncryptionConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionConfig. + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig getEncryptionConfig() { + if (encryptionConfigBuilder_ == null) { + return encryptionConfig_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; + } else { + return encryptionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryptionConfig( + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig value) { + if (encryptionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionConfig_ = value; + } else { + encryptionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryptionConfig( + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.Builder builderForValue) { + if (encryptionConfigBuilder_ == null) { + encryptionConfig_ = builderForValue.build(); + } else { + encryptionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEncryptionConfig( + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig value) { + if (encryptionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && encryptionConfig_ != null + && encryptionConfig_ + != com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig + .getDefaultInstance()) { + getEncryptionConfigBuilder().mergeFrom(value); + } else { + encryptionConfig_ = value; + } + } else { + encryptionConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEncryptionConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + encryptionConfig_ = null; + if (encryptionConfigBuilder_ != null) { + encryptionConfigBuilder_.dispose(); + encryptionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.Builder + getEncryptionConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getEncryptionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfigOrBuilder + getEncryptionConfigOrBuilder() { + if (encryptionConfigBuilder_ != null) { + return encryptionConfigBuilder_.getMessageOrBuilder(); + } else { + return encryptionConfig_ == null + ? com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; + } + } + /** + * + * + *
+     * Optional. The encryption config can be specified to encrypt the data disks
+     * and other persistent data resources of a cluster with a
+     * customer-managed encryption key (CMEK). When this field is not
+     * specified, the cluster will then use default encryption scheme to
+     * protect the user data.
+     * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig, + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.Builder, + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfigOrBuilder> + getEncryptionConfigFieldBuilder() { + if (encryptionConfigBuilder_ == null) { + encryptionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig, + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig.Builder, + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfigOrBuilder>( + getEncryptionConfig(), getParentForChildren(), isClean()); + encryptionConfig_ = null; + } + return encryptionConfigBuilder_; + } + + @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.clouddms.v1.AlloyDbSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.AlloyDbSettings) + private static final com.google.cloud.clouddms.v1.AlloyDbSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.AlloyDbSettings(); + } + + public static com.google.cloud.clouddms.v1.AlloyDbSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlloyDbSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AlloyDbSettingsOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AlloyDbSettingsOrBuilder.java new file mode 100644 index 000000000000..e1e3afb1e80f --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AlloyDbSettingsOrBuilder.java @@ -0,0 +1,243 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface AlloyDbSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.AlloyDbSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Input only. Initial user to setup during cluster creation.
+   * Required.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the initialUser field is set. + */ + boolean hasInitialUser(); + /** + * + * + *
+   * Required. Input only. Initial user to setup during cluster creation.
+   * Required.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The initialUser. + */ + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword getInitialUser(); + /** + * + * + *
+   * Required. Input only. Initial user to setup during cluster creation.
+   * Required.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.clouddms.v1.AlloyDbSettings.UserPasswordOrBuilder getInitialUserOrBuilder(); + + /** + * + * + *
+   * Required. The resource link for the VPC network in which cluster resources
+   * are created and from which they are accessible via Private IP. The network
+   * must belong to the same project as the cluster. It is specified in the
+   * form: "projects/{project_number}/global/networks/{network_id}". This is
+   * required to create a cluster.
+   * 
+ * + * string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vpcNetwork. + */ + java.lang.String getVpcNetwork(); + /** + * + * + *
+   * Required. The resource link for the VPC network in which cluster resources
+   * are created and from which they are accessible via Private IP. The network
+   * must belong to the same project as the cluster. It is specified in the
+   * form: "projects/{project_number}/global/networks/{network_id}". This is
+   * required to create a cluster.
+   * 
+ * + * string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vpcNetwork. + */ + com.google.protobuf.ByteString getVpcNetworkBytes(); + + /** + * + * + *
+   * Labels for the AlloyDB cluster created by DMS. An object containing a list
+   * of 'key', 'value' pairs.
+   * 
+ * + * map<string, string> labels = 3; + */ + int getLabelsCount(); + /** + * + * + *
+   * Labels for the AlloyDB cluster created by DMS. An object containing a list
+   * of 'key', 'value' pairs.
+   * 
+ * + * map<string, string> labels = 3; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Labels for the AlloyDB cluster created by DMS. An object containing a list
+   * of 'key', 'value' pairs.
+   * 
+ * + * map<string, string> labels = 3; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Labels for the AlloyDB cluster created by DMS. An object containing a list
+   * of 'key', 'value' pairs.
+   * 
+ * + * map<string, string> labels = 3; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Labels for the AlloyDB cluster created by DMS. An object containing a list
+   * of 'key', 'value' pairs.
+   * 
+ * + * map<string, string> labels = 3; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + * + * @return Whether the primaryInstanceSettings field is set. + */ + boolean hasPrimaryInstanceSettings(); + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + * + * @return The primaryInstanceSettings. + */ + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings getPrimaryInstanceSettings(); + /** + * + * .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4; + * + */ + com.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettingsOrBuilder + getPrimaryInstanceSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. The encryption config can be specified to encrypt the data disks
+   * and other persistent data resources of a cluster with a
+   * customer-managed encryption key (CMEK). When this field is not
+   * specified, the cluster will then use default encryption scheme to
+   * protect the user data.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionConfig field is set. + */ + boolean hasEncryptionConfig(); + /** + * + * + *
+   * Optional. The encryption config can be specified to encrypt the data disks
+   * and other persistent data resources of a cluster with a
+   * customer-managed encryption key (CMEK). When this field is not
+   * specified, the cluster will then use default encryption scheme to
+   * protect the user data.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionConfig. + */ + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig getEncryptionConfig(); + /** + * + * + *
+   * Optional. The encryption config can be specified to encrypt the data disks
+   * and other persistent data resources of a cluster with a
+   * customer-managed encryption key (CMEK). When this field is not
+   * specified, the cluster will then use default encryption scheme to
+   * protect the user data.
+   * 
+ * + * + * .google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfigOrBuilder + getEncryptionConfigOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ApplyConversionWorkspaceRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ApplyConversionWorkspaceRequest.java new file mode 100644 index 000000000000..d0b6052ae10a --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ApplyConversionWorkspaceRequest.java @@ -0,0 +1,1165 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'ApplyConversionWorkspace' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest} + */ +public final class ApplyConversionWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest) + ApplyConversionWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplyConversionWorkspaceRequest.newBuilder() to construct. + private ApplyConversionWorkspaceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplyConversionWorkspaceRequest() { + name_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApplyConversionWorkspaceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest.Builder.class); + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONNECTION_PROFILE(100), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(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 DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 100: + return CONNECTION_PROFILE; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the conversion workspace resource for which to apply
+   * the draft tree. Must be in the form of:
+   *  projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the conversion workspace resource for which to apply
+   * the draft tree. Must be in the form of:
+   *  projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Filter which entities to apply. Leaving this field empty will apply all of
+   * the entities. Supports Google AIP 160 based filtering.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filter which entities to apply. Leaving this field empty will apply all of
+   * the entities. Supports Google AIP 160 based filtering.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTION_PROFILE_FIELD_NUMBER = 100; + /** + * + * + *
+   * Fully qualified (Uri) name of the destination connection profile.
+   * 
+ * + * string connection_profile = 100; + * + * @return Whether the connectionProfile field is set. + */ + public boolean hasConnectionProfile() { + return destinationCase_ == 100; + } + /** + * + * + *
+   * Fully qualified (Uri) name of the destination connection profile.
+   * 
+ * + * string connection_profile = 100; + * + * @return The connectionProfile. + */ + public java.lang.String getConnectionProfile() { + java.lang.Object ref = ""; + if (destinationCase_ == 100) { + ref = destination_; + } + 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(); + if (destinationCase_ == 100) { + destination_ = s; + } + return s; + } + } + /** + * + * + *
+   * Fully qualified (Uri) name of the destination connection profile.
+   * 
+ * + * string connection_profile = 100; + * + * @return The bytes for connectionProfile. + */ + public com.google.protobuf.ByteString getConnectionProfileBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 100) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 100) { + destination_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (destinationCase_ == 100) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, destination_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (destinationCase_ == 100) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, destination_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest other = + (com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 100: + if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + switch (destinationCase_) { + case 100: + hash = (37 * hash) + CONNECTION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getConnectionProfile().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest 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.clouddms.v1.ApplyConversionWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest 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.clouddms.v1.ApplyConversionWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest 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.clouddms.v1.ApplyConversionWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest 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.clouddms.v1.ApplyConversionWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest 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.clouddms.v1.ApplyConversionWorkspaceRequest 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; + } + /** + * + * + *
+   * Request message for 'ApplyConversionWorkspace' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest) + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + filter_ = ""; + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest build() { + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest buildPartial() { + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest result = + new com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + } + + private void buildPartialOneofs( + com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + } + + @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.clouddms.v1.ApplyConversionWorkspaceRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest other) { + if (other + == com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getDestinationCase()) { + case CONNECTION_PROFILE: + { + destinationCase_ = 100; + destination_ = other.destination_; + onChanged(); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 100; + destination_ = s; + break; + } // case 802 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the conversion workspace resource for which to apply
+     * the draft tree. Must be in the form of:
+     *  projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the conversion workspace resource for which to apply
+     * the draft tree. Must be in the form of:
+     *  projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the conversion workspace resource for which to apply
+     * the draft tree. Must be in the form of:
+     *  projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the conversion workspace resource for which to apply
+     * the draft tree. Must be in the form of:
+     *  projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the conversion workspace resource for which to apply
+     * the draft tree. Must be in the form of:
+     *  projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filter which entities to apply. Leaving this field empty will apply all of
+     * the entities. Supports Google AIP 160 based filtering.
+     * 
+ * + * string filter = 2; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter which entities to apply. Leaving this field empty will apply all of
+     * the entities. Supports Google AIP 160 based filtering.
+     * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter which entities to apply. Leaving this field empty will apply all of
+     * the entities. Supports Google AIP 160 based filtering.
+     * 
+ * + * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter which entities to apply. Leaving this field empty will apply all of
+     * the entities. Supports Google AIP 160 based filtering.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter which entities to apply. Leaving this field empty will apply all of
+     * the entities. Supports Google AIP 160 based filtering.
+     * 
+ * + * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Fully qualified (Uri) name of the destination connection profile.
+     * 
+ * + * string connection_profile = 100; + * + * @return Whether the connectionProfile field is set. + */ + @java.lang.Override + public boolean hasConnectionProfile() { + return destinationCase_ == 100; + } + /** + * + * + *
+     * Fully qualified (Uri) name of the destination connection profile.
+     * 
+ * + * string connection_profile = 100; + * + * @return The connectionProfile. + */ + @java.lang.Override + public java.lang.String getConnectionProfile() { + java.lang.Object ref = ""; + if (destinationCase_ == 100) { + ref = destination_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 100) { + destination_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Fully qualified (Uri) name of the destination connection profile.
+     * 
+ * + * string connection_profile = 100; + * + * @return The bytes for connectionProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConnectionProfileBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 100) { + ref = destination_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 100) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Fully qualified (Uri) name of the destination connection profile.
+     * 
+ * + * string connection_profile = 100; + * + * @param value The connectionProfile to set. + * @return This builder for chaining. + */ + public Builder setConnectionProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationCase_ = 100; + destination_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Fully qualified (Uri) name of the destination connection profile.
+     * 
+ * + * string connection_profile = 100; + * + * @return This builder for chaining. + */ + public Builder clearConnectionProfile() { + if (destinationCase_ == 100) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Fully qualified (Uri) name of the destination connection profile.
+     * 
+ * + * string connection_profile = 100; + * + * @param value The bytes for connectionProfile to set. + * @return This builder for chaining. + */ + public Builder setConnectionProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationCase_ = 100; + destination_ = 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.clouddms.v1.ApplyConversionWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest) + private static final com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest(); + } + + public static com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplyConversionWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ApplyConversionWorkspaceRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ApplyConversionWorkspaceRequestOrBuilder.java new file mode 100644 index 000000000000..97ab28bc3853 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ApplyConversionWorkspaceRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface ApplyConversionWorkspaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the conversion workspace resource for which to apply
+   * the draft tree. Must be in the form of:
+   *  projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the conversion workspace resource for which to apply
+   * the draft tree. Must be in the form of:
+   *  projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Filter which entities to apply. Leaving this field empty will apply all of
+   * the entities. Supports Google AIP 160 based filtering.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filter which entities to apply. Leaving this field empty will apply all of
+   * the entities. Supports Google AIP 160 based filtering.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Fully qualified (Uri) name of the destination connection profile.
+   * 
+ * + * string connection_profile = 100; + * + * @return Whether the connectionProfile field is set. + */ + boolean hasConnectionProfile(); + /** + * + * + *
+   * Fully qualified (Uri) name of the destination connection profile.
+   * 
+ * + * string connection_profile = 100; + * + * @return The connectionProfile. + */ + java.lang.String getConnectionProfile(); + /** + * + * + *
+   * Fully qualified (Uri) name of the destination connection profile.
+   * 
+ * + * string connection_profile = 100; + * + * @return The bytes for connectionProfile. + */ + com.google.protobuf.ByteString getConnectionProfileBytes(); + + public com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest.DestinationCase + getDestinationCase(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntry.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntry.java new file mode 100644 index 000000000000..42ad800590c7 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntry.java @@ -0,0 +1,6492 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Execution log of a background job.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.BackgroundJobLogEntry} + */ +public final class BackgroundJobLogEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.BackgroundJobLogEntry) + BackgroundJobLogEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use BackgroundJobLogEntry.newBuilder() to construct. + private BackgroundJobLogEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BackgroundJobLogEntry() { + id_ = ""; + jobType_ = 0; + completionState_ = 0; + completionComment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BackgroundJobLogEntry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.class, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.Builder.class); + } + + /** + * + * + *
+   * Final state after a job completes.
+   * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState} + */ + public enum JobCompletionState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The status is not specified. This state is used when job is not yet
+     * finished.
+     * 
+ * + * JOB_COMPLETION_STATE_UNSPECIFIED = 0; + */ + JOB_COMPLETION_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Success.
+     * 
+ * + * SUCCEEDED = 1; + */ + SUCCEEDED(1), + /** + * + * + *
+     * Error.
+     * 
+ * + * FAILED = 2; + */ + FAILED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The status is not specified. This state is used when job is not yet
+     * finished.
+     * 
+ * + * JOB_COMPLETION_STATE_UNSPECIFIED = 0; + */ + public static final int JOB_COMPLETION_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Success.
+     * 
+ * + * SUCCEEDED = 1; + */ + public static final int SUCCEEDED_VALUE = 1; + /** + * + * + *
+     * Error.
+     * 
+ * + * FAILED = 2; + */ + public static final int FAILED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static JobCompletionState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static JobCompletionState forNumber(int value) { + switch (value) { + case 0: + return JOB_COMPLETION_STATE_UNSPECIFIED; + case 1: + return SUCCEEDED; + case 2: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobCompletionState findValueByNumber(int number) { + return JobCompletionState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final JobCompletionState[] VALUES = values(); + + public static JobCompletionState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobCompletionState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState) + } + + public interface SeedJobDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The connection profile which was used for the seed job.
+     * 
+ * + * string connection_profile = 1; + * + * @return The connectionProfile. + */ + java.lang.String getConnectionProfile(); + /** + * + * + *
+     * The connection profile which was used for the seed job.
+     * 
+ * + * string connection_profile = 1; + * + * @return The bytes for connectionProfile. + */ + com.google.protobuf.ByteString getConnectionProfileBytes(); + } + /** + * + * + *
+   * Details regarding a Seed background job.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails} + */ + public static final class SeedJobDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) + SeedJobDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SeedJobDetails.newBuilder() to construct. + private SeedJobDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SeedJobDetails() { + connectionProfile_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SeedJobDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_SeedJobDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_SeedJobDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.class, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.Builder.class); + } + + public static final int CONNECTION_PROFILE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object connectionProfile_ = ""; + /** + * + * + *
+     * The connection profile which was used for the seed job.
+     * 
+ * + * string connection_profile = 1; + * + * @return The connectionProfile. + */ + @java.lang.Override + public java.lang.String getConnectionProfile() { + java.lang.Object ref = connectionProfile_; + 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(); + connectionProfile_ = s; + return s; + } + } + /** + * + * + *
+     * The connection profile which was used for the seed job.
+     * 
+ * + * string connection_profile = 1; + * + * @return The bytes for connectionProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConnectionProfileBytes() { + java.lang.Object ref = connectionProfile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connectionProfile_ = 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(connectionProfile_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionProfile_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionProfile_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionProfile_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails other = + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) obj; + + if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONNECTION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getConnectionProfile().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails 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.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails 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.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails 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.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + 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.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails 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.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails 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; + } + /** + * + * + *
+     * Details regarding a Seed background job.
+     * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_SeedJobDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_SeedJobDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.class, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.Builder.class); + } + + // Construct using + // com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + connectionProfile_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_SeedJobDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails build() { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails buildPartial() { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails result = + new com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.connectionProfile_ = connectionProfile_; + } + } + + @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.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) { + return mergeFrom( + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails other) { + if (other + == com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + .getDefaultInstance()) return this; + if (!other.getConnectionProfile().isEmpty()) { + connectionProfile_ = other.connectionProfile_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + connectionProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object connectionProfile_ = ""; + /** + * + * + *
+       * The connection profile which was used for the seed job.
+       * 
+ * + * string connection_profile = 1; + * + * @return The connectionProfile. + */ + public java.lang.String getConnectionProfile() { + java.lang.Object ref = connectionProfile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectionProfile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The connection profile which was used for the seed job.
+       * 
+ * + * string connection_profile = 1; + * + * @return The bytes for connectionProfile. + */ + public com.google.protobuf.ByteString getConnectionProfileBytes() { + java.lang.Object ref = connectionProfile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connectionProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The connection profile which was used for the seed job.
+       * 
+ * + * string connection_profile = 1; + * + * @param value The connectionProfile to set. + * @return This builder for chaining. + */ + public Builder setConnectionProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + connectionProfile_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The connection profile which was used for the seed job.
+       * 
+ * + * string connection_profile = 1; + * + * @return This builder for chaining. + */ + public Builder clearConnectionProfile() { + connectionProfile_ = getDefaultInstance().getConnectionProfile(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The connection profile which was used for the seed job.
+       * 
+ * + * string connection_profile = 1; + * + * @param value The bytes for connectionProfile to set. + * @return This builder for chaining. + */ + public Builder setConnectionProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectionProfile_ = value; + bitField0_ |= 0x00000001; + 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.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) + private static final com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails(); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SeedJobDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ImportRulesJobDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * File names used for the import rules job.
+     * 
+ * + * repeated string files = 1; + * + * @return A list containing the files. + */ + java.util.List getFilesList(); + /** + * + * + *
+     * File names used for the import rules job.
+     * 
+ * + * repeated string files = 1; + * + * @return The count of files. + */ + int getFilesCount(); + /** + * + * + *
+     * File names used for the import rules job.
+     * 
+ * + * repeated string files = 1; + * + * @param index The index of the element to return. + * @return The files at the given index. + */ + java.lang.String getFiles(int index); + /** + * + * + *
+     * File names used for the import rules job.
+     * 
+ * + * repeated string files = 1; + * + * @param index The index of the value to return. + * @return The bytes of the files at the given index. + */ + com.google.protobuf.ByteString getFilesBytes(int index); + + /** + * + * + *
+     * The requested file format.
+     * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * @return The enum numeric value on the wire for fileFormat. + */ + int getFileFormatValue(); + /** + * + * + *
+     * The requested file format.
+     * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * @return The fileFormat. + */ + com.google.cloud.clouddms.v1.ImportRulesFileFormat getFileFormat(); + } + /** + * + * + *
+   * Details regarding an Import Rules background job.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails} + */ + public static final class ImportRulesJobDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) + ImportRulesJobDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportRulesJobDetails.newBuilder() to construct. + private ImportRulesJobDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportRulesJobDetails() { + files_ = com.google.protobuf.LazyStringArrayList.EMPTY; + fileFormat_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportRulesJobDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ImportRulesJobDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ImportRulesJobDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails.class, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails.Builder + .class); + } + + public static final int FILES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList files_; + /** + * + * + *
+     * File names used for the import rules job.
+     * 
+ * + * repeated string files = 1; + * + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList getFilesList() { + return files_; + } + /** + * + * + *
+     * File names used for the import rules job.
+     * 
+ * + * repeated string files = 1; + * + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + /** + * + * + *
+     * File names used for the import rules job.
+     * 
+ * + * repeated string files = 1; + * + * @param index The index of the element to return. + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + /** + * + * + *
+     * File names used for the import rules job.
+     * 
+ * + * repeated string files = 1; + * + * @param index The index of the value to return. + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString getFilesBytes(int index) { + return files_.getByteString(index); + } + + public static final int FILE_FORMAT_FIELD_NUMBER = 2; + private int fileFormat_ = 0; + /** + * + * + *
+     * The requested file format.
+     * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * @return The enum numeric value on the wire for fileFormat. + */ + @java.lang.Override + public int getFileFormatValue() { + return fileFormat_; + } + /** + * + * + *
+     * The requested file format.
+     * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * @return The fileFormat. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportRulesFileFormat getFileFormat() { + com.google.cloud.clouddms.v1.ImportRulesFileFormat result = + com.google.cloud.clouddms.v1.ImportRulesFileFormat.forNumber(fileFormat_); + return result == null + ? com.google.cloud.clouddms.v1.ImportRulesFileFormat.UNRECOGNIZED + : result; + } + + 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 < files_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, files_.getRaw(i)); + } + if (fileFormat_ + != com.google.cloud.clouddms.v1.ImportRulesFileFormat.IMPORT_RULES_FILE_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, fileFormat_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < files_.size(); i++) { + dataSize += computeStringSizeNoTag(files_.getRaw(i)); + } + size += dataSize; + size += 1 * getFilesList().size(); + } + if (fileFormat_ + != com.google.cloud.clouddms.v1.ImportRulesFileFormat.IMPORT_RULES_FILE_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, fileFormat_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails other = + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) obj; + + if (!getFilesList().equals(other.getFilesList())) return false; + if (fileFormat_ != other.fileFormat_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (37 * hash) + FILE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + fileFormat_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + 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.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + 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.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + 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.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + 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.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + 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.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails 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; + } + /** + * + * + *
+     * Details regarding an Import Rules background job.
+     * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ImportRulesJobDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ImportRulesJobDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails.class, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails.Builder + .class); + } + + // Construct using + // com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + files_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + fileFormat_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ImportRulesJobDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails build() { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + buildPartial() { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails result = + new com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails result) { + if (((bitField0_ & 0x00000001) != 0)) { + files_ = files_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.files_ = files_; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fileFormat_ = fileFormat_; + } + } + + @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.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) { + return mergeFrom( + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails other) { + if (other + == com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + .getDefaultInstance()) return this; + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + if (other.fileFormat_ != 0) { + setFileFormatValue(other.getFileFormatValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFilesIsMutable(); + files_.add(s); + break; + } // case 10 + case 16: + { + fileFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList files_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + files_ = new com.google.protobuf.LazyStringArrayList(files_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * File names used for the import rules job.
+       * 
+ * + * repeated string files = 1; + * + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList getFilesList() { + return files_.getUnmodifiableView(); + } + /** + * + * + *
+       * File names used for the import rules job.
+       * 
+ * + * repeated string files = 1; + * + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + /** + * + * + *
+       * File names used for the import rules job.
+       * 
+ * + * repeated string files = 1; + * + * @param index The index of the element to return. + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + /** + * + * + *
+       * File names used for the import rules job.
+       * 
+ * + * repeated string files = 1; + * + * @param index The index of the value to return. + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString getFilesBytes(int index) { + return files_.getByteString(index); + } + /** + * + * + *
+       * File names used for the import rules job.
+       * 
+ * + * repeated string files = 1; + * + * @param index The index to set the value at. + * @param value The files to set. + * @return This builder for chaining. + */ + public Builder setFiles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * File names used for the import rules job.
+       * 
+ * + * repeated string files = 1; + * + * @param value The files to add. + * @return This builder for chaining. + */ + public Builder addFiles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * File names used for the import rules job.
+       * 
+ * + * repeated string files = 1; + * + * @param values The files to add. + * @return This builder for chaining. + */ + public Builder addAllFiles(java.lang.Iterable values) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + onChanged(); + return this; + } + /** + * + * + *
+       * File names used for the import rules job.
+       * 
+ * + * repeated string files = 1; + * + * @return This builder for chaining. + */ + public Builder clearFiles() { + files_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * File names used for the import rules job.
+       * 
+ * + * repeated string files = 1; + * + * @param value The bytes of the files to add. + * @return This builder for chaining. + */ + public Builder addFilesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + return this; + } + + private int fileFormat_ = 0; + /** + * + * + *
+       * The requested file format.
+       * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * @return The enum numeric value on the wire for fileFormat. + */ + @java.lang.Override + public int getFileFormatValue() { + return fileFormat_; + } + /** + * + * + *
+       * The requested file format.
+       * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * @param value The enum numeric value on the wire for fileFormat to set. + * @return This builder for chaining. + */ + public Builder setFileFormatValue(int value) { + fileFormat_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The requested file format.
+       * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * @return The fileFormat. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportRulesFileFormat getFileFormat() { + com.google.cloud.clouddms.v1.ImportRulesFileFormat result = + com.google.cloud.clouddms.v1.ImportRulesFileFormat.forNumber(fileFormat_); + return result == null + ? com.google.cloud.clouddms.v1.ImportRulesFileFormat.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The requested file format.
+       * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * @param value The fileFormat to set. + * @return This builder for chaining. + */ + public Builder setFileFormat(com.google.cloud.clouddms.v1.ImportRulesFileFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + fileFormat_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The requested file format.
+       * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat file_format = 2; + * + * @return This builder for chaining. + */ + public Builder clearFileFormat() { + bitField0_ = (bitField0_ & ~0x00000002); + fileFormat_ = 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.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) + private static final com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails(); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportRulesJobDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConvertJobDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * AIP-160 based filter used to specify the entities to convert
+     * 
+ * + * string filter = 1; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+     * AIP-160 based filter used to specify the entities to convert
+     * 
+ * + * string filter = 1; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + } + /** + * + * + *
+   * Details regarding a Convert background job.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails} + */ + public static final class ConvertJobDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) + ConvertJobDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConvertJobDetails.newBuilder() to construct. + private ConvertJobDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConvertJobDetails() { + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConvertJobDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ConvertJobDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ConvertJobDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails.class, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails.Builder.class); + } + + public static final int FILTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+     * AIP-160 based filter used to specify the entities to convert
+     * 
+ * + * string filter = 1; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+     * AIP-160 based filter used to specify the entities to convert
+     * 
+ * + * string filter = 1; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails other = + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) obj; + + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails 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.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails 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.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails 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.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + 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.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails 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.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails 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; + } + /** + * + * + *
+     * Details regarding a Convert background job.
+     * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ConvertJobDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ConvertJobDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails.class, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails.Builder.class); + } + + // Construct using + // com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ConvertJobDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails build() { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails buildPartial() { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails result = + new com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + } + } + + @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.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) { + return mergeFrom( + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails other) { + if (other + == com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + .getDefaultInstance()) return this; + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object filter_ = ""; + /** + * + * + *
+       * AIP-160 based filter used to specify the entities to convert
+       * 
+ * + * string filter = 1; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * AIP-160 based filter used to specify the entities to convert
+       * 
+ * + * string filter = 1; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * AIP-160 based filter used to specify the entities to convert
+       * 
+ * + * string filter = 1; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * AIP-160 based filter used to specify the entities to convert
+       * 
+ * + * string filter = 1; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * AIP-160 based filter used to specify the entities to convert
+       * 
+ * + * string filter = 1; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000001; + 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.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) + private static final com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails(); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConvertJobDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ApplyJobDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The connection profile which was used for the apply job.
+     * 
+ * + * string connection_profile = 1; + * + * @return The connectionProfile. + */ + java.lang.String getConnectionProfile(); + /** + * + * + *
+     * The connection profile which was used for the apply job.
+     * 
+ * + * string connection_profile = 1; + * + * @return The bytes for connectionProfile. + */ + com.google.protobuf.ByteString getConnectionProfileBytes(); + + /** + * + * + *
+     * AIP-160 based filter used to specify the entities to apply
+     * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+     * AIP-160 based filter used to specify the entities to apply
+     * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + } + /** + * + * + *
+   * Details regarding an Apply background job.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails} + */ + public static final class ApplyJobDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) + ApplyJobDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplyJobDetails.newBuilder() to construct. + private ApplyJobDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplyJobDetails() { + connectionProfile_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApplyJobDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ApplyJobDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ApplyJobDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.class, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.Builder.class); + } + + public static final int CONNECTION_PROFILE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object connectionProfile_ = ""; + /** + * + * + *
+     * The connection profile which was used for the apply job.
+     * 
+ * + * string connection_profile = 1; + * + * @return The connectionProfile. + */ + @java.lang.Override + public java.lang.String getConnectionProfile() { + java.lang.Object ref = connectionProfile_; + 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(); + connectionProfile_ = s; + return s; + } + } + /** + * + * + *
+     * The connection profile which was used for the apply job.
+     * 
+ * + * string connection_profile = 1; + * + * @return The bytes for connectionProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConnectionProfileBytes() { + java.lang.Object ref = connectionProfile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connectionProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+     * AIP-160 based filter used to specify the entities to apply
+     * 
+ * + * string filter = 2; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+     * AIP-160 based filter used to specify the entities to apply
+     * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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(connectionProfile_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionProfile_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionProfile_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionProfile_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails other = + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) obj; + + if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONNECTION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getConnectionProfile().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails 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.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails 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.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails 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.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + 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.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails 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.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails 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; + } + /** + * + * + *
+     * Details regarding an Apply background job.
+     * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ApplyJobDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ApplyJobDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.class, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.Builder.class); + } + + // Construct using + // com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + connectionProfile_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ApplyJobDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails build() { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails buildPartial() { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails result = + new com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.connectionProfile_ = connectionProfile_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + } + + @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.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) { + return mergeFrom( + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails other) { + if (other + == com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + .getDefaultInstance()) return this; + if (!other.getConnectionProfile().isEmpty()) { + connectionProfile_ = other.connectionProfile_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + connectionProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object connectionProfile_ = ""; + /** + * + * + *
+       * The connection profile which was used for the apply job.
+       * 
+ * + * string connection_profile = 1; + * + * @return The connectionProfile. + */ + public java.lang.String getConnectionProfile() { + java.lang.Object ref = connectionProfile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectionProfile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The connection profile which was used for the apply job.
+       * 
+ * + * string connection_profile = 1; + * + * @return The bytes for connectionProfile. + */ + public com.google.protobuf.ByteString getConnectionProfileBytes() { + java.lang.Object ref = connectionProfile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connectionProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The connection profile which was used for the apply job.
+       * 
+ * + * string connection_profile = 1; + * + * @param value The connectionProfile to set. + * @return This builder for chaining. + */ + public Builder setConnectionProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + connectionProfile_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The connection profile which was used for the apply job.
+       * 
+ * + * string connection_profile = 1; + * + * @return This builder for chaining. + */ + public Builder clearConnectionProfile() { + connectionProfile_ = getDefaultInstance().getConnectionProfile(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The connection profile which was used for the apply job.
+       * 
+ * + * string connection_profile = 1; + * + * @param value The bytes for connectionProfile to set. + * @return This builder for chaining. + */ + public Builder setConnectionProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectionProfile_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+       * AIP-160 based filter used to specify the entities to apply
+       * 
+ * + * string filter = 2; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * AIP-160 based filter used to specify the entities to apply
+       * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * AIP-160 based filter used to specify the entities to apply
+       * 
+ * + * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * AIP-160 based filter used to specify the entities to apply
+       * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * AIP-160 based filter used to specify the entities to apply
+       * 
+ * + * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) + private static final com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails(); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplyJobDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int jobDetailsCase_ = 0; + private java.lang.Object jobDetails_; + + public enum JobDetailsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SEED_JOB_DETAILS(100), + IMPORT_RULES_JOB_DETAILS(101), + CONVERT_JOB_DETAILS(102), + APPLY_JOB_DETAILS(103), + JOBDETAILS_NOT_SET(0); + private final int value; + + private JobDetailsCase(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 JobDetailsCase valueOf(int value) { + return forNumber(value); + } + + public static JobDetailsCase forNumber(int value) { + switch (value) { + case 100: + return SEED_JOB_DETAILS; + case 101: + return IMPORT_RULES_JOB_DETAILS; + case 102: + return CONVERT_JOB_DETAILS; + case 103: + return APPLY_JOB_DETAILS; + case 0: + return JOBDETAILS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public JobDetailsCase getJobDetailsCase() { + return JobDetailsCase.forNumber(jobDetailsCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * + * + *
+   * The background job log entry ID.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * The background job log entry ID.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_TYPE_FIELD_NUMBER = 2; + private int jobType_ = 0; + /** + * + * + *
+   * The type of job that was executed.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobType job_type = 2; + * + * @return The enum numeric value on the wire for jobType. + */ + @java.lang.Override + public int getJobTypeValue() { + return jobType_; + } + /** + * + * + *
+   * The type of job that was executed.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobType job_type = 2; + * + * @return The jobType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobType getJobType() { + com.google.cloud.clouddms.v1.BackgroundJobType result = + com.google.cloud.clouddms.v1.BackgroundJobType.forNumber(jobType_); + return result == null ? com.google.cloud.clouddms.v1.BackgroundJobType.UNRECOGNIZED : result; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The timestamp when the background job was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The timestamp when the background job was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The timestamp when the background job was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int FINISH_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp finishTime_; + /** + * + * + *
+   * The timestamp when the background job was finished.
+   * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + * + * @return Whether the finishTime field is set. + */ + @java.lang.Override + public boolean hasFinishTime() { + return finishTime_ != null; + } + /** + * + * + *
+   * The timestamp when the background job was finished.
+   * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + * + * @return The finishTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFinishTime() { + return finishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishTime_; + } + /** + * + * + *
+   * The timestamp when the background job was finished.
+   * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() { + return finishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishTime_; + } + + public static final int COMPLETION_STATE_FIELD_NUMBER = 5; + private int completionState_ = 0; + /** + * + * + *
+   * Job completion state, i.e. the final state after the job completed.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * + * @return The enum numeric value on the wire for completionState. + */ + @java.lang.Override + public int getCompletionStateValue() { + return completionState_; + } + /** + * + * + *
+   * Job completion state, i.e. the final state after the job completed.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * + * @return The completionState. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState + getCompletionState() { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState result = + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState.forNumber( + completionState_); + return result == null + ? com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState.UNRECOGNIZED + : result; + } + + public static final int COMPLETION_COMMENT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object completionComment_ = ""; + /** + * + * + *
+   * Job completion comment, such as how many entities were seeded,
+   * how many warnings were found during conversion, and similar information.
+   * 
+ * + * string completion_comment = 6; + * + * @return The completionComment. + */ + @java.lang.Override + public java.lang.String getCompletionComment() { + java.lang.Object ref = completionComment_; + 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(); + completionComment_ = s; + return s; + } + } + /** + * + * + *
+   * Job completion comment, such as how many entities were seeded,
+   * how many warnings were found during conversion, and similar information.
+   * 
+ * + * string completion_comment = 6; + * + * @return The bytes for completionComment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCompletionCommentBytes() { + java.lang.Object ref = completionComment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + completionComment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_AUTOCOMMIT_FIELD_NUMBER = 7; + private boolean requestAutocommit_ = false; + /** + * + * + *
+   * Whether the client requested the conversion workspace to be committed after
+   * a successful completion of the job.
+   * 
+ * + * bool request_autocommit = 7; + * + * @return The requestAutocommit. + */ + @java.lang.Override + public boolean getRequestAutocommit() { + return requestAutocommit_; + } + + public static final int SEED_JOB_DETAILS_FIELD_NUMBER = 100; + /** + * + * + *
+   * Seed job details.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * + * @return Whether the seedJobDetails field is set. + */ + @java.lang.Override + public boolean hasSeedJobDetails() { + return jobDetailsCase_ == 100; + } + /** + * + * + *
+   * Seed job details.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * + * @return The seedJobDetails. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails getSeedJobDetails() { + if (jobDetailsCase_ == 100) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.getDefaultInstance(); + } + /** + * + * + *
+   * Seed job details.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetailsOrBuilder + getSeedJobDetailsOrBuilder() { + if (jobDetailsCase_ == 100) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.getDefaultInstance(); + } + + public static final int IMPORT_RULES_JOB_DETAILS_FIELD_NUMBER = 101; + /** + * + * + *
+   * Import rules job details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + * + * @return Whether the importRulesJobDetails field is set. + */ + @java.lang.Override + public boolean hasImportRulesJobDetails() { + return jobDetailsCase_ == 101; + } + /** + * + * + *
+   * Import rules job details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + * + * @return The importRulesJobDetails. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + getImportRulesJobDetails() { + if (jobDetailsCase_ == 101) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + .getDefaultInstance(); + } + /** + * + * + *
+   * Import rules job details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetailsOrBuilder + getImportRulesJobDetailsOrBuilder() { + if (jobDetailsCase_ == 101) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + .getDefaultInstance(); + } + + public static final int CONVERT_JOB_DETAILS_FIELD_NUMBER = 102; + /** + * + * + *
+   * Convert job details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + * + * @return Whether the convertJobDetails field is set. + */ + @java.lang.Override + public boolean hasConvertJobDetails() { + return jobDetailsCase_ == 102; + } + /** + * + * + *
+   * Convert job details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + * + * @return The convertJobDetails. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + getConvertJobDetails() { + if (jobDetailsCase_ == 102) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + .getDefaultInstance(); + } + /** + * + * + *
+   * Convert job details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetailsOrBuilder + getConvertJobDetailsOrBuilder() { + if (jobDetailsCase_ == 102) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + .getDefaultInstance(); + } + + public static final int APPLY_JOB_DETAILS_FIELD_NUMBER = 103; + /** + * + * + *
+   * Apply job details.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + * + * @return Whether the applyJobDetails field is set. + */ + @java.lang.Override + public boolean hasApplyJobDetails() { + return jobDetailsCase_ == 103; + } + /** + * + * + *
+   * Apply job details.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + * + * @return The applyJobDetails. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails getApplyJobDetails() { + if (jobDetailsCase_ == 103) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.getDefaultInstance(); + } + /** + * + * + *
+   * Apply job details.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetailsOrBuilder + getApplyJobDetailsOrBuilder() { + if (jobDetailsCase_ == 103) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (jobType_ + != com.google.cloud.clouddms.v1.BackgroundJobType.BACKGROUND_JOB_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, jobType_); + } + if (startTime_ != null) { + output.writeMessage(3, getStartTime()); + } + if (finishTime_ != null) { + output.writeMessage(4, getFinishTime()); + } + if (completionState_ + != com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState + .JOB_COMPLETION_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, completionState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(completionComment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, completionComment_); + } + if (requestAutocommit_ != false) { + output.writeBool(7, requestAutocommit_); + } + if (jobDetailsCase_ == 100) { + output.writeMessage( + 100, (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) jobDetails_); + } + if (jobDetailsCase_ == 101) { + output.writeMessage( + 101, + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) jobDetails_); + } + if (jobDetailsCase_ == 102) { + output.writeMessage( + 102, (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) jobDetails_); + } + if (jobDetailsCase_ == 103) { + output.writeMessage( + 103, (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) jobDetails_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (jobType_ + != com.google.cloud.clouddms.v1.BackgroundJobType.BACKGROUND_JOB_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, jobType_); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (finishTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFinishTime()); + } + if (completionState_ + != com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState + .JOB_COMPLETION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, completionState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(completionComment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, completionComment_); + } + if (requestAutocommit_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, requestAutocommit_); + } + if (jobDetailsCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) jobDetails_); + } + if (jobDetailsCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) + jobDetails_); + } + if (jobDetailsCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) jobDetails_); + } + if (jobDetailsCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) jobDetails_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.BackgroundJobLogEntry)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.BackgroundJobLogEntry other = + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry) obj; + + if (!getId().equals(other.getId())) return false; + if (jobType_ != other.jobType_) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasFinishTime() != other.hasFinishTime()) return false; + if (hasFinishTime()) { + if (!getFinishTime().equals(other.getFinishTime())) return false; + } + if (completionState_ != other.completionState_) return false; + if (!getCompletionComment().equals(other.getCompletionComment())) return false; + if (getRequestAutocommit() != other.getRequestAutocommit()) return false; + if (!getJobDetailsCase().equals(other.getJobDetailsCase())) return false; + switch (jobDetailsCase_) { + case 100: + if (!getSeedJobDetails().equals(other.getSeedJobDetails())) return false; + break; + case 101: + if (!getImportRulesJobDetails().equals(other.getImportRulesJobDetails())) return false; + break; + case 102: + if (!getConvertJobDetails().equals(other.getConvertJobDetails())) return false; + break; + case 103: + if (!getApplyJobDetails().equals(other.getApplyJobDetails())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + JOB_TYPE_FIELD_NUMBER; + hash = (53 * hash) + jobType_; + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasFinishTime()) { + hash = (37 * hash) + FINISH_TIME_FIELD_NUMBER; + hash = (53 * hash) + getFinishTime().hashCode(); + } + hash = (37 * hash) + COMPLETION_STATE_FIELD_NUMBER; + hash = (53 * hash) + completionState_; + hash = (37 * hash) + COMPLETION_COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getCompletionComment().hashCode(); + hash = (37 * hash) + REQUEST_AUTOCOMMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestAutocommit()); + switch (jobDetailsCase_) { + case 100: + hash = (37 * hash) + SEED_JOB_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getSeedJobDetails().hashCode(); + break; + case 101: + hash = (37 * hash) + IMPORT_RULES_JOB_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getImportRulesJobDetails().hashCode(); + break; + case 102: + hash = (37 * hash) + CONVERT_JOB_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getConvertJobDetails().hashCode(); + break; + case 103: + hash = (37 * hash) + APPLY_JOB_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getApplyJobDetails().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry 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.clouddms.v1.BackgroundJobLogEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry 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.clouddms.v1.BackgroundJobLogEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry 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.clouddms.v1.BackgroundJobLogEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry 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.clouddms.v1.BackgroundJobLogEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry 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.clouddms.v1.BackgroundJobLogEntry 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; + } + /** + * + * + *
+   * Execution log of a background job.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.BackgroundJobLogEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.BackgroundJobLogEntry) + com.google.cloud.clouddms.v1.BackgroundJobLogEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.class, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.BackgroundJobLogEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + jobType_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + finishTime_ = null; + if (finishTimeBuilder_ != null) { + finishTimeBuilder_.dispose(); + finishTimeBuilder_ = null; + } + completionState_ = 0; + completionComment_ = ""; + requestAutocommit_ = false; + if (seedJobDetailsBuilder_ != null) { + seedJobDetailsBuilder_.clear(); + } + if (importRulesJobDetailsBuilder_ != null) { + importRulesJobDetailsBuilder_.clear(); + } + if (convertJobDetailsBuilder_ != null) { + convertJobDetailsBuilder_.clear(); + } + if (applyJobDetailsBuilder_ != null) { + applyJobDetailsBuilder_.clear(); + } + jobDetailsCase_ = 0; + jobDetails_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry build() { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry buildPartial() { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry result = + new com.google.cloud.clouddms.v1.BackgroundJobLogEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.BackgroundJobLogEntry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.jobType_ = jobType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.finishTime_ = finishTimeBuilder_ == null ? finishTime_ : finishTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.completionState_ = completionState_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.completionComment_ = completionComment_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.requestAutocommit_ = requestAutocommit_; + } + } + + private void buildPartialOneofs(com.google.cloud.clouddms.v1.BackgroundJobLogEntry result) { + result.jobDetailsCase_ = jobDetailsCase_; + result.jobDetails_ = this.jobDetails_; + if (jobDetailsCase_ == 100 && seedJobDetailsBuilder_ != null) { + result.jobDetails_ = seedJobDetailsBuilder_.build(); + } + if (jobDetailsCase_ == 101 && importRulesJobDetailsBuilder_ != null) { + result.jobDetails_ = importRulesJobDetailsBuilder_.build(); + } + if (jobDetailsCase_ == 102 && convertJobDetailsBuilder_ != null) { + result.jobDetails_ = convertJobDetailsBuilder_.build(); + } + if (jobDetailsCase_ == 103 && applyJobDetailsBuilder_ != null) { + result.jobDetails_ = applyJobDetailsBuilder_.build(); + } + } + + @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.clouddms.v1.BackgroundJobLogEntry) { + return mergeFrom((com.google.cloud.clouddms.v1.BackgroundJobLogEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.BackgroundJobLogEntry other) { + if (other == com.google.cloud.clouddms.v1.BackgroundJobLogEntry.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.jobType_ != 0) { + setJobTypeValue(other.getJobTypeValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasFinishTime()) { + mergeFinishTime(other.getFinishTime()); + } + if (other.completionState_ != 0) { + setCompletionStateValue(other.getCompletionStateValue()); + } + if (!other.getCompletionComment().isEmpty()) { + completionComment_ = other.completionComment_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.getRequestAutocommit() != false) { + setRequestAutocommit(other.getRequestAutocommit()); + } + switch (other.getJobDetailsCase()) { + case SEED_JOB_DETAILS: + { + mergeSeedJobDetails(other.getSeedJobDetails()); + break; + } + case IMPORT_RULES_JOB_DETAILS: + { + mergeImportRulesJobDetails(other.getImportRulesJobDetails()); + break; + } + case CONVERT_JOB_DETAILS: + { + mergeConvertJobDetails(other.getConvertJobDetails()); + break; + } + case APPLY_JOB_DETAILS: + { + mergeApplyJobDetails(other.getApplyJobDetails()); + break; + } + case JOBDETAILS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + jobType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getFinishTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + completionState_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + completionComment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + requestAutocommit_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 802: + { + input.readMessage(getSeedJobDetailsFieldBuilder().getBuilder(), extensionRegistry); + jobDetailsCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage( + getImportRulesJobDetailsFieldBuilder().getBuilder(), extensionRegistry); + jobDetailsCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage( + getConvertJobDetailsFieldBuilder().getBuilder(), extensionRegistry); + jobDetailsCase_ = 102; + break; + } // case 818 + case 826: + { + input.readMessage(getApplyJobDetailsFieldBuilder().getBuilder(), extensionRegistry); + jobDetailsCase_ = 103; + break; + } // case 826 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int jobDetailsCase_ = 0; + private java.lang.Object jobDetails_; + + public JobDetailsCase getJobDetailsCase() { + return JobDetailsCase.forNumber(jobDetailsCase_); + } + + public Builder clearJobDetails() { + jobDetailsCase_ = 0; + jobDetails_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * The background job log entry ID.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The background job log entry ID.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The background job log entry ID.
+     * 
+ * + * string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The background job log entry ID.
+     * 
+ * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The background job log entry ID.
+     * 
+ * + * string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int jobType_ = 0; + /** + * + * + *
+     * The type of job that was executed.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobType job_type = 2; + * + * @return The enum numeric value on the wire for jobType. + */ + @java.lang.Override + public int getJobTypeValue() { + return jobType_; + } + /** + * + * + *
+     * The type of job that was executed.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobType job_type = 2; + * + * @param value The enum numeric value on the wire for jobType to set. + * @return This builder for chaining. + */ + public Builder setJobTypeValue(int value) { + jobType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of job that was executed.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobType job_type = 2; + * + * @return The jobType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobType getJobType() { + com.google.cloud.clouddms.v1.BackgroundJobType result = + com.google.cloud.clouddms.v1.BackgroundJobType.forNumber(jobType_); + return result == null ? com.google.cloud.clouddms.v1.BackgroundJobType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The type of job that was executed.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobType job_type = 2; + * + * @param value The jobType to set. + * @return This builder for chaining. + */ + public Builder setJobType(com.google.cloud.clouddms.v1.BackgroundJobType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + jobType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of job that was executed.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobType job_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearJobType() { + bitField0_ = (bitField0_ & ~0x00000002); + jobType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The timestamp when the background job was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The timestamp when the background job was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The timestamp when the background job was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp when the background job was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp when the background job was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp when the background job was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp when the background job was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The timestamp when the background job was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The timestamp when the background job was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp finishTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + finishTimeBuilder_; + /** + * + * + *
+     * The timestamp when the background job was finished.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + * + * @return Whether the finishTime field is set. + */ + public boolean hasFinishTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * The timestamp when the background job was finished.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + * + * @return The finishTime. + */ + public com.google.protobuf.Timestamp getFinishTime() { + if (finishTimeBuilder_ == null) { + return finishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : finishTime_; + } else { + return finishTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The timestamp when the background job was finished.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + */ + public Builder setFinishTime(com.google.protobuf.Timestamp value) { + if (finishTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + finishTime_ = value; + } else { + finishTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp when the background job was finished.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + */ + public Builder setFinishTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (finishTimeBuilder_ == null) { + finishTime_ = builderForValue.build(); + } else { + finishTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp when the background job was finished.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + */ + public Builder mergeFinishTime(com.google.protobuf.Timestamp value) { + if (finishTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && finishTime_ != null + && finishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getFinishTimeBuilder().mergeFrom(value); + } else { + finishTime_ = value; + } + } else { + finishTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp when the background job was finished.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + */ + public Builder clearFinishTime() { + bitField0_ = (bitField0_ & ~0x00000008); + finishTime_ = null; + if (finishTimeBuilder_ != null) { + finishTimeBuilder_.dispose(); + finishTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The timestamp when the background job was finished.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getFinishTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getFinishTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The timestamp when the background job was finished.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() { + if (finishTimeBuilder_ != null) { + return finishTimeBuilder_.getMessageOrBuilder(); + } else { + return finishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : finishTime_; + } + } + /** + * + * + *
+     * The timestamp when the background job was finished.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getFinishTimeFieldBuilder() { + if (finishTimeBuilder_ == null) { + finishTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getFinishTime(), getParentForChildren(), isClean()); + finishTime_ = null; + } + return finishTimeBuilder_; + } + + private int completionState_ = 0; + /** + * + * + *
+     * Job completion state, i.e. the final state after the job completed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * + * @return The enum numeric value on the wire for completionState. + */ + @java.lang.Override + public int getCompletionStateValue() { + return completionState_; + } + /** + * + * + *
+     * Job completion state, i.e. the final state after the job completed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * + * @param value The enum numeric value on the wire for completionState to set. + * @return This builder for chaining. + */ + public Builder setCompletionStateValue(int value) { + completionState_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Job completion state, i.e. the final state after the job completed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * + * @return The completionState. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState + getCompletionState() { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState result = + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState.forNumber( + completionState_); + return result == null + ? com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Job completion state, i.e. the final state after the job completed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * + * @param value The completionState to set. + * @return This builder for chaining. + */ + public Builder setCompletionState( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + completionState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Job completion state, i.e. the final state after the job completed.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearCompletionState() { + bitField0_ = (bitField0_ & ~0x00000010); + completionState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object completionComment_ = ""; + /** + * + * + *
+     * Job completion comment, such as how many entities were seeded,
+     * how many warnings were found during conversion, and similar information.
+     * 
+ * + * string completion_comment = 6; + * + * @return The completionComment. + */ + public java.lang.String getCompletionComment() { + java.lang.Object ref = completionComment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + completionComment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Job completion comment, such as how many entities were seeded,
+     * how many warnings were found during conversion, and similar information.
+     * 
+ * + * string completion_comment = 6; + * + * @return The bytes for completionComment. + */ + public com.google.protobuf.ByteString getCompletionCommentBytes() { + java.lang.Object ref = completionComment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + completionComment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Job completion comment, such as how many entities were seeded,
+     * how many warnings were found during conversion, and similar information.
+     * 
+ * + * string completion_comment = 6; + * + * @param value The completionComment to set. + * @return This builder for chaining. + */ + public Builder setCompletionComment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + completionComment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Job completion comment, such as how many entities were seeded,
+     * how many warnings were found during conversion, and similar information.
+     * 
+ * + * string completion_comment = 6; + * + * @return This builder for chaining. + */ + public Builder clearCompletionComment() { + completionComment_ = getDefaultInstance().getCompletionComment(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Job completion comment, such as how many entities were seeded,
+     * how many warnings were found during conversion, and similar information.
+     * 
+ * + * string completion_comment = 6; + * + * @param value The bytes for completionComment to set. + * @return This builder for chaining. + */ + public Builder setCompletionCommentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + completionComment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean requestAutocommit_; + /** + * + * + *
+     * Whether the client requested the conversion workspace to be committed after
+     * a successful completion of the job.
+     * 
+ * + * bool request_autocommit = 7; + * + * @return The requestAutocommit. + */ + @java.lang.Override + public boolean getRequestAutocommit() { + return requestAutocommit_; + } + /** + * + * + *
+     * Whether the client requested the conversion workspace to be committed after
+     * a successful completion of the job.
+     * 
+ * + * bool request_autocommit = 7; + * + * @param value The requestAutocommit to set. + * @return This builder for chaining. + */ + public Builder setRequestAutocommit(boolean value) { + + requestAutocommit_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the client requested the conversion workspace to be committed after
+     * a successful completion of the job.
+     * 
+ * + * bool request_autocommit = 7; + * + * @return This builder for chaining. + */ + public Builder clearRequestAutocommit() { + bitField0_ = (bitField0_ & ~0x00000040); + requestAutocommit_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetailsOrBuilder> + seedJobDetailsBuilder_; + /** + * + * + *
+     * Seed job details.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * + * @return Whether the seedJobDetails field is set. + */ + @java.lang.Override + public boolean hasSeedJobDetails() { + return jobDetailsCase_ == 100; + } + /** + * + * + *
+     * Seed job details.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * + * @return The seedJobDetails. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails getSeedJobDetails() { + if (seedJobDetailsBuilder_ == null) { + if (jobDetailsCase_ == 100) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + .getDefaultInstance(); + } else { + if (jobDetailsCase_ == 100) { + return seedJobDetailsBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Seed job details.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + */ + public Builder setSeedJobDetails( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails value) { + if (seedJobDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobDetails_ = value; + onChanged(); + } else { + seedJobDetailsBuilder_.setMessage(value); + } + jobDetailsCase_ = 100; + return this; + } + /** + * + * + *
+     * Seed job details.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + */ + public Builder setSeedJobDetails( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.Builder builderForValue) { + if (seedJobDetailsBuilder_ == null) { + jobDetails_ = builderForValue.build(); + onChanged(); + } else { + seedJobDetailsBuilder_.setMessage(builderForValue.build()); + } + jobDetailsCase_ = 100; + return this; + } + /** + * + * + *
+     * Seed job details.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + */ + public Builder mergeSeedJobDetails( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails value) { + if (seedJobDetailsBuilder_ == null) { + if (jobDetailsCase_ == 100 + && jobDetails_ + != com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + .getDefaultInstance()) { + jobDetails_ = + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.newBuilder( + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) + jobDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + jobDetails_ = value; + } + onChanged(); + } else { + if (jobDetailsCase_ == 100) { + seedJobDetailsBuilder_.mergeFrom(value); + } else { + seedJobDetailsBuilder_.setMessage(value); + } + } + jobDetailsCase_ = 100; + return this; + } + /** + * + * + *
+     * Seed job details.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + */ + public Builder clearSeedJobDetails() { + if (seedJobDetailsBuilder_ == null) { + if (jobDetailsCase_ == 100) { + jobDetailsCase_ = 0; + jobDetails_ = null; + onChanged(); + } + } else { + if (jobDetailsCase_ == 100) { + jobDetailsCase_ = 0; + jobDetails_ = null; + } + seedJobDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Seed job details.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + */ + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.Builder + getSeedJobDetailsBuilder() { + return getSeedJobDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Seed job details.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetailsOrBuilder + getSeedJobDetailsOrBuilder() { + if ((jobDetailsCase_ == 100) && (seedJobDetailsBuilder_ != null)) { + return seedJobDetailsBuilder_.getMessageOrBuilder(); + } else { + if (jobDetailsCase_ == 100) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Seed job details.
+     * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetailsOrBuilder> + getSeedJobDetailsFieldBuilder() { + if (seedJobDetailsBuilder_ == null) { + if (!(jobDetailsCase_ == 100)) { + jobDetails_ = + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails + .getDefaultInstance(); + } + seedJobDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetailsOrBuilder>( + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails) jobDetails_, + getParentForChildren(), + isClean()); + jobDetails_ = null; + } + jobDetailsCase_ = 100; + onChanged(); + return seedJobDetailsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetailsOrBuilder> + importRulesJobDetailsBuilder_; + /** + * + * + *
+     * Import rules job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + * + * @return Whether the importRulesJobDetails field is set. + */ + @java.lang.Override + public boolean hasImportRulesJobDetails() { + return jobDetailsCase_ == 101; + } + /** + * + * + *
+     * Import rules job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + * + * @return The importRulesJobDetails. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + getImportRulesJobDetails() { + if (importRulesJobDetailsBuilder_ == null) { + if (jobDetailsCase_ == 101) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) + jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + .getDefaultInstance(); + } else { + if (jobDetailsCase_ == 101) { + return importRulesJobDetailsBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Import rules job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + */ + public Builder setImportRulesJobDetails( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails value) { + if (importRulesJobDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobDetails_ = value; + onChanged(); + } else { + importRulesJobDetailsBuilder_.setMessage(value); + } + jobDetailsCase_ = 101; + return this; + } + /** + * + * + *
+     * Import rules job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + */ + public Builder setImportRulesJobDetails( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails.Builder + builderForValue) { + if (importRulesJobDetailsBuilder_ == null) { + jobDetails_ = builderForValue.build(); + onChanged(); + } else { + importRulesJobDetailsBuilder_.setMessage(builderForValue.build()); + } + jobDetailsCase_ = 101; + return this; + } + /** + * + * + *
+     * Import rules job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + */ + public Builder mergeImportRulesJobDetails( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails value) { + if (importRulesJobDetailsBuilder_ == null) { + if (jobDetailsCase_ == 101 + && jobDetails_ + != com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + .getDefaultInstance()) { + jobDetails_ = + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails.newBuilder( + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) + jobDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + jobDetails_ = value; + } + onChanged(); + } else { + if (jobDetailsCase_ == 101) { + importRulesJobDetailsBuilder_.mergeFrom(value); + } else { + importRulesJobDetailsBuilder_.setMessage(value); + } + } + jobDetailsCase_ = 101; + return this; + } + /** + * + * + *
+     * Import rules job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + */ + public Builder clearImportRulesJobDetails() { + if (importRulesJobDetailsBuilder_ == null) { + if (jobDetailsCase_ == 101) { + jobDetailsCase_ = 0; + jobDetails_ = null; + onChanged(); + } + } else { + if (jobDetailsCase_ == 101) { + jobDetailsCase_ = 0; + jobDetails_ = null; + } + importRulesJobDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Import rules job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + */ + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails.Builder + getImportRulesJobDetailsBuilder() { + return getImportRulesJobDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Import rules job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetailsOrBuilder + getImportRulesJobDetailsOrBuilder() { + if ((jobDetailsCase_ == 101) && (importRulesJobDetailsBuilder_ != null)) { + return importRulesJobDetailsBuilder_.getMessageOrBuilder(); + } else { + if (jobDetailsCase_ == 101) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) + jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Import rules job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetailsOrBuilder> + getImportRulesJobDetailsFieldBuilder() { + if (importRulesJobDetailsBuilder_ == null) { + if (!(jobDetailsCase_ == 101)) { + jobDetails_ = + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + .getDefaultInstance(); + } + importRulesJobDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetailsOrBuilder>( + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails) + jobDetails_, + getParentForChildren(), + isClean()); + jobDetails_ = null; + } + jobDetailsCase_ = 101; + onChanged(); + return importRulesJobDetailsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetailsOrBuilder> + convertJobDetailsBuilder_; + /** + * + * + *
+     * Convert job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + * + * @return Whether the convertJobDetails field is set. + */ + @java.lang.Override + public boolean hasConvertJobDetails() { + return jobDetailsCase_ == 102; + } + /** + * + * + *
+     * Convert job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + * + * @return The convertJobDetails. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + getConvertJobDetails() { + if (convertJobDetailsBuilder_ == null) { + if (jobDetailsCase_ == 102) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + .getDefaultInstance(); + } else { + if (jobDetailsCase_ == 102) { + return convertJobDetailsBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Convert job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + */ + public Builder setConvertJobDetails( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails value) { + if (convertJobDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobDetails_ = value; + onChanged(); + } else { + convertJobDetailsBuilder_.setMessage(value); + } + jobDetailsCase_ = 102; + return this; + } + /** + * + * + *
+     * Convert job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + */ + public Builder setConvertJobDetails( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails.Builder + builderForValue) { + if (convertJobDetailsBuilder_ == null) { + jobDetails_ = builderForValue.build(); + onChanged(); + } else { + convertJobDetailsBuilder_.setMessage(builderForValue.build()); + } + jobDetailsCase_ = 102; + return this; + } + /** + * + * + *
+     * Convert job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + */ + public Builder mergeConvertJobDetails( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails value) { + if (convertJobDetailsBuilder_ == null) { + if (jobDetailsCase_ == 102 + && jobDetails_ + != com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + .getDefaultInstance()) { + jobDetails_ = + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails.newBuilder( + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) + jobDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + jobDetails_ = value; + } + onChanged(); + } else { + if (jobDetailsCase_ == 102) { + convertJobDetailsBuilder_.mergeFrom(value); + } else { + convertJobDetailsBuilder_.setMessage(value); + } + } + jobDetailsCase_ = 102; + return this; + } + /** + * + * + *
+     * Convert job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + */ + public Builder clearConvertJobDetails() { + if (convertJobDetailsBuilder_ == null) { + if (jobDetailsCase_ == 102) { + jobDetailsCase_ = 0; + jobDetails_ = null; + onChanged(); + } + } else { + if (jobDetailsCase_ == 102) { + jobDetailsCase_ = 0; + jobDetails_ = null; + } + convertJobDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Convert job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + */ + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails.Builder + getConvertJobDetailsBuilder() { + return getConvertJobDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Convert job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetailsOrBuilder + getConvertJobDetailsOrBuilder() { + if ((jobDetailsCase_ == 102) && (convertJobDetailsBuilder_ != null)) { + return convertJobDetailsBuilder_.getMessageOrBuilder(); + } else { + if (jobDetailsCase_ == 102) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Convert job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetailsOrBuilder> + getConvertJobDetailsFieldBuilder() { + if (convertJobDetailsBuilder_ == null) { + if (!(jobDetailsCase_ == 102)) { + jobDetails_ = + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails + .getDefaultInstance(); + } + convertJobDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetailsOrBuilder>( + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails) jobDetails_, + getParentForChildren(), + isClean()); + jobDetails_ = null; + } + jobDetailsCase_ = 102; + onChanged(); + return convertJobDetailsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetailsOrBuilder> + applyJobDetailsBuilder_; + /** + * + * + *
+     * Apply job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + * + * @return Whether the applyJobDetails field is set. + */ + @java.lang.Override + public boolean hasApplyJobDetails() { + return jobDetailsCase_ == 103; + } + /** + * + * + *
+     * Apply job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + * + * @return The applyJobDetails. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails getApplyJobDetails() { + if (applyJobDetailsBuilder_ == null) { + if (jobDetailsCase_ == 103) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + .getDefaultInstance(); + } else { + if (jobDetailsCase_ == 103) { + return applyJobDetailsBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Apply job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + */ + public Builder setApplyJobDetails( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails value) { + if (applyJobDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobDetails_ = value; + onChanged(); + } else { + applyJobDetailsBuilder_.setMessage(value); + } + jobDetailsCase_ = 103; + return this; + } + /** + * + * + *
+     * Apply job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + */ + public Builder setApplyJobDetails( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.Builder + builderForValue) { + if (applyJobDetailsBuilder_ == null) { + jobDetails_ = builderForValue.build(); + onChanged(); + } else { + applyJobDetailsBuilder_.setMessage(builderForValue.build()); + } + jobDetailsCase_ = 103; + return this; + } + /** + * + * + *
+     * Apply job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + */ + public Builder mergeApplyJobDetails( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails value) { + if (applyJobDetailsBuilder_ == null) { + if (jobDetailsCase_ == 103 + && jobDetails_ + != com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + .getDefaultInstance()) { + jobDetails_ = + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.newBuilder( + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) + jobDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + jobDetails_ = value; + } + onChanged(); + } else { + if (jobDetailsCase_ == 103) { + applyJobDetailsBuilder_.mergeFrom(value); + } else { + applyJobDetailsBuilder_.setMessage(value); + } + } + jobDetailsCase_ = 103; + return this; + } + /** + * + * + *
+     * Apply job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + */ + public Builder clearApplyJobDetails() { + if (applyJobDetailsBuilder_ == null) { + if (jobDetailsCase_ == 103) { + jobDetailsCase_ = 0; + jobDetails_ = null; + onChanged(); + } + } else { + if (jobDetailsCase_ == 103) { + jobDetailsCase_ = 0; + jobDetails_ = null; + } + applyJobDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Apply job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + */ + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.Builder + getApplyJobDetailsBuilder() { + return getApplyJobDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Apply job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetailsOrBuilder + getApplyJobDetailsOrBuilder() { + if ((jobDetailsCase_ == 103) && (applyJobDetailsBuilder_ != null)) { + return applyJobDetailsBuilder_.getMessageOrBuilder(); + } else { + if (jobDetailsCase_ == 103) { + return (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) jobDetails_; + } + return com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Apply job details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetailsOrBuilder> + getApplyJobDetailsFieldBuilder() { + if (applyJobDetailsBuilder_ == null) { + if (!(jobDetailsCase_ == 103)) { + jobDetails_ = + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails + .getDefaultInstance(); + } + applyJobDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetailsOrBuilder>( + (com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails) jobDetails_, + getParentForChildren(), + isClean()); + jobDetails_ = null; + } + jobDetailsCase_ = 103; + onChanged(); + return applyJobDetailsBuilder_; + } + + @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.clouddms.v1.BackgroundJobLogEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.BackgroundJobLogEntry) + private static final com.google.cloud.clouddms.v1.BackgroundJobLogEntry DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.BackgroundJobLogEntry(); + } + + public static com.google.cloud.clouddms.v1.BackgroundJobLogEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackgroundJobLogEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntryOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntryOrBuilder.java new file mode 100644 index 000000000000..66d567ef06b7 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobLogEntryOrBuilder.java @@ -0,0 +1,378 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface BackgroundJobLogEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.BackgroundJobLogEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The background job log entry ID.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+   * The background job log entry ID.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * The type of job that was executed.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobType job_type = 2; + * + * @return The enum numeric value on the wire for jobType. + */ + int getJobTypeValue(); + /** + * + * + *
+   * The type of job that was executed.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobType job_type = 2; + * + * @return The jobType. + */ + com.google.cloud.clouddms.v1.BackgroundJobType getJobType(); + + /** + * + * + *
+   * The timestamp when the background job was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * The timestamp when the background job was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The timestamp when the background job was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The timestamp when the background job was finished.
+   * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + * + * @return Whether the finishTime field is set. + */ + boolean hasFinishTime(); + /** + * + * + *
+   * The timestamp when the background job was finished.
+   * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + * + * @return The finishTime. + */ + com.google.protobuf.Timestamp getFinishTime(); + /** + * + * + *
+   * The timestamp when the background job was finished.
+   * 
+ * + * .google.protobuf.Timestamp finish_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder(); + + /** + * + * + *
+   * Job completion state, i.e. the final state after the job completed.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * + * @return The enum numeric value on the wire for completionState. + */ + int getCompletionStateValue(); + /** + * + * + *
+   * Job completion state, i.e. the final state after the job completed.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState completion_state = 5; + * + * + * @return The completionState. + */ + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobCompletionState getCompletionState(); + + /** + * + * + *
+   * Job completion comment, such as how many entities were seeded,
+   * how many warnings were found during conversion, and similar information.
+   * 
+ * + * string completion_comment = 6; + * + * @return The completionComment. + */ + java.lang.String getCompletionComment(); + /** + * + * + *
+   * Job completion comment, such as how many entities were seeded,
+   * how many warnings were found during conversion, and similar information.
+   * 
+ * + * string completion_comment = 6; + * + * @return The bytes for completionComment. + */ + com.google.protobuf.ByteString getCompletionCommentBytes(); + + /** + * + * + *
+   * Whether the client requested the conversion workspace to be committed after
+   * a successful completion of the job.
+   * 
+ * + * bool request_autocommit = 7; + * + * @return The requestAutocommit. + */ + boolean getRequestAutocommit(); + + /** + * + * + *
+   * Seed job details.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * + * @return Whether the seedJobDetails field is set. + */ + boolean hasSeedJobDetails(); + /** + * + * + *
+   * Seed job details.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + * + * @return The seedJobDetails. + */ + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails getSeedJobDetails(); + /** + * + * + *
+   * Seed job details.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetails seed_job_details = 100; + * + */ + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.SeedJobDetailsOrBuilder + getSeedJobDetailsOrBuilder(); + + /** + * + * + *
+   * Import rules job details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + * + * @return Whether the importRulesJobDetails field is set. + */ + boolean hasImportRulesJobDetails(); + /** + * + * + *
+   * Import rules job details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + * + * @return The importRulesJobDetails. + */ + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails + getImportRulesJobDetails(); + /** + * + * + *
+   * Import rules job details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetails import_rules_job_details = 101; + * + */ + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ImportRulesJobDetailsOrBuilder + getImportRulesJobDetailsOrBuilder(); + + /** + * + * + *
+   * Convert job details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + * + * @return Whether the convertJobDetails field is set. + */ + boolean hasConvertJobDetails(); + /** + * + * + *
+   * Convert job details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + * + * @return The convertJobDetails. + */ + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails getConvertJobDetails(); + /** + * + * + *
+   * Convert job details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetails convert_job_details = 102; + * + */ + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ConvertJobDetailsOrBuilder + getConvertJobDetailsOrBuilder(); + + /** + * + * + *
+   * Apply job details.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + * + * @return Whether the applyJobDetails field is set. + */ + boolean hasApplyJobDetails(); + /** + * + * + *
+   * Apply job details.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + * + * @return The applyJobDetails. + */ + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails getApplyJobDetails(); + /** + * + * + *
+   * Apply job details.
+   * 
+ * + * .google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetails apply_job_details = 103; + * + */ + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.ApplyJobDetailsOrBuilder + getApplyJobDetailsOrBuilder(); + + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.JobDetailsCase getJobDetailsCase(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobType.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobType.java new file mode 100644 index 000000000000..227eb608e5eb --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/BackgroundJobType.java @@ -0,0 +1,228 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * The types of jobs that can be executed in the background.
+ * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.BackgroundJobType} + */ +public enum BackgroundJobType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified background job type.
+   * 
+ * + * BACKGROUND_JOB_TYPE_UNSPECIFIED = 0; + */ + BACKGROUND_JOB_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Job to seed from the source database.
+   * 
+ * + * BACKGROUND_JOB_TYPE_SOURCE_SEED = 1; + */ + BACKGROUND_JOB_TYPE_SOURCE_SEED(1), + /** + * + * + *
+   * Job to convert the source database into a draft of the destination
+   * database.
+   * 
+ * + * BACKGROUND_JOB_TYPE_CONVERT = 2; + */ + BACKGROUND_JOB_TYPE_CONVERT(2), + /** + * + * + *
+   * Job to apply the draft tree onto the destination.
+   * 
+ * + * BACKGROUND_JOB_TYPE_APPLY_DESTINATION = 3; + */ + BACKGROUND_JOB_TYPE_APPLY_DESTINATION(3), + /** + * + * + *
+   * Job to import and convert mapping rules from an external source such as an
+   * ora2pg config file.
+   * 
+ * + * BACKGROUND_JOB_TYPE_IMPORT_RULES_FILE = 5; + */ + BACKGROUND_JOB_TYPE_IMPORT_RULES_FILE(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified background job type.
+   * 
+ * + * BACKGROUND_JOB_TYPE_UNSPECIFIED = 0; + */ + public static final int BACKGROUND_JOB_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Job to seed from the source database.
+   * 
+ * + * BACKGROUND_JOB_TYPE_SOURCE_SEED = 1; + */ + public static final int BACKGROUND_JOB_TYPE_SOURCE_SEED_VALUE = 1; + /** + * + * + *
+   * Job to convert the source database into a draft of the destination
+   * database.
+   * 
+ * + * BACKGROUND_JOB_TYPE_CONVERT = 2; + */ + public static final int BACKGROUND_JOB_TYPE_CONVERT_VALUE = 2; + /** + * + * + *
+   * Job to apply the draft tree onto the destination.
+   * 
+ * + * BACKGROUND_JOB_TYPE_APPLY_DESTINATION = 3; + */ + public static final int BACKGROUND_JOB_TYPE_APPLY_DESTINATION_VALUE = 3; + /** + * + * + *
+   * Job to import and convert mapping rules from an external source such as an
+   * ora2pg config file.
+   * 
+ * + * BACKGROUND_JOB_TYPE_IMPORT_RULES_FILE = 5; + */ + public static final int BACKGROUND_JOB_TYPE_IMPORT_RULES_FILE_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BackgroundJobType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BackgroundJobType forNumber(int value) { + switch (value) { + case 0: + return BACKGROUND_JOB_TYPE_UNSPECIFIED; + case 1: + return BACKGROUND_JOB_TYPE_SOURCE_SEED; + case 2: + return BACKGROUND_JOB_TYPE_CONVERT; + case 3: + return BACKGROUND_JOB_TYPE_APPLY_DESTINATION; + case 5: + return BACKGROUND_JOB_TYPE_IMPORT_RULES_FILE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BackgroundJobType findValueByNumber(int number) { + return BackgroundJobType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final BackgroundJobType[] VALUES = values(); + + public static BackgroundJobType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BackgroundJobType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.BackgroundJobType) +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java index 4893e321cac8..f0e82973fd3b 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfile.java @@ -42,6 +42,7 @@ private CloudSqlConnectionProfile() { cloudSqlId_ = ""; privateIp_ = ""; publicIp_ = ""; + additionalPublicIp_ = ""; } @java.lang.Override @@ -78,7 +79,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. The Cloud SQL instance ID that this connection profile is associated with.
+   * Output only. The Cloud SQL instance ID that this connection profile is
+   * associated with.
    * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -101,7 +103,8 @@ public java.lang.String getCloudSqlId() { * * *
-   * Output only. The Cloud SQL instance ID that this connection profile is associated with.
+   * Output only. The Cloud SQL instance ID that this connection profile is
+   * associated with.
    * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -279,6 +282,61 @@ public com.google.protobuf.ByteString getPublicIpBytes() { } } + public static final int ADDITIONAL_PUBLIC_IP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object additionalPublicIp_ = ""; + /** + * + * + *
+   * Output only. The Cloud SQL database instance's additional (outgoing) public
+   * IP. Used when the Cloud SQL database availability type is REGIONAL (i.e.
+   * multiple zones / highly available).
+   * 
+ * + * string additional_public_ip = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The additionalPublicIp. + */ + @java.lang.Override + public java.lang.String getAdditionalPublicIp() { + java.lang.Object ref = additionalPublicIp_; + 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(); + additionalPublicIp_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The Cloud SQL database instance's additional (outgoing) public
+   * IP. Used when the Cloud SQL database availability type is REGIONAL (i.e.
+   * multiple zones / highly available).
+   * 
+ * + * string additional_public_ip = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for additionalPublicIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdditionalPublicIpBytes() { + java.lang.Object ref = additionalPublicIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + additionalPublicIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -305,6 +363,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, publicIp_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(additionalPublicIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, additionalPublicIp_); + } getUnknownFields().writeTo(output); } @@ -326,6 +387,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, publicIp_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(additionalPublicIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, additionalPublicIp_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -349,6 +413,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getPrivateIp().equals(other.getPrivateIp())) return false; if (!getPublicIp().equals(other.getPublicIp())) return false; + if (!getAdditionalPublicIp().equals(other.getAdditionalPublicIp())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -370,6 +435,8 @@ public int hashCode() { hash = (53 * hash) + getPrivateIp().hashCode(); hash = (37 * hash) + PUBLIC_IP_FIELD_NUMBER; hash = (53 * hash) + getPublicIp().hashCode(); + hash = (37 * hash) + ADDITIONAL_PUBLIC_IP_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalPublicIp().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -519,6 +586,7 @@ public Builder clear() { } privateIp_ = ""; publicIp_ = ""; + additionalPublicIp_ = ""; return this; } @@ -567,6 +635,9 @@ private void buildPartial0(com.google.cloud.clouddms.v1.CloudSqlConnectionProfil if (((from_bitField0_ & 0x00000008) != 0)) { result.publicIp_ = publicIp_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.additionalPublicIp_ = additionalPublicIp_; + } } @java.lang.Override @@ -633,6 +704,11 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.CloudSqlConnectionProfile bitField0_ |= 0x00000008; onChanged(); } + if (!other.getAdditionalPublicIp().isEmpty()) { + additionalPublicIp_ = other.additionalPublicIp_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -683,6 +759,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + additionalPublicIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -707,7 +789,8 @@ public Builder mergeFrom( * * *
-     * Output only. The Cloud SQL instance ID that this connection profile is associated with.
+     * Output only. The Cloud SQL instance ID that this connection profile is
+     * associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -729,7 +812,8 @@ public java.lang.String getCloudSqlId() { * * *
-     * Output only. The Cloud SQL instance ID that this connection profile is associated with.
+     * Output only. The Cloud SQL instance ID that this connection profile is
+     * associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -751,7 +835,8 @@ public com.google.protobuf.ByteString getCloudSqlIdBytes() { * * *
-     * Output only. The Cloud SQL instance ID that this connection profile is associated with.
+     * Output only. The Cloud SQL instance ID that this connection profile is
+     * associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -772,7 +857,8 @@ public Builder setCloudSqlId(java.lang.String value) { * * *
-     * Output only. The Cloud SQL instance ID that this connection profile is associated with.
+     * Output only. The Cloud SQL instance ID that this connection profile is
+     * associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -789,7 +875,8 @@ public Builder clearCloudSqlId() { * * *
-     * Output only. The Cloud SQL instance ID that this connection profile is associated with.
+     * Output only. The Cloud SQL instance ID that this connection profile is
+     * associated with.
      * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1222,6 +1309,122 @@ public Builder setPublicIpBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object additionalPublicIp_ = ""; + /** + * + * + *
+     * Output only. The Cloud SQL database instance's additional (outgoing) public
+     * IP. Used when the Cloud SQL database availability type is REGIONAL (i.e.
+     * multiple zones / highly available).
+     * 
+ * + * string additional_public_ip = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The additionalPublicIp. + */ + public java.lang.String getAdditionalPublicIp() { + java.lang.Object ref = additionalPublicIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalPublicIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The Cloud SQL database instance's additional (outgoing) public
+     * IP. Used when the Cloud SQL database availability type is REGIONAL (i.e.
+     * multiple zones / highly available).
+     * 
+ * + * string additional_public_ip = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for additionalPublicIp. + */ + public com.google.protobuf.ByteString getAdditionalPublicIpBytes() { + java.lang.Object ref = additionalPublicIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + additionalPublicIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The Cloud SQL database instance's additional (outgoing) public
+     * IP. Used when the Cloud SQL database availability type is REGIONAL (i.e.
+     * multiple zones / highly available).
+     * 
+ * + * string additional_public_ip = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The additionalPublicIp to set. + * @return This builder for chaining. + */ + public Builder setAdditionalPublicIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + additionalPublicIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Cloud SQL database instance's additional (outgoing) public
+     * IP. Used when the Cloud SQL database availability type is REGIONAL (i.e.
+     * multiple zones / highly available).
+     * 
+ * + * string additional_public_ip = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAdditionalPublicIp() { + additionalPublicIp_ = getDefaultInstance().getAdditionalPublicIp(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Cloud SQL database instance's additional (outgoing) public
+     * IP. Used when the Cloud SQL database availability type is REGIONAL (i.e.
+     * multiple zones / highly available).
+     * 
+ * + * string additional_public_ip = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for additionalPublicIp to set. + * @return This builder for chaining. + */ + public Builder setAdditionalPublicIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + additionalPublicIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java index 4433a0144636..4e1533546131 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlConnectionProfileOrBuilder.java @@ -27,7 +27,8 @@ public interface CloudSqlConnectionProfileOrBuilder * * *
-   * Output only. The Cloud SQL instance ID that this connection profile is associated with.
+   * Output only. The Cloud SQL instance ID that this connection profile is
+   * associated with.
    * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -39,7 +40,8 @@ public interface CloudSqlConnectionProfileOrBuilder * * *
-   * Output only. The Cloud SQL instance ID that this connection profile is associated with.
+   * Output only. The Cloud SQL instance ID that this connection profile is
+   * associated with.
    * 
* * string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -138,4 +140,33 @@ public interface CloudSqlConnectionProfileOrBuilder * @return The bytes for publicIp. */ com.google.protobuf.ByteString getPublicIpBytes(); + + /** + * + * + *
+   * Output only. The Cloud SQL database instance's additional (outgoing) public
+   * IP. Used when the Cloud SQL database availability type is REGIONAL (i.e.
+   * multiple zones / highly available).
+   * 
+ * + * string additional_public_ip = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The additionalPublicIp. + */ + java.lang.String getAdditionalPublicIp(); + /** + * + * + *
+   * Output only. The Cloud SQL database instance's additional (outgoing) public
+   * IP. Used when the Cloud SQL database availability type is REGIONAL (i.e.
+   * multiple zones / highly available).
+   * 
+ * + * string additional_public_ip = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for additionalPublicIp. + */ + com.google.protobuf.ByteString getAdditionalPublicIpBytes(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java index 2f99b7126bd7..41bf2d1ccb72 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettings.java @@ -43,9 +43,12 @@ private CloudSqlSettings() { activationPolicy_ = 0; dataDiskType_ = 0; zone_ = ""; + secondaryZone_ = ""; sourceId_ = ""; rootPassword_ = ""; collation_ = ""; + cmekKeyName_ = ""; + availabilityType_ = 0; } @java.lang.Override @@ -506,6 +509,16 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu * POSTGRES_13 = 8; */ POSTGRES_13(8), + /** + * + * + *
+     * PostgreSQL 14.
+     * 
+ * + * POSTGRES_14 = 17; + */ + POSTGRES_14(17), UNRECOGNIZED(-1), ; @@ -599,6 +612,16 @@ public enum SqlDatabaseVersion implements com.google.protobuf.ProtocolMessageEnu * POSTGRES_13 = 8; */ public static final int POSTGRES_13_VALUE = 8; + /** + * + * + *
+     * PostgreSQL 14.
+     * 
+ * + * POSTGRES_14 = 17; + */ + public static final int POSTGRES_14_VALUE = 17; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -642,6 +665,8 @@ public static SqlDatabaseVersion forNumber(int value) { return POSTGRES_12; case 8: return POSTGRES_13; + case 17: + return POSTGRES_14; default: return null; } @@ -698,6 +723,166 @@ private SqlDatabaseVersion(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion) } + /** + * + * + *
+   * The availability type of the given Cloud SQL instance.
+   * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType} + */ + public enum SqlAvailabilityType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * This is an unknown Availability type.
+     * 
+ * + * SQL_AVAILABILITY_TYPE_UNSPECIFIED = 0; + */ + SQL_AVAILABILITY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Zonal availablility instance.
+     * 
+ * + * ZONAL = 1; + */ + ZONAL(1), + /** + * + * + *
+     * Regional availability instance.
+     * 
+ * + * REGIONAL = 2; + */ + REGIONAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * This is an unknown Availability type.
+     * 
+ * + * SQL_AVAILABILITY_TYPE_UNSPECIFIED = 0; + */ + public static final int SQL_AVAILABILITY_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Zonal availablility instance.
+     * 
+ * + * ZONAL = 1; + */ + public static final int ZONAL_VALUE = 1; + /** + * + * + *
+     * Regional availability instance.
+     * 
+ * + * REGIONAL = 2; + */ + public static final int REGIONAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SqlAvailabilityType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SqlAvailabilityType forNumber(int value) { + switch (value) { + case 0: + return SQL_AVAILABILITY_TYPE_UNSPECIFIED; + case 1: + return ZONAL; + case 2: + return REGIONAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SqlAvailabilityType findValueByNumber(int number) { + return SqlAvailabilityType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.CloudSqlSettings.getDescriptor().getEnumTypes().get(3); + } + + private static final SqlAvailabilityType[] VALUES = values(); + + public static SqlAvailabilityType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SqlAvailabilityType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType) + } + public static final int DATABASE_VERSION_FIELD_NUMBER = 1; private int databaseVersion_ = 0; /** @@ -1344,7 +1529,7 @@ public com.google.protobuf.Int64ValueOrBuilder getDataDiskSizeGbOrBuilder() { * * *
-   * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
+   * The Google Cloud Platform zone where your Cloud SQL database instance is
    * located.
    * 
* @@ -1368,7 +1553,7 @@ public java.lang.String getZone() { * * *
-   * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
+   * The Google Cloud Platform zone where your Cloud SQL database instance is
    * located.
    * 
* @@ -1389,6 +1574,61 @@ public com.google.protobuf.ByteString getZoneBytes() { } } + public static final int SECONDARY_ZONE_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object secondaryZone_ = ""; + /** + * + * + *
+   * Optional. The Google Cloud Platform zone where the failover Cloud SQL
+   * database instance is located. Used when the Cloud SQL database availability
+   * type is REGIONAL (i.e. multiple zones / highly available).
+   * 
+ * + * string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The secondaryZone. + */ + @java.lang.Override + public java.lang.String getSecondaryZone() { + java.lang.Object ref = secondaryZone_; + 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(); + secondaryZone_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The Google Cloud Platform zone where the failover Cloud SQL
+   * database instance is located. Used when the Cloud SQL database availability
+   * type is REGIONAL (i.e. multiple zones / highly available).
+   * 
+ * + * string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for secondaryZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecondaryZoneBytes() { + java.lang.Object ref = secondaryZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secondaryZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int SOURCE_ID_FIELD_NUMBER = 12; @SuppressWarnings("serial") @@ -1564,6 +1804,107 @@ public com.google.protobuf.ByteString getCollationBytes() { } } + public static final int CMEK_KEY_NAME_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object cmekKeyName_ = ""; + /** + * + * + *
+   * The KMS key name used for the csql instance.
+   * 
+ * + * string cmek_key_name = 16; + * + * @return The cmekKeyName. + */ + @java.lang.Override + public java.lang.String getCmekKeyName() { + java.lang.Object ref = cmekKeyName_; + 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(); + cmekKeyName_ = s; + return s; + } + } + /** + * + * + *
+   * The KMS key name used for the csql instance.
+   * 
+ * + * string cmek_key_name = 16; + * + * @return The bytes for cmekKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCmekKeyNameBytes() { + java.lang.Object ref = cmekKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cmekKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AVAILABILITY_TYPE_FIELD_NUMBER = 17; + private int availabilityType_ = 0; + /** + * + * + *
+   * Optional. Availability type. Potential values:
+   * *  `ZONAL`: The instance serves data from only one zone. Outages in that
+   * zone affect data availability.
+   * *  `REGIONAL`: The instance can serve data from more than one zone in a
+   * region (it is highly available).
+   * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for availabilityType. + */ + @java.lang.Override + public int getAvailabilityTypeValue() { + return availabilityType_; + } + /** + * + * + *
+   * Optional. Availability type. Potential values:
+   * *  `ZONAL`: The instance serves data from only one zone. Outages in that
+   * zone affect data availability.
+   * *  `REGIONAL`: The instance can serve data from more than one zone in a
+   * region (it is highly available).
+   * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The availabilityType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType getAvailabilityType() { + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType result = + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType.forNumber( + availabilityType_); + return result == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1630,6 +1971,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, collation_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cmekKeyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, cmekKeyName_); + } + if (availabilityType_ + != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType + .SQL_AVAILABILITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(17, availabilityType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, secondaryZone_); + } getUnknownFields().writeTo(output); } @@ -1708,6 +2061,18 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, collation_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cmekKeyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, cmekKeyName_); + } + if (availabilityType_ + != com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType + .SQL_AVAILABILITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, availabilityType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, secondaryZone_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1747,10 +2112,13 @@ public boolean equals(final java.lang.Object obj) { if (!getDataDiskSizeGb().equals(other.getDataDiskSizeGb())) return false; } if (!getZone().equals(other.getZone())) return false; + if (!getSecondaryZone().equals(other.getSecondaryZone())) return false; if (!getSourceId().equals(other.getSourceId())) return false; if (!getRootPassword().equals(other.getRootPassword())) return false; if (getRootPasswordSet() != other.getRootPasswordSet()) return false; if (!getCollation().equals(other.getCollation())) return false; + if (!getCmekKeyName().equals(other.getCmekKeyName())) return false; + if (availabilityType_ != other.availabilityType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1796,6 +2164,8 @@ public int hashCode() { } hash = (37 * hash) + ZONE_FIELD_NUMBER; hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + SECONDARY_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryZone().hashCode(); hash = (37 * hash) + SOURCE_ID_FIELD_NUMBER; hash = (53 * hash) + getSourceId().hashCode(); hash = (37 * hash) + ROOT_PASSWORD_FIELD_NUMBER; @@ -1804,6 +2174,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRootPasswordSet()); hash = (37 * hash) + COLLATION_FIELD_NUMBER; hash = (53 * hash) + getCollation().hashCode(); + hash = (37 * hash) + CMEK_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCmekKeyName().hashCode(); + hash = (37 * hash) + AVAILABILITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + availabilityType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1994,10 +2368,13 @@ public Builder clear() { dataDiskSizeGbBuilder_ = null; } zone_ = ""; + secondaryZone_ = ""; sourceId_ = ""; rootPassword_ = ""; rootPasswordSet_ = false; collation_ = ""; + cmekKeyName_ = ""; + availabilityType_ = 0; return this; } @@ -2077,17 +2454,26 @@ private void buildPartial0(com.google.cloud.clouddms.v1.CloudSqlSettings result) result.zone_ = zone_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.sourceId_ = sourceId_; + result.secondaryZone_ = secondaryZone_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.rootPassword_ = rootPassword_; + result.sourceId_ = sourceId_; } if (((from_bitField0_ & 0x00002000) != 0)) { - result.rootPasswordSet_ = rootPasswordSet_; + result.rootPassword_ = rootPassword_; } if (((from_bitField0_ & 0x00004000) != 0)) { + result.rootPasswordSet_ = rootPasswordSet_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { result.collation_ = collation_; } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.cmekKeyName_ = cmekKeyName_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.availabilityType_ = availabilityType_; + } } @java.lang.Override @@ -2170,14 +2556,19 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.CloudSqlSettings other) { bitField0_ |= 0x00000400; onChanged(); } + if (!other.getSecondaryZone().isEmpty()) { + secondaryZone_ = other.secondaryZone_; + bitField0_ |= 0x00000800; + onChanged(); + } if (!other.getSourceId().isEmpty()) { sourceId_ = other.sourceId_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (!other.getRootPassword().isEmpty()) { rootPassword_ = other.rootPassword_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (other.getRootPasswordSet() != false) { @@ -2185,9 +2576,17 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.CloudSqlSettings other) { } if (!other.getCollation().isEmpty()) { collation_ = other.collation_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; + onChanged(); + } + if (!other.getCmekKeyName().isEmpty()) { + cmekKeyName_ = other.cmekKeyName_; + bitField0_ |= 0x00010000; onChanged(); } + if (other.availabilityType_ != 0) { + setAvailabilityTypeValue(other.getAvailabilityTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2297,27 +2696,45 @@ public Builder mergeFrom( case 98: { sourceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 98 case 106: { rootPassword_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 106 case 112: { rootPasswordSet_ = input.readBool(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 112 case 122: { collation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 122 + case 130: + { + cmekKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 130 + case 136: + { + availabilityType_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 136 + case 146: + { + secondaryZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3961,7 +4378,7 @@ public com.google.protobuf.Int64ValueOrBuilder getDataDiskSizeGbOrBuilder() { * * *
-     * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
+     * The Google Cloud Platform zone where your Cloud SQL database instance is
      * located.
      * 
* @@ -3984,7 +4401,7 @@ public java.lang.String getZone() { * * *
-     * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
+     * The Google Cloud Platform zone where your Cloud SQL database instance is
      * located.
      * 
* @@ -4007,7 +4424,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
+     * The Google Cloud Platform zone where your Cloud SQL database instance is
      * located.
      * 
* @@ -4029,7 +4446,7 @@ public Builder setZone(java.lang.String value) { * * *
-     * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
+     * The Google Cloud Platform zone where your Cloud SQL database instance is
      * located.
      * 
* @@ -4047,7 +4464,7 @@ public Builder clearZone() { * * *
-     * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
+     * The Google Cloud Platform zone where your Cloud SQL database instance is
      * located.
      * 
* @@ -4067,6 +4484,122 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object secondaryZone_ = ""; + /** + * + * + *
+     * Optional. The Google Cloud Platform zone where the failover Cloud SQL
+     * database instance is located. Used when the Cloud SQL database availability
+     * type is REGIONAL (i.e. multiple zones / highly available).
+     * 
+ * + * string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The secondaryZone. + */ + public java.lang.String getSecondaryZone() { + java.lang.Object ref = secondaryZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The Google Cloud Platform zone where the failover Cloud SQL
+     * database instance is located. Used when the Cloud SQL database availability
+     * type is REGIONAL (i.e. multiple zones / highly available).
+     * 
+ * + * string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for secondaryZone. + */ + public com.google.protobuf.ByteString getSecondaryZoneBytes() { + java.lang.Object ref = secondaryZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secondaryZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The Google Cloud Platform zone where the failover Cloud SQL
+     * database instance is located. Used when the Cloud SQL database availability
+     * type is REGIONAL (i.e. multiple zones / highly available).
+     * 
+ * + * string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The secondaryZone to set. + * @return This builder for chaining. + */ + public Builder setSecondaryZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secondaryZone_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Google Cloud Platform zone where the failover Cloud SQL
+     * database instance is located. Used when the Cloud SQL database availability
+     * type is REGIONAL (i.e. multiple zones / highly available).
+     * 
+ * + * string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSecondaryZone() { + secondaryZone_ = getDefaultInstance().getSecondaryZone(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Google Cloud Platform zone where the failover Cloud SQL
+     * database instance is located. Used when the Cloud SQL database availability
+     * type is REGIONAL (i.e. multiple zones / highly available).
+     * 
+ * + * string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for secondaryZone to set. + * @return This builder for chaining. + */ + public Builder setSecondaryZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secondaryZone_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + private java.lang.Object sourceId_ = ""; /** * @@ -4135,7 +4668,7 @@ public Builder setSourceId(java.lang.String value) { throw new NullPointerException(); } sourceId_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4154,7 +4687,7 @@ public Builder setSourceId(java.lang.String value) { */ public Builder clearSourceId() { sourceId_ = getDefaultInstance().getSourceId(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4178,7 +4711,7 @@ public Builder setSourceIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); sourceId_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4245,7 +4778,7 @@ public Builder setRootPassword(java.lang.String value) { throw new NullPointerException(); } rootPassword_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4262,7 +4795,7 @@ public Builder setRootPassword(java.lang.String value) { */ public Builder clearRootPassword() { rootPassword_ = getDefaultInstance().getRootPassword(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -4284,7 +4817,7 @@ public Builder setRootPasswordBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); rootPassword_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4320,7 +4853,7 @@ public boolean getRootPasswordSet() { public Builder setRootPasswordSet(boolean value) { rootPasswordSet_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4336,7 +4869,7 @@ public Builder setRootPasswordSet(boolean value) { * @return This builder for chaining. */ public Builder clearRootPasswordSet() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); rootPasswordSet_ = false; onChanged(); return this; @@ -4404,7 +4937,7 @@ public Builder setCollation(java.lang.String value) { throw new NullPointerException(); } collation_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4421,7 +4954,7 @@ public Builder setCollation(java.lang.String value) { */ public Builder clearCollation() { collation_ = getDefaultInstance().getCollation(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4443,7 +4976,237 @@ public Builder setCollationBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); collation_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.lang.Object cmekKeyName_ = ""; + /** + * + * + *
+     * The KMS key name used for the csql instance.
+     * 
+ * + * string cmek_key_name = 16; + * + * @return The cmekKeyName. + */ + public java.lang.String getCmekKeyName() { + java.lang.Object ref = cmekKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cmekKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The KMS key name used for the csql instance.
+     * 
+ * + * string cmek_key_name = 16; + * + * @return The bytes for cmekKeyName. + */ + public com.google.protobuf.ByteString getCmekKeyNameBytes() { + java.lang.Object ref = cmekKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cmekKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The KMS key name used for the csql instance.
+     * 
+ * + * string cmek_key_name = 16; + * + * @param value The cmekKeyName to set. + * @return This builder for chaining. + */ + public Builder setCmekKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cmekKeyName_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * The KMS key name used for the csql instance.
+     * 
+ * + * string cmek_key_name = 16; + * + * @return This builder for chaining. + */ + public Builder clearCmekKeyName() { + cmekKeyName_ = getDefaultInstance().getCmekKeyName(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + * + * + *
+     * The KMS key name used for the csql instance.
+     * 
+ * + * string cmek_key_name = 16; + * + * @param value The bytes for cmekKeyName to set. + * @return This builder for chaining. + */ + public Builder setCmekKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cmekKeyName_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private int availabilityType_ = 0; + /** + * + * + *
+     * Optional. Availability type. Potential values:
+     * *  `ZONAL`: The instance serves data from only one zone. Outages in that
+     * zone affect data availability.
+     * *  `REGIONAL`: The instance can serve data from more than one zone in a
+     * region (it is highly available).
+     * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for availabilityType. + */ + @java.lang.Override + public int getAvailabilityTypeValue() { + return availabilityType_; + } + /** + * + * + *
+     * Optional. Availability type. Potential values:
+     * *  `ZONAL`: The instance serves data from only one zone. Outages in that
+     * zone affect data availability.
+     * *  `REGIONAL`: The instance can serve data from more than one zone in a
+     * region (it is highly available).
+     * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for availabilityType to set. + * @return This builder for chaining. + */ + public Builder setAvailabilityTypeValue(int value) { + availabilityType_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Availability type. Potential values:
+     * *  `ZONAL`: The instance serves data from only one zone. Outages in that
+     * zone affect data availability.
+     * *  `REGIONAL`: The instance can serve data from more than one zone in a
+     * region (it is highly available).
+     * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The availabilityType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType getAvailabilityType() { + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType result = + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType.forNumber( + availabilityType_); + return result == null + ? com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Availability type. Potential values:
+     * *  `ZONAL`: The instance serves data from only one zone. Outages in that
+     * zone affect data availability.
+     * *  `REGIONAL`: The instance can serve data from more than one zone in a
+     * region (it is highly available).
+     * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The availabilityType to set. + * @return This builder for chaining. + */ + public Builder setAvailabilityType( + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + availabilityType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Availability type. Potential values:
+     * *  `ZONAL`: The instance serves data from only one zone. Outages in that
+     * zone affect data availability.
+     * *  `REGIONAL`: The instance can serve data from more than one zone in a
+     * region (it is highly available).
+     * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvailabilityType() { + bitField0_ = (bitField0_ & ~0x00020000); + availabilityType_ = 0; onChanged(); return this; } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java index 35668c91e867..6d266efc404c 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CloudSqlSettingsOrBuilder.java @@ -456,7 +456,7 @@ java.lang.String getDatabaseFlagsOrDefault( * * *
-   * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
+   * The Google Cloud Platform zone where your Cloud SQL database instance is
    * located.
    * 
* @@ -469,7 +469,7 @@ java.lang.String getDatabaseFlagsOrDefault( * * *
-   * The Google Cloud Platform zone where your Cloud SQL datdabse instance is
+   * The Google Cloud Platform zone where your Cloud SQL database instance is
    * located.
    * 
* @@ -479,6 +479,35 @@ java.lang.String getDatabaseFlagsOrDefault( */ com.google.protobuf.ByteString getZoneBytes(); + /** + * + * + *
+   * Optional. The Google Cloud Platform zone where the failover Cloud SQL
+   * database instance is located. Used when the Cloud SQL database availability
+   * type is REGIONAL (i.e. multiple zones / highly available).
+   * 
+ * + * string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The secondaryZone. + */ + java.lang.String getSecondaryZone(); + /** + * + * + *
+   * Optional. The Google Cloud Platform zone where the failover Cloud SQL
+   * database instance is located. Used when the Cloud SQL database availability
+   * type is REGIONAL (i.e. multiple zones / highly available).
+   * 
+ * + * string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for secondaryZone. + */ + com.google.protobuf.ByteString getSecondaryZoneBytes(); + /** * * @@ -570,4 +599,66 @@ java.lang.String getDatabaseFlagsOrDefault( * @return The bytes for collation. */ com.google.protobuf.ByteString getCollationBytes(); + + /** + * + * + *
+   * The KMS key name used for the csql instance.
+   * 
+ * + * string cmek_key_name = 16; + * + * @return The cmekKeyName. + */ + java.lang.String getCmekKeyName(); + /** + * + * + *
+   * The KMS key name used for the csql instance.
+   * 
+ * + * string cmek_key_name = 16; + * + * @return The bytes for cmekKeyName. + */ + com.google.protobuf.ByteString getCmekKeyNameBytes(); + + /** + * + * + *
+   * Optional. Availability type. Potential values:
+   * *  `ZONAL`: The instance serves data from only one zone. Outages in that
+   * zone affect data availability.
+   * *  `REGIONAL`: The instance can serve data from more than one zone in a
+   * region (it is highly available).
+   * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for availabilityType. + */ + int getAvailabilityTypeValue(); + /** + * + * + *
+   * Optional. Availability type. Potential values:
+   * *  `ZONAL`: The instance serves data from only one zone. Outages in that
+   * zone affect data availability.
+   * *  `REGIONAL`: The instance can serve data from more than one zone in a
+   * region (it is highly available).
+   * 
+ * + * + * .google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The availabilityType. + */ + com.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType getAvailabilityType(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java index 2b3f0f41c554..5fd9361a0286 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsProto.java @@ -115,10 +115,114 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_RulesFile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_RulesFile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -133,192 +237,421 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "annotations.proto\032\027google/api/client.pro" + "to\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\0321google/cloud/clo" - + "uddms/v1/clouddms_resources.proto\032#googl" - + "e/longrunning/operations.proto\032 google/p" - + "rotobuf/field_mask.proto\032\037google/protobu" - + "f/timestamp.proto\"\246\001\n\030ListMigrationJobsR" - + "equest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)datamigr" - + "ation.googleapis.com/MigrationJob\022\021\n\tpag" - + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filt" - + "er\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\211\001\n\031ListMigra" - + "tionJobsResponse\022>\n\016migration_jobs\030\001 \003(\013" - + "2&.google.cloud.clouddms.v1.MigrationJob" - + "\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable" - + "\030\003 \003(\t\"Y\n\026GetMigrationJobRequest\022?\n\004name" - + "\030\001 \001(\tB1\340A\002\372A+\n)datamigration.googleapis" - + ".com/MigrationJob\"\325\001\n\031CreateMigrationJob" - + "Request\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)datamig" - + "ration.googleapis.com/MigrationJob\022\035\n\020mi" - + "gration_job_id\030\002 \001(\tB\003\340A\002\022B\n\rmigration_j" - + "ob\030\003 \001(\0132&.google.cloud.clouddms.v1.Migr" - + "ationJobB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"\251\001\n\031Up" - + "dateMigrationJobRequest\0224\n\013update_mask\030\001" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022B\n" - + "\rmigration_job\030\002 \001(\0132&.google.cloud.clou" - + "ddms.v1.MigrationJobB\003\340A\002\022\022\n\nrequest_id\030" - + "\003 \001(\t\"\177\n\031DeleteMigrationJobRequest\022?\n\004na" - + "me\030\001 \001(\tB1\340A\002\372A+\n)datamigration.googleap" - + "is.com/MigrationJob\022\022\n\nrequest_id\030\002 \001(\t\022" - + "\r\n\005force\030\003 \001(\010\"X\n\030StartMigrationJobReque" - + "st\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigration.goo" - + "gleapis.com/MigrationJob\"W\n\027StopMigratio" - + "nJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigr" - + "ation.googleapis.com/MigrationJob\"Y\n\031Res" - + "umeMigrationJobRequest\022<\n\004name\030\001 \001(\tB.\372A" - + "+\n)datamigration.googleapis.com/Migratio" - + "nJob\"Z\n\032PromoteMigrationJobRequest\022<\n\004na" - + "me\030\001 \001(\tB.\372A+\n)datamigration.googleapis." - + "com/MigrationJob\"Y\n\031VerifyMigrationJobRe" - + "quest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigration." - + "googleapis.com/MigrationJob\"Z\n\032RestartMi" - + "grationJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)da" + + "uddms/v1/clouddms_resources.proto\032" + + "\n\016migration_jobs\030\001 \003(\0132&.google.cloud.cl" + + "ouddms.v1.MigrationJob\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Y\n\026GetMigra" + + "tionJobRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)da" + "tamigration.googleapis.com/MigrationJob\"" - + "\246\002\n\030GenerateSshScriptRequest\022E\n\rmigratio" - + "n_job\030\001 \001(\tB.\372A+\n)datamigration.googleap" - + "is.com/MigrationJob\022\017\n\002vm\030\002 \001(\tB\003\340A\002\022H\n\022" - + "vm_creation_config\030d \001(\0132*.google.cloud." - + "clouddms.v1.VmCreationConfigH\000\022J\n\023vm_sel" - + "ection_config\030e \001(\0132+.google.cloud.cloud" - + "dms.v1.VmSelectionConfigH\000\022\017\n\007vm_port\030\003 " - + "\001(\005B\013\n\tvm_config\"Q\n\020VmCreationConfig\022\034\n\017" - + "vm_machine_type\030\001 \001(\tB\003\340A\002\022\017\n\007vm_zone\030\002 " - + "\001(\t\022\016\n\006subnet\030\003 \001(\t\")\n\021VmSelectionConfig" - + "\022\024\n\007vm_zone\030\001 \001(\tB\003\340A\002\"\033\n\tSshScript\022\016\n\006s" - + "cript\030\001 \001(\t\"\260\001\n\035ListConnectionProfilesRe" - + "quest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.datamigra" - + "tion.googleapis.com/ConnectionProfile\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006" - + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\230\001\n\036ListC" - + "onnectionProfilesResponse\022H\n\023connection_" - + "profiles\030\001 \003(\0132+.google.cloud.clouddms.v" - + "1.ConnectionProfile\022\027\n\017next_page_token\030\002" - + " \001(\t\022\023\n\013unreachable\030\003 \003(\t\"c\n\033GetConnecti" - + "onProfileRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n." - + "datamigration.googleapis.com/ConnectionP" - + "rofile\"\356\001\n\036CreateConnectionProfileReques" - + "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.datamigration" - + ".googleapis.com/ConnectionProfile\022\"\n\025con" - + "nection_profile_id\030\002 \001(\tB\003\340A\002\022L\n\022connect" - + "ion_profile\030\003 \001(\0132+.google.cloud.clouddm" - + "s.v1.ConnectionProfileB\003\340A\002\022\022\n\nrequest_i" - + "d\030\004 \001(\t\"\270\001\n\036UpdateConnectionProfileReque" - + "st\0224\n\013update_mask\030\001 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\002\022L\n\022connection_profile\030\002" - + " \001(\0132+.google.cloud.clouddms.v1.Connecti" - + "onProfileB\003\340A\002\022\022\n\nrequest_id\030\003 \001(\t\"\211\001\n\036D" - + "eleteConnectionProfileRequest\022D\n\004name\030\001 " - + "\001(\tB6\340A\002\372A0\n.datamigration.googleapis.co" - + "m/ConnectionProfile\022\022\n\nrequest_id\030\002 \001(\t\022" - + "\r\n\005force\030\003 \001(\010\"\200\002\n\021OperationMetadata\0224\n\013" - + "create_time\030\001 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340" - + "A\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_cancellation\030\006 \001" - + "(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\310\036\n\024Da" - + "taMigrationService\022\300\001\n\021ListMigrationJobs" - + "\0222.google.cloud.clouddms.v1.ListMigratio" - + "nJobsRequest\0323.google.cloud.clouddms.v1." - + "ListMigrationJobsResponse\"B\202\323\344\223\0023\0221/v1/{" - + "parent=projects/*/locations/*}/migration" - + "Jobs\332A\006parent\022\255\001\n\017GetMigrationJob\0220.goog" - + "le.cloud.clouddms.v1.GetMigrationJobRequ" - + "est\032&.google.cloud.clouddms.v1.Migration" - + "Job\"@\202\323\344\223\0023\0221/v1/{name=projects/*/locati" - + "ons/*/migrationJobs/*}\332A\004name\022\377\001\n\022Create" - + "MigrationJob\0223.google.cloud.clouddms.v1." - + "CreateMigrationJobRequest\032\035.google.longr" - + "unning.Operation\"\224\001\202\323\344\223\002B\"1/v1/{parent=p" - + "rojects/*/locations/*}/migrationJobs:\rmi" - + "gration_job\332A%parent,migration_job,migra" - + "tion_job_id\312A!\n\014MigrationJob\022\021OperationM" - + "etadata\022\201\002\n\022UpdateMigrationJob\0223.google." - + "cloud.clouddms.v1.UpdateMigrationJobRequ" - + "est\032\035.google.longrunning.Operation\"\226\001\202\323\344" - + "\223\002P2?/v1/{migration_job.name=projects/*/" - + "locations/*/migrationJobs/*}:\rmigration_" - + "job\332A\031migration_job,update_mask\312A!\n\014Migr" - + "ationJob\022\021OperationMetadata\022\327\001\n\022DeleteMi" - + "grationJob\0223.google.cloud.clouddms.v1.De" - + "leteMigrationJobRequest\032\035.google.longrun" - + "ning.Operation\"m\202\323\344\223\0023*1/v1/{name=projec" - + "ts/*/locations/*/migrationJobs/*}\332A\004name" + + "\325\001\n\031CreateMigrationJobRequest\022A\n\006parent\030" + + "\001 \001(\tB1\340A\002\372A+\022)datamigration.googleapis." + + "com/MigrationJob\022\035\n\020migration_job_id\030\002 \001" + + "(\tB\003\340A\002\022B\n\rmigration_job\030\003 \001(\0132&.google." + + "cloud.clouddms.v1.MigrationJobB\003\340A\002\022\022\n\nr" + + "equest_id\030\004 \001(\t\"\251\001\n\031UpdateMigrationJobRe" + + "quest\0224\n\013update_mask\030\001 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\022B\n\rmigration_job\030\002 \001" + + "(\0132&.google.cloud.clouddms.v1.MigrationJ" + + "obB\003\340A\002\022\022\n\nrequest_id\030\003 \001(\t\"\177\n\031DeleteMig" + + "rationJobRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)" + + "datamigration.googleapis.com/MigrationJo" + + "b\022\022\n\nrequest_id\030\002 \001(\t\022\r\n\005force\030\003 \001(\010\"X\n\030" + + "StartMigrationJobRequest\022<\n\004name\030\001 \001(\tB." + + "\372A+\n)datamigration.googleapis.com/Migrat" + + "ionJob\"W\n\027StopMigrationJobRequest\022<\n\004nam" + + "e\030\001 \001(\tB.\372A+\n)datamigration.googleapis.c" + + "om/MigrationJob\"Y\n\031ResumeMigrationJobReq" + + "uest\022<\n\004name\030\001 \001(\tB.\372A+\n)datamigration.g" + + "oogleapis.com/MigrationJob\"Z\n\032PromoteMig" + + "rationJobRequest\022<\n\004name\030\001 \001(\tB.\372A+\n)dat" + + "amigration.googleapis.com/MigrationJob\"Y" + + "\n\031VerifyMigrationJobRequest\022<\n\004name\030\001 \001(" + + "\tB.\372A+\n)datamigration.googleapis.com/Mig" + + "rationJob\"Z\n\032RestartMigrationJobRequest\022" + + "<\n\004name\030\001 \001(\tB.\372A+\n)datamigration.google" + + "apis.com/MigrationJob\"\246\002\n\030GenerateSshScr" + + "iptRequest\022E\n\rmigration_job\030\001 \001(\tB.\372A+\n)" + + "datamigration.googleapis.com/MigrationJo" + + "b\022\017\n\002vm\030\002 \001(\tB\003\340A\002\022H\n\022vm_creation_config" + + "\030d \001(\0132*.google.cloud.clouddms.v1.VmCrea" + + "tionConfigH\000\022J\n\023vm_selection_config\030e \001(" + + "\0132+.google.cloud.clouddms.v1.VmSelection" + + "ConfigH\000\022\017\n\007vm_port\030\003 \001(\005B\013\n\tvm_config\"Q" + + "\n\020VmCreationConfig\022\034\n\017vm_machine_type\030\001 " + + "\001(\tB\003\340A\002\022\017\n\007vm_zone\030\002 \001(\t\022\016\n\006subnet\030\003 \001(" + + "\t\")\n\021VmSelectionConfig\022\024\n\007vm_zone\030\001 \001(\tB" + + "\003\340A\002\"\033\n\tSshScript\022\016\n\006script\030\001 \001(\t\"\260\001\n\035Li" + + "stConnectionProfilesRequest\022F\n\006parent\030\001 " + + "\001(\tB6\340A\002\372A0\022.datamigration.googleapis.co" + + "m/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\010or" + + "der_by\030\005 \001(\t\"\230\001\n\036ListConnectionProfilesR" + + "esponse\022H\n\023connection_profiles\030\001 \003(\0132+.g" + + "oogle.cloud.clouddms.v1.ConnectionProfil" + + "e\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" + + "e\030\003 \003(\t\"c\n\033GetConnectionProfileRequest\022D" + + "\n\004name\030\001 \001(\tB6\340A\002\372A0\n.datamigration.goog" + + "leapis.com/ConnectionProfile\"\255\002\n\036CreateC" + + "onnectionProfileRequest\022F\n\006parent\030\001 \001(\tB" + + "6\340A\002\372A0\n.datamigration.googleapis.com/Co" + + "nnectionProfile\022\"\n\025connection_profile_id" + + "\030\002 \001(\tB\003\340A\002\022L\n\022connection_profile\030\003 \001(\0132" + + "+.google.cloud.clouddms.v1.ConnectionPro" + + "fileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rva" + + "lidate_only\030\005 \001(\010B\003\340A\001\022\034\n\017skip_validatio" + + "n\030\006 \001(\010B\003\340A\001\"\367\001\n\036UpdateConnectionProfile" + + "Request\0224\n\013update_mask\030\001 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\003\340A\002\022L\n\022connection_prof" + + "ile\030\002 \001(\0132+.google.cloud.clouddms.v1.Con" + + "nectionProfileB\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\034\n\017skip" + + "_validation\030\005 \001(\010B\003\340A\001\"\211\001\n\036DeleteConnect" + + "ionProfileRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n" + + ".datamigration.googleapis.com/Connection" + + "Profile\022\022\n\nrequest_id\030\002 \001(\t\022\r\n\005force\030\003 \001" + + "(\010\"\221\002\n\036CreatePrivateConnectionRequest\022F\n" + + "\006parent\030\001 \001(\tB6\340A\002\372A0\022.datamigration.goo" + + "gleapis.com/PrivateConnection\022\"\n\025private" + + "_connection_id\030\002 \001(\tB\003\340A\002\022L\n\022private_con" + + "nection\030\003 \001(\0132+.google.cloud.clouddms.v1" + + ".PrivateConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 " + + "\001(\tB\003\340A\001\022\034\n\017skip_validation\030\005 \001(\010B\003\340A\001\"\260" + + "\001\n\035ListPrivateConnectionsRequest\022F\n\006pare" + + "nt\030\001 \001(\tB6\340A\002\372A0\022.datamigration.googleap" + + "is.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\"\230\001\n\036ListPrivateConnect" + + "ionsResponse\022H\n\023private_connections\030\001 \003(" + + "\0132+.google.cloud.clouddms.v1.PrivateConn" + + "ection\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"\177\n\036DeletePrivateConnectionR" + + "equest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.datamigrat" + + "ion.googleapis.com/PrivateConnection\022\027\n\n" + + "request_id\030\002 \001(\tB\003\340A\001\"c\n\033GetPrivateConne" + + "ctionRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.data" + + "migration.googleapis.com/PrivateConnecti" + + "on\"\200\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.Times" + + "tampB\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_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013a" + + "pi_version\030\007 \001(\tB\003\340A\003\"\242\001\n\037ListConversion" + + "WorkspacesRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A" + + "2\0220datamigration.googleapis.com/Conversi" + + "onWorkspace\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\236\001\n ListConve" + + "rsionWorkspacesResponse\022L\n\025conversion_wo" + + "rkspaces\030\001 \003(\0132-.google.cloud.clouddms.v" + + "1.ConversionWorkspace\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"g\n\035GetConver" + + "sionWorkspaceRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372" + + "A2\n0datamigration.googleapis.com/Convers" + + "ionWorkspace\"\370\001\n CreateConversionWorkspa" + + "ceRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\0220datam" + + "igration.googleapis.com/ConversionWorksp" + + "ace\022$\n\027conversion_workspace_id\030\002 \001(\tB\003\340A" + + "\002\022P\n\024conversion_workspace\030\003 \001(\0132-.google" + + ".cloud.clouddms.v1.ConversionWorkspaceB\003" + + "\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"\276\001\n UpdateConver" + + "sionWorkspaceRequest\0224\n\013update_mask\030\001 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\022P\n\024co" + + "nversion_workspace\030\002 \001(\0132-.google.cloud." + + "clouddms.v1.ConversionWorkspaceB\003\340A\002\022\022\n\n" + + "request_id\030\003 \001(\t\"~\n DeleteConversionWork" + + "spaceRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0data" + + "migration.googleapis.com/ConversionWorks" + + "pace\022\022\n\nrequest_id\030\002 \001(\t\"\204\001\n CommitConve" + + "rsionWorkspaceRequest\022F\n\004name\030\001 \001(\tB8\340A\002" + + "\372A2\n0datamigration.googleapis.com/Conver" + + "sionWorkspace\022\030\n\013commit_name\030\002 \001(\tB\003\340A\001\"" + + "l\n\"RollbackConversionWorkspaceRequest\022F\n" + + "\004name\030\001 \001(\tB8\340A\002\372A2\n0datamigration.googl" + + "eapis.com/ConversionWorkspace\"\246\001\n\037ApplyC" + + "onversionWorkspaceRequest\022F\n\004name\030\001 \001(\tB" + + "8\340A\002\372A2\n0datamigration.googleapis.com/Co" + + "nversionWorkspace\022\016\n\006filter\030\002 \001(\t\022\034\n\022con" + + "nection_profile\030d \001(\tH\000B\r\n\013destination\"\326" + + "\001\n\036SeedConversionWorkspaceRequest\022C\n\004nam" + + "e\030\001 \001(\tB5\372A2\n0datamigration.googleapis.c" + + "om/ConversionWorkspace\022\023\n\013auto_commit\030\002 " + + "\001(\010\022#\n\031source_connection_profile\030d \001(\tH\000" + + "\022(\n\036destination_connection_profile\030e \001(\t" + + "H\000B\013\n\tseed_from\"\215\001\n!ConvertConversionWor" + + "kspaceRequest\022C\n\004name\030\001 \001(\tB5\372A2\n0datami" + + "gration.googleapis.com/ConversionWorkspa" + + "ce\022\023\n\013auto_commit\030\004 \001(\010\022\016\n\006filter\030\005 \001(\t\"" + + "\330\002\n\031ImportMappingRulesRequest\022H\n\006parent\030" + + "\001 \001(\tB8\340A\002\372A2\n0datamigration.googleapis." + + "com/ConversionWorkspace\022E\n\014rules_format\030" + + "\002 \001(\0162/.google.cloud.clouddms.v1.ImportR" + + "ulesFileFormat\022R\n\013rules_files\030\003 \003(\0132=.go" + + "ogle.cloud.clouddms.v1.ImportMappingRule" + + "sRequest.RulesFile\022\023\n\013auto_commit\030\006 \001(\010\032" + + "A\n\tRulesFile\022\035\n\025rules_source_filename\030\001 " + + "\001(\t\022\025\n\rrules_content\030\002 \001(\t\"\217\003\n\037DescribeD" + + "atabaseEntitiesRequest\022V\n\024conversion_wor" + + "kspace\030\001 \001(\tB8\340A\002\372A2\n0datamigration.goog" + + "leapis.com/ConversionWorkspace\022\021\n\tpage_s" + + "ize\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022R\n\004tree\030\006 " + + "\001(\0162D.google.cloud.clouddms.v1.DescribeD" + + "atabaseEntitiesRequest.DBTreeType\022\023\n\013unc" + + "ommitted\030\013 \001(\010\022\021\n\tcommit_id\030\014 \001(\t\022\016\n\006fil" + + "ter\030\r \001(\t\"a\n\nDBTreeType\022\034\n\030DB_TREE_TYPE_" + + "UNSPECIFIED\020\000\022\017\n\013SOURCE_TREE\020\001\022\016\n\nDRAFT_" + + "TREE\020\002\022\024\n\020DESTINATION_TREE\020\003\"\200\001\n Describ" + + "eDatabaseEntitiesResponse\022C\n\021database_en" + + "tities\030\001 \003(\0132(.google.cloud.clouddms.v1." + + "DatabaseEntity\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\371\001\n\033SearchBackgroundJobsRequest\022V\n\024conve" + + "rsion_workspace\030\001 \001(\tB8\340A\002\372A2\n0datamigra" + + "tion.googleapis.com/ConversionWorkspace\022" + + ",\n\037return_most_recent_per_job_type\030\002 \001(\010" + + "B\003\340A\001\022\025\n\010max_size\030\003 \001(\005B\003\340A\001\022=\n\024complete" + + "d_until_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\001\"]\n\034SearchBackgroundJobsRespo" + + "nse\022=\n\004jobs\030\001 \003(\0132/.google.cloud.clouddm" + + "s.v1.BackgroundJobLogEntry\"\235\001\n+DescribeC" + + "onversionWorkspaceRevisionsRequest\022V\n\024co" + + "nversion_workspace\030\001 \001(\tB8\340A\002\372A2\n0datami" + + "gration.googleapis.com/ConversionWorkspa" + + "ce\022\026\n\tcommit_id\030\002 \001(\tB\003\340A\001\"p\n,DescribeCo" + + "nversionWorkspaceRevisionsResponse\022@\n\tre" + + "visions\030\001 \003(\0132-.google.cloud.clouddms.v1" + + ".ConversionWorkspace\"w\n\025FetchStaticIpsRe" + + "quest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!locations.g" + + "oogleapis.com/Location\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"E\n\026FetchStaticIpsR" + + "esponse\022\022\n\nstatic_ips\030\001 \003(\t\022\027\n\017next_page" + + "_token\030\002 \001(\t2\351B\n\024DataMigrationService\022\300\001" + + "\n\021ListMigrationJobs\0222.google.cloud.cloud" + + "dms.v1.ListMigrationJobsRequest\0323.google" + + ".cloud.clouddms.v1.ListMigrationJobsResp" + + "onse\"B\202\323\344\223\0023\0221/v1/{parent=projects/*/loc" + + "ations/*}/migrationJobs\332A\006parent\022\255\001\n\017Get" + + "MigrationJob\0220.google.cloud.clouddms.v1." + + "GetMigrationJobRequest\032&.google.cloud.cl" + + "ouddms.v1.MigrationJob\"@\202\323\344\223\0023\0221/v1/{nam" + + "e=projects/*/locations/*/migrationJobs/*" + + "}\332A\004name\022\377\001\n\022CreateMigrationJob\0223.google" + + ".cloud.clouddms.v1.CreateMigrationJobReq" + + "uest\032\035.google.longrunning.Operation\"\224\001\202\323" + + "\344\223\002B\"1/v1/{parent=projects/*/locations/*" + + "}/migrationJobs:\rmigration_job\332A%parent," + + "migration_job,migration_job_id\312A!\n\014Migra" + + "tionJob\022\021OperationMetadata\022\201\002\n\022UpdateMig" + + "rationJob\0223.google.cloud.clouddms.v1.Upd" + + "ateMigrationJobRequest\032\035.google.longrunn" + + "ing.Operation\"\226\001\202\323\344\223\002P2?/v1/{migration_j" + + "ob.name=projects/*/locations/*/migration" + + "Jobs/*}:\rmigration_job\332A\031migration_job,u" + + "pdate_mask\312A!\n\014MigrationJob\022\021OperationMe" + + "tadata\022\327\001\n\022DeleteMigrationJob\0223.google.c" + + "loud.clouddms.v1.DeleteMigrationJobReque" + + "st\032\035.google.longrunning.Operation\"m\202\323\344\223\002" + + "3*1/v1/{name=projects/*/locations/*/migr" + + "ationJobs/*}\332A\004name\312A*\n\025google.protobuf." + + "Empty\022\021OperationMetadata\022\316\001\n\021StartMigrat" + + "ionJob\0222.google.cloud.clouddms.v1.StartM" + + "igrationJobRequest\032\035.google.longrunning." + + "Operation\"f\202\323\344\223\002<\"7/v1/{name=projects/*/" + + "locations/*/migrationJobs/*}:start:\001*\312A!" + + "\n\014MigrationJob\022\021OperationMetadata\022\313\001\n\020St" + + "opMigrationJob\0221.google.cloud.clouddms.v" + + "1.StopMigrationJobRequest\032\035.google.longr" + + "unning.Operation\"e\202\323\344\223\002;\"6/v1/{name=proj" + + "ects/*/locations/*/migrationJobs/*}:stop" + + ":\001*\312A!\n\014MigrationJob\022\021OperationMetadata\022" + + "\321\001\n\022ResumeMigrationJob\0223.google.cloud.cl" + + "ouddms.v1.ResumeMigrationJobRequest\032\035.go" + + "ogle.longrunning.Operation\"g\202\323\344\223\002=\"8/v1/" + + "{name=projects/*/locations/*/migrationJo" + + "bs/*}:resume:\001*\312A!\n\014MigrationJob\022\021Operat" + + "ionMetadata\022\324\001\n\023PromoteMigrationJob\0224.go" + + "ogle.cloud.clouddms.v1.PromoteMigrationJ" + + "obRequest\032\035.google.longrunning.Operation" + + "\"h\202\323\344\223\002>\"9/v1/{name=projects/*/locations" + + "/*/migrationJobs/*}:promote:\001*\312A!\n\014Migra" + + "tionJob\022\021OperationMetadata\022\321\001\n\022VerifyMig" + + "rationJob\0223.google.cloud.clouddms.v1.Ver" + + "ifyMigrationJobRequest\032\035.google.longrunn" + + "ing.Operation\"g\202\323\344\223\002=\"8/v1/{name=project" + + "s/*/locations/*/migrationJobs/*}:verify:" + + "\001*\312A!\n\014MigrationJob\022\021OperationMetadata\022\324" + + "\001\n\023RestartMigrationJob\0224.google.cloud.cl" + + "ouddms.v1.RestartMigrationJobRequest\032\035.g" + + "oogle.longrunning.Operation\"h\202\323\344\223\002>\"9/v1" + + "/{name=projects/*/locations/*/migrationJ" + + "obs/*}:restart:\001*\312A!\n\014MigrationJob\022\021Oper" + + "ationMetadata\022\305\001\n\021GenerateSshScript\0222.go" + + "ogle.cloud.clouddms.v1.GenerateSshScript" + + "Request\032#.google.cloud.clouddms.v1.SshSc" + + "ript\"W\202\323\344\223\002Q\"L/v1/{migration_job=project" + + "s/*/locations/*/migrationJobs/*}:generat" + + "eSshScript:\001*\022\324\001\n\026ListConnectionProfiles" + + "\0227.google.cloud.clouddms.v1.ListConnecti" + + "onProfilesRequest\0328.google.cloud.clouddm" + + "s.v1.ListConnectionProfilesResponse\"G\202\323\344" + + "\223\0028\0226/v1/{parent=projects/*/locations/*}" + + "/connectionProfiles\332A\006parent\022\301\001\n\024GetConn" + + "ectionProfile\0225.google.cloud.clouddms.v1" + + ".GetConnectionProfileRequest\032+.google.cl" + + "oud.clouddms.v1.ConnectionProfile\"E\202\323\344\223\002" + + "8\0226/v1/{name=projects/*/locations/*/conn" + + "ectionProfiles/*}\332A\004name\022\242\002\n\027CreateConne" + + "ctionProfile\0228.google.cloud.clouddms.v1." + + "CreateConnectionProfileRequest\032\035.google." + + "longrunning.Operation\"\255\001\202\323\344\223\002L\"6/v1/{par" + + "ent=projects/*/locations/*}/connectionPr" + + "ofiles:\022connection_profile\332A/parent,conn" + + "ection_profile,connection_profile_id\312A&\n" + + "\021ConnectionProfile\022\021OperationMetadata\022\244\002" + + "\n\027UpdateConnectionProfile\0228.google.cloud" + + ".clouddms.v1.UpdateConnectionProfileRequ" + + "est\032\035.google.longrunning.Operation\"\257\001\202\323\344" + + "\223\002_2I/v1/{connection_profile.name=projec" + + "ts/*/locations/*/connectionProfiles/*}:\022" + + "connection_profile\332A\036connection_profile," + + "update_mask\312A&\n\021ConnectionProfile\022\021Opera" + + "tionMetadata\022\346\001\n\027DeleteConnectionProfile" + + "\0228.google.cloud.clouddms.v1.DeleteConnec" + + "tionProfileRequest\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\021OperationMet" - + "adata\022\316\001\n\021StartMigrationJob\0222.google.clo" - + "ud.clouddms.v1.StartMigrationJobRequest\032" - + "\035.google.longrunning.Operation\"f\202\323\344\223\002<\"7" - + "/v1/{name=projects/*/locations/*/migrati" - + "onJobs/*}:start:\001*\312A!\n\014MigrationJob\022\021Ope" - + "rationMetadata\022\313\001\n\020StopMigrationJob\0221.go" - + "ogle.cloud.clouddms.v1.StopMigrationJobR" - + "equest\032\035.google.longrunning.Operation\"e\202" - + "\323\344\223\002;\"6/v1/{name=projects/*/locations/*/" - + "migrationJobs/*}:stop:\001*\312A!\n\014MigrationJo" - + "b\022\021OperationMetadata\022\321\001\n\022ResumeMigration" - + "Job\0223.google.cloud.clouddms.v1.ResumeMig" - + "rationJobRequest\032\035.google.longrunning.Op" - + "eration\"g\202\323\344\223\002=\"8/v1/{name=projects/*/lo" - + "cations/*/migrationJobs/*}:resume:\001*\312A!\n" - + "\014MigrationJob\022\021OperationMetadata\022\324\001\n\023Pro" - + "moteMigrationJob\0224.google.cloud.clouddms" - + ".v1.PromoteMigrationJobRequest\032\035.google." - + "longrunning.Operation\"h\202\323\344\223\002>\"9/v1/{name" - + "=projects/*/locations/*/migrationJobs/*}" - + ":promote:\001*\312A!\n\014MigrationJob\022\021OperationM" - + "etadata\022\321\001\n\022VerifyMigrationJob\0223.google." - + "cloud.clouddms.v1.VerifyMigrationJobRequ" - + "est\032\035.google.longrunning.Operation\"g\202\323\344\223" - + "\002=\"8/v1/{name=projects/*/locations/*/mig" - + "rationJobs/*}:verify:\001*\312A!\n\014MigrationJob" - + "\022\021OperationMetadata\022\324\001\n\023RestartMigration" - + "Job\0224.google.cloud.clouddms.v1.RestartMi" - + "grationJobRequest\032\035.google.longrunning.O" - + "peration\"h\202\323\344\223\002>\"9/v1/{name=projects/*/l" - + "ocations/*/migrationJobs/*}:restart:\001*\312A" - + "!\n\014MigrationJob\022\021OperationMetadata\022\305\001\n\021G" - + "enerateSshScript\0222.google.cloud.clouddms" - + ".v1.GenerateSshScriptRequest\032#.google.cl" - + "oud.clouddms.v1.SshScript\"W\202\323\344\223\002Q\"L/v1/{" - + "migration_job=projects/*/locations/*/mig" - + "rationJobs/*}:generateSshScript:\001*\022\324\001\n\026L" - + "istConnectionProfiles\0227.google.cloud.clo" - + "uddms.v1.ListConnectionProfilesRequest\0328" - + ".google.cloud.clouddms.v1.ListConnection" - + "ProfilesResponse\"G\202\323\344\223\0028\0226/v1/{parent=pr" - + "ojects/*/locations/*}/connectionProfiles" - + "\332A\006parent\022\301\001\n\024GetConnectionProfile\0225.goo" - + "gle.cloud.clouddms.v1.GetConnectionProfi" - + "leRequest\032+.google.cloud.clouddms.v1.Con" - + "nectionProfile\"E\202\323\344\223\0028\0226/v1/{name=projec" - + "ts/*/locations/*/connectionProfiles/*}\332A" - + "\004name\022\242\002\n\027CreateConnectionProfile\0228.goog" - + "le.cloud.clouddms.v1.CreateConnectionPro" - + "fileRequest\032\035.google.longrunning.Operati" + + "adata\022\242\002\n\027CreatePrivateConnection\0228.goog" + + "le.cloud.clouddms.v1.CreatePrivateConnec" + + "tionRequest\032\035.google.longrunning.Operati" + "on\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/loca" - + "tions/*}/connectionProfiles:\022connection_" - + "profile\332A/parent,connection_profile,conn" - + "ection_profile_id\312A&\n\021ConnectionProfile\022" - + "\021OperationMetadata\022\244\002\n\027UpdateConnectionP" - + "rofile\0228.google.cloud.clouddms.v1.Update" - + "ConnectionProfileRequest\032\035.google.longru" - + "nning.Operation\"\257\001\202\323\344\223\002_2I/v1/{connectio" - + "n_profile.name=projects/*/locations/*/co" - + "nnectionProfiles/*}:\022connection_profile\332" - + "A\036connection_profile,update_mask\312A&\n\021Con" - + "nectionProfile\022\021OperationMetadata\022\346\001\n\027De" - + "leteConnectionProfile\0228.google.cloud.clo" - + "uddms.v1.DeleteConnectionProfileRequest\032" - + "\035.google.longrunning.Operation\"r\202\323\344\223\0028*6" - + "/v1/{name=projects/*/locations/*/connect" - + "ionProfiles/*}\332A\004name\312A*\n\025google.protobu" - + "f.Empty\022\021OperationMetadata\032P\312A\034datamigra" - + "tion.googleapis.com\322A.https://www.google" - + "apis.com/auth/cloud-platformB\275\001\n\034com.goo" - + "gle.cloud.clouddms.v1B\rClouddmsProtoP\001Z8" - + "cloud.google.com/go/clouddms/apiv1/cloud" - + "dmspb;clouddmspb\252\002\030Google.Cloud.CloudDms" - + ".V1\312\002\030Google\\Cloud\\CloudDms\\V1\352\002\033Google:" - + ":Cloud::CloudDMS::V1b\006proto3" + + "tions/*}/privateConnections:\022private_con" + + "nection\332A/parent,private_connection,priv" + + "ate_connection_id\312A&\n\021PrivateConnection\022" + + "\021OperationMetadata\022\301\001\n\024GetPrivateConnect" + + "ion\0225.google.cloud.clouddms.v1.GetPrivat" + + "eConnectionRequest\032+.google.cloud.cloudd" + + "ms.v1.PrivateConnection\"E\202\323\344\223\0028\0226/v1/{na" + + "me=projects/*/locations/*/privateConnect" + + "ions/*}\332A\004name\022\324\001\n\026ListPrivateConnection" + + "s\0227.google.cloud.clouddms.v1.ListPrivate" + + "ConnectionsRequest\0328.google.cloud.cloudd" + + "ms.v1.ListPrivateConnectionsResponse\"G\202\323" + + "\344\223\0028\0226/v1/{parent=projects/*/locations/*" + + "}/privateConnections\332A\006parent\022\346\001\n\027Delete" + + "PrivateConnection\0228.google.cloud.clouddm" + + "s.v1.DeletePrivateConnectionRequest\032\035.go" + + "ogle.longrunning.Operation\"r\202\323\344\223\0028*6/v1/" + + "{name=projects/*/locations/*/privateConn" + + "ections/*}\332A\004name\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\022\311\001\n\026GetConversion" + + "Workspace\0227.google.cloud.clouddms.v1.Get" + + "ConversionWorkspaceRequest\032-.google.clou" + + "d.clouddms.v1.ConversionWorkspace\"G\202\323\344\223\002" + + ":\0228/v1/{name=projects/*/locations/*/conv" + + "ersionWorkspaces/*}\332A\004name\022\334\001\n\030ListConve" + + "rsionWorkspaces\0229.google.cloud.clouddms." + + "v1.ListConversionWorkspacesRequest\032:.goo" + + "gle.cloud.clouddms.v1.ListConversionWork" + + "spacesResponse\"I\202\323\344\223\002:\0228/v1/{parent=proj" + + "ects/*/locations/*}/conversionWorkspaces" + + "\332A\006parent\022\260\002\n\031CreateConversionWorkspace\022" + + ":.google.cloud.clouddms.v1.CreateConvers" + + "ionWorkspaceRequest\032\035.google.longrunning" + + ".Operation\"\267\001\202\323\344\223\002P\"8/v1/{parent=project" + + "s/*/locations/*}/conversionWorkspaces:\024c" + + "onversion_workspace\332A3parent,conversion_" + + "workspace,conversion_workspace_id\312A(\n\023Co" + + "nversionWorkspace\022\021OperationMetadata\022\262\002\n" + + "\031UpdateConversionWorkspace\022:.google.clou" + + "d.clouddms.v1.UpdateConversionWorkspaceR" + + "equest\032\035.google.longrunning.Operation\"\271\001" + + "\202\323\344\223\002e2M/v1/{conversion_workspace.name=p" + + "rojects/*/locations/*/conversionWorkspac" + + "es/*}:\024conversion_workspace\332A conversion" + + "_workspace,update_mask\312A(\n\023ConversionWor" + + "kspace\022\021OperationMetadata\022\354\001\n\031DeleteConv" + + "ersionWorkspace\022:.google.cloud.clouddms." + + "v1.DeleteConversionWorkspaceRequest\032\035.go" + + "ogle.longrunning.Operation\"t\202\323\344\223\002:*8/v1/" + + "{name=projects/*/locations/*/conversionW" + + "orkspaces/*}\332A\004name\312A*\n\025google.protobuf." + + "Empty\022\021OperationMetadata\022\347\001\n\027SeedConvers" + + "ionWorkspace\0228.google.cloud.clouddms.v1." + + "SeedConversionWorkspaceRequest\032\035.google." + + "longrunning.Operation\"s\202\323\344\223\002B\"=/v1/{name" + + "=projects/*/locations/*/conversionWorksp" + + "aces/*}:seed:\001*\312A(\n\023ConversionWorkspace\022" + + "\021OperationMetadata\022\357\001\n\022ImportMappingRule" + + "s\0223.google.cloud.clouddms.v1.ImportMappi" + + "ngRulesRequest\032\035.google.longrunning.Oper" + + "ation\"\204\001\202\323\344\223\002S\"N/v1/{parent=projects/*/l" + + "ocations/*/conversionWorkspaces/*}/mappi" + + "ngRules:import:\001*\312A(\n\023ConversionWorkspac" + + "e\022\021OperationMetadata\022\360\001\n\032ConvertConversi" + + "onWorkspace\022;.google.cloud.clouddms.v1.C" + + "onvertConversionWorkspaceRequest\032\035.googl" + + "e.longrunning.Operation\"v\202\323\344\223\002E\"@/v1/{na" + + "me=projects/*/locations/*/conversionWork" + + "spaces/*}:convert:\001*\312A(\n\023ConversionWorks" + + "pace\022\021OperationMetadata\022\355\001\n\031CommitConver" + + "sionWorkspace\022:.google.cloud.clouddms.v1" + + ".CommitConversionWorkspaceRequest\032\035.goog" + + "le.longrunning.Operation\"u\202\323\344\223\002D\"?/v1/{n" + + "ame=projects/*/locations/*/conversionWor" + + "kspaces/*}:commit:\001*\312A(\n\023ConversionWorks" + + "pace\022\021OperationMetadata\022\363\001\n\033RollbackConv" + + "ersionWorkspace\022<.google.cloud.clouddms." + + "v1.RollbackConversionWorkspaceRequest\032\035." + + "google.longrunning.Operation\"w\202\323\344\223\002F\"A/v" + + "1/{name=projects/*/locations/*/conversio" + + "nWorkspaces/*}:rollback:\001*\312A(\n\023Conversio" + + "nWorkspace\022\021OperationMetadata\022\352\001\n\030ApplyC" + + "onversionWorkspace\0229.google.cloud.cloudd" + + "ms.v1.ApplyConversionWorkspaceRequest\032\035." + + "google.longrunning.Operation\"t\202\323\344\223\002C\">/v" + + "1/{name=projects/*/locations/*/conversio" + + "nWorkspaces/*}:apply:\001*\312A(\n\023ConversionWo" + + "rkspace\022\021OperationMetadata\022\374\001\n\030DescribeD" + + "atabaseEntities\0229.google.cloud.clouddms." + + "v1.DescribeDatabaseEntitiesRequest\032:.goo" + + "gle.cloud.clouddms.v1.DescribeDatabaseEn" + + "titiesResponse\"i\202\323\344\223\002c\022a/v1/{conversion_" + + "workspace=projects/*/locations/*/convers" + + "ionWorkspaces/*}:describeDatabaseEntitie" + + "s\022\354\001\n\024SearchBackgroundJobs\0225.google.clou" + + "d.clouddms.v1.SearchBackgroundJobsReques" + + "t\0326.google.cloud.clouddms.v1.SearchBackg" + + "roundJobsResponse\"e\202\323\344\223\002_\022]/v1/{conversi" + + "on_workspace=projects/*/locations/*/conv" + + "ersionWorkspaces/*}:searchBackgroundJobs", + "\022\254\002\n$DescribeConversionWorkspaceRevision" + + "s\022E.google.cloud.clouddms.v1.DescribeCon" + + "versionWorkspaceRevisionsRequest\032F.googl" + + "e.cloud.clouddms.v1.DescribeConversionWo" + + "rkspaceRevisionsResponse\"u\202\323\344\223\002o\022m/v1/{c" + + "onversion_workspace=projects/*/locations" + + "/*/conversionWorkspaces/*}:describeConve" + + "rsionWorkspaceRevisions\022\264\001\n\016FetchStaticI" + + "ps\022/.google.cloud.clouddms.v1.FetchStati" + + "cIpsRequest\0320.google.cloud.clouddms.v1.F" + + "etchStaticIpsResponse\"?\202\323\344\223\0022\0220/v1/{name" + + "=projects/*/locations/*}:fetchStaticIps\332" + + "A\004name\032P\312A\034datamigration.googleapis.com\322" + + "A.https://www.googleapis.com/auth/cloud-" + + "platformB\275\001\n\034com.google.cloud.clouddms.v" + + "1B\rClouddmsProtoP\001Z8cloud.google.com/go/" + + "clouddms/apiv1/clouddmspb;clouddmspb\252\002\030G" + + "oogle.Cloud.CloudDms.V1\312\002\030Google\\Cloud\\C" + + "loudDms\\V1\352\002\033Google::Cloud::CloudDMS::V1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -329,6 +662,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor(), + com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -491,7 +825,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_CreateConnectionProfileRequest_descriptor, new java.lang.String[] { - "Parent", "ConnectionProfileId", "ConnectionProfile", "RequestId", + "Parent", + "ConnectionProfileId", + "ConnectionProfile", + "RequestId", + "ValidateOnly", + "SkipValidation", }); internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor = getDescriptor().getMessageTypes().get(20); @@ -499,7 +838,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_UpdateConnectionProfileRequest_descriptor, new java.lang.String[] { - "UpdateMask", "ConnectionProfile", "RequestId", + "UpdateMask", "ConnectionProfile", "RequestId", "ValidateOnly", "SkipValidation", }); internal_static_google_cloud_clouddms_v1_DeleteConnectionProfileRequest_descriptor = getDescriptor().getMessageTypes().get(21); @@ -509,8 +848,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "RequestId", "Force", }); - internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor = + internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_descriptor = getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_descriptor, + new java.lang.String[] { + "Parent", "PrivateConnectionId", "PrivateConnection", "RequestId", "SkipValidation", + }); + internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_descriptor, + new java.lang.String[] { + "PrivateConnections", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_clouddms_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_OperationMetadata_descriptor, @@ -523,6 +902,186 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestedCancellation", "ApiVersion", }); + internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_descriptor, + new java.lang.String[] { + "ConversionWorkspaces", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_descriptor, + new java.lang.String[] { + "Parent", "ConversionWorkspaceId", "ConversionWorkspace", "RequestId", + }); + internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "ConversionWorkspace", "RequestId", + }); + internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_descriptor, + new java.lang.String[] { + "Name", "CommitName", + }); + internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ApplyConversionWorkspaceRequest_descriptor, + new java.lang.String[] { + "Name", "Filter", "ConnectionProfile", "Destination", + }); + internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_descriptor, + new java.lang.String[] { + "Name", + "AutoCommit", + "SourceConnectionProfile", + "DestinationConnectionProfile", + "SeedFrom", + }); + internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_descriptor, + new java.lang.String[] { + "Name", "AutoCommit", "Filter", + }); + internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_descriptor, + new java.lang.String[] { + "Parent", "RulesFormat", "RulesFiles", "AutoCommit", + }); + internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_RulesFile_descriptor = + internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_RulesFile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_RulesFile_descriptor, + new java.lang.String[] { + "RulesSourceFilename", "RulesContent", + }); + internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_descriptor, + new java.lang.String[] { + "ConversionWorkspace", + "PageSize", + "PageToken", + "Tree", + "Uncommitted", + "CommitId", + "Filter", + }); + internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_descriptor, + new java.lang.String[] { + "DatabaseEntities", "NextPageToken", + }); + internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_descriptor, + new java.lang.String[] { + "ConversionWorkspace", "ReturnMostRecentPerJobType", "MaxSize", "CompletedUntilTime", + }); + internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_descriptor, + new java.lang.String[] { + "Jobs", + }); + internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_descriptor, + new java.lang.String[] { + "ConversionWorkspace", "CommitId", + }); + internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_descriptor, + new java.lang.String[] { + "Revisions", + }); + internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_descriptor, + new java.lang.String[] { + "StaticIps", "NextPageToken", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -539,6 +1098,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor(); + com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java index c205f8eee4c1..70895464a0cb 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java @@ -39,10 +39,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_OracleConnectionProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_OracleConnectionProfile_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_AlloyDbConnectionProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_AlloyDbConnectionProfile_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -63,10 +71,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_CloudSqlSettings_DatabaseFlagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_UserPassword_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_UserPassword_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_MachineConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_MachineConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_DatabaseFlagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_DatabaseFlagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_EncryptionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_EncryptionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_PrivateServiceConnectConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_PrivateServiceConnectConnectivity_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -75,6 +119,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ForwardSshTunnelConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ForwardSshTunnelConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_StaticServiceIpConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_StaticServiceIpConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_PrivateConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_PrivateConnectivity_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -83,10 +139,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlag_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlag_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlags_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlags_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ConversionWorkspaceInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ConversionWorkspaceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -99,6 +167,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_PrivateConnection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_PrivateConnection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_PrivateConnection_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_PrivateConnection_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_VpcPeeringConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_VpcPeeringConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -125,161 +205,270 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B\003\340A\002\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010password" + "\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014password_set\030\005 \001(\010B\003\340A" + "\003\0220\n\003ssl\030\006 \001(\0132#.google.cloud.clouddms.v" - + "1.SslConfig\022\024\n\014cloud_sql_id\030\007 \001(\t\"\327\001\n\033Po" + + "1.SslConfig\022\024\n\014cloud_sql_id\030\007 \001(\t\"\370\003\n\033Po" + "stgreSqlConnectionProfile\022\021\n\004host\030\001 \001(\tB" + "\003\340A\002\022\021\n\004port\030\002 \001(\005B\003\340A\002\022\025\n\010username\030\003 \001(" + "\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014pass" + "word_set\030\005 \001(\010B\003\340A\003\0220\n\003ssl\030\006 \001(\0132#.googl" + "e.cloud.clouddms.v1.SslConfig\022\024\n\014cloud_s" - + "ql_id\030\007 \001(\t\"\252\001\n\031CloudSqlConnectionProfil" - + "e\022\031\n\014cloud_sql_id\030\001 \001(\tB\003\340A\003\022A\n\010settings" - + "\030\002 \001(\0132*.google.cloud.clouddms.v1.CloudS" - + "qlSettingsB\003\340A\005\022\027\n\nprivate_ip\030\003 \001(\tB\003\340A\003" - + "\022\026\n\tpublic_ip\030\004 \001(\tB\003\340A\003\"\233\001\n\013SqlAclEntry" - + "\022\r\n\005value\030\001 \001(\t\0221\n\013expire_time\030\n \001(\0132\032.g" - + "oogle.protobuf.TimestampH\000\022-\n\003ttl\030\013 \001(\0132" - + "\031.google.protobuf.DurationB\003\340A\004H\000\022\r\n\005lab" - + "el\030\003 \001(\tB\014\n\nexpiration\"\314\001\n\013SqlIpConfig\022/" - + "\n\013enable_ipv4\030\001 \001(\0132\032.google.protobuf.Bo" - + "olValue\022\027\n\017private_network\030\002 \001(\t\022/\n\013requ" - + "ire_ssl\030\003 \001(\0132\032.google.protobuf.BoolValu" - + "e\022B\n\023authorized_networks\030\004 \003(\0132%.google." - + "cloud.clouddms.v1.SqlAclEntry\"\372\t\n\020CloudS" - + "qlSettings\022W\n\020database_version\030\001 \001(\0162=.g" - + "oogle.cloud.clouddms.v1.CloudSqlSettings" - + ".SqlDatabaseVersion\022O\n\013user_labels\030\002 \003(\013" - + "2:.google.cloud.clouddms.v1.CloudSqlSett" - + "ings.UserLabelsEntry\022\014\n\004tier\030\003 \001(\t\022>\n\031st" - + "orage_auto_resize_limit\030\004 \001(\0132\033.google.p" - + "rotobuf.Int64Value\022Y\n\021activation_policy\030" - + "\005 \001(\0162>.google.cloud.clouddms.v1.CloudSq" - + "lSettings.SqlActivationPolicy\0228\n\tip_conf" - + "ig\030\006 \001(\0132%.google.cloud.clouddms.v1.SqlI" - + "pConfig\0229\n\025auto_storage_increase\030\007 \001(\0132\032" - + ".google.protobuf.BoolValue\022U\n\016database_f" - + "lags\030\010 \003(\0132=.google.cloud.clouddms.v1.Cl" - + "oudSqlSettings.DatabaseFlagsEntry\022R\n\016dat" - + "a_disk_type\030\t \001(\0162:.google.cloud.clouddm" - + "s.v1.CloudSqlSettings.SqlDataDiskType\0226\n" - + "\021data_disk_size_gb\030\n \001(\0132\033.google.protob" - + "uf.Int64Value\022\014\n\004zone\030\013 \001(\t\022\021\n\tsource_id" - + "\030\014 \001(\t\022\032\n\rroot_password\030\r \001(\tB\003\340A\004\022\036\n\021ro" - + "ot_password_set\030\016 \001(\010B\003\340A\003\022\021\n\tcollation\030" - + "\017 \001(\t\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\023SqlAct" - + "ivationPolicy\022%\n!SQL_ACTIVATION_POLICY_U" - + "NSPECIFIED\020\000\022\n\n\006ALWAYS\020\001\022\t\n\005NEVER\020\002\"M\n\017S" - + "qlDataDiskType\022\"\n\036SQL_DATA_DISK_TYPE_UNS" - + "PECIFIED\020\000\022\n\n\006PD_SSD\020\001\022\n\n\006PD_HDD\020\002\"\275\001\n\022S" - + "qlDatabaseVersion\022$\n SQL_DATABASE_VERSIO" - + "N_UNSPECIFIED\020\000\022\r\n\tMYSQL_5_6\020\001\022\r\n\tMYSQL_" - + "5_7\020\002\022\020\n\014POSTGRES_9_6\020\003\022\017\n\013POSTGRES_11\020\004" - + "\022\017\n\013POSTGRES_10\020\005\022\r\n\tMYSQL_8_0\020\006\022\017\n\013POST" - + "GRES_12\020\007\022\017\n\013POSTGRES_13\020\010\"\026\n\024StaticIpCo" - + "nnectivity\"[\n\026ReverseSshConnectivity\022\022\n\005" - + "vm_ip\030\001 \001(\tB\003\340A\002\022\024\n\007vm_port\030\002 \001(\005B\003\340A\002\022\n" - + "\n\002vm\030\003 \001(\t\022\013\n\003vpc\030\004 \001(\t\"%\n\026VpcPeeringCon" - + "nectivity\022\013\n\003vpc\030\001 \001(\t\"\206\001\n\014DatabaseType\022" - + "<\n\010provider\030\001 \001(\0162*.google.cloud.clouddm" - + "s.v1.DatabaseProvider\0228\n\006engine\030\002 \001(\0162(." - + "google.cloud.clouddms.v1.DatabaseEngine\"" - + "\354\014\n\014MigrationJob\022\014\n\004name\030\001 \001(\t\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\022B\n\006labels\030\004 \003(\01322.goo" - + "gle.cloud.clouddms.v1.MigrationJob.Label" - + "sEntry\022\024\n\014display_name\030\005 \001(\t\022;\n\005state\030\006 " - + "\001(\0162,.google.cloud.clouddms.v1.Migration" - + "Job.State\022@\n\005phase\030\007 \001(\0162,.google.cloud." - + "clouddms.v1.MigrationJob.PhaseB\003\340A\003\022>\n\004t" - + "ype\030\010 \001(\0162+.google.cloud.clouddms.v1.Mig" - + "rationJob.TypeB\003\340A\002\022\021\n\tdump_path\030\t \001(\t\022\023" - + "\n\006source\030\n \001(\tB\003\340A\002\022\030\n\013destination\030\013 \001(\t" - + "B\003\340A\002\022T\n\030reverse_ssh_connectivity\030e \001(\0132" - + "0.google.cloud.clouddms.v1.ReverseSshCon" - + "nectivityH\000\022T\n\030vpc_peering_connectivity\030" - + "f \001(\01320.google.cloud.clouddms.v1.VpcPeer" - + "ingConnectivityH\000\022P\n\026static_ip_connectiv" - + "ity\030g \001(\0132..google.cloud.clouddms.v1.Sta" - + "ticIpConnectivityH\000\0220\n\010duration\030\014 \001(\0132\031." - + "google.protobuf.DurationB\003\340A\003\022&\n\005error\030\r" - + " \001(\0132\022.google.rpc.StatusB\003\340A\003\022?\n\017source_" - + "database\030\016 \001(\0132&.google.cloud.clouddms.v" - + "1.DatabaseType\022D\n\024destination_database\030\017" - + " \001(\0132&.google.cloud.clouddms.v1.Database" - + "Type\0221\n\010end_time\030\020 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\361\001\n\005State\022\025\n\021STAT" - + "E_UNSPECIFIED\020\000\022\017\n\013MAINTENANCE\020\001\022\t\n\005DRAF" - + "T\020\002\022\014\n\010CREATING\020\003\022\017\n\013NOT_STARTED\020\004\022\013\n\007RU" - + "NNING\020\005\022\n\n\006FAILED\020\006\022\r\n\tCOMPLETED\020\007\022\014\n\010DE" - + "LETING\020\010\022\014\n\010STOPPING\020\t\022\013\n\007STOPPED\020\n\022\013\n\007D" - + "ELETED\020\013\022\014\n\010UPDATING\020\014\022\014\n\010STARTING\020\r\022\016\n\n" - + "RESTARTING\020\016\022\014\n\010RESUMING\020\017\"\216\001\n\005Phase\022\025\n\021" - + "PHASE_UNSPECIFIED\020\000\022\r\n\tFULL_DUMP\020\001\022\007\n\003CD" - + "C\020\002\022\027\n\023PROMOTE_IN_PROGRESS\020\003\022%\n!WAITING_" - + "FOR_SOURCE_WRITES_TO_STOP\020\004\022\026\n\022PREPARING" - + "_THE_DUMP\020\005\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020" - + "\000\022\014\n\010ONE_TIME\020\001\022\016\n\nCONTINUOUS\020\002:u\352Ar\n)da" - + "tamigration.googleapis.com/MigrationJob\022" - + "Eprojects/{project}/locations/{location}" - + "/migrationJobs/{migration_job}B\016\n\014connec" - + "tivity\"\263\007\n\021ConnectionProfile\022\014\n\004name\030\001 \001" - + "(\t\0224\n\013create_time\030\002 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\022G\n\006labels" - + "\030\004 \003(\01327.google.cloud.clouddms.v1.Connec" - + "tionProfile.LabelsEntry\022@\n\005state\030\005 \001(\01621" - + ".google.cloud.clouddms.v1.ConnectionProf" - + "ile.State\022\024\n\014display_name\030\006 \001(\t\022A\n\005mysql" - + "\030d \001(\01320.google.cloud.clouddms.v1.MySqlC" - + "onnectionProfileH\000\022K\n\npostgresql\030e \001(\01325" - + ".google.cloud.clouddms.v1.PostgreSqlConn" - + "ectionProfileH\000\022G\n\010cloudsql\030f \001(\01323.goog" - + "le.cloud.clouddms.v1.CloudSqlConnectionP" - + "rofileH\000\022&\n\005error\030\007 \001(\0132\022.google.rpc.Sta" - + "tusB\003\340A\003\022<\n\010provider\030\010 \001(\0162*.google.clou" - + "d.clouddms.v1.DatabaseProvider\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001" - + "\022\014\n\010CREATING\020\002\022\t\n\005READY\020\003\022\014\n\010UPDATING\020\004\022" - + "\014\n\010DELETING\020\005\022\013\n\007DELETED\020\006\022\n\n\006FAILED\020\007:\205" - + "\001\352A\201\001\n.datamigration.googleapis.com/Conn" - + "ectionProfile\022Oprojects/{project}/locati" - + "ons/{location}/connectionProfiles/{conne" - + "ction_profile}B\024\n\022connection_profile\"\320\006\n" - + "\035MigrationJobVerificationError\022Z\n\nerror_" - + "code\030\001 \001(\0162A.google.cloud.clouddms.v1.Mi" - + "grationJobVerificationError.ErrorCodeB\003\340" - + "A\003\022\032\n\rerror_message\030\002 \001(\tB\003\340A\003\022!\n\024error_" - + "detail_message\030\003 \001(\tB\003\340A\003\"\223\005\n\tErrorCode\022" - + "\032\n\026ERROR_CODE_UNSPECIFIED\020\000\022\026\n\022CONNECTIO" - + "N_FAILURE\020\001\022\032\n\026AUTHENTICATION_FAILURE\020\002\022" - + "%\n!INVALID_CONNECTION_PROFILE_CONFIG\020\003\022\033" - + "\n\027VERSION_INCOMPATIBILITY\020\004\022,\n(CONNECTIO" - + "N_PROFILE_TYPES_INCOMPATIBILITY\020\005\022\032\n\026NO_" - + "PGLOGICAL_INSTALLED\020\007\022!\n\035PGLOGICAL_NODE_" - + "ALREADY_EXISTS\020\010\022\025\n\021INVALID_WAL_LEVEL\020\t\022" - + "\"\n\036INVALID_SHARED_PRELOAD_LIBRARY\020\n\022&\n\"I" - + "NSUFFICIENT_MAX_REPLICATION_SLOTS\020\013\022 \n\034I" - + "NSUFFICIENT_MAX_WAL_SENDERS\020\014\022%\n!INSUFFI" - + "CIENT_MAX_WORKER_PROCESSES\020\r\022\032\n\026UNSUPPOR" - + "TED_EXTENSIONS\020\016\022\036\n\032UNSUPPORTED_MIGRATIO" - + "N_TYPE\020\017\022#\n\037INVALID_RDS_LOGICAL_REPLICAT" - + "ION\020\020\022\031\n\025UNSUPPORTED_GTID_MODE\020\021\022 \n\034UNSU" - + "PPORTED_TABLE_DEFINITION\020\022\022\027\n\023UNSUPPORTE" - + "D_DEFINER\020\023\022\"\n\036CANT_RESTART_RUNNING_MIGR" - + "ATION\020\025*L\n\016DatabaseEngine\022\037\n\033DATABASE_EN" - + "GINE_UNSPECIFIED\020\000\022\t\n\005MYSQL\020\001\022\016\n\nPOSTGRE" - + "SQL\020\002*L\n\020DatabaseProvider\022!\n\035DATABASE_PR" - + "OVIDER_UNSPECIFIED\020\000\022\014\n\010CLOUDSQL\020\001\022\007\n\003RD" - + "S\020\002B\306\001\n\034com.google.cloud.clouddms.v1B\026Cl" - + "ouddmsResourcesProtoP\001Z8cloud.google.com" - + "/go/clouddms/apiv1/clouddmspb;clouddmspb" - + "\252\002\030Google.Cloud.CloudDms.V1\312\002\030Google\\Clo" - + "ud\\CloudDms\\V1\352\002\033Google::Cloud::CloudDMS" - + "::V1b\006proto3" + + "ql_id\030\007 \001(\t\022P\n\024network_architecture\030\010 \001(" + + "\0162-.google.cloud.clouddms.v1.NetworkArch" + + "itectureB\003\340A\003\022P\n\026static_ip_connectivity\030" + + "d \001(\0132..google.cloud.clouddms.v1.StaticI" + + "pConnectivityH\000\022k\n$private_service_conne" + + "ct_connectivity\030e \001(\0132;.google.cloud.clo" + + "uddms.v1.PrivateServiceConnectConnectivi" + + "tyH\000B\016\n\014connectivity\"\306\003\n\027OracleConnectio" + + "nProfile\022\021\n\004host\030\001 \001(\tB\003\340A\002\022\021\n\004port\030\002 \001(" + + "\005B\003\340A\002\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010passwor" + + "d\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014password_set\030\005 \001(\010B\003\340" + + "A\003\022\035\n\020database_service\030\006 \001(\tB\003\340A\002\022_\n\036sta" + + "tic_service_ip_connectivity\030d \001(\01325.goog" + + "le.cloud.clouddms.v1.StaticServiceIpConn" + + "ectivityH\000\022Z\n\030forward_ssh_connectivity\030e" + + " \001(\01326.google.cloud.clouddms.v1.ForwardS" + + "shTunnelConnectivityH\000\022M\n\024private_connec" + + "tivity\030f \001(\0132-.google.cloud.clouddms.v1." + + "PrivateConnectivityH\000B\016\n\014connectivity\"\315\001" + + "\n\031CloudSqlConnectionProfile\022\031\n\014cloud_sql" + + "_id\030\001 \001(\tB\003\340A\003\022A\n\010settings\030\002 \001(\0132*.googl" + + "e.cloud.clouddms.v1.CloudSqlSettingsB\003\340A" + + "\005\022\027\n\nprivate_ip\030\003 \001(\tB\003\340A\003\022\026\n\tpublic_ip\030" + + "\004 \001(\tB\003\340A\003\022!\n\024additional_public_ip\030\005 \001(\t" + + "B\003\340A\003\"u\n\030AlloyDbConnectionProfile\022\027\n\nclu" + + "ster_id\030\001 \001(\tB\003\340A\002\022@\n\010settings\030\002 \001(\0132).g" + + "oogle.cloud.clouddms.v1.AlloyDbSettingsB" + + "\003\340A\005\"\233\001\n\013SqlAclEntry\022\r\n\005value\030\001 \001(\t\0221\n\013e" + + "xpire_time\030\n \001(\0132\032.google.protobuf.Times" + + "tampH\000\022-\n\003ttl\030\013 \001(\0132\031.google.protobuf.Du" + + "rationB\003\340A\004H\000\022\r\n\005label\030\003 \001(\tB\014\n\nexpirati" + + "on\"\355\001\n\013SqlIpConfig\022/\n\013enable_ipv4\030\001 \001(\0132" + + "\032.google.protobuf.BoolValue\022\027\n\017private_n" + + "etwork\030\002 \001(\t\022\037\n\022allocated_ip_range\030\005 \001(\t" + + "B\003\340A\001\022/\n\013require_ssl\030\003 \001(\0132\032.google.prot" + + "obuf.BoolValue\022B\n\023authorized_networks\030\004 " + + "\003(\0132%.google.cloud.clouddms.v1.SqlAclEnt" + + "ry\"\366\013\n\020CloudSqlSettings\022W\n\020database_vers" + + "ion\030\001 \001(\0162=.google.cloud.clouddms.v1.Clo" + + "udSqlSettings.SqlDatabaseVersion\022O\n\013user" + + "_labels\030\002 \003(\0132:.google.cloud.clouddms.v1" + + ".CloudSqlSettings.UserLabelsEntry\022\014\n\004tie" + + "r\030\003 \001(\t\022>\n\031storage_auto_resize_limit\030\004 \001" + + "(\0132\033.google.protobuf.Int64Value\022Y\n\021activ" + + "ation_policy\030\005 \001(\0162>.google.cloud.cloudd" + + "ms.v1.CloudSqlSettings.SqlActivationPoli" + + "cy\0228\n\tip_config\030\006 \001(\0132%.google.cloud.clo" + + "uddms.v1.SqlIpConfig\0229\n\025auto_storage_inc" + + "rease\030\007 \001(\0132\032.google.protobuf.BoolValue\022" + + "U\n\016database_flags\030\010 \003(\0132=.google.cloud.c" + + "louddms.v1.CloudSqlSettings.DatabaseFlag" + + "sEntry\022R\n\016data_disk_type\030\t \001(\0162:.google." + + "cloud.clouddms.v1.CloudSqlSettings.SqlDa" + + "taDiskType\0226\n\021data_disk_size_gb\030\n \001(\0132\033." + + "google.protobuf.Int64Value\022\014\n\004zone\030\013 \001(\t" + + "\022\033\n\016secondary_zone\030\022 \001(\tB\003\340A\001\022\021\n\tsource_" + + "id\030\014 \001(\t\022\032\n\rroot_password\030\r \001(\tB\003\340A\004\022\036\n\021" + + "root_password_set\030\016 \001(\010B\003\340A\003\022\021\n\tcollatio" + + "n\030\017 \001(\t\022\025\n\rcmek_key_name\030\020 \001(\t\022^\n\021availa" + + "bility_type\030\021 \001(\0162>.google.cloud.clouddm" + + "s.v1.CloudSqlSettings.SqlAvailabilityTyp" + + "eB\003\340A\001\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\023SqlAc" + + "tivationPolicy\022%\n!SQL_ACTIVATION_POLICY_" + + "UNSPECIFIED\020\000\022\n\n\006ALWAYS\020\001\022\t\n\005NEVER\020\002\"M\n\017" + + "SqlDataDiskType\022\"\n\036SQL_DATA_DISK_TYPE_UN" + + "SPECIFIED\020\000\022\n\n\006PD_SSD\020\001\022\n\n\006PD_HDD\020\002\"\316\001\n\022" + + "SqlDatabaseVersion\022$\n SQL_DATABASE_VERSI" + + "ON_UNSPECIFIED\020\000\022\r\n\tMYSQL_5_6\020\001\022\r\n\tMYSQL" + + "_5_7\020\002\022\020\n\014POSTGRES_9_6\020\003\022\017\n\013POSTGRES_11\020" + + "\004\022\017\n\013POSTGRES_10\020\005\022\r\n\tMYSQL_8_0\020\006\022\017\n\013POS" + + "TGRES_12\020\007\022\017\n\013POSTGRES_13\020\010\022\017\n\013POSTGRES_" + + "14\020\021\"U\n\023SqlAvailabilityType\022%\n!SQL_AVAIL" + + "ABILITY_TYPE_UNSPECIFIED\020\000\022\t\n\005ZONAL\020\001\022\014\n" + + "\010REGIONAL\020\002\"\263\010\n\017AlloyDbSettings\022T\n\014initi" + + "al_user\030\001 \001(\01326.google.cloud.clouddms.v1" + + ".AlloyDbSettings.UserPasswordB\006\340A\002\340A\004\022\030\n" + + "\013vpc_network\030\002 \001(\tB\003\340A\002\022E\n\006labels\030\003 \003(\0132" + + "5.google.cloud.clouddms.v1.AlloyDbSettin" + + "gs.LabelsEntry\022d\n\031primary_instance_setti" + + "ngs\030\004 \001(\0132A.google.cloud.clouddms.v1.All" + + "oyDbSettings.PrimaryInstanceSettings\022Z\n\021" + + "encryption_config\030\005 \001(\0132:.google.cloud.c" + + "louddms.v1.AlloyDbSettings.EncryptionCon" + + "figB\003\340A\001\032I\n\014UserPassword\022\014\n\004user\030\001 \001(\t\022\020" + + "\n\010password\030\002 \001(\t\022\031\n\014password_set\030\003 \001(\010B\003" + + "\340A\003\032\202\004\n\027PrimaryInstanceSettings\022\017\n\002id\030\001 " + + "\001(\tB\003\340A\002\022g\n\016machine_config\030\002 \001(\0132O.googl" + + "e.cloud.clouddms.v1.AlloyDbSettings.Prim" + + "aryInstanceSettings.MachineConfig\022l\n\016dat" + + "abase_flags\030\006 \003(\0132T.google.cloud.clouddm" + + "s.v1.AlloyDbSettings.PrimaryInstanceSett" + + "ings.DatabaseFlagsEntry\022]\n\006labels\030\007 \003(\0132" + + "M.google.cloud.clouddms.v1.AlloyDbSettin" + + "gs.PrimaryInstanceSettings.LabelsEntry\022\027" + + "\n\nprivate_ip\030\010 \001(\tB\003\340A\003\032\"\n\rMachineConfig" + + "\022\021\n\tcpu_count\030\001 \001(\005\0324\n\022DatabaseFlagsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\032(\n\020EncryptionConfig\022\024\n\014kms_key_name\030\001 \001" + + "(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"\026\n\024StaticIpConnectivity\"D\n!Pri" + + "vateServiceConnectConnectivity\022\037\n\022servic" + + "e_attachment\030\001 \001(\tB\003\340A\002\"[\n\026ReverseSshCon" + + "nectivity\022\022\n\005vm_ip\030\001 \001(\tB\003\340A\002\022\024\n\007vm_port" + + "\030\002 \001(\005B\003\340A\002\022\n\n\002vm\030\003 \001(\t\022\013\n\003vpc\030\004 \001(\t\"%\n\026" + + "VpcPeeringConnectivity\022\013\n\003vpc\030\001 \001(\t\"\250\001\n\034" + + "ForwardSshTunnelConnectivity\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\004po" + + "rt\030\003 \001(\005\022\027\n\010password\030d \001(\tB\003\340A\004H\000\022\032\n\013pri" + + "vate_key\030e \001(\tB\003\340A\004H\000B\027\n\025authentication_" + + "method\"\035\n\033StaticServiceIpConnectivity\"6\n" + + "\023PrivateConnectivity\022\037\n\022private_connecti" + + "on\030\001 \001(\tB\003\340A\002\"\206\001\n\014DatabaseType\022<\n\010provid" + + "er\030\001 \001(\0162*.google.cloud.clouddms.v1.Data" + + "baseProvider\0228\n\006engine\030\002 \001(\0162(.google.cl" + + "oud.clouddms.v1.DatabaseEngine\"\245\017\n\014Migra" + + "tionJob\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" + + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022B\n\006labels\030\004 \003(\01322.google.cloud" + + ".clouddms.v1.MigrationJob.LabelsEntry\022\024\n" + + "\014display_name\030\005 \001(\t\022;\n\005state\030\006 \001(\0162,.goo" + + "gle.cloud.clouddms.v1.MigrationJob.State" + + "\022@\n\005phase\030\007 \001(\0162,.google.cloud.clouddms." + + "v1.MigrationJob.PhaseB\003\340A\003\022>\n\004type\030\010 \001(\016" + + "2+.google.cloud.clouddms.v1.MigrationJob" + + ".TypeB\003\340A\002\022\021\n\tdump_path\030\t \001(\t\022D\n\ndump_fl" + + "ags\030\021 \001(\01320.google.cloud.clouddms.v1.Mig" + + "rationJob.DumpFlags\022\023\n\006source\030\n \001(\tB\003\340A\002" + + "\022\030\n\013destination\030\013 \001(\tB\003\340A\002\022T\n\030reverse_ss" + + "h_connectivity\030e \001(\01320.google.cloud.clou" + + "ddms.v1.ReverseSshConnectivityH\000\022T\n\030vpc_" + + "peering_connectivity\030f \001(\01320.google.clou" + + "d.clouddms.v1.VpcPeeringConnectivityH\000\022P" + + "\n\026static_ip_connectivity\030g \001(\0132..google." + + "cloud.clouddms.v1.StaticIpConnectivityH\000" + + "\0220\n\010duration\030\014 \001(\0132\031.google.protobuf.Dur" + + "ationB\003\340A\003\022&\n\005error\030\r \001(\0132\022.google.rpc.S" + + "tatusB\003\340A\003\022?\n\017source_database\030\016 \001(\0132&.go" + + "ogle.cloud.clouddms.v1.DatabaseType\022D\n\024d" + + "estination_database\030\017 \001(\0132&.google.cloud" + + ".clouddms.v1.DatabaseType\0221\n\010end_time\030\020 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022O\n\024" + + "conversion_workspace\030\022 \001(\01321.google.clou" + + "d.clouddms.v1.ConversionWorkspaceInfo\022\016\n" + + "\006filter\030\024 \001(\t\022\025\n\rcmek_key_name\030\025 \001(\t\032\'\n\010" + + "DumpFlag\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\032P\n" + + "\tDumpFlags\022C\n\ndump_flags\030\001 \003(\0132/.google." + + "cloud.clouddms.v1.MigrationJob.DumpFlag\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"\361\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\017\n\013MAINTENANCE\020\001\022\t\n\005DRAFT\020\002\022\014\n\010CREATING\020" + + "\003\022\017\n\013NOT_STARTED\020\004\022\013\n\007RUNNING\020\005\022\n\n\006FAILE" + + "D\020\006\022\r\n\tCOMPLETED\020\007\022\014\n\010DELETING\020\010\022\014\n\010STOP" + + "PING\020\t\022\013\n\007STOPPED\020\n\022\013\n\007DELETED\020\013\022\014\n\010UPDA" + + "TING\020\014\022\014\n\010STARTING\020\r\022\016\n\nRESTARTING\020\016\022\014\n\010" + + "RESUMING\020\017\"\216\001\n\005Phase\022\025\n\021PHASE_UNSPECIFIE" + + "D\020\000\022\r\n\tFULL_DUMP\020\001\022\007\n\003CDC\020\002\022\027\n\023PROMOTE_I" + + "N_PROGRESS\020\003\022%\n!WAITING_FOR_SOURCE_WRITE" + + "S_TO_STOP\020\004\022\026\n\022PREPARING_THE_DUMP\020\005\":\n\004T" + + "ype\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n\010ONE_TIME\020\001\022" + + "\016\n\nCONTINUOUS\020\002:u\352Ar\n)datamigration.goog" + + "leapis.com/MigrationJob\022Eprojects/{proje" + + "ct}/locations/{location}/migrationJobs/{" + + "migration_job}B\016\n\014connectivity\":\n\027Conver" + + "sionWorkspaceInfo\022\014\n\004name\030\001 \001(\t\022\021\n\tcommi" + + "t_id\030\002 \001(\t\"\277\010\n\021ConnectionProfile\022\014\n\004name" + + "\030\001 \001(\t\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\022G\n\006la" + + "bels\030\004 \003(\01327.google.cloud.clouddms.v1.Co" + + "nnectionProfile.LabelsEntry\022@\n\005state\030\005 \001" + + "(\01621.google.cloud.clouddms.v1.Connection" + + "Profile.State\022\024\n\014display_name\030\006 \001(\t\022A\n\005m" + + "ysql\030d \001(\01320.google.cloud.clouddms.v1.My" + + "SqlConnectionProfileH\000\022K\n\npostgresql\030e \001" + + "(\01325.google.cloud.clouddms.v1.PostgreSql" + + "ConnectionProfileH\000\022C\n\006oracle\030h \001(\01321.go" + + "ogle.cloud.clouddms.v1.OracleConnectionP" + + "rofileH\000\022G\n\010cloudsql\030f \001(\01323.google.clou" + + "d.clouddms.v1.CloudSqlConnectionProfileH" + + "\000\022E\n\007alloydb\030i \001(\01322.google.cloud.cloudd" + + "ms.v1.AlloyDbConnectionProfileH\000\022&\n\005erro" + + "r\030\007 \001(\0132\022.google.rpc.StatusB\003\340A\003\022<\n\010prov" + + "ider\030\010 \001(\0162*.google.cloud.clouddms.v1.Da" + + "tabaseProvider\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\014\n\010CREATING\020\002\022\t" + + "\n\005READY\020\003\022\014\n\010UPDATING\020\004\022\014\n\010DELETING\020\005\022\013\n" + + "\007DELETED\020\006\022\n\n\006FAILED\020\007:\205\001\352A\201\001\n.datamigra" + + "tion.googleapis.com/ConnectionProfile\022Op" + + "rojects/{project}/locations/{location}/c" + + "onnectionProfiles/{connection_profile}B\024" + + "\n\022connection_profile\"\353\007\n\035MigrationJobVer" + + "ificationError\022Z\n\nerror_code\030\001 \001(\0162A.goo" + + "gle.cloud.clouddms.v1.MigrationJobVerifi" + + "cationError.ErrorCodeB\003\340A\003\022\032\n\rerror_mess" + + "age\030\002 \001(\tB\003\340A\003\022!\n\024error_detail_message\030\003" + + " \001(\tB\003\340A\003\"\256\006\n\tErrorCode\022\032\n\026ERROR_CODE_UN" + + "SPECIFIED\020\000\022\026\n\022CONNECTION_FAILURE\020\001\022\032\n\026A" + + "UTHENTICATION_FAILURE\020\002\022%\n!INVALID_CONNE" + + "CTION_PROFILE_CONFIG\020\003\022\033\n\027VERSION_INCOMP" + + "ATIBILITY\020\004\022,\n(CONNECTION_PROFILE_TYPES_" + + "INCOMPATIBILITY\020\005\022\032\n\026NO_PGLOGICAL_INSTAL" + + "LED\020\007\022!\n\035PGLOGICAL_NODE_ALREADY_EXISTS\020\010" + + "\022\025\n\021INVALID_WAL_LEVEL\020\t\022\"\n\036INVALID_SHARE" + + "D_PRELOAD_LIBRARY\020\n\022&\n\"INSUFFICIENT_MAX_" + + "REPLICATION_SLOTS\020\013\022 \n\034INSUFFICIENT_MAX_" + + "WAL_SENDERS\020\014\022%\n!INSUFFICIENT_MAX_WORKER" + + "_PROCESSES\020\r\022\032\n\026UNSUPPORTED_EXTENSIONS\020\016" + + "\022\036\n\032UNSUPPORTED_MIGRATION_TYPE\020\017\022#\n\037INVA" + + "LID_RDS_LOGICAL_REPLICATION\020\020\022\031\n\025UNSUPPO" + + "RTED_GTID_MODE\020\021\022 \n\034UNSUPPORTED_TABLE_DE" + + "FINITION\020\022\022\027\n\023UNSUPPORTED_DEFINER\020\023\022\"\n\036C" + + "ANT_RESTART_RUNNING_MIGRATION\020\025\022\037\n\033TABLE" + + "S_WITH_LIMITED_SUPPORT\020\030\022\037\n\033UNSUPPORTED_" + + "DATABASE_LOCALE\020\031\022#\n\037UNSUPPORTED_DATABAS" + + "E_FDW_CONFIG\020\032\022\017\n\013ERROR_RDBMS\020\033\022!\n\035SOURC" + + "E_SIZE_EXCEEDS_THRESHOLD\020\034\"\344\005\n\021PrivateCo" + + "nnection\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "update_time\030\003 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022G\n\006labels\030\004 \003(\01327.google.clou" + + "d.clouddms.v1.PrivateConnection.LabelsEn" + + "try\022\024\n\014display_name\030\005 \001(\t\022E\n\005state\030\006 \001(\016" + + "21.google.cloud.clouddms.v1.PrivateConne" + + "ction.StateB\003\340A\003\022&\n\005error\030\007 \001(\0132\022.google" + + ".rpc.StatusB\003\340A\003\022H\n\022vpc_peering_config\030d" + + " \001(\0132*.google.cloud.clouddms.v1.VpcPeeri" + + "ngConfigH\000\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"v\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007CREATED\020\002\022\n\n\006" + + "FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FAILED_TO_DELE" + + "TE\020\005\022\013\n\007DELETED\020\006:\205\001\352A\201\001\n.datamigration." + + "googleapis.com/PrivateConnection\022Oprojec" + + "ts/{project}/locations/{location}/privat" + + "eConnections/{private_connection}B\016\n\014con" + + "nectivity\"b\n\020VpcPeeringConfig\0229\n\010vpc_nam" + + "e\030\001 \001(\tB\'\340A\002\372A!\n\037compute.googleapis.com/" + + "Networks\022\023\n\006subnet\030\002 \001(\tB\003\340A\002*\223\001\n\023Networ" + + "kArchitecture\022$\n NETWORK_ARCHITECTURE_UN" + + "SPECIFIED\020\000\022*\n&NETWORK_ARCHITECTURE_OLD_" + + "CSQL_PRODUCER\020\001\022*\n&NETWORK_ARCHITECTURE_" + + "NEW_CSQL_PRODUCER\020\002*X\n\016DatabaseEngine\022\037\n" + + "\033DATABASE_ENGINE_UNSPECIFIED\020\000\022\t\n\005MYSQL\020" + + "\001\022\016\n\nPOSTGRESQL\020\002\022\n\n\006ORACLE\020\004*e\n\020Databas" + + "eProvider\022!\n\035DATABASE_PROVIDER_UNSPECIFI" + + "ED\020\000\022\014\n\010CLOUDSQL\020\001\022\007\n\003RDS\020\002\022\n\n\006AURORA\020\003\022" + + "\013\n\007ALLOYDB\020\004B\230\002\n\034com.google.cloud.cloudd" + + "ms.v1B\026ClouddmsResourcesProtoP\001Z8cloud.g" + + "oogle.com/go/clouddms/apiv1/clouddmspb;c" + + "louddmspb\252\002\030Google.Cloud.CloudDms.V1\312\002\030G" + + "oogle\\Cloud\\CloudDms\\V1\352\002\033Google::Cloud:" + + ":CloudDMS::V1\352AO\n\037compute.googleapis.com" + + "/Networks\022,projects/{project}/global/net" + + "works/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -314,18 +503,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_PostgreSqlConnectionProfile_descriptor, new java.lang.String[] { - "Host", "Port", "Username", "Password", "PasswordSet", "Ssl", "CloudSqlId", + "Host", + "Port", + "Username", + "Password", + "PasswordSet", + "Ssl", + "CloudSqlId", + "NetworkArchitecture", + "StaticIpConnectivity", + "PrivateServiceConnectConnectivity", + "Connectivity", }); - internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor = + internal_static_google_cloud_clouddms_v1_OracleConnectionProfile_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_clouddms_v1_OracleConnectionProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_OracleConnectionProfile_descriptor, + new java.lang.String[] { + "Host", + "Port", + "Username", + "Password", + "PasswordSet", + "DatabaseService", + "StaticServiceIpConnectivity", + "ForwardSshConnectivity", + "PrivateConnectivity", + "Connectivity", + }); + internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_CloudSqlConnectionProfile_descriptor, new java.lang.String[] { - "CloudSqlId", "Settings", "PrivateIp", "PublicIp", + "CloudSqlId", "Settings", "PrivateIp", "PublicIp", "AdditionalPublicIp", + }); + internal_static_google_cloud_clouddms_v1_AlloyDbConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_clouddms_v1_AlloyDbConnectionProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_AlloyDbConnectionProfile_descriptor, + new java.lang.String[] { + "ClusterId", "Settings", }); internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_clouddms_v1_SqlAclEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_SqlAclEntry_descriptor, @@ -333,15 +557,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", "ExpireTime", "Ttl", "Label", "Expiration", }); internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_clouddms_v1_SqlIpConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_SqlIpConfig_descriptor, new java.lang.String[] { - "EnableIpv4", "PrivateNetwork", "RequireSsl", "AuthorizedNetworks", + "EnableIpv4", + "PrivateNetwork", + "AllocatedIpRange", + "RequireSsl", + "AuthorizedNetworks", }); internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_clouddms_v1_CloudSqlSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor, @@ -357,10 +585,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataDiskType", "DataDiskSizeGb", "Zone", + "SecondaryZone", "SourceId", "RootPassword", "RootPasswordSet", "Collation", + "CmekKeyName", + "AvailabilityType", }); internal_static_google_cloud_clouddms_v1_CloudSqlSettings_UserLabelsEntry_descriptor = internal_static_google_cloud_clouddms_v1_CloudSqlSettings_descriptor @@ -382,14 +613,92 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_descriptor, + new java.lang.String[] { + "InitialUser", "VpcNetwork", "Labels", "PrimaryInstanceSettings", "EncryptionConfig", + }); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_UserPassword_descriptor = + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_UserPassword_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_UserPassword_descriptor, + new java.lang.String[] { + "User", "Password", "PasswordSet", + }); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_descriptor = + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_descriptor, + new java.lang.String[] { + "Id", "MachineConfig", "DatabaseFlags", "Labels", "PrivateIp", + }); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_MachineConfig_descriptor = + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_MachineConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_MachineConfig_descriptor, + new java.lang.String[] { + "CpuCount", + }); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_DatabaseFlagsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_DatabaseFlagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_DatabaseFlagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_LabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_PrimaryInstanceSettings_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_EncryptionConfig_descriptor = + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_EncryptionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_EncryptionConfig_descriptor, + new java.lang.String[] { + "KmsKeyName", + }); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_LabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_AlloyDbSettings_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_StaticIpConnectivity_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_clouddms_v1_PrivateServiceConnectConnectivity_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_clouddms_v1_PrivateServiceConnectConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_PrivateServiceConnectConnectivity_descriptor, + new java.lang.String[] { + "ServiceAttachment", + }); internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ReverseSshConnectivity_descriptor, @@ -397,15 +706,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VmIp", "VmPort", "Vm", "Vpc", }); internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_VpcPeeringConnectivity_descriptor, new java.lang.String[] { "Vpc", }); + internal_static_google_cloud_clouddms_v1_ForwardSshTunnelConnectivity_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_clouddms_v1_ForwardSshTunnelConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ForwardSshTunnelConnectivity_descriptor, + new java.lang.String[] { + "Hostname", "Username", "Port", "Password", "PrivateKey", "AuthenticationMethod", + }); + internal_static_google_cloud_clouddms_v1_StaticServiceIpConnectivity_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_clouddms_v1_StaticServiceIpConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_StaticServiceIpConnectivity_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_clouddms_v1_PrivateConnectivity_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_clouddms_v1_PrivateConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_PrivateConnectivity_descriptor, + new java.lang.String[] { + "PrivateConnection", + }); internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_clouddms_v1_DatabaseType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_DatabaseType_descriptor, @@ -413,7 +744,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Provider", "Engine", }); internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor, @@ -427,6 +758,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Phase", "Type", "DumpPath", + "DumpFlags", "Source", "Destination", "ReverseSshConnectivity", @@ -437,18 +769,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceDatabase", "DestinationDatabase", "EndTime", + "ConversionWorkspace", + "Filter", + "CmekKeyName", "Connectivity", }); - internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlag_descriptor = internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlag_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlag_descriptor, + new java.lang.String[] { + "Name", "Value", + }); + internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlags_descriptor = + internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlags_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlags_descriptor, + new java.lang.String[] { + "DumpFlags", + }); + internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor.getNestedTypes().get(2); internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_clouddms_v1_ConversionWorkspaceInfo_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_clouddms_v1_ConversionWorkspaceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ConversionWorkspaceInfo_descriptor, + new java.lang.String[] { + "Name", "CommitId", + }); internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_clouddms_v1_ConnectionProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_ConnectionProfile_descriptor, @@ -461,7 +820,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Mysql", "Postgresql", + "Oracle", "Cloudsql", + "Alloydb", "Error", "Provider", "ConnectionProfile", @@ -477,17 +838,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_clouddms_v1_MigrationJobVerificationError_descriptor, new java.lang.String[] { "ErrorCode", "ErrorMessage", "ErrorDetailMessage", }); + internal_static_google_cloud_clouddms_v1_PrivateConnection_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_clouddms_v1_PrivateConnection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_PrivateConnection_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "State", + "Error", + "VpcPeeringConfig", + "Connectivity", + }); + internal_static_google_cloud_clouddms_v1_PrivateConnection_LabelsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_PrivateConnection_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_clouddms_v1_PrivateConnection_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_PrivateConnection_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_clouddms_v1_VpcPeeringConfig_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_clouddms_v1_VpcPeeringConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_VpcPeeringConfig_descriptor, + new java.lang.String[] { + "VpcName", "Subnet", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ColumnEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ColumnEntity.java new file mode 100644 index 000000000000..ed52bf63c30b --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ColumnEntity.java @@ -0,0 +1,3025 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Column is not used as an independent entity, it is retrieved as part of a
+ * Table entity.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ColumnEntity} + */ +public final class ColumnEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ColumnEntity) + ColumnEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnEntity.newBuilder() to construct. + private ColumnEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ColumnEntity() { + name_ = ""; + dataType_ = ""; + charset_ = ""; + collation_ = ""; + setValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + comment_ = ""; + defaultValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ColumnEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ColumnEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ColumnEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ColumnEntity.class, + com.google.cloud.clouddms.v1.ColumnEntity.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Column name.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Column name.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataType_ = ""; + /** + * + * + *
+   * Column 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; + } + } + /** + * + * + *
+   * Column 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 CHARSET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object charset_ = ""; + /** + * + * + *
+   * Charset override - instead of table level charset.
+   * 
+ * + * string charset = 3; + * + * @return The charset. + */ + @java.lang.Override + public java.lang.String getCharset() { + java.lang.Object ref = charset_; + 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(); + charset_ = s; + return s; + } + } + /** + * + * + *
+   * Charset override - instead of table level charset.
+   * 
+ * + * string charset = 3; + * + * @return The bytes for charset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCharsetBytes() { + java.lang.Object ref = charset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + charset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLLATION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object collation_ = ""; + /** + * + * + *
+   * Collation override - instead of table level collation.
+   * 
+ * + * string collation = 4; + * + * @return The collation. + */ + @java.lang.Override + public java.lang.String getCollation() { + java.lang.Object ref = collation_; + 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(); + collation_ = s; + return s; + } + } + /** + * + * + *
+   * Collation override - instead of table level collation.
+   * 
+ * + * string collation = 4; + * + * @return The bytes for collation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCollationBytes() { + java.lang.Object ref = collation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LENGTH_FIELD_NUMBER = 5; + private long length_ = 0L; + /** + * + * + *
+   * Column length - e.g. varchar (50).
+   * 
+ * + * int64 length = 5; + * + * @return The length. + */ + @java.lang.Override + public long getLength() { + return length_; + } + + public static final int PRECISION_FIELD_NUMBER = 6; + private int precision_ = 0; + /** + * + * + *
+   * Column precision - when relevant.
+   * 
+ * + * int32 precision = 6; + * + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + + public static final int SCALE_FIELD_NUMBER = 7; + private int scale_ = 0; + /** + * + * + *
+   * Column scale - when relevant.
+   * 
+ * + * int32 scale = 7; + * + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + + public static final int FRACTIONAL_SECONDS_PRECISION_FIELD_NUMBER = 8; + private int fractionalSecondsPrecision_ = 0; + /** + * + * + *
+   * Column fractional second precision - used for timestamp based datatypes.
+   * 
+ * + * int32 fractional_seconds_precision = 8; + * + * @return The fractionalSecondsPrecision. + */ + @java.lang.Override + public int getFractionalSecondsPrecision() { + return fractionalSecondsPrecision_; + } + + public static final int ARRAY_FIELD_NUMBER = 9; + private boolean array_ = false; + /** + * + * + *
+   * Is the column of array type.
+   * 
+ * + * bool array = 9; + * + * @return The array. + */ + @java.lang.Override + public boolean getArray() { + return array_; + } + + public static final int ARRAY_LENGTH_FIELD_NUMBER = 10; + private int arrayLength_ = 0; + /** + * + * + *
+   * If the column is array, of which length.
+   * 
+ * + * int32 array_length = 10; + * + * @return The arrayLength. + */ + @java.lang.Override + public int getArrayLength() { + return arrayLength_; + } + + public static final int NULLABLE_FIELD_NUMBER = 11; + private boolean nullable_ = false; + /** + * + * + *
+   * Is the column nullable.
+   * 
+ * + * bool nullable = 11; + * + * @return The nullable. + */ + @java.lang.Override + public boolean getNullable() { + return nullable_; + } + + public static final int AUTO_GENERATED_FIELD_NUMBER = 12; + private boolean autoGenerated_ = false; + /** + * + * + *
+   * Is the column auto-generated/identity.
+   * 
+ * + * bool auto_generated = 12; + * + * @return The autoGenerated. + */ + @java.lang.Override + public boolean getAutoGenerated() { + return autoGenerated_; + } + + public static final int UDT_FIELD_NUMBER = 13; + private boolean udt_ = false; + /** + * + * + *
+   * Is the column a UDT.
+   * 
+ * + * bool udt = 13; + * + * @return The udt. + */ + @java.lang.Override + public boolean getUdt() { + return udt_; + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 14; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 14; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 14; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 14; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + public static final int SET_VALUES_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList setValues_; + /** + * + * + *
+   * Specifies the list of values allowed in the column.
+   * Only used for set data type.
+   * 
+ * + * repeated string set_values = 15; + * + * @return A list containing the setValues. + */ + public com.google.protobuf.ProtocolStringList getSetValuesList() { + return setValues_; + } + /** + * + * + *
+   * Specifies the list of values allowed in the column.
+   * Only used for set data type.
+   * 
+ * + * repeated string set_values = 15; + * + * @return The count of setValues. + */ + public int getSetValuesCount() { + return setValues_.size(); + } + /** + * + * + *
+   * Specifies the list of values allowed in the column.
+   * Only used for set data type.
+   * 
+ * + * repeated string set_values = 15; + * + * @param index The index of the element to return. + * @return The setValues at the given index. + */ + public java.lang.String getSetValues(int index) { + return setValues_.get(index); + } + /** + * + * + *
+   * Specifies the list of values allowed in the column.
+   * Only used for set data type.
+   * 
+ * + * repeated string set_values = 15; + * + * @param index The index of the value to return. + * @return The bytes of the setValues at the given index. + */ + public com.google.protobuf.ByteString getSetValuesBytes(int index) { + return setValues_.getByteString(index); + } + + public static final int COMMENT_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object comment_ = ""; + /** + * + * + *
+   * Comment associated with the column.
+   * 
+ * + * string comment = 16; + * + * @return The comment. + */ + @java.lang.Override + public java.lang.String getComment() { + java.lang.Object ref = comment_; + 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(); + comment_ = s; + return s; + } + } + /** + * + * + *
+   * Comment associated with the column.
+   * 
+ * + * string comment = 16; + * + * @return The bytes for comment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDINAL_POSITION_FIELD_NUMBER = 17; + private int ordinalPosition_ = 0; + /** + * + * + *
+   * Column order in the table.
+   * 
+ * + * int32 ordinal_position = 17; + * + * @return The ordinalPosition. + */ + @java.lang.Override + public int getOrdinalPosition() { + return ordinalPosition_; + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultValue_ = ""; + /** + * + * + *
+   * Default value of the column.
+   * 
+ * + * string default_value = 18; + * + * @return The defaultValue. + */ + @java.lang.Override + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + 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(); + defaultValue_ = s; + return s; + } + } + /** + * + * + *
+   * Default value of the column.
+   * 
+ * + * string default_value = 18; + * + * @return The bytes for defaultValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(charset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, charset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, collation_); + } + if (length_ != 0L) { + output.writeInt64(5, length_); + } + if (precision_ != 0) { + output.writeInt32(6, precision_); + } + if (scale_ != 0) { + output.writeInt32(7, scale_); + } + if (fractionalSecondsPrecision_ != 0) { + output.writeInt32(8, fractionalSecondsPrecision_); + } + if (array_ != false) { + output.writeBool(9, array_); + } + if (arrayLength_ != 0) { + output.writeInt32(10, arrayLength_); + } + if (nullable_ != false) { + output.writeBool(11, nullable_); + } + if (autoGenerated_ != false) { + output.writeBool(12, autoGenerated_); + } + if (udt_ != false) { + output.writeBool(13, udt_); + } + if (customFeatures_ != null) { + output.writeMessage(14, getCustomFeatures()); + } + for (int i = 0; i < setValues_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, setValues_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, comment_); + } + if (ordinalPosition_ != 0) { + output.writeInt32(17, ordinalPosition_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, defaultValue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(charset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, charset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, collation_); + } + if (length_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, length_); + } + if (precision_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, precision_); + } + if (scale_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, scale_); + } + if (fractionalSecondsPrecision_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(8, fractionalSecondsPrecision_); + } + if (array_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, array_); + } + if (arrayLength_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, arrayLength_); + } + if (nullable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, nullable_); + } + if (autoGenerated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, autoGenerated_); + } + if (udt_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, udt_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCustomFeatures()); + } + { + int dataSize = 0; + for (int i = 0; i < setValues_.size(); i++) { + dataSize += computeStringSizeNoTag(setValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getSetValuesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, comment_); + } + if (ordinalPosition_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(17, ordinalPosition_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, defaultValue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ColumnEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ColumnEntity other = + (com.google.cloud.clouddms.v1.ColumnEntity) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDataType().equals(other.getDataType())) return false; + if (!getCharset().equals(other.getCharset())) return false; + if (!getCollation().equals(other.getCollation())) return false; + if (getLength() != other.getLength()) return false; + if (getPrecision() != other.getPrecision()) return false; + if (getScale() != other.getScale()) return false; + if (getFractionalSecondsPrecision() != other.getFractionalSecondsPrecision()) return false; + if (getArray() != other.getArray()) return false; + if (getArrayLength() != other.getArrayLength()) return false; + if (getNullable() != other.getNullable()) return false; + if (getAutoGenerated() != other.getAutoGenerated()) return false; + if (getUdt() != other.getUdt()) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getSetValuesList().equals(other.getSetValuesList())) return false; + if (!getComment().equals(other.getComment())) return false; + if (getOrdinalPosition() != other.getOrdinalPosition()) return false; + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDataType().hashCode(); + hash = (37 * hash) + CHARSET_FIELD_NUMBER; + hash = (53 * hash) + getCharset().hashCode(); + hash = (37 * hash) + COLLATION_FIELD_NUMBER; + hash = (53 * hash) + getCollation().hashCode(); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLength()); + hash = (37 * hash) + PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getPrecision(); + hash = (37 * hash) + SCALE_FIELD_NUMBER; + hash = (53 * hash) + getScale(); + hash = (37 * hash) + FRACTIONAL_SECONDS_PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getFractionalSecondsPrecision(); + hash = (37 * hash) + ARRAY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArray()); + hash = (37 * hash) + ARRAY_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getArrayLength(); + hash = (37 * hash) + NULLABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (37 * hash) + AUTO_GENERATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoGenerated()); + hash = (37 * hash) + UDT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUdt()); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + if (getSetValuesCount() > 0) { + hash = (37 * hash) + SET_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getSetValuesList().hashCode(); + } + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getOrdinalPosition(); + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ColumnEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ColumnEntity 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.clouddms.v1.ColumnEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ColumnEntity 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.clouddms.v1.ColumnEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ColumnEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ColumnEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ColumnEntity 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.clouddms.v1.ColumnEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ColumnEntity 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.clouddms.v1.ColumnEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ColumnEntity 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.clouddms.v1.ColumnEntity 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; + } + /** + * + * + *
+   * Column is not used as an independent entity, it is retrieved as part of a
+   * Table entity.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ColumnEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ColumnEntity) + com.google.cloud.clouddms.v1.ColumnEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ColumnEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ColumnEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ColumnEntity.class, + com.google.cloud.clouddms.v1.ColumnEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ColumnEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + dataType_ = ""; + charset_ = ""; + collation_ = ""; + length_ = 0L; + precision_ = 0; + scale_ = 0; + fractionalSecondsPrecision_ = 0; + array_ = false; + arrayLength_ = 0; + nullable_ = false; + autoGenerated_ = false; + udt_ = false; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + setValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00004000); + comment_ = ""; + ordinalPosition_ = 0; + defaultValue_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ColumnEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ColumnEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ColumnEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ColumnEntity build() { + com.google.cloud.clouddms.v1.ColumnEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ColumnEntity buildPartial() { + com.google.cloud.clouddms.v1.ColumnEntity result = + new com.google.cloud.clouddms.v1.ColumnEntity(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.clouddms.v1.ColumnEntity result) { + if (((bitField0_ & 0x00004000) != 0)) { + setValues_ = setValues_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.setValues_ = setValues_; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ColumnEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataType_ = dataType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.charset_ = charset_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.collation_ = collation_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.length_ = length_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.precision_ = precision_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.scale_ = scale_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.fractionalSecondsPrecision_ = fractionalSecondsPrecision_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.array_ = array_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.arrayLength_ = arrayLength_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.nullable_ = nullable_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.autoGenerated_ = autoGenerated_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.udt_ = udt_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.comment_ = comment_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.ordinalPosition_ = ordinalPosition_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.defaultValue_ = defaultValue_; + } + } + + @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.clouddms.v1.ColumnEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.ColumnEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ColumnEntity other) { + if (other == com.google.cloud.clouddms.v1.ColumnEntity.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDataType().isEmpty()) { + dataType_ = other.dataType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCharset().isEmpty()) { + charset_ = other.charset_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getCollation().isEmpty()) { + collation_ = other.collation_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getLength() != 0L) { + setLength(other.getLength()); + } + if (other.getPrecision() != 0) { + setPrecision(other.getPrecision()); + } + if (other.getScale() != 0) { + setScale(other.getScale()); + } + if (other.getFractionalSecondsPrecision() != 0) { + setFractionalSecondsPrecision(other.getFractionalSecondsPrecision()); + } + if (other.getArray() != false) { + setArray(other.getArray()); + } + if (other.getArrayLength() != 0) { + setArrayLength(other.getArrayLength()); + } + if (other.getNullable() != false) { + setNullable(other.getNullable()); + } + if (other.getAutoGenerated() != false) { + setAutoGenerated(other.getAutoGenerated()); + } + if (other.getUdt() != false) { + setUdt(other.getUdt()); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + if (!other.setValues_.isEmpty()) { + if (setValues_.isEmpty()) { + setValues_ = other.setValues_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureSetValuesIsMutable(); + setValues_.addAll(other.setValues_); + } + onChanged(); + } + if (!other.getComment().isEmpty()) { + comment_ = other.comment_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.getOrdinalPosition() != 0) { + setOrdinalPosition(other.getOrdinalPosition()); + } + if (!other.getDefaultValue().isEmpty()) { + defaultValue_ = other.defaultValue_; + bitField0_ |= 0x00020000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + charset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + collation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + length_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + precision_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + scale_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + fractionalSecondsPrecision_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + array_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + arrayLength_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + nullable_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: + { + autoGenerated_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + udt_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 114: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSetValuesIsMutable(); + setValues_.add(s); + break; + } // case 122 + case 130: + { + comment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 136: + { + ordinalPosition_ = input.readInt32(); + bitField0_ |= 0x00010000; + break; + } // case 136 + case 146: + { + defaultValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 146 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Column name.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dataType_ = ""; + /** + * + * + *
+     * Column 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; + } + } + /** + * + * + *
+     * Column 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; + } + } + /** + * + * + *
+     * Column 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Column data type.
+     * 
+ * + * string data_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearDataType() { + dataType_ = getDefaultInstance().getDataType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Column 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object charset_ = ""; + /** + * + * + *
+     * Charset override - instead of table level charset.
+     * 
+ * + * string charset = 3; + * + * @return The charset. + */ + public java.lang.String getCharset() { + java.lang.Object ref = charset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + charset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Charset override - instead of table level charset.
+     * 
+ * + * string charset = 3; + * + * @return The bytes for charset. + */ + public com.google.protobuf.ByteString getCharsetBytes() { + java.lang.Object ref = charset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + charset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Charset override - instead of table level charset.
+     * 
+ * + * string charset = 3; + * + * @param value The charset to set. + * @return This builder for chaining. + */ + public Builder setCharset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + charset_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Charset override - instead of table level charset.
+     * 
+ * + * string charset = 3; + * + * @return This builder for chaining. + */ + public Builder clearCharset() { + charset_ = getDefaultInstance().getCharset(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Charset override - instead of table level charset.
+     * 
+ * + * string charset = 3; + * + * @param value The bytes for charset to set. + * @return This builder for chaining. + */ + public Builder setCharsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + charset_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object collation_ = ""; + /** + * + * + *
+     * Collation override - instead of table level collation.
+     * 
+ * + * string collation = 4; + * + * @return The collation. + */ + public java.lang.String getCollation() { + java.lang.Object ref = collation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Collation override - instead of table level collation.
+     * 
+ * + * string collation = 4; + * + * @return The bytes for collation. + */ + public com.google.protobuf.ByteString getCollationBytes() { + java.lang.Object ref = collation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Collation override - instead of table level collation.
+     * 
+ * + * string collation = 4; + * + * @param value The collation to set. + * @return This builder for chaining. + */ + public Builder setCollation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + collation_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Collation override - instead of table level collation.
+     * 
+ * + * string collation = 4; + * + * @return This builder for chaining. + */ + public Builder clearCollation() { + collation_ = getDefaultInstance().getCollation(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Collation override - instead of table level collation.
+     * 
+ * + * string collation = 4; + * + * @param value The bytes for collation to set. + * @return This builder for chaining. + */ + public Builder setCollationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collation_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private long length_; + /** + * + * + *
+     * Column length - e.g. varchar (50).
+     * 
+ * + * int64 length = 5; + * + * @return The length. + */ + @java.lang.Override + public long getLength() { + return length_; + } + /** + * + * + *
+     * Column length - e.g. varchar (50).
+     * 
+ * + * int64 length = 5; + * + * @param value The length to set. + * @return This builder for chaining. + */ + public Builder setLength(long value) { + + length_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Column length - e.g. varchar (50).
+     * 
+ * + * int64 length = 5; + * + * @return This builder for chaining. + */ + public Builder clearLength() { + bitField0_ = (bitField0_ & ~0x00000010); + length_ = 0L; + onChanged(); + return this; + } + + private int precision_; + /** + * + * + *
+     * Column precision - when relevant.
+     * 
+ * + * int32 precision = 6; + * + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + /** + * + * + *
+     * Column precision - when relevant.
+     * 
+ * + * int32 precision = 6; + * + * @param value The precision to set. + * @return This builder for chaining. + */ + public Builder setPrecision(int value) { + + precision_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Column precision - when relevant.
+     * 
+ * + * int32 precision = 6; + * + * @return This builder for chaining. + */ + public Builder clearPrecision() { + bitField0_ = (bitField0_ & ~0x00000020); + precision_ = 0; + onChanged(); + return this; + } + + private int scale_; + /** + * + * + *
+     * Column scale - when relevant.
+     * 
+ * + * int32 scale = 7; + * + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + /** + * + * + *
+     * Column scale - when relevant.
+     * 
+ * + * int32 scale = 7; + * + * @param value The scale to set. + * @return This builder for chaining. + */ + public Builder setScale(int value) { + + scale_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Column scale - when relevant.
+     * 
+ * + * int32 scale = 7; + * + * @return This builder for chaining. + */ + public Builder clearScale() { + bitField0_ = (bitField0_ & ~0x00000040); + scale_ = 0; + onChanged(); + return this; + } + + private int fractionalSecondsPrecision_; + /** + * + * + *
+     * Column fractional second precision - used for timestamp based datatypes.
+     * 
+ * + * int32 fractional_seconds_precision = 8; + * + * @return The fractionalSecondsPrecision. + */ + @java.lang.Override + public int getFractionalSecondsPrecision() { + return fractionalSecondsPrecision_; + } + /** + * + * + *
+     * Column fractional second precision - used for timestamp based datatypes.
+     * 
+ * + * int32 fractional_seconds_precision = 8; + * + * @param value The fractionalSecondsPrecision to set. + * @return This builder for chaining. + */ + public Builder setFractionalSecondsPrecision(int value) { + + fractionalSecondsPrecision_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Column fractional second precision - used for timestamp based datatypes.
+     * 
+ * + * int32 fractional_seconds_precision = 8; + * + * @return This builder for chaining. + */ + public Builder clearFractionalSecondsPrecision() { + bitField0_ = (bitField0_ & ~0x00000080); + fractionalSecondsPrecision_ = 0; + onChanged(); + return this; + } + + private boolean array_; + /** + * + * + *
+     * Is the column of array type.
+     * 
+ * + * bool array = 9; + * + * @return The array. + */ + @java.lang.Override + public boolean getArray() { + return array_; + } + /** + * + * + *
+     * Is the column of array type.
+     * 
+ * + * bool array = 9; + * + * @param value The array to set. + * @return This builder for chaining. + */ + public Builder setArray(boolean value) { + + array_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Is the column of array type.
+     * 
+ * + * bool array = 9; + * + * @return This builder for chaining. + */ + public Builder clearArray() { + bitField0_ = (bitField0_ & ~0x00000100); + array_ = false; + onChanged(); + return this; + } + + private int arrayLength_; + /** + * + * + *
+     * If the column is array, of which length.
+     * 
+ * + * int32 array_length = 10; + * + * @return The arrayLength. + */ + @java.lang.Override + public int getArrayLength() { + return arrayLength_; + } + /** + * + * + *
+     * If the column is array, of which length.
+     * 
+ * + * int32 array_length = 10; + * + * @param value The arrayLength to set. + * @return This builder for chaining. + */ + public Builder setArrayLength(int value) { + + arrayLength_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * If the column is array, of which length.
+     * 
+ * + * int32 array_length = 10; + * + * @return This builder for chaining. + */ + public Builder clearArrayLength() { + bitField0_ = (bitField0_ & ~0x00000200); + arrayLength_ = 0; + onChanged(); + return this; + } + + private boolean nullable_; + /** + * + * + *
+     * Is the column nullable.
+     * 
+ * + * bool nullable = 11; + * + * @return The nullable. + */ + @java.lang.Override + public boolean getNullable() { + return nullable_; + } + /** + * + * + *
+     * Is the column nullable.
+     * 
+ * + * bool nullable = 11; + * + * @param value The nullable to set. + * @return This builder for chaining. + */ + public Builder setNullable(boolean value) { + + nullable_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Is the column nullable.
+     * 
+ * + * bool nullable = 11; + * + * @return This builder for chaining. + */ + public Builder clearNullable() { + bitField0_ = (bitField0_ & ~0x00000400); + nullable_ = false; + onChanged(); + return this; + } + + private boolean autoGenerated_; + /** + * + * + *
+     * Is the column auto-generated/identity.
+     * 
+ * + * bool auto_generated = 12; + * + * @return The autoGenerated. + */ + @java.lang.Override + public boolean getAutoGenerated() { + return autoGenerated_; + } + /** + * + * + *
+     * Is the column auto-generated/identity.
+     * 
+ * + * bool auto_generated = 12; + * + * @param value The autoGenerated to set. + * @return This builder for chaining. + */ + public Builder setAutoGenerated(boolean value) { + + autoGenerated_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Is the column auto-generated/identity.
+     * 
+ * + * bool auto_generated = 12; + * + * @return This builder for chaining. + */ + public Builder clearAutoGenerated() { + bitField0_ = (bitField0_ & ~0x00000800); + autoGenerated_ = false; + onChanged(); + return this; + } + + private boolean udt_; + /** + * + * + *
+     * Is the column a UDT.
+     * 
+ * + * bool udt = 13; + * + * @return The udt. + */ + @java.lang.Override + public boolean getUdt() { + return udt_; + } + /** + * + * + *
+     * Is the column a UDT.
+     * 
+ * + * bool udt = 13; + * + * @param value The udt to set. + * @return This builder for chaining. + */ + public Builder setUdt(boolean value) { + + udt_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Is the column a UDT.
+     * 
+ * + * bool udt = 13; + * + * @return This builder for chaining. + */ + public Builder clearUdt() { + bitField0_ = (bitField0_ & ~0x00001000); + udt_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 14; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 14; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 14; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 14; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 14; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 14; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00002000); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 14; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 14; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + private com.google.protobuf.LazyStringList setValues_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSetValuesIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + setValues_ = new com.google.protobuf.LazyStringArrayList(setValues_); + bitField0_ |= 0x00004000; + } + } + /** + * + * + *
+     * Specifies the list of values allowed in the column.
+     * Only used for set data type.
+     * 
+ * + * repeated string set_values = 15; + * + * @return A list containing the setValues. + */ + public com.google.protobuf.ProtocolStringList getSetValuesList() { + return setValues_.getUnmodifiableView(); + } + /** + * + * + *
+     * Specifies the list of values allowed in the column.
+     * Only used for set data type.
+     * 
+ * + * repeated string set_values = 15; + * + * @return The count of setValues. + */ + public int getSetValuesCount() { + return setValues_.size(); + } + /** + * + * + *
+     * Specifies the list of values allowed in the column.
+     * Only used for set data type.
+     * 
+ * + * repeated string set_values = 15; + * + * @param index The index of the element to return. + * @return The setValues at the given index. + */ + public java.lang.String getSetValues(int index) { + return setValues_.get(index); + } + /** + * + * + *
+     * Specifies the list of values allowed in the column.
+     * Only used for set data type.
+     * 
+ * + * repeated string set_values = 15; + * + * @param index The index of the value to return. + * @return The bytes of the setValues at the given index. + */ + public com.google.protobuf.ByteString getSetValuesBytes(int index) { + return setValues_.getByteString(index); + } + /** + * + * + *
+     * Specifies the list of values allowed in the column.
+     * Only used for set data type.
+     * 
+ * + * repeated string set_values = 15; + * + * @param index The index to set the value at. + * @param value The setValues to set. + * @return This builder for chaining. + */ + public Builder setSetValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSetValuesIsMutable(); + setValues_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the list of values allowed in the column.
+     * Only used for set data type.
+     * 
+ * + * repeated string set_values = 15; + * + * @param value The setValues to add. + * @return This builder for chaining. + */ + public Builder addSetValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSetValuesIsMutable(); + setValues_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the list of values allowed in the column.
+     * Only used for set data type.
+     * 
+ * + * repeated string set_values = 15; + * + * @param values The setValues to add. + * @return This builder for chaining. + */ + public Builder addAllSetValues(java.lang.Iterable values) { + ensureSetValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, setValues_); + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the list of values allowed in the column.
+     * Only used for set data type.
+     * 
+ * + * repeated string set_values = 15; + * + * @return This builder for chaining. + */ + public Builder clearSetValues() { + setValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies the list of values allowed in the column.
+     * Only used for set data type.
+     * 
+ * + * repeated string set_values = 15; + * + * @param value The bytes of the setValues to add. + * @return This builder for chaining. + */ + public Builder addSetValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSetValuesIsMutable(); + setValues_.add(value); + onChanged(); + return this; + } + + private java.lang.Object comment_ = ""; + /** + * + * + *
+     * Comment associated with the column.
+     * 
+ * + * string comment = 16; + * + * @return The comment. + */ + public java.lang.String getComment() { + java.lang.Object ref = comment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Comment associated with the column.
+     * 
+ * + * string comment = 16; + * + * @return The bytes for comment. + */ + public com.google.protobuf.ByteString getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Comment associated with the column.
+     * 
+ * + * string comment = 16; + * + * @param value The comment to set. + * @return This builder for chaining. + */ + public Builder setComment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + comment_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Comment associated with the column.
+     * 
+ * + * string comment = 16; + * + * @return This builder for chaining. + */ + public Builder clearComment() { + comment_ = getDefaultInstance().getComment(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * + * + *
+     * Comment associated with the column.
+     * 
+ * + * string comment = 16; + * + * @param value The bytes for comment to set. + * @return This builder for chaining. + */ + public Builder setCommentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + comment_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private int ordinalPosition_; + /** + * + * + *
+     * Column order in the table.
+     * 
+ * + * int32 ordinal_position = 17; + * + * @return The ordinalPosition. + */ + @java.lang.Override + public int getOrdinalPosition() { + return ordinalPosition_; + } + /** + * + * + *
+     * Column order in the table.
+     * 
+ * + * int32 ordinal_position = 17; + * + * @param value The ordinalPosition to set. + * @return This builder for chaining. + */ + public Builder setOrdinalPosition(int value) { + + ordinalPosition_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Column order in the table.
+     * 
+ * + * int32 ordinal_position = 17; + * + * @return This builder for chaining. + */ + public Builder clearOrdinalPosition() { + bitField0_ = (bitField0_ & ~0x00010000); + ordinalPosition_ = 0; + onChanged(); + return this; + } + + private java.lang.Object defaultValue_ = ""; + /** + * + * + *
+     * Default value of the column.
+     * 
+ * + * string default_value = 18; + * + * @return The defaultValue. + */ + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Default value of the column.
+     * 
+ * + * string default_value = 18; + * + * @return The bytes for defaultValue. + */ + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Default value of the column.
+     * 
+ * + * string default_value = 18; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Default value of the column.
+     * 
+ * + * string default_value = 18; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + defaultValue_ = getDefaultInstance().getDefaultValue(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + /** + * + * + *
+     * Default value of the column.
+     * 
+ * + * string default_value = 18; + * + * @param value The bytes for defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultValue_ = value; + bitField0_ |= 0x00020000; + 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.clouddms.v1.ColumnEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ColumnEntity) + private static final com.google.cloud.clouddms.v1.ColumnEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ColumnEntity(); + } + + public static com.google.cloud.clouddms.v1.ColumnEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ColumnEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ColumnEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ColumnEntityOrBuilder.java new file mode 100644 index 000000000000..7ccd8a4833d2 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ColumnEntityOrBuilder.java @@ -0,0 +1,395 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface ColumnEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ColumnEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Column name.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Column name.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Column data type.
+   * 
+ * + * string data_type = 2; + * + * @return The dataType. + */ + java.lang.String getDataType(); + /** + * + * + *
+   * Column data type.
+   * 
+ * + * string data_type = 2; + * + * @return The bytes for dataType. + */ + com.google.protobuf.ByteString getDataTypeBytes(); + + /** + * + * + *
+   * Charset override - instead of table level charset.
+   * 
+ * + * string charset = 3; + * + * @return The charset. + */ + java.lang.String getCharset(); + /** + * + * + *
+   * Charset override - instead of table level charset.
+   * 
+ * + * string charset = 3; + * + * @return The bytes for charset. + */ + com.google.protobuf.ByteString getCharsetBytes(); + + /** + * + * + *
+   * Collation override - instead of table level collation.
+   * 
+ * + * string collation = 4; + * + * @return The collation. + */ + java.lang.String getCollation(); + /** + * + * + *
+   * Collation override - instead of table level collation.
+   * 
+ * + * string collation = 4; + * + * @return The bytes for collation. + */ + com.google.protobuf.ByteString getCollationBytes(); + + /** + * + * + *
+   * Column length - e.g. varchar (50).
+   * 
+ * + * int64 length = 5; + * + * @return The length. + */ + long getLength(); + + /** + * + * + *
+   * Column precision - when relevant.
+   * 
+ * + * int32 precision = 6; + * + * @return The precision. + */ + int getPrecision(); + + /** + * + * + *
+   * Column scale - when relevant.
+   * 
+ * + * int32 scale = 7; + * + * @return The scale. + */ + int getScale(); + + /** + * + * + *
+   * Column fractional second precision - used for timestamp based datatypes.
+   * 
+ * + * int32 fractional_seconds_precision = 8; + * + * @return The fractionalSecondsPrecision. + */ + int getFractionalSecondsPrecision(); + + /** + * + * + *
+   * Is the column of array type.
+   * 
+ * + * bool array = 9; + * + * @return The array. + */ + boolean getArray(); + + /** + * + * + *
+   * If the column is array, of which length.
+   * 
+ * + * int32 array_length = 10; + * + * @return The arrayLength. + */ + int getArrayLength(); + + /** + * + * + *
+   * Is the column nullable.
+   * 
+ * + * bool nullable = 11; + * + * @return The nullable. + */ + boolean getNullable(); + + /** + * + * + *
+   * Is the column auto-generated/identity.
+   * 
+ * + * bool auto_generated = 12; + * + * @return The autoGenerated. + */ + boolean getAutoGenerated(); + + /** + * + * + *
+   * Is the column a UDT.
+   * 
+ * + * bool udt = 13; + * + * @return The udt. + */ + boolean getUdt(); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 14; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 14; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 14; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); + + /** + * + * + *
+   * Specifies the list of values allowed in the column.
+   * Only used for set data type.
+   * 
+ * + * repeated string set_values = 15; + * + * @return A list containing the setValues. + */ + java.util.List getSetValuesList(); + /** + * + * + *
+   * Specifies the list of values allowed in the column.
+   * Only used for set data type.
+   * 
+ * + * repeated string set_values = 15; + * + * @return The count of setValues. + */ + int getSetValuesCount(); + /** + * + * + *
+   * Specifies the list of values allowed in the column.
+   * Only used for set data type.
+   * 
+ * + * repeated string set_values = 15; + * + * @param index The index of the element to return. + * @return The setValues at the given index. + */ + java.lang.String getSetValues(int index); + /** + * + * + *
+   * Specifies the list of values allowed in the column.
+   * Only used for set data type.
+   * 
+ * + * repeated string set_values = 15; + * + * @param index The index of the value to return. + * @return The bytes of the setValues at the given index. + */ + com.google.protobuf.ByteString getSetValuesBytes(int index); + + /** + * + * + *
+   * Comment associated with the column.
+   * 
+ * + * string comment = 16; + * + * @return The comment. + */ + java.lang.String getComment(); + /** + * + * + *
+   * Comment associated with the column.
+   * 
+ * + * string comment = 16; + * + * @return The bytes for comment. + */ + com.google.protobuf.ByteString getCommentBytes(); + + /** + * + * + *
+   * Column order in the table.
+   * 
+ * + * int32 ordinal_position = 17; + * + * @return The ordinalPosition. + */ + int getOrdinalPosition(); + + /** + * + * + *
+   * Default value of the column.
+   * 
+ * + * string default_value = 18; + * + * @return The defaultValue. + */ + java.lang.String getDefaultValue(); + /** + * + * + *
+   * Default value of the column.
+   * 
+ * + * string default_value = 18; + * + * @return The bytes for defaultValue. + */ + com.google.protobuf.ByteString getDefaultValueBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CommitConversionWorkspaceRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CommitConversionWorkspaceRequest.java new file mode 100644 index 000000000000..91a225bf2b62 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CommitConversionWorkspaceRequest.java @@ -0,0 +1,831 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'CommitConversionWorkspace' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.CommitConversionWorkspaceRequest} + */ +public final class CommitConversionWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.CommitConversionWorkspaceRequest) + CommitConversionWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommitConversionWorkspaceRequest.newBuilder() to construct. + private CommitConversionWorkspaceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommitConversionWorkspaceRequest() { + name_ = ""; + commitName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CommitConversionWorkspaceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the conversion workspace resource to commit.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the conversion workspace resource to commit.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitName_ = ""; + /** + * + * + *
+   * Optional. Optional name of the commit.
+   * 
+ * + * string commit_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitName. + */ + @java.lang.Override + public java.lang.String getCommitName() { + java.lang.Object ref = commitName_; + 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(); + commitName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Optional name of the commit.
+   * 
+ * + * string commit_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitNameBytes() { + java.lang.Object ref = commitName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitName_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commitName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commitName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest other = + (com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCommitName().equals(other.getCommitName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + COMMIT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCommitName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest 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.clouddms.v1.CommitConversionWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest 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.clouddms.v1.CommitConversionWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest 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.clouddms.v1.CommitConversionWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest 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.clouddms.v1.CommitConversionWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest 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.clouddms.v1.CommitConversionWorkspaceRequest 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; + } + /** + * + * + *
+   * Request message for 'CommitConversionWorkspace' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.CommitConversionWorkspaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.CommitConversionWorkspaceRequest) + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + commitName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CommitConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest build() { + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest buildPartial() { + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest result = + new com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commitName_ = commitName_; + } + } + + @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.clouddms.v1.CommitConversionWorkspaceRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest other) { + if (other + == com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCommitName().isEmpty()) { + commitName_ = other.commitName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + commitName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Name of the conversion workspace resource to commit.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to commit.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to commit.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to commit.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to commit.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object commitName_ = ""; + /** + * + * + *
+     * Optional. Optional name of the commit.
+     * 
+ * + * string commit_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitName. + */ + public java.lang.String getCommitName() { + java.lang.Object ref = commitName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Optional name of the commit.
+     * 
+ * + * string commit_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitName. + */ + public com.google.protobuf.ByteString getCommitNameBytes() { + java.lang.Object ref = commitName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Optional name of the commit.
+     * 
+ * + * string commit_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The commitName to set. + * @return This builder for chaining. + */ + public Builder setCommitName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional name of the commit.
+     * 
+ * + * string commit_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCommitName() { + commitName_ = getDefaultInstance().getCommitName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional name of the commit.
+     * 
+ * + * string commit_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for commitName to set. + * @return This builder for chaining. + */ + public Builder setCommitNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.CommitConversionWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.CommitConversionWorkspaceRequest) + private static final com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest(); + } + + public static com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitConversionWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CommitConversionWorkspaceRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CommitConversionWorkspaceRequestOrBuilder.java new file mode 100644 index 000000000000..890066590f91 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CommitConversionWorkspaceRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface CommitConversionWorkspaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.CommitConversionWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the conversion workspace resource to commit.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the conversion workspace resource to commit.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Optional name of the commit.
+   * 
+ * + * string commit_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitName. + */ + java.lang.String getCommitName(); + /** + * + * + *
+   * Optional. Optional name of the commit.
+   * 
+ * + * string commit_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitName. + */ + com.google.protobuf.ByteString getCommitNameBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java index 15c574d9711c..6bca9f15963d 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfile.java @@ -357,7 +357,9 @@ public enum ConnectionProfileCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { MYSQL(100), POSTGRESQL(101), + ORACLE(104), CLOUDSQL(102), + ALLOYDB(105), CONNECTIONPROFILE_NOT_SET(0); private final int value; @@ -380,8 +382,12 @@ public static ConnectionProfileCase forNumber(int value) { return MYSQL; case 101: return POSTGRESQL; + case 104: + return ORACLE; case 102: return CLOUDSQL; + case 105: + return ALLOYDB; case 0: return CONNECTIONPROFILE_NOT_SET; default: @@ -407,7 +413,7 @@ public ConnectionProfileCase getConnectionProfileCase() { * *
    * The name of this connection profile resource in the form of
-   * projects/{project}/locations/{location}/instances/{instance}.
+   * projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
    * 
* * string name = 1; @@ -431,7 +437,7 @@ public java.lang.String getName() { * *
    * The name of this connection profile resource in the form of
-   * projects/{project}/locations/{location}/instances/{instance}.
+   * projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
    * 
* * string name = 1; @@ -866,6 +872,57 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile getPostgresql() return com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.getDefaultInstance(); } + public static final int ORACLE_FIELD_NUMBER = 104; + /** + * + * + *
+   * An Oracle database connection profile.
+   * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + * + * @return Whether the oracle field is set. + */ + @java.lang.Override + public boolean hasOracle() { + return connectionProfileCase_ == 104; + } + /** + * + * + *
+   * An Oracle database connection profile.
+   * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + * + * @return The oracle. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.OracleConnectionProfile getOracle() { + if (connectionProfileCase_ == 104) { + return (com.google.cloud.clouddms.v1.OracleConnectionProfile) connectionProfile_; + } + return com.google.cloud.clouddms.v1.OracleConnectionProfile.getDefaultInstance(); + } + /** + * + * + *
+   * An Oracle database connection profile.
+   * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.OracleConnectionProfileOrBuilder getOracleOrBuilder() { + if (connectionProfileCase_ == 104) { + return (com.google.cloud.clouddms.v1.OracleConnectionProfile) connectionProfile_; + } + return com.google.cloud.clouddms.v1.OracleConnectionProfile.getDefaultInstance(); + } + public static final int CLOUDSQL_FIELD_NUMBER = 102; /** * @@ -917,6 +974,57 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getClouds return com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.getDefaultInstance(); } + public static final int ALLOYDB_FIELD_NUMBER = 105; + /** + * + * + *
+   * An AlloyDB cluster connection profile.
+   * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + * + * @return Whether the alloydb field is set. + */ + @java.lang.Override + public boolean hasAlloydb() { + return connectionProfileCase_ == 105; + } + /** + * + * + *
+   * An AlloyDB cluster connection profile.
+   * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + * + * @return The alloydb. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbConnectionProfile getAlloydb() { + if (connectionProfileCase_ == 105) { + return (com.google.cloud.clouddms.v1.AlloyDbConnectionProfile) connectionProfile_; + } + return com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.getDefaultInstance(); + } + /** + * + * + *
+   * An AlloyDB cluster connection profile.
+   * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbConnectionProfileOrBuilder getAlloydbOrBuilder() { + if (connectionProfileCase_ == 105) { + return (com.google.cloud.clouddms.v1.AlloyDbConnectionProfile) connectionProfile_; + } + return com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.getDefaultInstance(); + } + public static final int ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status error_; /** @@ -1050,6 +1158,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 102, (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); } + if (connectionProfileCase_ == 104) { + output.writeMessage( + 104, (com.google.cloud.clouddms.v1.OracleConnectionProfile) connectionProfile_); + } + if (connectionProfileCase_ == 105) { + output.writeMessage( + 105, (com.google.cloud.clouddms.v1.AlloyDbConnectionProfile) connectionProfile_); + } getUnknownFields().writeTo(output); } @@ -1108,6 +1224,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 102, (com.google.cloud.clouddms.v1.CloudSqlConnectionProfile) connectionProfile_); } + if (connectionProfileCase_ == 104) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 104, (com.google.cloud.clouddms.v1.OracleConnectionProfile) connectionProfile_); + } + if (connectionProfileCase_ == 105) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 105, (com.google.cloud.clouddms.v1.AlloyDbConnectionProfile) connectionProfile_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1149,9 +1275,15 @@ public boolean equals(final java.lang.Object obj) { case 101: if (!getPostgresql().equals(other.getPostgresql())) return false; break; + case 104: + if (!getOracle().equals(other.getOracle())) return false; + break; case 102: if (!getCloudsql().equals(other.getCloudsql())) return false; break; + case 105: + if (!getAlloydb().equals(other.getAlloydb())) return false; + break; case 0: default: } @@ -1199,10 +1331,18 @@ public int hashCode() { hash = (37 * hash) + POSTGRESQL_FIELD_NUMBER; hash = (53 * hash) + getPostgresql().hashCode(); break; + case 104: + hash = (37 * hash) + ORACLE_FIELD_NUMBER; + hash = (53 * hash) + getOracle().hashCode(); + break; case 102: hash = (37 * hash) + CLOUDSQL_FIELD_NUMBER; hash = (53 * hash) + getCloudsql().hashCode(); break; + case 105: + hash = (37 * hash) + ALLOYDB_FIELD_NUMBER; + hash = (53 * hash) + getAlloydb().hashCode(); + break; case 0: default: } @@ -1385,9 +1525,15 @@ public Builder clear() { if (postgresqlBuilder_ != null) { postgresqlBuilder_.clear(); } + if (oracleBuilder_ != null) { + oracleBuilder_.clear(); + } if (cloudsqlBuilder_ != null) { cloudsqlBuilder_.clear(); } + if (alloydbBuilder_ != null) { + alloydbBuilder_.clear(); + } error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -1452,10 +1598,10 @@ private void buildPartial0(com.google.cloud.clouddms.v1.ConnectionProfile result if (((from_bitField0_ & 0x00000020) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.provider_ = provider_; } } @@ -1469,9 +1615,15 @@ private void buildPartialOneofs(com.google.cloud.clouddms.v1.ConnectionProfile r if (connectionProfileCase_ == 101 && postgresqlBuilder_ != null) { result.connectionProfile_ = postgresqlBuilder_.build(); } + if (connectionProfileCase_ == 104 && oracleBuilder_ != null) { + result.connectionProfile_ = oracleBuilder_.build(); + } if (connectionProfileCase_ == 102 && cloudsqlBuilder_ != null) { result.connectionProfile_ = cloudsqlBuilder_.build(); } + if (connectionProfileCase_ == 105 && alloydbBuilder_ != null) { + result.connectionProfile_ = alloydbBuilder_.build(); + } } @java.lang.Override @@ -1557,11 +1709,21 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.ConnectionProfile other) { mergePostgresql(other.getPostgresql()); break; } + case ORACLE: + { + mergeOracle(other.getOracle()); + break; + } case CLOUDSQL: { mergeCloudsql(other.getCloudsql()); break; } + case ALLOYDB: + { + mergeAlloydb(other.getAlloydb()); + break; + } case CONNECTIONPROFILE_NOT_SET: { break; @@ -1638,13 +1800,13 @@ public Builder mergeFrom( case 58: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 58 case 64: { provider_ = input.readEnum(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; break; } // case 64 case 802: @@ -1665,6 +1827,18 @@ public Builder mergeFrom( connectionProfileCase_ = 102; break; } // case 818 + case 834: + { + input.readMessage(getOracleFieldBuilder().getBuilder(), extensionRegistry); + connectionProfileCase_ = 104; + break; + } // case 834 + case 842: + { + input.readMessage(getAlloydbFieldBuilder().getBuilder(), extensionRegistry); + connectionProfileCase_ = 105; + break; + } // case 842 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1704,7 +1878,7 @@ public Builder clearConnectionProfile() { * *
      * The name of this connection profile resource in the form of
-     * projects/{project}/locations/{location}/instances/{instance}.
+     * projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
      * 
* * string name = 1; @@ -1727,7 +1901,7 @@ public java.lang.String getName() { * *
      * The name of this connection profile resource in the form of
-     * projects/{project}/locations/{location}/instances/{instance}.
+     * projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
      * 
* * string name = 1; @@ -1750,7 +1924,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The name of this connection profile resource in the form of
-     * projects/{project}/locations/{location}/instances/{instance}.
+     * projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
      * 
* * string name = 1; @@ -1772,7 +1946,7 @@ public Builder setName(java.lang.String value) { * *
      * The name of this connection profile resource in the form of
-     * projects/{project}/locations/{location}/instances/{instance}.
+     * projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
      * 
* * string name = 1; @@ -1790,7 +1964,7 @@ public Builder clearName() { * *
      * The name of this connection profile resource in the form of
-     * projects/{project}/locations/{location}/instances/{instance}.
+     * projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
      * 
* * string name = 1; @@ -3052,6 +3226,217 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder getPostg return postgresqlBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.OracleConnectionProfile, + com.google.cloud.clouddms.v1.OracleConnectionProfile.Builder, + com.google.cloud.clouddms.v1.OracleConnectionProfileOrBuilder> + oracleBuilder_; + /** + * + * + *
+     * An Oracle database connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + * + * @return Whether the oracle field is set. + */ + @java.lang.Override + public boolean hasOracle() { + return connectionProfileCase_ == 104; + } + /** + * + * + *
+     * An Oracle database connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + * + * @return The oracle. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.OracleConnectionProfile getOracle() { + if (oracleBuilder_ == null) { + if (connectionProfileCase_ == 104) { + return (com.google.cloud.clouddms.v1.OracleConnectionProfile) connectionProfile_; + } + return com.google.cloud.clouddms.v1.OracleConnectionProfile.getDefaultInstance(); + } else { + if (connectionProfileCase_ == 104) { + return oracleBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.OracleConnectionProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * An Oracle database connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + */ + public Builder setOracle(com.google.cloud.clouddms.v1.OracleConnectionProfile value) { + if (oracleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionProfile_ = value; + onChanged(); + } else { + oracleBuilder_.setMessage(value); + } + connectionProfileCase_ = 104; + return this; + } + /** + * + * + *
+     * An Oracle database connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + */ + public Builder setOracle( + com.google.cloud.clouddms.v1.OracleConnectionProfile.Builder builderForValue) { + if (oracleBuilder_ == null) { + connectionProfile_ = builderForValue.build(); + onChanged(); + } else { + oracleBuilder_.setMessage(builderForValue.build()); + } + connectionProfileCase_ = 104; + return this; + } + /** + * + * + *
+     * An Oracle database connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + */ + public Builder mergeOracle(com.google.cloud.clouddms.v1.OracleConnectionProfile value) { + if (oracleBuilder_ == null) { + if (connectionProfileCase_ == 104 + && connectionProfile_ + != com.google.cloud.clouddms.v1.OracleConnectionProfile.getDefaultInstance()) { + connectionProfile_ = + com.google.cloud.clouddms.v1.OracleConnectionProfile.newBuilder( + (com.google.cloud.clouddms.v1.OracleConnectionProfile) connectionProfile_) + .mergeFrom(value) + .buildPartial(); + } else { + connectionProfile_ = value; + } + onChanged(); + } else { + if (connectionProfileCase_ == 104) { + oracleBuilder_.mergeFrom(value); + } else { + oracleBuilder_.setMessage(value); + } + } + connectionProfileCase_ = 104; + return this; + } + /** + * + * + *
+     * An Oracle database connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + */ + public Builder clearOracle() { + if (oracleBuilder_ == null) { + if (connectionProfileCase_ == 104) { + connectionProfileCase_ = 0; + connectionProfile_ = null; + onChanged(); + } + } else { + if (connectionProfileCase_ == 104) { + connectionProfileCase_ = 0; + connectionProfile_ = null; + } + oracleBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * An Oracle database connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + */ + public com.google.cloud.clouddms.v1.OracleConnectionProfile.Builder getOracleBuilder() { + return getOracleFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An Oracle database connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.OracleConnectionProfileOrBuilder getOracleOrBuilder() { + if ((connectionProfileCase_ == 104) && (oracleBuilder_ != null)) { + return oracleBuilder_.getMessageOrBuilder(); + } else { + if (connectionProfileCase_ == 104) { + return (com.google.cloud.clouddms.v1.OracleConnectionProfile) connectionProfile_; + } + return com.google.cloud.clouddms.v1.OracleConnectionProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * An Oracle database connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.OracleConnectionProfile, + com.google.cloud.clouddms.v1.OracleConnectionProfile.Builder, + com.google.cloud.clouddms.v1.OracleConnectionProfileOrBuilder> + getOracleFieldBuilder() { + if (oracleBuilder_ == null) { + if (!(connectionProfileCase_ == 104)) { + connectionProfile_ = + com.google.cloud.clouddms.v1.OracleConnectionProfile.getDefaultInstance(); + } + oracleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.OracleConnectionProfile, + com.google.cloud.clouddms.v1.OracleConnectionProfile.Builder, + com.google.cloud.clouddms.v1.OracleConnectionProfileOrBuilder>( + (com.google.cloud.clouddms.v1.OracleConnectionProfile) connectionProfile_, + getParentForChildren(), + isClean()); + connectionProfile_ = null; + } + connectionProfileCase_ = 104; + onChanged(); + return oracleBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.clouddms.v1.CloudSqlConnectionProfile, com.google.cloud.clouddms.v1.CloudSqlConnectionProfile.Builder, @@ -3263,6 +3648,217 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getClouds return cloudsqlBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile, + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.Builder, + com.google.cloud.clouddms.v1.AlloyDbConnectionProfileOrBuilder> + alloydbBuilder_; + /** + * + * + *
+     * An AlloyDB cluster connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + * + * @return Whether the alloydb field is set. + */ + @java.lang.Override + public boolean hasAlloydb() { + return connectionProfileCase_ == 105; + } + /** + * + * + *
+     * An AlloyDB cluster connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + * + * @return The alloydb. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbConnectionProfile getAlloydb() { + if (alloydbBuilder_ == null) { + if (connectionProfileCase_ == 105) { + return (com.google.cloud.clouddms.v1.AlloyDbConnectionProfile) connectionProfile_; + } + return com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.getDefaultInstance(); + } else { + if (connectionProfileCase_ == 105) { + return alloydbBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * An AlloyDB cluster connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + */ + public Builder setAlloydb(com.google.cloud.clouddms.v1.AlloyDbConnectionProfile value) { + if (alloydbBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionProfile_ = value; + onChanged(); + } else { + alloydbBuilder_.setMessage(value); + } + connectionProfileCase_ = 105; + return this; + } + /** + * + * + *
+     * An AlloyDB cluster connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + */ + public Builder setAlloydb( + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.Builder builderForValue) { + if (alloydbBuilder_ == null) { + connectionProfile_ = builderForValue.build(); + onChanged(); + } else { + alloydbBuilder_.setMessage(builderForValue.build()); + } + connectionProfileCase_ = 105; + return this; + } + /** + * + * + *
+     * An AlloyDB cluster connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + */ + public Builder mergeAlloydb(com.google.cloud.clouddms.v1.AlloyDbConnectionProfile value) { + if (alloydbBuilder_ == null) { + if (connectionProfileCase_ == 105 + && connectionProfile_ + != com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.getDefaultInstance()) { + connectionProfile_ = + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.newBuilder( + (com.google.cloud.clouddms.v1.AlloyDbConnectionProfile) connectionProfile_) + .mergeFrom(value) + .buildPartial(); + } else { + connectionProfile_ = value; + } + onChanged(); + } else { + if (connectionProfileCase_ == 105) { + alloydbBuilder_.mergeFrom(value); + } else { + alloydbBuilder_.setMessage(value); + } + } + connectionProfileCase_ = 105; + return this; + } + /** + * + * + *
+     * An AlloyDB cluster connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + */ + public Builder clearAlloydb() { + if (alloydbBuilder_ == null) { + if (connectionProfileCase_ == 105) { + connectionProfileCase_ = 0; + connectionProfile_ = null; + onChanged(); + } + } else { + if (connectionProfileCase_ == 105) { + connectionProfileCase_ = 0; + connectionProfile_ = null; + } + alloydbBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * An AlloyDB cluster connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + */ + public com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.Builder getAlloydbBuilder() { + return getAlloydbFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An AlloyDB cluster connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.AlloyDbConnectionProfileOrBuilder getAlloydbOrBuilder() { + if ((connectionProfileCase_ == 105) && (alloydbBuilder_ != null)) { + return alloydbBuilder_.getMessageOrBuilder(); + } else { + if (connectionProfileCase_ == 105) { + return (com.google.cloud.clouddms.v1.AlloyDbConnectionProfile) connectionProfile_; + } + return com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * An AlloyDB cluster connection profile.
+     * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile, + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.Builder, + com.google.cloud.clouddms.v1.AlloyDbConnectionProfileOrBuilder> + getAlloydbFieldBuilder() { + if (alloydbBuilder_ == null) { + if (!(connectionProfileCase_ == 105)) { + connectionProfile_ = + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.getDefaultInstance(); + } + alloydbBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile, + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile.Builder, + com.google.cloud.clouddms.v1.AlloyDbConnectionProfileOrBuilder>( + (com.google.cloud.clouddms.v1.AlloyDbConnectionProfile) connectionProfile_, + getParentForChildren(), + isClean()); + connectionProfile_ = null; + } + connectionProfileCase_ = 105; + onChanged(); + return alloydbBuilder_; + } + private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> @@ -3279,7 +3875,7 @@ public com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getClouds * @return Whether the error field is set. */ public boolean hasError() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -3317,7 +3913,7 @@ public Builder setError(com.google.rpc.Status value) { } else { errorBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3336,7 +3932,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { } else { errorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3351,7 +3947,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000800) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); @@ -3361,7 +3957,7 @@ public Builder mergeError(com.google.rpc.Status value) { } else { errorBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3375,7 +3971,7 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -3394,7 +3990,7 @@ public Builder clearError() { * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -3467,7 +4063,7 @@ public int getProviderValue() { */ public Builder setProviderValue(int value) { provider_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3504,7 +4100,7 @@ public Builder setProvider(com.google.cloud.clouddms.v1.DatabaseProvider value) if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; provider_ = value.getNumber(); onChanged(); return this; @@ -3521,7 +4117,7 @@ public Builder setProvider(com.google.cloud.clouddms.v1.DatabaseProvider value) * @return This builder for chaining. */ public Builder clearProvider() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); provider_ = 0; onChanged(); return this; diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java index 0c1ed21057f1..3004cd0bb550 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileOrBuilder.java @@ -28,7 +28,7 @@ public interface ConnectionProfileOrBuilder * *
    * The name of this connection profile resource in the form of
-   * projects/{project}/locations/{location}/instances/{instance}.
+   * projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
    * 
* * string name = 1; @@ -41,7 +41,7 @@ public interface ConnectionProfileOrBuilder * *
    * The name of this connection profile resource in the form of
-   * projects/{project}/locations/{location}/instances/{instance}.
+   * projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
    * 
* * string name = 1; @@ -331,6 +331,41 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.clouddms.v1.PostgreSqlConnectionProfileOrBuilder getPostgresqlOrBuilder(); + /** + * + * + *
+   * An Oracle database connection profile.
+   * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + * + * @return Whether the oracle field is set. + */ + boolean hasOracle(); + /** + * + * + *
+   * An Oracle database connection profile.
+   * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + * + * @return The oracle. + */ + com.google.cloud.clouddms.v1.OracleConnectionProfile getOracle(); + /** + * + * + *
+   * An Oracle database connection profile.
+   * 
+ * + * .google.cloud.clouddms.v1.OracleConnectionProfile oracle = 104; + */ + com.google.cloud.clouddms.v1.OracleConnectionProfileOrBuilder getOracleOrBuilder(); + /** * * @@ -366,6 +401,41 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.clouddms.v1.CloudSqlConnectionProfileOrBuilder getCloudsqlOrBuilder(); + /** + * + * + *
+   * An AlloyDB cluster connection profile.
+   * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + * + * @return Whether the alloydb field is set. + */ + boolean hasAlloydb(); + /** + * + * + *
+   * An AlloyDB cluster connection profile.
+   * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + * + * @return The alloydb. + */ + com.google.cloud.clouddms.v1.AlloyDbConnectionProfile getAlloydb(); + /** + * + * + *
+   * An AlloyDB cluster connection profile.
+   * 
+ * + * .google.cloud.clouddms.v1.AlloyDbConnectionProfile alloydb = 105; + */ + com.google.cloud.clouddms.v1.AlloyDbConnectionProfileOrBuilder getAlloydbOrBuilder(); + /** * * diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConstraintEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConstraintEntity.java new file mode 100644 index 000000000000..77646d7726e9 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConstraintEntity.java @@ -0,0 +1,2070 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Constraint is not used as an independent entity, it is retrieved
+ * as part of another entity such as Table or View.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ConstraintEntity} + */ +public final class ConstraintEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ConstraintEntity) + ConstraintEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConstraintEntity.newBuilder() to construct. + private ConstraintEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConstraintEntity() { + name_ = ""; + type_ = ""; + tableColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + referenceColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + referenceTable_ = ""; + tableName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConstraintEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConstraintEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConstraintEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ConstraintEntity.class, + com.google.cloud.clouddms.v1.ConstraintEntity.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the table constraint.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the table constraint.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + /** + * + * + *
+   * Type of constraint, for example unique, primary key, foreign key (currently
+   * only primary key is supported).
+   * 
+ * + * string type = 2; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + * + * + *
+   * Type of constraint, for example unique, primary key, foreign key (currently
+   * only primary key is supported).
+   * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_COLUMNS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList tableColumns_; + /** + * + * + *
+   * Table columns used as part of the Constraint, for example primary key
+   * constraint should list the columns which constitutes the key.
+   * 
+ * + * repeated string table_columns = 3; + * + * @return A list containing the tableColumns. + */ + public com.google.protobuf.ProtocolStringList getTableColumnsList() { + return tableColumns_; + } + /** + * + * + *
+   * Table columns used as part of the Constraint, for example primary key
+   * constraint should list the columns which constitutes the key.
+   * 
+ * + * repeated string table_columns = 3; + * + * @return The count of tableColumns. + */ + public int getTableColumnsCount() { + return tableColumns_.size(); + } + /** + * + * + *
+   * Table columns used as part of the Constraint, for example primary key
+   * constraint should list the columns which constitutes the key.
+   * 
+ * + * repeated string table_columns = 3; + * + * @param index The index of the element to return. + * @return The tableColumns at the given index. + */ + public java.lang.String getTableColumns(int index) { + return tableColumns_.get(index); + } + /** + * + * + *
+   * Table columns used as part of the Constraint, for example primary key
+   * constraint should list the columns which constitutes the key.
+   * 
+ * + * repeated string table_columns = 3; + * + * @param index The index of the value to return. + * @return The bytes of the tableColumns at the given index. + */ + public com.google.protobuf.ByteString getTableColumnsBytes(int index) { + return tableColumns_.getByteString(index); + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 4; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 4; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 4; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 4; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + public static final int REFERENCE_COLUMNS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList referenceColumns_; + /** + * + * + *
+   * Reference columns which may be associated with the constraint. For example,
+   * if the constraint is a FOREIGN_KEY, this represents the list of full names
+   * of referenced columns by the foreign key.
+   * 
+ * + * repeated string reference_columns = 5; + * + * @return A list containing the referenceColumns. + */ + public com.google.protobuf.ProtocolStringList getReferenceColumnsList() { + return referenceColumns_; + } + /** + * + * + *
+   * Reference columns which may be associated with the constraint. For example,
+   * if the constraint is a FOREIGN_KEY, this represents the list of full names
+   * of referenced columns by the foreign key.
+   * 
+ * + * repeated string reference_columns = 5; + * + * @return The count of referenceColumns. + */ + public int getReferenceColumnsCount() { + return referenceColumns_.size(); + } + /** + * + * + *
+   * Reference columns which may be associated with the constraint. For example,
+   * if the constraint is a FOREIGN_KEY, this represents the list of full names
+   * of referenced columns by the foreign key.
+   * 
+ * + * repeated string reference_columns = 5; + * + * @param index The index of the element to return. + * @return The referenceColumns at the given index. + */ + public java.lang.String getReferenceColumns(int index) { + return referenceColumns_.get(index); + } + /** + * + * + *
+   * Reference columns which may be associated with the constraint. For example,
+   * if the constraint is a FOREIGN_KEY, this represents the list of full names
+   * of referenced columns by the foreign key.
+   * 
+ * + * repeated string reference_columns = 5; + * + * @param index The index of the value to return. + * @return The bytes of the referenceColumns at the given index. + */ + public com.google.protobuf.ByteString getReferenceColumnsBytes(int index) { + return referenceColumns_.getByteString(index); + } + + public static final int REFERENCE_TABLE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object referenceTable_ = ""; + /** + * + * + *
+   * Reference table which may be associated with the constraint. For example,
+   * if the constraint is a FOREIGN_KEY, this represents the list of full name
+   * of the referenced table by the foreign key.
+   * 
+ * + * string reference_table = 6; + * + * @return The referenceTable. + */ + @java.lang.Override + public java.lang.String getReferenceTable() { + java.lang.Object ref = referenceTable_; + 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(); + referenceTable_ = s; + return s; + } + } + /** + * + * + *
+   * Reference table which may be associated with the constraint. For example,
+   * if the constraint is a FOREIGN_KEY, this represents the list of full name
+   * of the referenced table by the foreign key.
+   * 
+ * + * string reference_table = 6; + * + * @return The bytes for referenceTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReferenceTableBytes() { + java.lang.Object ref = referenceTable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + referenceTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object tableName_ = ""; + /** + * + * + *
+   * Table which is associated with the constraint. In case the constraint
+   * is defined on a table, this field is left empty as this information is
+   * stored in parent_name. However, if constraint is defined on a view, this
+   * field stores the table name on which the view is defined.
+   * 
+ * + * string table_name = 7; + * + * @return The tableName. + */ + @java.lang.Override + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + 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(); + tableName_ = s; + return s; + } + } + /** + * + * + *
+   * Table which is associated with the constraint. In case the constraint
+   * is defined on a table, this field is left empty as this information is
+   * stored in parent_name. However, if constraint is defined on a view, this
+   * field stores the table name on which the view is defined.
+   * 
+ * + * string table_name = 7; + * + * @return The bytes for tableName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tableName_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + for (int i = 0; i < tableColumns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableColumns_.getRaw(i)); + } + if (customFeatures_ != null) { + output.writeMessage(4, getCustomFeatures()); + } + for (int i = 0; i < referenceColumns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, referenceColumns_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceTable_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, referenceTable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tableName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + { + int dataSize = 0; + for (int i = 0; i < tableColumns_.size(); i++) { + dataSize += computeStringSizeNoTag(tableColumns_.getRaw(i)); + } + size += dataSize; + size += 1 * getTableColumnsList().size(); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCustomFeatures()); + } + { + int dataSize = 0; + for (int i = 0; i < referenceColumns_.size(); i++) { + dataSize += computeStringSizeNoTag(referenceColumns_.getRaw(i)); + } + size += dataSize; + size += 1 * getReferenceColumnsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceTable_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, referenceTable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tableName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ConstraintEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ConstraintEntity other = + (com.google.cloud.clouddms.v1.ConstraintEntity) obj; + + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; + if (!getTableColumnsList().equals(other.getTableColumnsList())) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getReferenceColumnsList().equals(other.getReferenceColumnsList())) return false; + if (!getReferenceTable().equals(other.getReferenceTable())) return false; + if (!getTableName().equals(other.getTableName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (getTableColumnsCount() > 0) { + hash = (37 * hash) + TABLE_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getTableColumnsList().hashCode(); + } + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + if (getReferenceColumnsCount() > 0) { + hash = (37 * hash) + REFERENCE_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getReferenceColumnsList().hashCode(); + } + hash = (37 * hash) + REFERENCE_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getReferenceTable().hashCode(); + hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTableName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ConstraintEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConstraintEntity 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.clouddms.v1.ConstraintEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConstraintEntity 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.clouddms.v1.ConstraintEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConstraintEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ConstraintEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConstraintEntity 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.clouddms.v1.ConstraintEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConstraintEntity 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.clouddms.v1.ConstraintEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConstraintEntity 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.clouddms.v1.ConstraintEntity 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; + } + /** + * + * + *
+   * Constraint is not used as an independent entity, it is retrieved
+   * as part of another entity such as Table or View.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ConstraintEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ConstraintEntity) + com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConstraintEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConstraintEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ConstraintEntity.class, + com.google.cloud.clouddms.v1.ConstraintEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ConstraintEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = ""; + tableColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + referenceColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + referenceTable_ = ""; + tableName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConstraintEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConstraintEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ConstraintEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConstraintEntity build() { + com.google.cloud.clouddms.v1.ConstraintEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConstraintEntity buildPartial() { + com.google.cloud.clouddms.v1.ConstraintEntity result = + new com.google.cloud.clouddms.v1.ConstraintEntity(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.clouddms.v1.ConstraintEntity result) { + if (((bitField0_ & 0x00000004) != 0)) { + tableColumns_ = tableColumns_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tableColumns_ = tableColumns_; + if (((bitField0_ & 0x00000010) != 0)) { + referenceColumns_ = referenceColumns_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.referenceColumns_ = referenceColumns_; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ConstraintEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.referenceTable_ = referenceTable_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.tableName_ = tableName_; + } + } + + @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.clouddms.v1.ConstraintEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.ConstraintEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ConstraintEntity other) { + if (other == com.google.cloud.clouddms.v1.ConstraintEntity.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.tableColumns_.isEmpty()) { + if (tableColumns_.isEmpty()) { + tableColumns_ = other.tableColumns_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTableColumnsIsMutable(); + tableColumns_.addAll(other.tableColumns_); + } + onChanged(); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + if (!other.referenceColumns_.isEmpty()) { + if (referenceColumns_.isEmpty()) { + referenceColumns_ = other.referenceColumns_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureReferenceColumnsIsMutable(); + referenceColumns_.addAll(other.referenceColumns_); + } + onChanged(); + } + if (!other.getReferenceTable().isEmpty()) { + referenceTable_ = other.referenceTable_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getTableName().isEmpty()) { + tableName_ = other.tableName_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTableColumnsIsMutable(); + tableColumns_.add(s); + break; + } // case 26 + case 34: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureReferenceColumnsIsMutable(); + referenceColumns_.add(s); + break; + } // case 42 + case 50: + { + referenceTable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + tableName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the table constraint.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the table constraint.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the table constraint.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the table constraint.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the table constraint.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+     * Type of constraint, for example unique, primary key, foreign key (currently
+     * only primary key is supported).
+     * 
+ * + * string type = 2; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Type of constraint, for example unique, primary key, foreign key (currently
+     * only primary key is supported).
+     * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Type of constraint, for example unique, primary key, foreign key (currently
+     * only primary key is supported).
+     * 
+ * + * string type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of constraint, for example unique, primary key, foreign key (currently
+     * only primary key is supported).
+     * 
+ * + * string type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of constraint, for example unique, primary key, foreign key (currently
+     * only primary key is supported).
+     * 
+ * + * string type = 2; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tableColumns_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTableColumnsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + tableColumns_ = new com.google.protobuf.LazyStringArrayList(tableColumns_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Table columns used as part of the Constraint, for example primary key
+     * constraint should list the columns which constitutes the key.
+     * 
+ * + * repeated string table_columns = 3; + * + * @return A list containing the tableColumns. + */ + public com.google.protobuf.ProtocolStringList getTableColumnsList() { + return tableColumns_.getUnmodifiableView(); + } + /** + * + * + *
+     * Table columns used as part of the Constraint, for example primary key
+     * constraint should list the columns which constitutes the key.
+     * 
+ * + * repeated string table_columns = 3; + * + * @return The count of tableColumns. + */ + public int getTableColumnsCount() { + return tableColumns_.size(); + } + /** + * + * + *
+     * Table columns used as part of the Constraint, for example primary key
+     * constraint should list the columns which constitutes the key.
+     * 
+ * + * repeated string table_columns = 3; + * + * @param index The index of the element to return. + * @return The tableColumns at the given index. + */ + public java.lang.String getTableColumns(int index) { + return tableColumns_.get(index); + } + /** + * + * + *
+     * Table columns used as part of the Constraint, for example primary key
+     * constraint should list the columns which constitutes the key.
+     * 
+ * + * repeated string table_columns = 3; + * + * @param index The index of the value to return. + * @return The bytes of the tableColumns at the given index. + */ + public com.google.protobuf.ByteString getTableColumnsBytes(int index) { + return tableColumns_.getByteString(index); + } + /** + * + * + *
+     * Table columns used as part of the Constraint, for example primary key
+     * constraint should list the columns which constitutes the key.
+     * 
+ * + * repeated string table_columns = 3; + * + * @param index The index to set the value at. + * @param value The tableColumns to set. + * @return This builder for chaining. + */ + public Builder setTableColumns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableColumnsIsMutable(); + tableColumns_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Table columns used as part of the Constraint, for example primary key
+     * constraint should list the columns which constitutes the key.
+     * 
+ * + * repeated string table_columns = 3; + * + * @param value The tableColumns to add. + * @return This builder for chaining. + */ + public Builder addTableColumns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableColumnsIsMutable(); + tableColumns_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Table columns used as part of the Constraint, for example primary key
+     * constraint should list the columns which constitutes the key.
+     * 
+ * + * repeated string table_columns = 3; + * + * @param values The tableColumns to add. + * @return This builder for chaining. + */ + public Builder addAllTableColumns(java.lang.Iterable values) { + ensureTableColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tableColumns_); + onChanged(); + return this; + } + /** + * + * + *
+     * Table columns used as part of the Constraint, for example primary key
+     * constraint should list the columns which constitutes the key.
+     * 
+ * + * repeated string table_columns = 3; + * + * @return This builder for chaining. + */ + public Builder clearTableColumns() { + tableColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Table columns used as part of the Constraint, for example primary key
+     * constraint should list the columns which constitutes the key.
+     * 
+ * + * repeated string table_columns = 3; + * + * @param value The bytes of the tableColumns to add. + * @return This builder for chaining. + */ + public Builder addTableColumnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTableColumnsIsMutable(); + tableColumns_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 4; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 4; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 4; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 4; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 4; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 4; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000008); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 4; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 4; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + private com.google.protobuf.LazyStringList referenceColumns_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureReferenceColumnsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + referenceColumns_ = new com.google.protobuf.LazyStringArrayList(referenceColumns_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+     * Reference columns which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full names
+     * of referenced columns by the foreign key.
+     * 
+ * + * repeated string reference_columns = 5; + * + * @return A list containing the referenceColumns. + */ + public com.google.protobuf.ProtocolStringList getReferenceColumnsList() { + return referenceColumns_.getUnmodifiableView(); + } + /** + * + * + *
+     * Reference columns which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full names
+     * of referenced columns by the foreign key.
+     * 
+ * + * repeated string reference_columns = 5; + * + * @return The count of referenceColumns. + */ + public int getReferenceColumnsCount() { + return referenceColumns_.size(); + } + /** + * + * + *
+     * Reference columns which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full names
+     * of referenced columns by the foreign key.
+     * 
+ * + * repeated string reference_columns = 5; + * + * @param index The index of the element to return. + * @return The referenceColumns at the given index. + */ + public java.lang.String getReferenceColumns(int index) { + return referenceColumns_.get(index); + } + /** + * + * + *
+     * Reference columns which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full names
+     * of referenced columns by the foreign key.
+     * 
+ * + * repeated string reference_columns = 5; + * + * @param index The index of the value to return. + * @return The bytes of the referenceColumns at the given index. + */ + public com.google.protobuf.ByteString getReferenceColumnsBytes(int index) { + return referenceColumns_.getByteString(index); + } + /** + * + * + *
+     * Reference columns which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full names
+     * of referenced columns by the foreign key.
+     * 
+ * + * repeated string reference_columns = 5; + * + * @param index The index to set the value at. + * @param value The referenceColumns to set. + * @return This builder for chaining. + */ + public Builder setReferenceColumns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferenceColumnsIsMutable(); + referenceColumns_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Reference columns which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full names
+     * of referenced columns by the foreign key.
+     * 
+ * + * repeated string reference_columns = 5; + * + * @param value The referenceColumns to add. + * @return This builder for chaining. + */ + public Builder addReferenceColumns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferenceColumnsIsMutable(); + referenceColumns_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Reference columns which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full names
+     * of referenced columns by the foreign key.
+     * 
+ * + * repeated string reference_columns = 5; + * + * @param values The referenceColumns to add. + * @return This builder for chaining. + */ + public Builder addAllReferenceColumns(java.lang.Iterable values) { + ensureReferenceColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceColumns_); + onChanged(); + return this; + } + /** + * + * + *
+     * Reference columns which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full names
+     * of referenced columns by the foreign key.
+     * 
+ * + * repeated string reference_columns = 5; + * + * @return This builder for chaining. + */ + public Builder clearReferenceColumns() { + referenceColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Reference columns which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full names
+     * of referenced columns by the foreign key.
+     * 
+ * + * repeated string reference_columns = 5; + * + * @param value The bytes of the referenceColumns to add. + * @return This builder for chaining. + */ + public Builder addReferenceColumnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureReferenceColumnsIsMutable(); + referenceColumns_.add(value); + onChanged(); + return this; + } + + private java.lang.Object referenceTable_ = ""; + /** + * + * + *
+     * Reference table which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full name
+     * of the referenced table by the foreign key.
+     * 
+ * + * string reference_table = 6; + * + * @return The referenceTable. + */ + public java.lang.String getReferenceTable() { + java.lang.Object ref = referenceTable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + referenceTable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Reference table which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full name
+     * of the referenced table by the foreign key.
+     * 
+ * + * string reference_table = 6; + * + * @return The bytes for referenceTable. + */ + public com.google.protobuf.ByteString getReferenceTableBytes() { + java.lang.Object ref = referenceTable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + referenceTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Reference table which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full name
+     * of the referenced table by the foreign key.
+     * 
+ * + * string reference_table = 6; + * + * @param value The referenceTable to set. + * @return This builder for chaining. + */ + public Builder setReferenceTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + referenceTable_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Reference table which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full name
+     * of the referenced table by the foreign key.
+     * 
+ * + * string reference_table = 6; + * + * @return This builder for chaining. + */ + public Builder clearReferenceTable() { + referenceTable_ = getDefaultInstance().getReferenceTable(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Reference table which may be associated with the constraint. For example,
+     * if the constraint is a FOREIGN_KEY, this represents the list of full name
+     * of the referenced table by the foreign key.
+     * 
+ * + * string reference_table = 6; + * + * @param value The bytes for referenceTable to set. + * @return This builder for chaining. + */ + public Builder setReferenceTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referenceTable_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object tableName_ = ""; + /** + * + * + *
+     * Table which is associated with the constraint. In case the constraint
+     * is defined on a table, this field is left empty as this information is
+     * stored in parent_name. However, if constraint is defined on a view, this
+     * field stores the table name on which the view is defined.
+     * 
+ * + * string table_name = 7; + * + * @return The tableName. + */ + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Table which is associated with the constraint. In case the constraint
+     * is defined on a table, this field is left empty as this information is
+     * stored in parent_name. However, if constraint is defined on a view, this
+     * field stores the table name on which the view is defined.
+     * 
+ * + * string table_name = 7; + * + * @return The bytes for tableName. + */ + public com.google.protobuf.ByteString getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Table which is associated with the constraint. In case the constraint
+     * is defined on a table, this field is left empty as this information is
+     * stored in parent_name. However, if constraint is defined on a view, this
+     * field stores the table name on which the view is defined.
+     * 
+ * + * string table_name = 7; + * + * @param value The tableName to set. + * @return This builder for chaining. + */ + public Builder setTableName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tableName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Table which is associated with the constraint. In case the constraint
+     * is defined on a table, this field is left empty as this information is
+     * stored in parent_name. However, if constraint is defined on a view, this
+     * field stores the table name on which the view is defined.
+     * 
+ * + * string table_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearTableName() { + tableName_ = getDefaultInstance().getTableName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Table which is associated with the constraint. In case the constraint
+     * is defined on a table, this field is left empty as this information is
+     * stored in parent_name. However, if constraint is defined on a view, this
+     * field stores the table name on which the view is defined.
+     * 
+ * + * string table_name = 7; + * + * @param value The bytes for tableName to set. + * @return This builder for chaining. + */ + public Builder setTableNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tableName_ = value; + bitField0_ |= 0x00000040; + 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.clouddms.v1.ConstraintEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ConstraintEntity) + private static final com.google.cloud.clouddms.v1.ConstraintEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ConstraintEntity(); + } + + public static com.google.cloud.clouddms.v1.ConstraintEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConstraintEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConstraintEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConstraintEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConstraintEntityOrBuilder.java new file mode 100644 index 000000000000..7b3e3170469c --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConstraintEntityOrBuilder.java @@ -0,0 +1,286 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface ConstraintEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ConstraintEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the table constraint.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the table constraint.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Type of constraint, for example unique, primary key, foreign key (currently
+   * only primary key is supported).
+   * 
+ * + * string type = 2; + * + * @return The type. + */ + java.lang.String getType(); + /** + * + * + *
+   * Type of constraint, for example unique, primary key, foreign key (currently
+   * only primary key is supported).
+   * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * Table columns used as part of the Constraint, for example primary key
+   * constraint should list the columns which constitutes the key.
+   * 
+ * + * repeated string table_columns = 3; + * + * @return A list containing the tableColumns. + */ + java.util.List getTableColumnsList(); + /** + * + * + *
+   * Table columns used as part of the Constraint, for example primary key
+   * constraint should list the columns which constitutes the key.
+   * 
+ * + * repeated string table_columns = 3; + * + * @return The count of tableColumns. + */ + int getTableColumnsCount(); + /** + * + * + *
+   * Table columns used as part of the Constraint, for example primary key
+   * constraint should list the columns which constitutes the key.
+   * 
+ * + * repeated string table_columns = 3; + * + * @param index The index of the element to return. + * @return The tableColumns at the given index. + */ + java.lang.String getTableColumns(int index); + /** + * + * + *
+   * Table columns used as part of the Constraint, for example primary key
+   * constraint should list the columns which constitutes the key.
+   * 
+ * + * repeated string table_columns = 3; + * + * @param index The index of the value to return. + * @return The bytes of the tableColumns at the given index. + */ + com.google.protobuf.ByteString getTableColumnsBytes(int index); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 4; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 4; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 4; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); + + /** + * + * + *
+   * Reference columns which may be associated with the constraint. For example,
+   * if the constraint is a FOREIGN_KEY, this represents the list of full names
+   * of referenced columns by the foreign key.
+   * 
+ * + * repeated string reference_columns = 5; + * + * @return A list containing the referenceColumns. + */ + java.util.List getReferenceColumnsList(); + /** + * + * + *
+   * Reference columns which may be associated with the constraint. For example,
+   * if the constraint is a FOREIGN_KEY, this represents the list of full names
+   * of referenced columns by the foreign key.
+   * 
+ * + * repeated string reference_columns = 5; + * + * @return The count of referenceColumns. + */ + int getReferenceColumnsCount(); + /** + * + * + *
+   * Reference columns which may be associated with the constraint. For example,
+   * if the constraint is a FOREIGN_KEY, this represents the list of full names
+   * of referenced columns by the foreign key.
+   * 
+ * + * repeated string reference_columns = 5; + * + * @param index The index of the element to return. + * @return The referenceColumns at the given index. + */ + java.lang.String getReferenceColumns(int index); + /** + * + * + *
+   * Reference columns which may be associated with the constraint. For example,
+   * if the constraint is a FOREIGN_KEY, this represents the list of full names
+   * of referenced columns by the foreign key.
+   * 
+ * + * repeated string reference_columns = 5; + * + * @param index The index of the value to return. + * @return The bytes of the referenceColumns at the given index. + */ + com.google.protobuf.ByteString getReferenceColumnsBytes(int index); + + /** + * + * + *
+   * Reference table which may be associated with the constraint. For example,
+   * if the constraint is a FOREIGN_KEY, this represents the list of full name
+   * of the referenced table by the foreign key.
+   * 
+ * + * string reference_table = 6; + * + * @return The referenceTable. + */ + java.lang.String getReferenceTable(); + /** + * + * + *
+   * Reference table which may be associated with the constraint. For example,
+   * if the constraint is a FOREIGN_KEY, this represents the list of full name
+   * of the referenced table by the foreign key.
+   * 
+ * + * string reference_table = 6; + * + * @return The bytes for referenceTable. + */ + com.google.protobuf.ByteString getReferenceTableBytes(); + + /** + * + * + *
+   * Table which is associated with the constraint. In case the constraint
+   * is defined on a table, this field is left empty as this information is
+   * stored in parent_name. However, if constraint is defined on a view, this
+   * field stores the table name on which the view is defined.
+   * 
+ * + * string table_name = 7; + * + * @return The tableName. + */ + java.lang.String getTableName(); + /** + * + * + *
+   * Table which is associated with the constraint. In case the constraint
+   * is defined on a table, this field is left empty as this information is
+   * stored in parent_name. However, if constraint is defined on a view, this
+   * field stores the table name on which the view is defined.
+   * 
+ * + * string table_name = 7; + * + * @return The bytes for tableName. + */ + com.google.protobuf.ByteString getTableNameBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspace.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspace.java new file mode 100644 index 000000000000..7284c3dea74d --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspace.java @@ -0,0 +1,2910 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * The main conversion workspace resource entity.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ConversionWorkspace} + */ +public final class ConversionWorkspace extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ConversionWorkspace) + ConversionWorkspaceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConversionWorkspace.newBuilder() to construct. + private ConversionWorkspace(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversionWorkspace() { + name_ = ""; + latestCommitId_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversionWorkspace(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConversionWorkspace_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetGlobalSettings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConversionWorkspace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ConversionWorkspace.class, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Full name of the workspace resource, in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Full name of the workspace resource, in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 2; + private com.google.cloud.clouddms.v1.DatabaseEngineInfo source_; + /** + * + * + *
+   * Required. The source engine details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. + */ + @java.lang.Override + public boolean hasSource() { + return source_ != null; + } + /** + * + * + *
+   * Required. The source engine details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEngineInfo getSource() { + return source_ == null + ? com.google.cloud.clouddms.v1.DatabaseEngineInfo.getDefaultInstance() + : source_; + } + /** + * + * + *
+   * Required. The source engine details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder getSourceOrBuilder() { + return source_ == null + ? com.google.cloud.clouddms.v1.DatabaseEngineInfo.getDefaultInstance() + : source_; + } + + public static final int DESTINATION_FIELD_NUMBER = 3; + private com.google.cloud.clouddms.v1.DatabaseEngineInfo destination_; + /** + * + * + *
+   * Required. The destination engine details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + @java.lang.Override + public boolean hasDestination() { + return destination_ != null; + } + /** + * + * + *
+   * Required. The destination engine details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The destination. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEngineInfo getDestination() { + return destination_ == null + ? com.google.cloud.clouddms.v1.DatabaseEngineInfo.getDefaultInstance() + : destination_; + } + /** + * + * + *
+   * Required. The destination engine details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder getDestinationOrBuilder() { + return destination_ == null + ? com.google.cloud.clouddms.v1.DatabaseEngineInfo.getDefaultInstance() + : destination_; + } + + public static final int GLOBAL_SETTINGS_FIELD_NUMBER = 4; + + private static final class GlobalSettingsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConversionWorkspace_GlobalSettingsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField globalSettings_; + + private com.google.protobuf.MapField + internalGetGlobalSettings() { + if (globalSettings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + GlobalSettingsDefaultEntryHolder.defaultEntry); + } + return globalSettings_; + } + + public int getGlobalSettingsCount() { + return internalGetGlobalSettings().getMap().size(); + } + /** + * + * + *
+   * A generic list of settings for the workspace.
+   * The settings are database pair dependant and can indicate default behavior
+   * for the mapping rules engine or turn on or off specific features.
+   * Such examples can be: convert_foreign_key_to_interleave=true,
+   * skip_triggers=false, ignore_non_table_synonyms=true
+   * 
+ * + * map<string, string> global_settings = 4; + */ + @java.lang.Override + public boolean containsGlobalSettings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetGlobalSettings().getMap().containsKey(key); + } + /** Use {@link #getGlobalSettingsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getGlobalSettings() { + return getGlobalSettingsMap(); + } + /** + * + * + *
+   * A generic list of settings for the workspace.
+   * The settings are database pair dependant and can indicate default behavior
+   * for the mapping rules engine or turn on or off specific features.
+   * Such examples can be: convert_foreign_key_to_interleave=true,
+   * skip_triggers=false, ignore_non_table_synonyms=true
+   * 
+ * + * map<string, string> global_settings = 4; + */ + @java.lang.Override + public java.util.Map getGlobalSettingsMap() { + return internalGetGlobalSettings().getMap(); + } + /** + * + * + *
+   * A generic list of settings for the workspace.
+   * The settings are database pair dependant and can indicate default behavior
+   * for the mapping rules engine or turn on or off specific features.
+   * Such examples can be: convert_foreign_key_to_interleave=true,
+   * skip_triggers=false, ignore_non_table_synonyms=true
+   * 
+ * + * map<string, string> global_settings = 4; + */ + @java.lang.Override + public /* nullable */ java.lang.String getGlobalSettingsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetGlobalSettings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * A generic list of settings for the workspace.
+   * The settings are database pair dependant and can indicate default behavior
+   * for the mapping rules engine or turn on or off specific features.
+   * Such examples can be: convert_foreign_key_to_interleave=true,
+   * skip_triggers=false, ignore_non_table_synonyms=true
+   * 
+ * + * map<string, string> global_settings = 4; + */ + @java.lang.Override + public java.lang.String getGlobalSettingsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetGlobalSettings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int HAS_UNCOMMITTED_CHANGES_FIELD_NUMBER = 5; + private boolean hasUncommittedChanges_ = false; + /** + * + * + *
+   * Output only. Whether the workspace has uncommitted changes (changes which
+   * were made after the workspace was committed).
+   * 
+ * + * bool has_uncommitted_changes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hasUncommittedChanges. + */ + @java.lang.Override + public boolean getHasUncommittedChanges() { + return hasUncommittedChanges_; + } + + public static final int LATEST_COMMIT_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object latestCommitId_ = ""; + /** + * + * + *
+   * Output only. The latest commit ID.
+   * 
+ * + * string latest_commit_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestCommitId. + */ + @java.lang.Override + public java.lang.String getLatestCommitId() { + java.lang.Object ref = latestCommitId_; + 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(); + latestCommitId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The latest commit ID.
+   * 
+ * + * string latest_commit_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestCommitId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLatestCommitIdBytes() { + java.lang.Object ref = latestCommitId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestCommitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LATEST_COMMIT_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp latestCommitTime_; + /** + * + * + *
+   * Output only. The timestamp when the workspace was committed.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestCommitTime field is set. + */ + @java.lang.Override + public boolean hasLatestCommitTime() { + return latestCommitTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when the workspace was committed.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestCommitTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLatestCommitTime() { + return latestCommitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestCommitTime_; + } + /** + * + * + *
+   * Output only. The timestamp when the workspace was committed.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLatestCommitTimeOrBuilder() { + return latestCommitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestCommitTime_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The timestamp when the workspace resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when the workspace resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The timestamp when the workspace resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The timestamp when the workspace resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when the workspace resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. The timestamp when the workspace resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * The display name for the workspace.
+   * 
+ * + * string display_name = 11; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * The display name for the workspace.
+   * 
+ * + * string display_name = 11; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (source_ != null) { + output.writeMessage(2, getSource()); + } + if (destination_ != null) { + output.writeMessage(3, getDestination()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetGlobalSettings(), GlobalSettingsDefaultEntryHolder.defaultEntry, 4); + if (hasUncommittedChanges_ != false) { + output.writeBool(5, hasUncommittedChanges_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latestCommitId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, latestCommitId_); + } + if (latestCommitTime_ != null) { + output.writeMessage(7, getLatestCommitTime()); + } + if (createTime_ != null) { + output.writeMessage(9, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(10, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource()); + } + if (destination_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDestination()); + } + for (java.util.Map.Entry entry : + internalGetGlobalSettings().getMap().entrySet()) { + com.google.protobuf.MapEntry globalSettings__ = + GlobalSettingsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, globalSettings__); + } + if (hasUncommittedChanges_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, hasUncommittedChanges_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latestCommitId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, latestCommitId_); + } + if (latestCommitTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLatestCommitTime()); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ConversionWorkspace)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ConversionWorkspace other = + (com.google.cloud.clouddms.v1.ConversionWorkspace) obj; + + if (!getName().equals(other.getName())) return false; + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource().equals(other.getSource())) return false; + } + if (hasDestination() != other.hasDestination()) return false; + if (hasDestination()) { + if (!getDestination().equals(other.getDestination())) return false; + } + if (!internalGetGlobalSettings().equals(other.internalGetGlobalSettings())) return false; + if (getHasUncommittedChanges() != other.getHasUncommittedChanges()) return false; + if (!getLatestCommitId().equals(other.getLatestCommitId())) return false; + if (hasLatestCommitTime() != other.hasLatestCommitTime()) return false; + if (hasLatestCommitTime()) { + if (!getLatestCommitTime().equals(other.getLatestCommitTime())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + if (hasDestination()) { + hash = (37 * hash) + DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getDestination().hashCode(); + } + if (!internalGetGlobalSettings().getMap().isEmpty()) { + hash = (37 * hash) + GLOBAL_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetGlobalSettings().hashCode(); + } + hash = (37 * hash) + HAS_UNCOMMITTED_CHANGES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasUncommittedChanges()); + hash = (37 * hash) + LATEST_COMMIT_ID_FIELD_NUMBER; + hash = (53 * hash) + getLatestCommitId().hashCode(); + if (hasLatestCommitTime()) { + hash = (37 * hash) + LATEST_COMMIT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLatestCommitTime().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspace parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspace 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.clouddms.v1.ConversionWorkspace parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspace 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.clouddms.v1.ConversionWorkspace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspace parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspace parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspace 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.clouddms.v1.ConversionWorkspace parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspace 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.clouddms.v1.ConversionWorkspace parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspace 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.clouddms.v1.ConversionWorkspace 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; + } + /** + * + * + *
+   * The main conversion workspace resource entity.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ConversionWorkspace} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ConversionWorkspace) + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConversionWorkspace_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetGlobalSettings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableGlobalSettings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConversionWorkspace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ConversionWorkspace.class, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ConversionWorkspace.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); + sourceBuilder_ = null; + } + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); + destinationBuilder_ = null; + } + internalGetMutableGlobalSettings().clear(); + hasUncommittedChanges_ = false; + latestCommitId_ = ""; + latestCommitTime_ = null; + if (latestCommitTimeBuilder_ != null) { + latestCommitTimeBuilder_.dispose(); + latestCommitTimeBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ConversionWorkspace_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspace getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspace build() { + com.google.cloud.clouddms.v1.ConversionWorkspace result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspace buildPartial() { + com.google.cloud.clouddms.v1.ConversionWorkspace result = + new com.google.cloud.clouddms.v1.ConversionWorkspace(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ConversionWorkspace result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.destination_ = + destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.globalSettings_ = internalGetGlobalSettings(); + result.globalSettings_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.hasUncommittedChanges_ = hasUncommittedChanges_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.latestCommitId_ = latestCommitId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.latestCommitTime_ = + latestCommitTimeBuilder_ == null ? latestCommitTime_ : latestCommitTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.displayName_ = displayName_; + } + } + + @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.clouddms.v1.ConversionWorkspace) { + return mergeFrom((com.google.cloud.clouddms.v1.ConversionWorkspace) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ConversionWorkspace other) { + if (other == com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSource()) { + mergeSource(other.getSource()); + } + if (other.hasDestination()) { + mergeDestination(other.getDestination()); + } + internalGetMutableGlobalSettings().mergeFrom(other.internalGetGlobalSettings()); + bitField0_ |= 0x00000008; + if (other.getHasUncommittedChanges() != false) { + setHasUncommittedChanges(other.getHasUncommittedChanges()); + } + if (!other.getLatestCommitId().isEmpty()) { + latestCommitId_ = other.latestCommitId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasLatestCommitTime()) { + mergeLatestCommitTime(other.getLatestCommitTime()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000200; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry globalSettings__ = + input.readMessage( + GlobalSettingsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableGlobalSettings() + .getMutableMap() + .put(globalSettings__.getKey(), globalSettings__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + hasUncommittedChanges_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + latestCommitId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getLatestCommitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Full name of the workspace resource, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Full name of the workspace resource, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Full name of the workspace resource, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Full name of the workspace resource, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Full name of the workspace resource, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.clouddms.v1.DatabaseEngineInfo source_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseEngineInfo, + com.google.cloud.clouddms.v1.DatabaseEngineInfo.Builder, + com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder> + sourceBuilder_; + /** + * + * + *
+     * Required. The source engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The source engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. + */ + public com.google.cloud.clouddms.v1.DatabaseEngineInfo getSource() { + if (sourceBuilder_ == null) { + return source_ == null + ? com.google.cloud.clouddms.v1.DatabaseEngineInfo.getDefaultInstance() + : source_; + } else { + return sourceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The source engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSource(com.google.cloud.clouddms.v1.DatabaseEngineInfo value) { + if (sourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + } else { + sourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The source engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSource( + com.google.cloud.clouddms.v1.DatabaseEngineInfo.Builder builderForValue) { + if (sourceBuilder_ == null) { + source_ = builderForValue.build(); + } else { + sourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The source engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSource(com.google.cloud.clouddms.v1.DatabaseEngineInfo value) { + if (sourceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && source_ != null + && source_ != com.google.cloud.clouddms.v1.DatabaseEngineInfo.getDefaultInstance()) { + getSourceBuilder().mergeFrom(value); + } else { + source_ = value; + } + } else { + sourceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The source engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000002); + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); + sourceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The source engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.DatabaseEngineInfo.Builder getSourceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The source engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder getSourceOrBuilder() { + if (sourceBuilder_ != null) { + return sourceBuilder_.getMessageOrBuilder(); + } else { + return source_ == null + ? com.google.cloud.clouddms.v1.DatabaseEngineInfo.getDefaultInstance() + : source_; + } + } + /** + * + * + *
+     * Required. The source engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseEngineInfo, + com.google.cloud.clouddms.v1.DatabaseEngineInfo.Builder, + com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder> + getSourceFieldBuilder() { + if (sourceBuilder_ == null) { + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseEngineInfo, + com.google.cloud.clouddms.v1.DatabaseEngineInfo.Builder, + com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder>( + getSource(), getParentForChildren(), isClean()); + source_ = null; + } + return sourceBuilder_; + } + + private com.google.cloud.clouddms.v1.DatabaseEngineInfo destination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseEngineInfo, + com.google.cloud.clouddms.v1.DatabaseEngineInfo.Builder, + com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder> + destinationBuilder_; + /** + * + * + *
+     * Required. The destination engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + public boolean hasDestination() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The destination engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The destination. + */ + public com.google.cloud.clouddms.v1.DatabaseEngineInfo getDestination() { + if (destinationBuilder_ == null) { + return destination_ == null + ? com.google.cloud.clouddms.v1.DatabaseEngineInfo.getDefaultInstance() + : destination_; + } else { + return destinationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The destination engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestination(com.google.cloud.clouddms.v1.DatabaseEngineInfo value) { + if (destinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + } else { + destinationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The destination engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestination( + com.google.cloud.clouddms.v1.DatabaseEngineInfo.Builder builderForValue) { + if (destinationBuilder_ == null) { + destination_ = builderForValue.build(); + } else { + destinationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The destination engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDestination(com.google.cloud.clouddms.v1.DatabaseEngineInfo value) { + if (destinationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && destination_ != null + && destination_ + != com.google.cloud.clouddms.v1.DatabaseEngineInfo.getDefaultInstance()) { + getDestinationBuilder().mergeFrom(value); + } else { + destination_ = value; + } + } else { + destinationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The destination engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDestination() { + bitField0_ = (bitField0_ & ~0x00000004); + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); + destinationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The destination engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.DatabaseEngineInfo.Builder getDestinationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The destination engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder getDestinationOrBuilder() { + if (destinationBuilder_ != null) { + return destinationBuilder_.getMessageOrBuilder(); + } else { + return destination_ == null + ? com.google.cloud.clouddms.v1.DatabaseEngineInfo.getDefaultInstance() + : destination_; + } + } + /** + * + * + *
+     * Required. The destination engine details.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseEngineInfo, + com.google.cloud.clouddms.v1.DatabaseEngineInfo.Builder, + com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder> + getDestinationFieldBuilder() { + if (destinationBuilder_ == null) { + destinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseEngineInfo, + com.google.cloud.clouddms.v1.DatabaseEngineInfo.Builder, + com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder>( + getDestination(), getParentForChildren(), isClean()); + destination_ = null; + } + return destinationBuilder_; + } + + private com.google.protobuf.MapField globalSettings_; + + private com.google.protobuf.MapField + internalGetGlobalSettings() { + if (globalSettings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + GlobalSettingsDefaultEntryHolder.defaultEntry); + } + return globalSettings_; + } + + private com.google.protobuf.MapField + internalGetMutableGlobalSettings() { + if (globalSettings_ == null) { + globalSettings_ = + com.google.protobuf.MapField.newMapField(GlobalSettingsDefaultEntryHolder.defaultEntry); + } + if (!globalSettings_.isMutable()) { + globalSettings_ = globalSettings_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return globalSettings_; + } + + public int getGlobalSettingsCount() { + return internalGetGlobalSettings().getMap().size(); + } + /** + * + * + *
+     * A generic list of settings for the workspace.
+     * The settings are database pair dependant and can indicate default behavior
+     * for the mapping rules engine or turn on or off specific features.
+     * Such examples can be: convert_foreign_key_to_interleave=true,
+     * skip_triggers=false, ignore_non_table_synonyms=true
+     * 
+ * + * map<string, string> global_settings = 4; + */ + @java.lang.Override + public boolean containsGlobalSettings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetGlobalSettings().getMap().containsKey(key); + } + /** Use {@link #getGlobalSettingsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getGlobalSettings() { + return getGlobalSettingsMap(); + } + /** + * + * + *
+     * A generic list of settings for the workspace.
+     * The settings are database pair dependant and can indicate default behavior
+     * for the mapping rules engine or turn on or off specific features.
+     * Such examples can be: convert_foreign_key_to_interleave=true,
+     * skip_triggers=false, ignore_non_table_synonyms=true
+     * 
+ * + * map<string, string> global_settings = 4; + */ + @java.lang.Override + public java.util.Map getGlobalSettingsMap() { + return internalGetGlobalSettings().getMap(); + } + /** + * + * + *
+     * A generic list of settings for the workspace.
+     * The settings are database pair dependant and can indicate default behavior
+     * for the mapping rules engine or turn on or off specific features.
+     * Such examples can be: convert_foreign_key_to_interleave=true,
+     * skip_triggers=false, ignore_non_table_synonyms=true
+     * 
+ * + * map<string, string> global_settings = 4; + */ + @java.lang.Override + public /* nullable */ java.lang.String getGlobalSettingsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetGlobalSettings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * A generic list of settings for the workspace.
+     * The settings are database pair dependant and can indicate default behavior
+     * for the mapping rules engine or turn on or off specific features.
+     * Such examples can be: convert_foreign_key_to_interleave=true,
+     * skip_triggers=false, ignore_non_table_synonyms=true
+     * 
+ * + * map<string, string> global_settings = 4; + */ + @java.lang.Override + public java.lang.String getGlobalSettingsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetGlobalSettings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearGlobalSettings() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableGlobalSettings().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * A generic list of settings for the workspace.
+     * The settings are database pair dependant and can indicate default behavior
+     * for the mapping rules engine or turn on or off specific features.
+     * Such examples can be: convert_foreign_key_to_interleave=true,
+     * skip_triggers=false, ignore_non_table_synonyms=true
+     * 
+ * + * map<string, string> global_settings = 4; + */ + public Builder removeGlobalSettings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableGlobalSettings().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableGlobalSettings() { + bitField0_ |= 0x00000008; + return internalGetMutableGlobalSettings().getMutableMap(); + } + /** + * + * + *
+     * A generic list of settings for the workspace.
+     * The settings are database pair dependant and can indicate default behavior
+     * for the mapping rules engine or turn on or off specific features.
+     * Such examples can be: convert_foreign_key_to_interleave=true,
+     * skip_triggers=false, ignore_non_table_synonyms=true
+     * 
+ * + * map<string, string> global_settings = 4; + */ + public Builder putGlobalSettings(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableGlobalSettings().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
+     * A generic list of settings for the workspace.
+     * The settings are database pair dependant and can indicate default behavior
+     * for the mapping rules engine or turn on or off specific features.
+     * Such examples can be: convert_foreign_key_to_interleave=true,
+     * skip_triggers=false, ignore_non_table_synonyms=true
+     * 
+ * + * map<string, string> global_settings = 4; + */ + public Builder putAllGlobalSettings(java.util.Map values) { + internalGetMutableGlobalSettings().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private boolean hasUncommittedChanges_; + /** + * + * + *
+     * Output only. Whether the workspace has uncommitted changes (changes which
+     * were made after the workspace was committed).
+     * 
+ * + * bool has_uncommitted_changes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hasUncommittedChanges. + */ + @java.lang.Override + public boolean getHasUncommittedChanges() { + return hasUncommittedChanges_; + } + /** + * + * + *
+     * Output only. Whether the workspace has uncommitted changes (changes which
+     * were made after the workspace was committed).
+     * 
+ * + * bool has_uncommitted_changes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The hasUncommittedChanges to set. + * @return This builder for chaining. + */ + public Builder setHasUncommittedChanges(boolean value) { + + hasUncommittedChanges_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Whether the workspace has uncommitted changes (changes which
+     * were made after the workspace was committed).
+     * 
+ * + * bool has_uncommitted_changes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHasUncommittedChanges() { + bitField0_ = (bitField0_ & ~0x00000010); + hasUncommittedChanges_ = false; + onChanged(); + return this; + } + + private java.lang.Object latestCommitId_ = ""; + /** + * + * + *
+     * Output only. The latest commit ID.
+     * 
+ * + * string latest_commit_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestCommitId. + */ + public java.lang.String getLatestCommitId() { + java.lang.Object ref = latestCommitId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestCommitId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The latest commit ID.
+     * 
+ * + * string latest_commit_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestCommitId. + */ + public com.google.protobuf.ByteString getLatestCommitIdBytes() { + java.lang.Object ref = latestCommitId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestCommitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The latest commit ID.
+     * 
+ * + * string latest_commit_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The latestCommitId to set. + * @return This builder for chaining. + */ + public Builder setLatestCommitId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + latestCommitId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The latest commit ID.
+     * 
+ * + * string latest_commit_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLatestCommitId() { + latestCommitId_ = getDefaultInstance().getLatestCommitId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The latest commit ID.
+     * 
+ * + * string latest_commit_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for latestCommitId to set. + * @return This builder for chaining. + */ + public Builder setLatestCommitIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + latestCommitId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp latestCommitTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + latestCommitTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp when the workspace was committed.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestCommitTime field is set. + */ + public boolean hasLatestCommitTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Output only. The timestamp when the workspace was committed.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestCommitTime. + */ + public com.google.protobuf.Timestamp getLatestCommitTime() { + if (latestCommitTimeBuilder_ == null) { + return latestCommitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestCommitTime_; + } else { + return latestCommitTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp when the workspace was committed.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLatestCommitTime(com.google.protobuf.Timestamp value) { + if (latestCommitTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestCommitTime_ = value; + } else { + latestCommitTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the workspace was committed.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLatestCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (latestCommitTimeBuilder_ == null) { + latestCommitTime_ = builderForValue.build(); + } else { + latestCommitTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the workspace was committed.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLatestCommitTime(com.google.protobuf.Timestamp value) { + if (latestCommitTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && latestCommitTime_ != null + && latestCommitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLatestCommitTimeBuilder().mergeFrom(value); + } else { + latestCommitTime_ = value; + } + } else { + latestCommitTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the workspace was committed.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLatestCommitTime() { + bitField0_ = (bitField0_ & ~0x00000040); + latestCommitTime_ = null; + if (latestCommitTimeBuilder_ != null) { + latestCommitTimeBuilder_.dispose(); + latestCommitTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the workspace was committed.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLatestCommitTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getLatestCommitTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when the workspace was committed.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLatestCommitTimeOrBuilder() { + if (latestCommitTimeBuilder_ != null) { + return latestCommitTimeBuilder_.getMessageOrBuilder(); + } else { + return latestCommitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestCommitTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp when the workspace was committed.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLatestCommitTimeFieldBuilder() { + if (latestCommitTimeBuilder_ == null) { + latestCommitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLatestCommitTime(), getParentForChildren(), isClean()); + latestCommitTime_ = null; + } + return latestCommitTimeBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp when the workspace resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The display name for the workspace.
+     * 
+ * + * string display_name = 11; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The display name for the workspace.
+     * 
+ * + * string display_name = 11; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The display name for the workspace.
+     * 
+ * + * string display_name = 11; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * The display name for the workspace.
+     * 
+ * + * string display_name = 11; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * The display name for the workspace.
+     * 
+ * + * string display_name = 11; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000200; + 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.clouddms.v1.ConversionWorkspace) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ConversionWorkspace) + private static final com.google.cloud.clouddms.v1.ConversionWorkspace DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ConversionWorkspace(); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspace getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversionWorkspace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspace getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceInfo.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceInfo.java new file mode 100644 index 000000000000..fd722b089516 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceInfo.java @@ -0,0 +1,811 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * A conversion workspace's version.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ConversionWorkspaceInfo} + */ +public final class ConversionWorkspaceInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ConversionWorkspaceInfo) + ConversionWorkspaceInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConversionWorkspaceInfo.newBuilder() to construct. + private ConversionWorkspaceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversionWorkspaceInfo() { + name_ = ""; + commitId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversionWorkspaceInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ConversionWorkspaceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ConversionWorkspaceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.class, + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The resource name (URI) of the conversion workspace.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name (URI) of the conversion workspace.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitId_ = ""; + /** + * + * + *
+   * The commit ID of the conversion workspace.
+   * 
+ * + * string commit_id = 2; + * + * @return The commitId. + */ + @java.lang.Override + public java.lang.String getCommitId() { + java.lang.Object ref = commitId_; + 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(); + commitId_ = s; + return s; + } + } + /** + * + * + *
+   * The commit ID of the conversion workspace.
+   * 
+ * + * string commit_id = 2; + * + * @return The bytes for commitId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitIdBytes() { + java.lang.Object ref = commitId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitId_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commitId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commitId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ConversionWorkspaceInfo)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo other = + (com.google.cloud.clouddms.v1.ConversionWorkspaceInfo) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCommitId().equals(other.getCommitId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + COMMIT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCommitId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspaceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspaceInfo 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.clouddms.v1.ConversionWorkspaceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspaceInfo 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.clouddms.v1.ConversionWorkspaceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspaceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspaceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspaceInfo 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.clouddms.v1.ConversionWorkspaceInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspaceInfo 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.clouddms.v1.ConversionWorkspaceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspaceInfo 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.clouddms.v1.ConversionWorkspaceInfo 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 conversion workspace's version.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ConversionWorkspaceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ConversionWorkspaceInfo) + com.google.cloud.clouddms.v1.ConversionWorkspaceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ConversionWorkspaceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ConversionWorkspaceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.class, + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + commitId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ConversionWorkspaceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspaceInfo getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspaceInfo build() { + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspaceInfo buildPartial() { + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo result = + new com.google.cloud.clouddms.v1.ConversionWorkspaceInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ConversionWorkspaceInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commitId_ = commitId_; + } + } + + @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.clouddms.v1.ConversionWorkspaceInfo) { + return mergeFrom((com.google.cloud.clouddms.v1.ConversionWorkspaceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ConversionWorkspaceInfo other) { + if (other == com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCommitId().isEmpty()) { + commitId_ = other.commitId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + commitId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The resource name (URI) of the conversion workspace.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name (URI) of the conversion workspace.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name (URI) of the conversion workspace.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name (URI) of the conversion workspace.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name (URI) of the conversion workspace.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object commitId_ = ""; + /** + * + * + *
+     * The commit ID of the conversion workspace.
+     * 
+ * + * string commit_id = 2; + * + * @return The commitId. + */ + public java.lang.String getCommitId() { + java.lang.Object ref = commitId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The commit ID of the conversion workspace.
+     * 
+ * + * string commit_id = 2; + * + * @return The bytes for commitId. + */ + public com.google.protobuf.ByteString getCommitIdBytes() { + java.lang.Object ref = commitId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The commit ID of the conversion workspace.
+     * 
+ * + * string commit_id = 2; + * + * @param value The commitId to set. + * @return This builder for chaining. + */ + public Builder setCommitId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The commit ID of the conversion workspace.
+     * 
+ * + * string commit_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearCommitId() { + commitId_ = getDefaultInstance().getCommitId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The commit ID of the conversion workspace.
+     * 
+ * + * string commit_id = 2; + * + * @param value The bytes for commitId to set. + * @return This builder for chaining. + */ + public Builder setCommitIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ConversionWorkspaceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ConversionWorkspaceInfo) + private static final com.google.cloud.clouddms.v1.ConversionWorkspaceInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ConversionWorkspaceInfo(); + } + + public static com.google.cloud.clouddms.v1.ConversionWorkspaceInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversionWorkspaceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspaceInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceInfoOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceInfoOrBuilder.java new file mode 100644 index 000000000000..e8b07b962558 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceInfoOrBuilder.java @@ -0,0 +1,75 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface ConversionWorkspaceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ConversionWorkspaceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name (URI) of the conversion workspace.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name (URI) of the conversion workspace.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The commit ID of the conversion workspace.
+   * 
+ * + * string commit_id = 2; + * + * @return The commitId. + */ + java.lang.String getCommitId(); + /** + * + * + *
+   * The commit ID of the conversion workspace.
+   * 
+ * + * string commit_id = 2; + * + * @return The bytes for commitId. + */ + com.google.protobuf.ByteString getCommitIdBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceName.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceName.java new file mode 100644 index 000000000000..6e2a374138b0 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceName.java @@ -0,0 +1,232 @@ +/* + * 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.clouddms.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ConversionWorkspaceName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CONVERSION_WORKSPACE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String conversionWorkspace; + + @Deprecated + protected ConversionWorkspaceName() { + project = null; + location = null; + conversionWorkspace = null; + } + + private ConversionWorkspaceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + conversionWorkspace = Preconditions.checkNotNull(builder.getConversionWorkspace()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getConversionWorkspace() { + return conversionWorkspace; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ConversionWorkspaceName of( + String project, String location, String conversionWorkspace) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setConversionWorkspace(conversionWorkspace) + .build(); + } + + public static String format(String project, String location, String conversionWorkspace) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setConversionWorkspace(conversionWorkspace) + .build() + .toString(); + } + + public static ConversionWorkspaceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CONVERSION_WORKSPACE.validatedMatch( + formattedString, "ConversionWorkspaceName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("conversion_workspace")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ConversionWorkspaceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CONVERSION_WORKSPACE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (conversionWorkspace != null) { + fieldMapBuilder.put("conversion_workspace", conversionWorkspace); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CONVERSION_WORKSPACE.instantiate( + "project", project, "location", location, "conversion_workspace", conversionWorkspace); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ConversionWorkspaceName that = ((ConversionWorkspaceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.conversionWorkspace, that.conversionWorkspace); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(conversionWorkspace); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. + */ + public static class Builder { + private String project; + private String location; + private String conversionWorkspace; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getConversionWorkspace() { + return conversionWorkspace; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setConversionWorkspace(String conversionWorkspace) { + this.conversionWorkspace = conversionWorkspace; + return this; + } + + private Builder(ConversionWorkspaceName conversionWorkspaceName) { + this.project = conversionWorkspaceName.project; + this.location = conversionWorkspaceName.location; + this.conversionWorkspace = conversionWorkspaceName.conversionWorkspace; + } + + public ConversionWorkspaceName build() { + return new ConversionWorkspaceName(this); + } + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceOrBuilder.java new file mode 100644 index 000000000000..557f3f2abb64 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceOrBuilder.java @@ -0,0 +1,393 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface ConversionWorkspaceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ConversionWorkspace) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Full name of the workspace resource, in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Full name of the workspace resource, in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The source engine details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. + */ + boolean hasSource(); + /** + * + * + *
+   * Required. The source engine details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. + */ + com.google.cloud.clouddms.v1.DatabaseEngineInfo getSource(); + /** + * + * + *
+   * Required. The source engine details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder getSourceOrBuilder(); + + /** + * + * + *
+   * Required. The destination engine details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + boolean hasDestination(); + /** + * + * + *
+   * Required. The destination engine details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The destination. + */ + com.google.cloud.clouddms.v1.DatabaseEngineInfo getDestination(); + /** + * + * + *
+   * Required. The destination engine details.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngineInfo destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder getDestinationOrBuilder(); + + /** + * + * + *
+   * A generic list of settings for the workspace.
+   * The settings are database pair dependant and can indicate default behavior
+   * for the mapping rules engine or turn on or off specific features.
+   * Such examples can be: convert_foreign_key_to_interleave=true,
+   * skip_triggers=false, ignore_non_table_synonyms=true
+   * 
+ * + * map<string, string> global_settings = 4; + */ + int getGlobalSettingsCount(); + /** + * + * + *
+   * A generic list of settings for the workspace.
+   * The settings are database pair dependant and can indicate default behavior
+   * for the mapping rules engine or turn on or off specific features.
+   * Such examples can be: convert_foreign_key_to_interleave=true,
+   * skip_triggers=false, ignore_non_table_synonyms=true
+   * 
+ * + * map<string, string> global_settings = 4; + */ + boolean containsGlobalSettings(java.lang.String key); + /** Use {@link #getGlobalSettingsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getGlobalSettings(); + /** + * + * + *
+   * A generic list of settings for the workspace.
+   * The settings are database pair dependant and can indicate default behavior
+   * for the mapping rules engine or turn on or off specific features.
+   * Such examples can be: convert_foreign_key_to_interleave=true,
+   * skip_triggers=false, ignore_non_table_synonyms=true
+   * 
+ * + * map<string, string> global_settings = 4; + */ + java.util.Map getGlobalSettingsMap(); + /** + * + * + *
+   * A generic list of settings for the workspace.
+   * The settings are database pair dependant and can indicate default behavior
+   * for the mapping rules engine or turn on or off specific features.
+   * Such examples can be: convert_foreign_key_to_interleave=true,
+   * skip_triggers=false, ignore_non_table_synonyms=true
+   * 
+ * + * map<string, string> global_settings = 4; + */ + /* nullable */ + java.lang.String getGlobalSettingsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * A generic list of settings for the workspace.
+   * The settings are database pair dependant and can indicate default behavior
+   * for the mapping rules engine or turn on or off specific features.
+   * Such examples can be: convert_foreign_key_to_interleave=true,
+   * skip_triggers=false, ignore_non_table_synonyms=true
+   * 
+ * + * map<string, string> global_settings = 4; + */ + java.lang.String getGlobalSettingsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Whether the workspace has uncommitted changes (changes which
+   * were made after the workspace was committed).
+   * 
+ * + * bool has_uncommitted_changes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hasUncommittedChanges. + */ + boolean getHasUncommittedChanges(); + + /** + * + * + *
+   * Output only. The latest commit ID.
+   * 
+ * + * string latest_commit_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The latestCommitId. + */ + java.lang.String getLatestCommitId(); + /** + * + * + *
+   * Output only. The latest commit ID.
+   * 
+ * + * string latest_commit_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for latestCommitId. + */ + com.google.protobuf.ByteString getLatestCommitIdBytes(); + + /** + * + * + *
+   * Output only. The timestamp when the workspace was committed.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestCommitTime field is set. + */ + boolean hasLatestCommitTime(); + /** + * + * + *
+   * Output only. The timestamp when the workspace was committed.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestCommitTime. + */ + com.google.protobuf.Timestamp getLatestCommitTime(); + /** + * + * + *
+   * Output only. The timestamp when the workspace was committed.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_commit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLatestCommitTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the workspace resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The timestamp when the workspace resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The timestamp when the workspace resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the workspace resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when the workspace resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when the workspace resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * The display name for the workspace.
+   * 
+ * + * string display_name = 11; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The display name for the workspace.
+   * 
+ * + * string display_name = 11; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceResourcesProto.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceResourcesProto.java new file mode 100644 index 000000000000..5a8fc97c6ddf --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceResourcesProto.java @@ -0,0 +1,573 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public final class ConversionWorkspaceResourcesProto { + private ConversionWorkspaceResourcesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DatabaseEngineInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DatabaseEngineInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ConversionWorkspace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ConversionWorkspace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ConversionWorkspace_GlobalSettingsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ConversionWorkspace_GlobalSettingsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_SeedJobDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_SeedJobDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ImportRulesJobDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ImportRulesJobDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ConvertJobDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ConvertJobDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ApplyJobDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ApplyJobDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_DatabaseEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_DatabaseEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SchemaEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SchemaEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_TableEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_TableEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ColumnEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ColumnEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ConstraintEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ConstraintEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_IndexEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_IndexEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_TriggerEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_TriggerEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_ViewEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_ViewEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SequenceEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SequenceEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_FunctionEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_FunctionEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_SynonymEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_SynonymEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_PackageEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_PackageEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_EntityMapping_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_EntityMapping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google.c" + + "loud.clouddms.v1.BackgroundJobLogEntry.S" + + "eedJobDetailsH\000\022i\n\030import_rules_job_deta" + + "ils\030e \001(\0132E.google.cloud.clouddms.v1.Bac" + + "kgroundJobLogEntry.ImportRulesJobDetails" + + "H\000\022`\n\023convert_job_details\030f \001(\0132A.google" + + ".cloud.clouddms.v1.BackgroundJobLogEntry" + + ".ConvertJobDetailsH\000\022\\\n\021apply_job_detail" + + "s\030g \001(\0132?.google.cloud.clouddms.v1.Backg" + + "roundJobLogEntry.ApplyJobDetailsH\000\032,\n\016Se" + + "edJobDetails\022\032\n\022connection_profile\030\001 \001(\t" + + "\032l\n\025ImportRulesJobDetails\022\r\n\005files\030\001 \003(\t" + + "\022D\n\013file_format\030\002 \001(\0162/.google.cloud.clo" + + "uddms.v1.ImportRulesFileFormat\032#\n\021Conver" + + "tJobDetails\022\016\n\006filter\030\001 \001(\t\032=\n\017ApplyJobD" + + "etails\022\032\n\022connection_profile\030\001 \001(\t\022\016\n\006fi" + + "lter\030\002 \001(\t\"U\n\022JobCompletionState\022$\n JOB_" + + "COMPLETION_STATE_UNSPECIFIED\020\000\022\r\n\tSUCCEE" + + "DED\020\001\022\n\n\006FAILED\020\002B\r\n\013job_details\"\323\006\n\016Dat" + + "abaseEntity\022\022\n\nshort_name\030\001 \001(\t\022\025\n\rparen" + + "t_entity\030\002 \001(\t\022?\n\004tree\030\003 \001(\01621.google.cl" + + "oud.clouddms.v1.DatabaseEntity.TreeType\022" + + "A\n\013entity_type\030\004 \001(\0162,.google.cloud.clou" + + "ddms.v1.DatabaseEntityType\0229\n\010mappings\030\005" + + " \003(\0132\'.google.cloud.clouddms.v1.EntityMa" + + "pping\0228\n\006schema\030f \001(\0132&.google.cloud.clo" + + "uddms.v1.SchemaEntityH\000\0226\n\005table\030g \001(\0132%" + + ".google.cloud.clouddms.v1.TableEntityH\000\022" + + "4\n\004view\030h \001(\0132$.google.cloud.clouddms.v1" + + ".ViewEntityH\000\022<\n\010sequence\030i \001(\0132(.google" + + ".cloud.clouddms.v1.SequenceEntityH\000\022K\n\020s" + + "tored_procedure\030j \001(\0132/.google.cloud.clo" + + "uddms.v1.StoredProcedureEntityH\000\022E\n\021data" + + "base_function\030k \001(\0132(.google.cloud.cloud" + + "dms.v1.FunctionEntityH\000\022:\n\007synonym\030l \001(\013" + + "2\'.google.cloud.clouddms.v1.SynonymEntit" + + "yH\000\022C\n\020database_package\030m \001(\0132\'.google.c" + + "loud.clouddms.v1.PackageEntityH\000\"M\n\010Tree" + + "Type\022\031\n\025TREE_TYPE_UNSPECIFIED\020\000\022\n\n\006SOURC" + + "E\020\001\022\t\n\005DRAFT\020\002\022\017\n\013DESTINATION\020\003B\r\n\013entit" + + "y_body\"@\n\014SchemaEntity\0220\n\017custom_feature" + + "s\030\001 \001(\0132\027.google.protobuf.Struct\"\275\002\n\013Tab" + + "leEntity\0227\n\007columns\030\001 \003(\0132&.google.cloud" + + ".clouddms.v1.ColumnEntity\022?\n\013constraints" + + "\030\002 \003(\0132*.google.cloud.clouddms.v1.Constr" + + "aintEntity\0226\n\007indices\030\003 \003(\0132%.google.clo" + + "ud.clouddms.v1.IndexEntity\0229\n\010triggers\030\004" + + " \003(\0132\'.google.cloud.clouddms.v1.TriggerE" + + "ntity\0220\n\017custom_features\030\005 \001(\0132\027.google." + + "protobuf.Struct\022\017\n\007comment\030\006 \001(\t\"\217\003\n\014Col" + + "umnEntity\022\014\n\004name\030\001 \001(\t\022\021\n\tdata_type\030\002 \001" + + "(\t\022\017\n\007charset\030\003 \001(\t\022\021\n\tcollation\030\004 \001(\t\022\016" + + "\n\006length\030\005 \001(\003\022\021\n\tprecision\030\006 \001(\005\022\r\n\005sca" + + "le\030\007 \001(\005\022$\n\034fractional_seconds_precision" + + "\030\010 \001(\005\022\r\n\005array\030\t \001(\010\022\024\n\014array_length\030\n " + + "\001(\005\022\020\n\010nullable\030\013 \001(\010\022\026\n\016auto_generated\030" + + "\014 \001(\010\022\013\n\003udt\030\r \001(\010\0220\n\017custom_features\030\016 " + + "\001(\0132\027.google.protobuf.Struct\022\022\n\nset_valu" + + "es\030\017 \003(\t\022\017\n\007comment\030\020 \001(\t\022\030\n\020ordinal_pos" + + "ition\030\021 \001(\005\022\025\n\rdefault_value\030\022 \001(\t\"\277\001\n\020C" + + "onstraintEntity\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 " + + "\001(\t\022\025\n\rtable_columns\030\003 \003(\t\0220\n\017custom_fea" + + "tures\030\004 \001(\0132\027.google.protobuf.Struct\022\031\n\021" + + "reference_columns\030\005 \003(\t\022\027\n\017reference_tab" + + "le\030\006 \001(\t\022\022\n\ntable_name\030\007 \001(\t\"\202\001\n\013IndexEn" + + "tity\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\025\n\rtabl" + + "e_columns\030\003 \003(\t\022\016\n\006unique\030\004 \001(\010\0220\n\017custo" + + "m_features\030\005 \001(\0132\027.google.protobuf.Struc" + + "t\"\222\001\n\rTriggerEntity\022\014\n\004name\030\001 \001(\t\022\031\n\021tri" + + "ggering_events\030\002 \003(\t\022\024\n\014trigger_type\030\003 \001" + + "(\t\022\020\n\010sql_code\030\004 \001(\t\0220\n\017custom_features\030" + + "\005 \001(\0132\027.google.protobuf.Struct\"\221\001\n\nViewE" + + "ntity\022\020\n\010sql_code\030\001 \001(\t\0220\n\017custom_featur" + + "es\030\002 \001(\0132\027.google.protobuf.Struct\022?\n\013con" + + "straints\030\003 \003(\0132*.google.cloud.clouddms.v" + + "1.ConstraintEntity\"\256\001\n\016SequenceEntity\022\021\n" + + "\tincrement\030\001 \001(\003\022\023\n\013start_value\030\002 \001(\014\022\021\n" + + "\tmax_value\030\003 \001(\014\022\021\n\tmin_value\030\004 \001(\014\022\r\n\005c" + + "ycle\030\005 \001(\010\022\r\n\005cache\030\006 \001(\003\0220\n\017custom_feat" + + "ures\030\007 \001(\0132\027.google.protobuf.Struct\"[\n\025S" + + "toredProcedureEntity\022\020\n\010sql_code\030\001 \001(\t\0220" + + "\n\017custom_features\030\002 \001(\0132\027.google.protobu" + + "f.Struct\"T\n\016FunctionEntity\022\020\n\010sql_code\030\001" + + " \001(\t\0220\n\017custom_features\030\002 \001(\0132\027.google.p" + + "rotobuf.Struct\"\233\001\n\rSynonymEntity\022\025\n\rsour" + + "ce_entity\030\001 \001(\t\022A\n\013source_type\030\002 \001(\0162,.g" + + "oogle.cloud.clouddms.v1.DatabaseEntityTy" + + "pe\0220\n\017custom_features\030\003 \001(\0132\027.google.pro" + + "tobuf.Struct\"q\n\rPackageEntity\022\030\n\020package" + + "_sql_code\030\001 \001(\t\022\024\n\014package_body\030\002 \001(\t\0220\n" + + "\017custom_features\030\003 \001(\0132\027.google.protobuf" + + ".Struct\"\207\002\n\rEntityMapping\022\025\n\rsource_enti" + + "ty\030\001 \001(\t\022\024\n\014draft_entity\030\002 \001(\t\022A\n\013source" + + "_type\030\004 \001(\0162,.google.cloud.clouddms.v1.D" + + "atabaseEntityType\022@\n\ndraft_type\030\005 \001(\0162,." + + "google.cloud.clouddms.v1.DatabaseEntityT" + + "ype\022D\n\013mapping_log\030\003 \003(\0132/.google.cloud." + + "clouddms.v1.EntityMappingLogEntry\"[\n\025Ent" + + "ityMappingLogEntry\022\017\n\007rule_id\030\001 \001(\t\022\030\n\020r" + + "ule_revision_id\030\002 \001(\t\022\027\n\017mapping_comment" + + "\030\003 \001(\t*\315\004\n\022DatabaseEntityType\022$\n DATABAS" + + "E_ENTITY_TYPE_UNSPECIFIED\020\000\022\037\n\033DATABASE_" + + "ENTITY_TYPE_SCHEMA\020\001\022\036\n\032DATABASE_ENTITY_" + + "TYPE_TABLE\020\002\022\037\n\033DATABASE_ENTITY_TYPE_COL" + + "UMN\020\003\022#\n\037DATABASE_ENTITY_TYPE_CONSTRAINT" + + "\020\004\022\036\n\032DATABASE_ENTITY_TYPE_INDEX\020\005\022 \n\034DA" + + "TABASE_ENTITY_TYPE_TRIGGER\020\006\022\035\n\031DATABASE" + + "_ENTITY_TYPE_VIEW\020\007\022!\n\035DATABASE_ENTITY_T" + + "YPE_SEQUENCE\020\010\022)\n%DATABASE_ENTITY_TYPE_S" + + "TORED_PROCEDURE\020\t\022!\n\035DATABASE_ENTITY_TYP" + + "E_FUNCTION\020\n\022 \n\034DATABASE_ENTITY_TYPE_SYN" + + "ONYM\020\013\022)\n%DATABASE_ENTITY_TYPE_DATABASE_" + + "PACKAGE\020\014\022\034\n\030DATABASE_ENTITY_TYPE_UDT\020\r\022" + + "*\n&DATABASE_ENTITY_TYPE_MATERIALIZED_VIE" + + "W\020\016\022!\n\035DATABASE_ENTITY_TYPE_DATABASE\020\017*\324" + + "\001\n\021BackgroundJobType\022#\n\037BACKGROUND_JOB_T" + + "YPE_UNSPECIFIED\020\000\022#\n\037BACKGROUND_JOB_TYPE" + + "_SOURCE_SEED\020\001\022\037\n\033BACKGROUND_JOB_TYPE_CO" + + "NVERT\020\002\022)\n%BACKGROUND_JOB_TYPE_APPLY_DES" + + "TINATION\020\003\022)\n%BACKGROUND_JOB_TYPE_IMPORT" + + "_RULES_FILE\020\005*\255\001\n\025ImportRulesFileFormat\022" + + "(\n$IMPORT_RULES_FILE_FORMAT_UNSPECIFIED\020" + + "\000\0228\n4IMPORT_RULES_FILE_FORMAT_HARBOUR_BR" + + "IDGE_SESSION_FILE\020\001\0220\n,IMPORT_RULES_FILE" + + "_FORMAT_ORATOPG_CONFIG_FILE\020\002B\321\001\n\034com.go" + + "ogle.cloud.clouddms.v1B!ConversionWorksp" + + "aceResourcesProtoP\001Z8cloud.google.com/go" + + "/clouddms/apiv1/clouddmspb;clouddmspb\252\002\030" + + "Google.Cloud.CloudDms.V1\312\002\030Google\\Cloud\\" + + "CloudDms\\V1\352\002\033Google::Cloud::CloudDMS::V" + + "1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_clouddms_v1_DatabaseEngineInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_clouddms_v1_DatabaseEngineInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DatabaseEngineInfo_descriptor, + new java.lang.String[] { + "Engine", "Version", + }); + internal_static_google_cloud_clouddms_v1_ConversionWorkspace_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_clouddms_v1_ConversionWorkspace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ConversionWorkspace_descriptor, + new java.lang.String[] { + "Name", + "Source", + "Destination", + "GlobalSettings", + "HasUncommittedChanges", + "LatestCommitId", + "LatestCommitTime", + "CreateTime", + "UpdateTime", + "DisplayName", + }); + internal_static_google_cloud_clouddms_v1_ConversionWorkspace_GlobalSettingsEntry_descriptor = + internal_static_google_cloud_clouddms_v1_ConversionWorkspace_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_clouddms_v1_ConversionWorkspace_GlobalSettingsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ConversionWorkspace_GlobalSettingsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_descriptor, + new java.lang.String[] { + "Id", + "JobType", + "StartTime", + "FinishTime", + "CompletionState", + "CompletionComment", + "RequestAutocommit", + "SeedJobDetails", + "ImportRulesJobDetails", + "ConvertJobDetails", + "ApplyJobDetails", + "JobDetails", + }); + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_SeedJobDetails_descriptor = + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_SeedJobDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_SeedJobDetails_descriptor, + new java.lang.String[] { + "ConnectionProfile", + }); + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ImportRulesJobDetails_descriptor = + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ImportRulesJobDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ImportRulesJobDetails_descriptor, + new java.lang.String[] { + "Files", "FileFormat", + }); + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ConvertJobDetails_descriptor = + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ConvertJobDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ConvertJobDetails_descriptor, + new java.lang.String[] { + "Filter", + }); + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ApplyJobDetails_descriptor = + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ApplyJobDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_BackgroundJobLogEntry_ApplyJobDetails_descriptor, + new java.lang.String[] { + "ConnectionProfile", "Filter", + }); + internal_static_google_cloud_clouddms_v1_DatabaseEntity_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_clouddms_v1_DatabaseEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_DatabaseEntity_descriptor, + new java.lang.String[] { + "ShortName", + "ParentEntity", + "Tree", + "EntityType", + "Mappings", + "Schema", + "Table", + "View", + "Sequence", + "StoredProcedure", + "DatabaseFunction", + "Synonym", + "DatabasePackage", + "EntityBody", + }); + internal_static_google_cloud_clouddms_v1_SchemaEntity_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_clouddms_v1_SchemaEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SchemaEntity_descriptor, + new java.lang.String[] { + "CustomFeatures", + }); + internal_static_google_cloud_clouddms_v1_TableEntity_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_clouddms_v1_TableEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_TableEntity_descriptor, + new java.lang.String[] { + "Columns", "Constraints", "Indices", "Triggers", "CustomFeatures", "Comment", + }); + internal_static_google_cloud_clouddms_v1_ColumnEntity_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_clouddms_v1_ColumnEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ColumnEntity_descriptor, + new java.lang.String[] { + "Name", + "DataType", + "Charset", + "Collation", + "Length", + "Precision", + "Scale", + "FractionalSecondsPrecision", + "Array", + "ArrayLength", + "Nullable", + "AutoGenerated", + "Udt", + "CustomFeatures", + "SetValues", + "Comment", + "OrdinalPosition", + "DefaultValue", + }); + internal_static_google_cloud_clouddms_v1_ConstraintEntity_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_clouddms_v1_ConstraintEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ConstraintEntity_descriptor, + new java.lang.String[] { + "Name", + "Type", + "TableColumns", + "CustomFeatures", + "ReferenceColumns", + "ReferenceTable", + "TableName", + }); + internal_static_google_cloud_clouddms_v1_IndexEntity_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_clouddms_v1_IndexEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_IndexEntity_descriptor, + new java.lang.String[] { + "Name", "Type", "TableColumns", "Unique", "CustomFeatures", + }); + internal_static_google_cloud_clouddms_v1_TriggerEntity_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_clouddms_v1_TriggerEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_TriggerEntity_descriptor, + new java.lang.String[] { + "Name", "TriggeringEvents", "TriggerType", "SqlCode", "CustomFeatures", + }); + internal_static_google_cloud_clouddms_v1_ViewEntity_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_clouddms_v1_ViewEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_ViewEntity_descriptor, + new java.lang.String[] { + "SqlCode", "CustomFeatures", "Constraints", + }); + internal_static_google_cloud_clouddms_v1_SequenceEntity_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_clouddms_v1_SequenceEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SequenceEntity_descriptor, + new java.lang.String[] { + "Increment", "StartValue", "MaxValue", "MinValue", "Cycle", "Cache", "CustomFeatures", + }); + internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_descriptor, + new java.lang.String[] { + "SqlCode", "CustomFeatures", + }); + internal_static_google_cloud_clouddms_v1_FunctionEntity_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_clouddms_v1_FunctionEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_FunctionEntity_descriptor, + new java.lang.String[] { + "SqlCode", "CustomFeatures", + }); + internal_static_google_cloud_clouddms_v1_SynonymEntity_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_clouddms_v1_SynonymEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_SynonymEntity_descriptor, + new java.lang.String[] { + "SourceEntity", "SourceType", "CustomFeatures", + }); + internal_static_google_cloud_clouddms_v1_PackageEntity_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_clouddms_v1_PackageEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_PackageEntity_descriptor, + new java.lang.String[] { + "PackageSqlCode", "PackageBody", "CustomFeatures", + }); + internal_static_google_cloud_clouddms_v1_EntityMapping_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_clouddms_v1_EntityMapping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_EntityMapping_descriptor, + new java.lang.String[] { + "SourceEntity", "DraftEntity", "SourceType", "DraftType", "MappingLog", + }); + internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_descriptor, + new java.lang.String[] { + "RuleId", "RuleRevisionId", "MappingComment", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequest.java new file mode 100644 index 000000000000..4aeb23f12465 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequest.java @@ -0,0 +1,930 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'ConvertConversionWorkspace' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest} + */ +public final class ConvertConversionWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest) + ConvertConversionWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConvertConversionWorkspaceRequest.newBuilder() to construct. + private ConvertConversionWorkspaceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConvertConversionWorkspaceRequest() { + name_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConvertConversionWorkspaceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Name of the conversion workspace resource to convert in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the conversion workspace resource to convert in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTO_COMMIT_FIELD_NUMBER = 4; + private boolean autoCommit_ = false; + /** + * + * + *
+   * Specifies whether the conversion workspace is to be committed automatically
+   * after the conversion.
+   * 
+ * + * bool auto_commit = 4; + * + * @return The autoCommit. + */ + @java.lang.Override + public boolean getAutoCommit() { + return autoCommit_; + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Filter the entities to convert. Leaving this field empty will convert all
+   * of the entities. Supports Google AIP-160 style filtering.
+   * 
+ * + * string filter = 5; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filter the entities to convert. Leaving this field empty will convert all
+   * of the entities. Supports Google AIP-160 style filtering.
+   * 
+ * + * string filter = 5; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (autoCommit_ != false) { + output.writeBool(4, autoCommit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (autoCommit_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, autoCommit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest other = + (com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getAutoCommit() != other.getAutoCommit()) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + AUTO_COMMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoCommit()); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest 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.clouddms.v1.ConvertConversionWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest 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.clouddms.v1.ConvertConversionWorkspaceRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest 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.clouddms.v1.ConvertConversionWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest 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.clouddms.v1.ConvertConversionWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest 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.clouddms.v1.ConvertConversionWorkspaceRequest 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; + } + /** + * + * + *
+   * Request message for 'ConvertConversionWorkspace' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest) + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + autoCommit_ = false; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ConvertConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest build() { + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest buildPartial() { + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest result = + new com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.autoCommit_ = autoCommit_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filter_; + } + } + + @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.clouddms.v1.ConvertConversionWorkspaceRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest other) { + if (other + == com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getAutoCommit() != false) { + setAutoCommit(other.getAutoCommit()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 32: + { + autoCommit_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 32 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Name of the conversion workspace resource to convert in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the conversion workspace resource to convert in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the conversion workspace resource to convert in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the conversion workspace resource to convert in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the conversion workspace resource to convert in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean autoCommit_; + /** + * + * + *
+     * Specifies whether the conversion workspace is to be committed automatically
+     * after the conversion.
+     * 
+ * + * bool auto_commit = 4; + * + * @return The autoCommit. + */ + @java.lang.Override + public boolean getAutoCommit() { + return autoCommit_; + } + /** + * + * + *
+     * Specifies whether the conversion workspace is to be committed automatically
+     * after the conversion.
+     * 
+ * + * bool auto_commit = 4; + * + * @param value The autoCommit to set. + * @return This builder for chaining. + */ + public Builder setAutoCommit(boolean value) { + + autoCommit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies whether the conversion workspace is to be committed automatically
+     * after the conversion.
+     * 
+ * + * bool auto_commit = 4; + * + * @return This builder for chaining. + */ + public Builder clearAutoCommit() { + bitField0_ = (bitField0_ & ~0x00000002); + autoCommit_ = false; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filter the entities to convert. Leaving this field empty will convert all
+     * of the entities. Supports Google AIP-160 style filtering.
+     * 
+ * + * string filter = 5; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter the entities to convert. Leaving this field empty will convert all
+     * of the entities. Supports Google AIP-160 style filtering.
+     * 
+ * + * string filter = 5; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter the entities to convert. Leaving this field empty will convert all
+     * of the entities. Supports Google AIP-160 style filtering.
+     * 
+ * + * string filter = 5; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter the entities to convert. Leaving this field empty will convert all
+     * of the entities. Supports Google AIP-160 style filtering.
+     * 
+ * + * string filter = 5; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter the entities to convert. Leaving this field empty will convert all
+     * of the entities. Supports Google AIP-160 style filtering.
+     * 
+ * + * string filter = 5; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000004; + 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.clouddms.v1.ConvertConversionWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest) + private static final com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest(); + } + + public static com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConvertConversionWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequestOrBuilder.java new file mode 100644 index 000000000000..8f8dd767753d --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConvertConversionWorkspaceRequestOrBuilder.java @@ -0,0 +1,93 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface ConvertConversionWorkspaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the conversion workspace resource to convert in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the conversion workspace resource to convert in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Specifies whether the conversion workspace is to be committed automatically
+   * after the conversion.
+   * 
+ * + * bool auto_commit = 4; + * + * @return The autoCommit. + */ + boolean getAutoCommit(); + + /** + * + * + *
+   * Filter the entities to convert. Leaving this field empty will convert all
+   * of the entities. Supports Google AIP-160 style filtering.
+   * 
+ * + * string filter = 5; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filter the entities to convert. Leaving this field empty will convert all
+   * of the entities. Supports Google AIP-160 style filtering.
+   * 
+ * + * string filter = 5; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java index 169e164a0cbb..52703055cb88 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent, which owns this collection of connection profiles.
+   * Required. The parent which owns this collection of connection profiles.
    * 
* * @@ -103,7 +103,7 @@ public java.lang.String getParent() { * * *
-   * Required. The parent, which owns this collection of connection profiles.
+   * Required. The parent which owns this collection of connection profiles.
    * 
* * @@ -240,14 +240,14 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The requestId. */ @@ -267,14 +267,14 @@ public java.lang.String getRequestId() { * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for requestId. */ @@ -291,6 +291,46 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } + public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; + private boolean validateOnly_ = false; + /** + * + * + *
+   * Optional. Only validate the connection profile, but don't create any
+   * resources. The default is false. Only supported for Oracle connection
+   * profiles.
+   * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int SKIP_VALIDATION_FIELD_NUMBER = 6; + private boolean skipValidation_ = false; + /** + * + * + *
+   * Optional. Create the connection profile without validating it.
+   * The default is false.
+   * Only supported for Oracle connection profiles.
+   * 
+ * + * bool skip_validation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + @java.lang.Override + public boolean getSkipValidation() { + return skipValidation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -317,6 +357,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); } + if (validateOnly_ != false) { + output.writeBool(5, validateOnly_); + } + if (skipValidation_ != false) { + output.writeBool(6, skipValidation_); + } getUnknownFields().writeTo(output); } @@ -338,6 +384,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); + } + if (skipValidation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, skipValidation_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -361,6 +413,8 @@ public boolean equals(final java.lang.Object obj) { if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; } if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getSkipValidation() != other.getSkipValidation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -382,6 +436,10 @@ public int hashCode() { } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + SKIP_VALIDATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipValidation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -530,6 +588,8 @@ public Builder clear() { connectionProfileBuilder_ = null; } requestId_ = ""; + validateOnly_ = false; + skipValidation_ = false; return this; } @@ -581,6 +641,12 @@ private void buildPartial0(com.google.cloud.clouddms.v1.CreateConnectionProfileR if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skipValidation_ = skipValidation_; + } } @java.lang.Override @@ -647,6 +713,12 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.CreateConnectionProfileReq bitField0_ |= 0x00000008; onChanged(); } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getSkipValidation() != false) { + setSkipValidation(other.getSkipValidation()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -698,6 +770,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + skipValidation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -722,7 +806,7 @@ public Builder mergeFrom( * * *
-     * Required. The parent, which owns this collection of connection profiles.
+     * Required. The parent which owns this collection of connection profiles.
      * 
* * @@ -746,7 +830,7 @@ public java.lang.String getParent() { * * *
-     * Required. The parent, which owns this collection of connection profiles.
+     * Required. The parent which owns this collection of connection profiles.
      * 
* * @@ -770,7 +854,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The parent, which owns this collection of connection profiles.
+     * Required. The parent which owns this collection of connection profiles.
      * 
* * @@ -793,7 +877,7 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The parent, which owns this collection of connection profiles.
+     * Required. The parent which owns this collection of connection profiles.
      * 
* * @@ -812,7 +896,7 @@ public Builder clearParent() { * * *
-     * Required. The parent, which owns this collection of connection profiles.
+     * Required. The parent which owns this collection of connection profiles.
      * 
* * @@ -1147,14 +1231,14 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The requestId. */ @@ -1173,14 +1257,14 @@ public java.lang.String getRequestId() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for requestId. */ @@ -1199,14 +1283,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The requestId to set. * @return This builder for chaining. @@ -1224,14 +1308,14 @@ public Builder setRequestId(java.lang.String value) { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1245,14 +1329,14 @@ public Builder clearRequestId() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for requestId to set. * @return This builder for chaining. @@ -1268,6 +1352,124 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private boolean validateOnly_; + /** + * + * + *
+     * Optional. Only validate the connection profile, but don't create any
+     * resources. The default is false. Only supported for Oracle connection
+     * profiles.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * Optional. Only validate the connection profile, but don't create any
+     * resources. The default is false. Only supported for Oracle connection
+     * profiles.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Only validate the connection profile, but don't create any
+     * resources. The default is false. Only supported for Oracle connection
+     * profiles.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000010); + validateOnly_ = false; + onChanged(); + return this; + } + + private boolean skipValidation_; + /** + * + * + *
+     * Optional. Create the connection profile without validating it.
+     * The default is false.
+     * Only supported for Oracle connection profiles.
+     * 
+ * + * bool skip_validation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + @java.lang.Override + public boolean getSkipValidation() { + return skipValidation_; + } + /** + * + * + *
+     * Optional. Create the connection profile without validating it.
+     * The default is false.
+     * Only supported for Oracle connection profiles.
+     * 
+ * + * bool skip_validation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skipValidation to set. + * @return This builder for chaining. + */ + public Builder setSkipValidation(boolean value) { + + skipValidation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Create the connection profile without validating it.
+     * The default is false.
+     * Only supported for Oracle connection profiles.
+     * 
+ * + * bool skip_validation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkipValidation() { + bitField0_ = (bitField0_ & ~0x00000020); + skipValidation_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java index 60a3a5bbb96b..106d219e1c83 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConnectionProfileRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface CreateConnectionProfileRequestOrBuilder * * *
-   * Required. The parent, which owns this collection of connection profiles.
+   * Required. The parent which owns this collection of connection profiles.
    * 
* * @@ -41,7 +41,7 @@ public interface CreateConnectionProfileRequestOrBuilder * * *
-   * Required. The parent, which owns this collection of connection profiles.
+   * Required. The parent which owns this collection of connection profiles.
    * 
* * @@ -122,14 +122,14 @@ public interface CreateConnectionProfileRequestOrBuilder * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The requestId. */ @@ -138,16 +138,46 @@ public interface CreateConnectionProfileRequestOrBuilder * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* - * string request_id = 4; + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. Only validate the connection profile, but don't create any
+   * resources. The default is false. Only supported for Oracle connection
+   * profiles.
+   * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * Optional. Create the connection profile without validating it.
+   * The default is false.
+   * Only supported for Oracle connection profiles.
+   * 
+ * + * bool skip_validation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + boolean getSkipValidation(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConversionWorkspaceRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConversionWorkspaceRequest.java new file mode 100644 index 000000000000..bb881c395521 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConversionWorkspaceRequest.java @@ -0,0 +1,1341 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message to create a new Conversion Workspace
+ * in the specified project and region.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.CreateConversionWorkspaceRequest} + */ +public final class CreateConversionWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.CreateConversionWorkspaceRequest) + CreateConversionWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateConversionWorkspaceRequest.newBuilder() to construct. + private CreateConversionWorkspaceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateConversionWorkspaceRequest() { + parent_ = ""; + conversionWorkspaceId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateConversionWorkspaceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent which owns this collection of conversion workspaces.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent which owns this collection of conversion workspaces.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONVERSION_WORKSPACE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversionWorkspaceId_ = ""; + /** + * + * + *
+   * Required. The ID of the conversion workspace to create.
+   * 
+ * + * string conversion_workspace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conversionWorkspaceId. + */ + @java.lang.Override + public java.lang.String getConversionWorkspaceId() { + java.lang.Object ref = conversionWorkspaceId_; + 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(); + conversionWorkspaceId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID of the conversion workspace to create.
+   * 
+ * + * string conversion_workspace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conversionWorkspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversionWorkspaceIdBytes() { + java.lang.Object ref = conversionWorkspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversionWorkspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONVERSION_WORKSPACE_FIELD_NUMBER = 3; + private com.google.cloud.clouddms.v1.ConversionWorkspace conversionWorkspace_; + /** + * + * + *
+   * Required. Represents a conversion workspace object.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionWorkspace field is set. + */ + @java.lang.Override + public boolean hasConversionWorkspace() { + return conversionWorkspace_ != null; + } + /** + * + * + *
+   * Required. Represents a conversion workspace object.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionWorkspace. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspace getConversionWorkspace() { + return conversionWorkspace_ == null + ? com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance() + : conversionWorkspace_; + } + /** + * + * + *
+   * Required. Represents a conversion workspace object.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder + getConversionWorkspaceOrBuilder() { + return conversionWorkspace_ == null + ? com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance() + : conversionWorkspace_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversionWorkspaceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, conversionWorkspaceId_); + } + if (conversionWorkspace_ != null) { + output.writeMessage(3, getConversionWorkspace()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversionWorkspaceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, conversionWorkspaceId_); + } + if (conversionWorkspace_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConversionWorkspace()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest other = + (com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getConversionWorkspaceId().equals(other.getConversionWorkspaceId())) return false; + if (hasConversionWorkspace() != other.hasConversionWorkspace()) return false; + if (hasConversionWorkspace()) { + if (!getConversionWorkspace().equals(other.getConversionWorkspace())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CONVERSION_WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getConversionWorkspaceId().hashCode(); + if (hasConversionWorkspace()) { + hash = (37 * hash) + CONVERSION_WORKSPACE_FIELD_NUMBER; + hash = (53 * hash) + getConversionWorkspace().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest 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.clouddms.v1.CreateConversionWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest 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.clouddms.v1.CreateConversionWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest 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.clouddms.v1.CreateConversionWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest 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.clouddms.v1.CreateConversionWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest 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.clouddms.v1.CreateConversionWorkspaceRequest 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; + } + /** + * + * + *
+   * Request message to create a new Conversion Workspace
+   * in the specified project and region.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.CreateConversionWorkspaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.CreateConversionWorkspaceRequest) + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + conversionWorkspaceId_ = ""; + conversionWorkspace_ = null; + if (conversionWorkspaceBuilder_ != null) { + conversionWorkspaceBuilder_.dispose(); + conversionWorkspaceBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreateConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest build() { + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest buildPartial() { + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest result = + new com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.conversionWorkspaceId_ = conversionWorkspaceId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.conversionWorkspace_ = + conversionWorkspaceBuilder_ == null + ? conversionWorkspace_ + : conversionWorkspaceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.clouddms.v1.CreateConversionWorkspaceRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest other) { + if (other + == com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getConversionWorkspaceId().isEmpty()) { + conversionWorkspaceId_ = other.conversionWorkspaceId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasConversionWorkspace()) { + mergeConversionWorkspace(other.getConversionWorkspace()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + conversionWorkspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getConversionWorkspaceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent which owns this collection of conversion workspaces.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent which owns this collection of conversion workspaces.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent which owns this collection of conversion workspaces.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent which owns this collection of conversion workspaces.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent which owns this collection of conversion workspaces.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object conversionWorkspaceId_ = ""; + /** + * + * + *
+     * Required. The ID of the conversion workspace to create.
+     * 
+ * + * string conversion_workspace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conversionWorkspaceId. + */ + public java.lang.String getConversionWorkspaceId() { + java.lang.Object ref = conversionWorkspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversionWorkspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID of the conversion workspace to create.
+     * 
+ * + * string conversion_workspace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conversionWorkspaceId. + */ + public com.google.protobuf.ByteString getConversionWorkspaceIdBytes() { + java.lang.Object ref = conversionWorkspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversionWorkspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID of the conversion workspace to create.
+     * 
+ * + * string conversion_workspace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The conversionWorkspaceId to set. + * @return This builder for chaining. + */ + public Builder setConversionWorkspaceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversionWorkspaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the conversion workspace to create.
+     * 
+ * + * string conversion_workspace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConversionWorkspaceId() { + conversionWorkspaceId_ = getDefaultInstance().getConversionWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the conversion workspace to create.
+     * 
+ * + * string conversion_workspace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for conversionWorkspaceId to set. + * @return This builder for chaining. + */ + public Builder setConversionWorkspaceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversionWorkspaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.clouddms.v1.ConversionWorkspace conversionWorkspace_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConversionWorkspace, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder> + conversionWorkspaceBuilder_; + /** + * + * + *
+     * Required. Represents a conversion workspace object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionWorkspace field is set. + */ + public boolean hasConversionWorkspace() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. Represents a conversion workspace object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionWorkspace. + */ + public com.google.cloud.clouddms.v1.ConversionWorkspace getConversionWorkspace() { + if (conversionWorkspaceBuilder_ == null) { + return conversionWorkspace_ == null + ? com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance() + : conversionWorkspace_; + } else { + return conversionWorkspaceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Represents a conversion workspace object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionWorkspace(com.google.cloud.clouddms.v1.ConversionWorkspace value) { + if (conversionWorkspaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionWorkspace_ = value; + } else { + conversionWorkspaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Represents a conversion workspace object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionWorkspace( + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder builderForValue) { + if (conversionWorkspaceBuilder_ == null) { + conversionWorkspace_ = builderForValue.build(); + } else { + conversionWorkspaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Represents a conversion workspace object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConversionWorkspace( + com.google.cloud.clouddms.v1.ConversionWorkspace value) { + if (conversionWorkspaceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && conversionWorkspace_ != null + && conversionWorkspace_ + != com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance()) { + getConversionWorkspaceBuilder().mergeFrom(value); + } else { + conversionWorkspace_ = value; + } + } else { + conversionWorkspaceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Represents a conversion workspace object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConversionWorkspace() { + bitField0_ = (bitField0_ & ~0x00000004); + conversionWorkspace_ = null; + if (conversionWorkspaceBuilder_ != null) { + conversionWorkspaceBuilder_.dispose(); + conversionWorkspaceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Represents a conversion workspace object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.ConversionWorkspace.Builder + getConversionWorkspaceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getConversionWorkspaceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Represents a conversion workspace object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder + getConversionWorkspaceOrBuilder() { + if (conversionWorkspaceBuilder_ != null) { + return conversionWorkspaceBuilder_.getMessageOrBuilder(); + } else { + return conversionWorkspace_ == null + ? com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance() + : conversionWorkspace_; + } + } + /** + * + * + *
+     * Required. Represents a conversion workspace object.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConversionWorkspace, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder> + getConversionWorkspaceFieldBuilder() { + if (conversionWorkspaceBuilder_ == null) { + conversionWorkspaceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConversionWorkspace, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder>( + getConversionWorkspace(), getParentForChildren(), isClean()); + conversionWorkspace_ = null; + } + return conversionWorkspaceBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + 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.clouddms.v1.CreateConversionWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.CreateConversionWorkspaceRequest) + private static final com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest(); + } + + public static com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConversionWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConversionWorkspaceRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConversionWorkspaceRequestOrBuilder.java new file mode 100644 index 000000000000..92c6f32162b0 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateConversionWorkspaceRequestOrBuilder.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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface CreateConversionWorkspaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.CreateConversionWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent which owns this collection of conversion workspaces.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent which owns this collection of conversion workspaces.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the conversion workspace to create.
+   * 
+ * + * string conversion_workspace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The conversionWorkspaceId. + */ + java.lang.String getConversionWorkspaceId(); + /** + * + * + *
+   * Required. The ID of the conversion workspace to create.
+   * 
+ * + * string conversion_workspace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for conversionWorkspaceId. + */ + com.google.protobuf.ByteString getConversionWorkspaceIdBytes(); + + /** + * + * + *
+   * Required. Represents a conversion workspace object.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionWorkspace field is set. + */ + boolean hasConversionWorkspace(); + /** + * + * + *
+   * Required. Represents a conversion workspace object.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionWorkspace. + */ + com.google.cloud.clouddms.v1.ConversionWorkspace getConversionWorkspace(); + /** + * + * + *
+   * Required. Represents a conversion workspace object.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder getConversionWorkspaceOrBuilder(); + + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java index 3af50ff1c5eb..6f4d8f44b33e 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent, which owns this collection of migration jobs.
+   * Required. The parent which owns this collection of migration jobs.
    * 
* * @@ -103,7 +103,7 @@ public java.lang.String getParent() { * * *
-   * Required. The parent, which owns this collection of migration jobs.
+   * Required. The parent which owns this collection of migration jobs.
    * 
* * @@ -246,10 +246,10 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -273,10 +273,10 @@ public java.lang.String getRequestId() { * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -726,7 +726,7 @@ public Builder mergeFrom( * * *
-     * Required. The parent, which owns this collection of migration jobs.
+     * Required. The parent which owns this collection of migration jobs.
      * 
* * @@ -750,7 +750,7 @@ public java.lang.String getParent() { * * *
-     * Required. The parent, which owns this collection of migration jobs.
+     * Required. The parent which owns this collection of migration jobs.
      * 
* * @@ -774,7 +774,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The parent, which owns this collection of migration jobs.
+     * Required. The parent which owns this collection of migration jobs.
      * 
* * @@ -797,7 +797,7 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The parent, which owns this collection of migration jobs.
+     * Required. The parent which owns this collection of migration jobs.
      * 
* * @@ -816,7 +816,7 @@ public Builder clearParent() { * * *
-     * Required. The parent, which owns this collection of migration jobs.
+     * Required. The parent which owns this collection of migration jobs.
      * 
* * @@ -1168,10 +1168,10 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1194,10 +1194,10 @@ public java.lang.String getRequestId() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1220,10 +1220,10 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1245,10 +1245,10 @@ public Builder setRequestId(java.lang.String value) { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1266,10 +1266,10 @@ public Builder clearRequestId() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java index 5c20f7def7eb..8eedb06718a4 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreateMigrationJobRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface CreateMigrationJobRequestOrBuilder * * *
-   * Required. The parent, which owns this collection of migration jobs.
+   * Required. The parent which owns this collection of migration jobs.
    * 
* * @@ -41,7 +41,7 @@ public interface CreateMigrationJobRequestOrBuilder * * *
-   * Required. The parent, which owns this collection of migration jobs.
+   * Required. The parent which owns this collection of migration jobs.
    * 
* * @@ -128,10 +128,10 @@ public interface CreateMigrationJobRequestOrBuilder * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -144,10 +144,10 @@ public interface CreateMigrationJobRequestOrBuilder * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreatePrivateConnectionRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreatePrivateConnectionRequest.java new file mode 100644 index 000000000000..db2e618648f1 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreatePrivateConnectionRequest.java @@ -0,0 +1,1426 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message to create a new private connection in the specified project
+ * and region.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.CreatePrivateConnectionRequest} + */ +public final class CreatePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.CreatePrivateConnectionRequest) + CreatePrivateConnectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreatePrivateConnectionRequest.newBuilder() to construct. + private CreatePrivateConnectionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatePrivateConnectionRequest() { + parent_ = ""; + privateConnectionId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatePrivateConnectionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest.class, + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent that owns the collection of PrivateConnections.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent that owns the collection of PrivateConnections.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_CONNECTION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateConnectionId_ = ""; + /** + * + * + *
+   * Required. The private connection identifier.
+   * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateConnectionId. + */ + @java.lang.Override + public java.lang.String getPrivateConnectionId() { + java.lang.Object ref = privateConnectionId_; + 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(); + privateConnectionId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The private connection identifier.
+   * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateConnectionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { + java.lang.Object ref = privateConnectionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateConnectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_CONNECTION_FIELD_NUMBER = 3; + private com.google.cloud.clouddms.v1.PrivateConnection privateConnection_; + /** + * + * + *
+   * Required. The private connection resource to create.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateConnection field is set. + */ + @java.lang.Override + public boolean hasPrivateConnection() { + return privateConnection_ != null; + } + /** + * + * + *
+   * Required. The private connection resource to create.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateConnection. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnection getPrivateConnection() { + return privateConnection_ == null + ? com.google.cloud.clouddms.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; + } + /** + * + * + *
+   * Required. The private connection resource to create.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder() { + return privateConnection_ == null + ? com.google.cloud.clouddms.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_VALIDATION_FIELD_NUMBER = 5; + private boolean skipValidation_ = false; + /** + * + * + *
+   * Optional. If set to true, will skip validations.
+   * 
+ * + * bool skip_validation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + @java.lang.Override + public boolean getSkipValidation() { + return skipValidation_; + } + + 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnectionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, privateConnectionId_); + } + if (privateConnection_ != null) { + output.writeMessage(3, getPrivateConnection()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + if (skipValidation_ != false) { + output.writeBool(5, skipValidation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnectionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateConnectionId_); + } + if (privateConnection_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPrivateConnection()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + if (skipValidation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, skipValidation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest other = + (com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPrivateConnectionId().equals(other.getPrivateConnectionId())) return false; + if (hasPrivateConnection() != other.hasPrivateConnection()) return false; + if (hasPrivateConnection()) { + if (!getPrivateConnection().equals(other.getPrivateConnection())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getSkipValidation() != other.getSkipValidation()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PRIVATE_CONNECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnectionId().hashCode(); + if (hasPrivateConnection()) { + hash = (37 * hash) + PRIVATE_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnection().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + SKIP_VALIDATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipValidation()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest 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.clouddms.v1.CreatePrivateConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest 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.clouddms.v1.CreatePrivateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest 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.clouddms.v1.CreatePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest 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.clouddms.v1.CreatePrivateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest 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.clouddms.v1.CreatePrivateConnectionRequest 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; + } + /** + * + * + *
+   * Request message to create a new private connection in the specified project
+   * and region.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.CreatePrivateConnectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.CreatePrivateConnectionRequest) + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest.class, + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + privateConnectionId_ = ""; + privateConnection_ = null; + if (privateConnectionBuilder_ != null) { + privateConnectionBuilder_.dispose(); + privateConnectionBuilder_ = null; + } + requestId_ = ""; + skipValidation_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_CreatePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest build() { + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest buildPartial() { + com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest result = + new com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.privateConnectionId_ = privateConnectionId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.privateConnection_ = + privateConnectionBuilder_ == null + ? privateConnection_ + : privateConnectionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.skipValidation_ = skipValidation_; + } + } + + @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.clouddms.v1.CreatePrivateConnectionRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest other) { + if (other == com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPrivateConnectionId().isEmpty()) { + privateConnectionId_ = other.privateConnectionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasPrivateConnection()) { + mergePrivateConnection(other.getPrivateConnection()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getSkipValidation() != false) { + setSkipValidation(other.getSkipValidation()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + privateConnectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getPrivateConnectionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + skipValidation_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent that owns the collection of PrivateConnections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent that owns the collection of PrivateConnections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent that owns the collection of PrivateConnections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent that owns the collection of PrivateConnections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent that owns the collection of PrivateConnections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object privateConnectionId_ = ""; + /** + * + * + *
+     * Required. The private connection identifier.
+     * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateConnectionId. + */ + public java.lang.String getPrivateConnectionId() { + java.lang.Object ref = privateConnectionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateConnectionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The private connection identifier.
+     * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateConnectionId. + */ + public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { + java.lang.Object ref = privateConnectionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateConnectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The private connection identifier.
+     * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The privateConnectionId to set. + * @return This builder for chaining. + */ + public Builder setPrivateConnectionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateConnectionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The private connection identifier.
+     * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrivateConnectionId() { + privateConnectionId_ = getDefaultInstance().getPrivateConnectionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The private connection identifier.
+     * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for privateConnectionId to set. + * @return This builder for chaining. + */ + public Builder setPrivateConnectionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateConnectionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.clouddms.v1.PrivateConnection privateConnection_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PrivateConnection, + com.google.cloud.clouddms.v1.PrivateConnection.Builder, + com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder> + privateConnectionBuilder_; + /** + * + * + *
+     * Required. The private connection resource to create.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateConnection field is set. + */ + public boolean hasPrivateConnection() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The private connection resource to create.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateConnection. + */ + public com.google.cloud.clouddms.v1.PrivateConnection getPrivateConnection() { + if (privateConnectionBuilder_ == null) { + return privateConnection_ == null + ? com.google.cloud.clouddms.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; + } else { + return privateConnectionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The private connection resource to create.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateConnection(com.google.cloud.clouddms.v1.PrivateConnection value) { + if (privateConnectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateConnection_ = value; + } else { + privateConnectionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The private connection resource to create.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPrivateConnection( + com.google.cloud.clouddms.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionBuilder_ == null) { + privateConnection_ = builderForValue.build(); + } else { + privateConnectionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The private connection resource to create.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePrivateConnection(com.google.cloud.clouddms.v1.PrivateConnection value) { + if (privateConnectionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && privateConnection_ != null + && privateConnection_ + != com.google.cloud.clouddms.v1.PrivateConnection.getDefaultInstance()) { + getPrivateConnectionBuilder().mergeFrom(value); + } else { + privateConnection_ = value; + } + } else { + privateConnectionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The private connection resource to create.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPrivateConnection() { + bitField0_ = (bitField0_ & ~0x00000004); + privateConnection_ = null; + if (privateConnectionBuilder_ != null) { + privateConnectionBuilder_.dispose(); + privateConnectionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The private connection resource to create.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.PrivateConnection.Builder getPrivateConnectionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPrivateConnectionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The private connection resource to create.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder() { + if (privateConnectionBuilder_ != null) { + return privateConnectionBuilder_.getMessageOrBuilder(); + } else { + return privateConnection_ == null + ? com.google.cloud.clouddms.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; + } + } + /** + * + * + *
+     * Required. The private connection resource to create.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PrivateConnection, + com.google.cloud.clouddms.v1.PrivateConnection.Builder, + com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder> + getPrivateConnectionFieldBuilder() { + if (privateConnectionBuilder_ == null) { + privateConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PrivateConnection, + com.google.cloud.clouddms.v1.PrivateConnection.Builder, + com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder>( + getPrivateConnection(), getParentForChildren(), isClean()); + privateConnection_ = null; + } + return privateConnectionBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean skipValidation_; + /** + * + * + *
+     * Optional. If set to true, will skip validations.
+     * 
+ * + * bool skip_validation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + @java.lang.Override + public boolean getSkipValidation() { + return skipValidation_; + } + /** + * + * + *
+     * Optional. If set to true, will skip validations.
+     * 
+ * + * bool skip_validation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skipValidation to set. + * @return This builder for chaining. + */ + public Builder setSkipValidation(boolean value) { + + skipValidation_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, will skip validations.
+     * 
+ * + * bool skip_validation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkipValidation() { + bitField0_ = (bitField0_ & ~0x00000010); + skipValidation_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.CreatePrivateConnectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.CreatePrivateConnectionRequest) + private static final com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest(); + } + + public static com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreatePrivateConnectionRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreatePrivateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..0a8fcc9baaa1 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/CreatePrivateConnectionRequestOrBuilder.java @@ -0,0 +1,166 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface CreatePrivateConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.CreatePrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent that owns the collection of PrivateConnections.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent that owns the collection of PrivateConnections.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The private connection identifier.
+   * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateConnectionId. + */ + java.lang.String getPrivateConnectionId(); + /** + * + * + *
+   * Required. The private connection identifier.
+   * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateConnectionId. + */ + com.google.protobuf.ByteString getPrivateConnectionIdBytes(); + + /** + * + * + *
+   * Required. The private connection resource to create.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the privateConnection field is set. + */ + boolean hasPrivateConnection(); + /** + * + * + *
+   * Required. The private connection resource to create.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The privateConnection. + */ + com.google.cloud.clouddms.v1.PrivateConnection getPrivateConnection(); + /** + * + * + *
+   * Required. The private connection resource to create.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder(); + + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set to true, will skip validations.
+   * 
+ * + * bool skip_validation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + boolean getSkipValidation(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java index 61db75fd30f1..acfd82970e7c 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngine.java @@ -58,6 +58,16 @@ public enum DatabaseEngine implements com.google.protobuf.ProtocolMessageEnum { * POSTGRESQL = 2; */ POSTGRESQL(2), + /** + * + * + *
+   * The source engine is Oracle.
+   * 
+ * + * ORACLE = 4; + */ + ORACLE(4), UNRECOGNIZED(-1), ; @@ -91,6 +101,16 @@ public enum DatabaseEngine implements com.google.protobuf.ProtocolMessageEnum { * POSTGRESQL = 2; */ public static final int POSTGRESQL_VALUE = 2; + /** + * + * + *
+   * The source engine is Oracle.
+   * 
+ * + * ORACLE = 4; + */ + public static final int ORACLE_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -122,6 +142,8 @@ public static DatabaseEngine forNumber(int value) { return MYSQL; case 2: return POSTGRESQL; + case 4: + return ORACLE; default: return null; } @@ -153,7 +175,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } private static final DatabaseEngine[] VALUES = values(); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngineInfo.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngineInfo.java new file mode 100644 index 000000000000..83d5b617c14b --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngineInfo.java @@ -0,0 +1,793 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * The type and version of a source or destination database.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DatabaseEngineInfo} + */ +public final class DatabaseEngineInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DatabaseEngineInfo) + DatabaseEngineInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatabaseEngineInfo.newBuilder() to construct. + private DatabaseEngineInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatabaseEngineInfo() { + engine_ = 0; + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatabaseEngineInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseEngineInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseEngineInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DatabaseEngineInfo.class, + com.google.cloud.clouddms.v1.DatabaseEngineInfo.Builder.class); + } + + public static final int ENGINE_FIELD_NUMBER = 1; + private int engine_ = 0; + /** + * + * + *
+   * Required. Engine type.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for engine. + */ + @java.lang.Override + public int getEngineValue() { + return engine_; + } + /** + * + * + *
+   * Required. Engine type.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The engine. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEngine getEngine() { + com.google.cloud.clouddms.v1.DatabaseEngine result = + com.google.cloud.clouddms.v1.DatabaseEngine.forNumber(engine_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEngine.UNRECOGNIZED : result; + } + + public static final int VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + * + * + *
+   * Required. Engine named version, for example 12.c.1.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Engine named version, for example 12.c.1.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = 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 (engine_ + != com.google.cloud.clouddms.v1.DatabaseEngine.DATABASE_ENGINE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, engine_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (engine_ + != com.google.cloud.clouddms.v1.DatabaseEngine.DATABASE_ENGINE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, engine_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.DatabaseEngineInfo)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.DatabaseEngineInfo other = + (com.google.cloud.clouddms.v1.DatabaseEngineInfo) obj; + + if (engine_ != other.engine_) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENGINE_FIELD_NUMBER; + hash = (53 * hash) + engine_; + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.DatabaseEngineInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DatabaseEngineInfo 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.clouddms.v1.DatabaseEngineInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DatabaseEngineInfo 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.clouddms.v1.DatabaseEngineInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DatabaseEngineInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.DatabaseEngineInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DatabaseEngineInfo 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.clouddms.v1.DatabaseEngineInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DatabaseEngineInfo 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.clouddms.v1.DatabaseEngineInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DatabaseEngineInfo 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.clouddms.v1.DatabaseEngineInfo 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; + } + /** + * + * + *
+   * The type and version of a source or destination database.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DatabaseEngineInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.DatabaseEngineInfo) + com.google.cloud.clouddms.v1.DatabaseEngineInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseEngineInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseEngineInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DatabaseEngineInfo.class, + com.google.cloud.clouddms.v1.DatabaseEngineInfo.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.DatabaseEngineInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + engine_ = 0; + version_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseEngineInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEngineInfo getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.DatabaseEngineInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEngineInfo build() { + com.google.cloud.clouddms.v1.DatabaseEngineInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEngineInfo buildPartial() { + com.google.cloud.clouddms.v1.DatabaseEngineInfo result = + new com.google.cloud.clouddms.v1.DatabaseEngineInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.DatabaseEngineInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.engine_ = engine_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + } + + @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.clouddms.v1.DatabaseEngineInfo) { + return mergeFrom((com.google.cloud.clouddms.v1.DatabaseEngineInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.DatabaseEngineInfo other) { + if (other == com.google.cloud.clouddms.v1.DatabaseEngineInfo.getDefaultInstance()) + return this; + if (other.engine_ != 0) { + setEngineValue(other.getEngineValue()); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + engine_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int engine_ = 0; + /** + * + * + *
+     * Required. Engine type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for engine. + */ + @java.lang.Override + public int getEngineValue() { + return engine_; + } + /** + * + * + *
+     * Required. Engine type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for engine to set. + * @return This builder for chaining. + */ + public Builder setEngineValue(int value) { + engine_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Engine type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The engine. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEngine getEngine() { + com.google.cloud.clouddms.v1.DatabaseEngine result = + com.google.cloud.clouddms.v1.DatabaseEngine.forNumber(engine_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEngine.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Required. Engine type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The engine to set. + * @return This builder for chaining. + */ + public Builder setEngine(com.google.cloud.clouddms.v1.DatabaseEngine value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + engine_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Engine type.
+     * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEngine() { + bitField0_ = (bitField0_ & ~0x00000001); + engine_ = 0; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * Required. Engine named version, for example 12.c.1.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Engine named version, for example 12.c.1.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Engine named version, for example 12.c.1.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Engine named version, for example 12.c.1.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Engine named version, for example 12.c.1.
+     * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DatabaseEngineInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DatabaseEngineInfo) + private static final com.google.cloud.clouddms.v1.DatabaseEngineInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DatabaseEngineInfo(); + } + + public static com.google.cloud.clouddms.v1.DatabaseEngineInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatabaseEngineInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEngineInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngineInfoOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngineInfoOrBuilder.java new file mode 100644 index 000000000000..b7559f74100b --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEngineInfoOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface DatabaseEngineInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DatabaseEngineInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Engine type.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for engine. + */ + int getEngineValue(); + /** + * + * + *
+   * Required. Engine type.
+   * 
+ * + * + * .google.cloud.clouddms.v1.DatabaseEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The engine. + */ + com.google.cloud.clouddms.v1.DatabaseEngine getEngine(); + + /** + * + * + *
+   * Required. Engine named version, for example 12.c.1.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * Required. Engine named version, for example 12.c.1.
+   * 
+ * + * string version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntity.java new file mode 100644 index 000000000000..b8986afa9194 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntity.java @@ -0,0 +1,4343 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * The base entity type for all the database related entities.
+ * The message contains the entity name, the name of its parent, the entity
+ * type, and the specific details per entity type.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DatabaseEntity} + */ +public final class DatabaseEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DatabaseEntity) + DatabaseEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatabaseEntity.newBuilder() to construct. + private DatabaseEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatabaseEntity() { + shortName_ = ""; + parentEntity_ = ""; + tree_ = 0; + entityType_ = 0; + mappings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatabaseEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DatabaseEntity.class, + com.google.cloud.clouddms.v1.DatabaseEntity.Builder.class); + } + + /** + * + * + *
+   * The type of database entities tree.
+   * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.DatabaseEntity.TreeType} + */ + public enum TreeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Tree type unspecified.
+     * 
+ * + * TREE_TYPE_UNSPECIFIED = 0; + */ + TREE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Tree of entities loaded from a source database.
+     * 
+ * + * SOURCE = 1; + */ + SOURCE(1), + /** + * + * + *
+     * Tree of entities converted from the source tree using the mapping rules.
+     * 
+ * + * DRAFT = 2; + */ + DRAFT(2), + /** + * + * + *
+     * Tree of entities observed on the destination database.
+     * 
+ * + * DESTINATION = 3; + */ + DESTINATION(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Tree type unspecified.
+     * 
+ * + * TREE_TYPE_UNSPECIFIED = 0; + */ + public static final int TREE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Tree of entities loaded from a source database.
+     * 
+ * + * SOURCE = 1; + */ + public static final int SOURCE_VALUE = 1; + /** + * + * + *
+     * Tree of entities converted from the source tree using the mapping rules.
+     * 
+ * + * DRAFT = 2; + */ + public static final int DRAFT_VALUE = 2; + /** + * + * + *
+     * Tree of entities observed on the destination database.
+     * 
+ * + * DESTINATION = 3; + */ + public static final int DESTINATION_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TreeType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TreeType forNumber(int value) { + switch (value) { + case 0: + return TREE_TYPE_UNSPECIFIED; + case 1: + return SOURCE; + case 2: + return DRAFT; + case 3: + return DESTINATION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TreeType findValueByNumber(int number) { + return TreeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.DatabaseEntity.getDescriptor().getEnumTypes().get(0); + } + + private static final TreeType[] VALUES = values(); + + public static TreeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TreeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.DatabaseEntity.TreeType) + } + + private int entityBodyCase_ = 0; + private java.lang.Object entityBody_; + + public enum EntityBodyCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SCHEMA(102), + TABLE(103), + VIEW(104), + SEQUENCE(105), + STORED_PROCEDURE(106), + DATABASE_FUNCTION(107), + SYNONYM(108), + DATABASE_PACKAGE(109), + ENTITYBODY_NOT_SET(0); + private final int value; + + private EntityBodyCase(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 EntityBodyCase valueOf(int value) { + return forNumber(value); + } + + public static EntityBodyCase forNumber(int value) { + switch (value) { + case 102: + return SCHEMA; + case 103: + return TABLE; + case 104: + return VIEW; + case 105: + return SEQUENCE; + case 106: + return STORED_PROCEDURE; + case 107: + return DATABASE_FUNCTION; + case 108: + return SYNONYM; + case 109: + return DATABASE_PACKAGE; + case 0: + return ENTITYBODY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntityBodyCase getEntityBodyCase() { + return EntityBodyCase.forNumber(entityBodyCase_); + } + + public static final int SHORT_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object shortName_ = ""; + /** + * + * + *
+   * The short name (e.g. table name) of the entity.
+   * 
+ * + * string short_name = 1; + * + * @return The shortName. + */ + @java.lang.Override + public java.lang.String getShortName() { + java.lang.Object ref = shortName_; + 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(); + shortName_ = s; + return s; + } + } + /** + * + * + *
+   * The short name (e.g. table name) of the entity.
+   * 
+ * + * string short_name = 1; + * + * @return The bytes for shortName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShortNameBytes() { + java.lang.Object ref = shortName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shortName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_ENTITY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object parentEntity_ = ""; + /** + * + * + *
+   * The full name of the parent entity (e.g. schema name).
+   * 
+ * + * string parent_entity = 2; + * + * @return The parentEntity. + */ + @java.lang.Override + public java.lang.String getParentEntity() { + java.lang.Object ref = parentEntity_; + 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(); + parentEntity_ = s; + return s; + } + } + /** + * + * + *
+   * The full name of the parent entity (e.g. schema name).
+   * 
+ * + * string parent_entity = 2; + * + * @return The bytes for parentEntity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentEntityBytes() { + java.lang.Object ref = parentEntity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentEntity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TREE_FIELD_NUMBER = 3; + private int tree_ = 0; + /** + * + * + *
+   * The type of tree the entity belongs to.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3; + * + * @return The enum numeric value on the wire for tree. + */ + @java.lang.Override + public int getTreeValue() { + return tree_; + } + /** + * + * + *
+   * The type of tree the entity belongs to.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3; + * + * @return The tree. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntity.TreeType getTree() { + com.google.cloud.clouddms.v1.DatabaseEntity.TreeType result = + com.google.cloud.clouddms.v1.DatabaseEntity.TreeType.forNumber(tree_); + return result == null + ? com.google.cloud.clouddms.v1.DatabaseEntity.TreeType.UNRECOGNIZED + : result; + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 4; + private int entityType_ = 0; + /** + * + * + *
+   * The type of the database entity (table, view, index, ...).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return The enum numeric value on the wire for entityType. + */ + @java.lang.Override + public int getEntityTypeValue() { + return entityType_; + } + /** + * + * + *
+   * The type of the database entity (table, view, index, ...).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return The entityType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getEntityType() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(entityType_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + + public static final int MAPPINGS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List mappings_; + /** + * + * + *
+   * Details about entity mappings.
+   * For source tree entities, this holds the draft entities which were
+   * generated by the mapping rules.
+   * For draft tree entities, this holds the source entities which were
+   * converted to form the draft entity.
+   * Destination entities will have no mapping details.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + @java.lang.Override + public java.util.List getMappingsList() { + return mappings_; + } + /** + * + * + *
+   * Details about entity mappings.
+   * For source tree entities, this holds the draft entities which were
+   * generated by the mapping rules.
+   * For draft tree entities, this holds the source entities which were
+   * converted to form the draft entity.
+   * Destination entities will have no mapping details.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + @java.lang.Override + public java.util.List + getMappingsOrBuilderList() { + return mappings_; + } + /** + * + * + *
+   * Details about entity mappings.
+   * For source tree entities, this holds the draft entities which were
+   * generated by the mapping rules.
+   * For draft tree entities, this holds the source entities which were
+   * converted to form the draft entity.
+   * Destination entities will have no mapping details.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + @java.lang.Override + public int getMappingsCount() { + return mappings_.size(); + } + /** + * + * + *
+   * Details about entity mappings.
+   * For source tree entities, this holds the draft entities which were
+   * generated by the mapping rules.
+   * For draft tree entities, this holds the source entities which were
+   * converted to form the draft entity.
+   * Destination entities will have no mapping details.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMapping getMappings(int index) { + return mappings_.get(index); + } + /** + * + * + *
+   * Details about entity mappings.
+   * For source tree entities, this holds the draft entities which were
+   * generated by the mapping rules.
+   * For draft tree entities, this holds the source entities which were
+   * converted to form the draft entity.
+   * Destination entities will have no mapping details.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMappingOrBuilder getMappingsOrBuilder(int index) { + return mappings_.get(index); + } + + public static final int SCHEMA_FIELD_NUMBER = 102; + /** + * + * + *
+   * Schema.
+   * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return entityBodyCase_ == 102; + } + /** + * + * + *
+   * Schema.
+   * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * + * @return The schema. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SchemaEntity getSchema() { + if (entityBodyCase_ == 102) { + return (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + } + /** + * + * + *
+   * Schema.
+   * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SchemaEntityOrBuilder getSchemaOrBuilder() { + if (entityBodyCase_ == 102) { + return (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + } + + public static final int TABLE_FIELD_NUMBER = 103; + /** + * + * + *
+   * Table.
+   * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + * + * @return Whether the table field is set. + */ + @java.lang.Override + public boolean hasTable() { + return entityBodyCase_ == 103; + } + /** + * + * + *
+   * Table.
+   * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + * + * @return The table. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.TableEntity getTable() { + if (entityBodyCase_ == 103) { + return (com.google.cloud.clouddms.v1.TableEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + } + /** + * + * + *
+   * Table.
+   * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.TableEntityOrBuilder getTableOrBuilder() { + if (entityBodyCase_ == 103) { + return (com.google.cloud.clouddms.v1.TableEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + } + + public static final int VIEW_FIELD_NUMBER = 104; + /** + * + * + *
+   * View.
+   * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + * + * @return Whether the view field is set. + */ + @java.lang.Override + public boolean hasView() { + return entityBodyCase_ == 104; + } + /** + * + * + *
+   * View.
+   * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ViewEntity getView() { + if (entityBodyCase_ == 104) { + return (com.google.cloud.clouddms.v1.ViewEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + } + /** + * + * + *
+   * View.
+   * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ViewEntityOrBuilder getViewOrBuilder() { + if (entityBodyCase_ == 104) { + return (com.google.cloud.clouddms.v1.ViewEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + } + + public static final int SEQUENCE_FIELD_NUMBER = 105; + /** + * + * + *
+   * Sequence.
+   * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * + * @return Whether the sequence field is set. + */ + @java.lang.Override + public boolean hasSequence() { + return entityBodyCase_ == 105; + } + /** + * + * + *
+   * Sequence.
+   * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * + * @return The sequence. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SequenceEntity getSequence() { + if (entityBodyCase_ == 105) { + return (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); + } + /** + * + * + *
+   * Sequence.
+   * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SequenceEntityOrBuilder getSequenceOrBuilder() { + if (entityBodyCase_ == 105) { + return (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); + } + + public static final int STORED_PROCEDURE_FIELD_NUMBER = 106; + /** + * + * + *
+   * Stored procedure.
+   * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * + * @return Whether the storedProcedure field is set. + */ + @java.lang.Override + public boolean hasStoredProcedure() { + return entityBodyCase_ == 106; + } + /** + * + * + *
+   * Stored procedure.
+   * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * + * @return The storedProcedure. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.StoredProcedureEntity getStoredProcedure() { + if (entityBodyCase_ == 106) { + return (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); + } + /** + * + * + *
+   * Stored procedure.
+   * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder getStoredProcedureOrBuilder() { + if (entityBodyCase_ == 106) { + return (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); + } + + public static final int DATABASE_FUNCTION_FIELD_NUMBER = 107; + /** + * + * + *
+   * Function.
+   * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * + * @return Whether the databaseFunction field is set. + */ + @java.lang.Override + public boolean hasDatabaseFunction() { + return entityBodyCase_ == 107; + } + /** + * + * + *
+   * Function.
+   * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * + * @return The databaseFunction. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.FunctionEntity getDatabaseFunction() { + if (entityBodyCase_ == 107) { + return (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); + } + /** + * + * + *
+   * Function.
+   * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.FunctionEntityOrBuilder getDatabaseFunctionOrBuilder() { + if (entityBodyCase_ == 107) { + return (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); + } + + public static final int SYNONYM_FIELD_NUMBER = 108; + /** + * + * + *
+   * Synonym.
+   * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * + * @return Whether the synonym field is set. + */ + @java.lang.Override + public boolean hasSynonym() { + return entityBodyCase_ == 108; + } + /** + * + * + *
+   * Synonym.
+   * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * + * @return The synonym. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SynonymEntity getSynonym() { + if (entityBodyCase_ == 108) { + return (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); + } + /** + * + * + *
+   * Synonym.
+   * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SynonymEntityOrBuilder getSynonymOrBuilder() { + if (entityBodyCase_ == 108) { + return (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); + } + + public static final int DATABASE_PACKAGE_FIELD_NUMBER = 109; + /** + * + * + *
+   * Package.
+   * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * + * @return Whether the databasePackage field is set. + */ + @java.lang.Override + public boolean hasDatabasePackage() { + return entityBodyCase_ == 109; + } + /** + * + * + *
+   * Package.
+   * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * + * @return The databasePackage. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PackageEntity getDatabasePackage() { + if (entityBodyCase_ == 109) { + return (com.google.cloud.clouddms.v1.PackageEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); + } + /** + * + * + *
+   * Package.
+   * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PackageEntityOrBuilder getDatabasePackageOrBuilder() { + if (entityBodyCase_ == 109) { + return (com.google.cloud.clouddms.v1.PackageEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.PackageEntity.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, shortName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentEntity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parentEntity_); + } + if (tree_ + != com.google.cloud.clouddms.v1.DatabaseEntity.TreeType.TREE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, tree_); + } + if (entityType_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, entityType_); + } + for (int i = 0; i < mappings_.size(); i++) { + output.writeMessage(5, mappings_.get(i)); + } + if (entityBodyCase_ == 102) { + output.writeMessage(102, (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_); + } + if (entityBodyCase_ == 103) { + output.writeMessage(103, (com.google.cloud.clouddms.v1.TableEntity) entityBody_); + } + if (entityBodyCase_ == 104) { + output.writeMessage(104, (com.google.cloud.clouddms.v1.ViewEntity) entityBody_); + } + if (entityBodyCase_ == 105) { + output.writeMessage(105, (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_); + } + if (entityBodyCase_ == 106) { + output.writeMessage(106, (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_); + } + if (entityBodyCase_ == 107) { + output.writeMessage(107, (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_); + } + if (entityBodyCase_ == 108) { + output.writeMessage(108, (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_); + } + if (entityBodyCase_ == 109) { + output.writeMessage(109, (com.google.cloud.clouddms.v1.PackageEntity) entityBody_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, shortName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentEntity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parentEntity_); + } + if (tree_ + != com.google.cloud.clouddms.v1.DatabaseEntity.TreeType.TREE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, tree_); + } + if (entityType_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, entityType_); + } + for (int i = 0; i < mappings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, mappings_.get(i)); + } + if (entityBodyCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_); + } + if (entityBodyCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.clouddms.v1.TableEntity) entityBody_); + } + if (entityBodyCase_ == 104) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 104, (com.google.cloud.clouddms.v1.ViewEntity) entityBody_); + } + if (entityBodyCase_ == 105) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 105, (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_); + } + if (entityBodyCase_ == 106) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 106, (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_); + } + if (entityBodyCase_ == 107) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 107, (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_); + } + if (entityBodyCase_ == 108) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 108, (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_); + } + if (entityBodyCase_ == 109) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 109, (com.google.cloud.clouddms.v1.PackageEntity) entityBody_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.DatabaseEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.DatabaseEntity other = + (com.google.cloud.clouddms.v1.DatabaseEntity) obj; + + if (!getShortName().equals(other.getShortName())) return false; + if (!getParentEntity().equals(other.getParentEntity())) return false; + if (tree_ != other.tree_) return false; + if (entityType_ != other.entityType_) return false; + if (!getMappingsList().equals(other.getMappingsList())) return false; + if (!getEntityBodyCase().equals(other.getEntityBodyCase())) return false; + switch (entityBodyCase_) { + case 102: + if (!getSchema().equals(other.getSchema())) return false; + break; + case 103: + if (!getTable().equals(other.getTable())) return false; + break; + case 104: + if (!getView().equals(other.getView())) return false; + break; + case 105: + if (!getSequence().equals(other.getSequence())) return false; + break; + case 106: + if (!getStoredProcedure().equals(other.getStoredProcedure())) return false; + break; + case 107: + if (!getDatabaseFunction().equals(other.getDatabaseFunction())) return false; + break; + case 108: + if (!getSynonym().equals(other.getSynonym())) return false; + break; + case 109: + if (!getDatabasePackage().equals(other.getDatabasePackage())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SHORT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getShortName().hashCode(); + hash = (37 * hash) + PARENT_ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getParentEntity().hashCode(); + hash = (37 * hash) + TREE_FIELD_NUMBER; + hash = (53 * hash) + tree_; + hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + entityType_; + if (getMappingsCount() > 0) { + hash = (37 * hash) + MAPPINGS_FIELD_NUMBER; + hash = (53 * hash) + getMappingsList().hashCode(); + } + switch (entityBodyCase_) { + case 102: + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + break; + case 103: + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + break; + case 104: + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + getView().hashCode(); + break; + case 105: + hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; + hash = (53 * hash) + getSequence().hashCode(); + break; + case 106: + hash = (37 * hash) + STORED_PROCEDURE_FIELD_NUMBER; + hash = (53 * hash) + getStoredProcedure().hashCode(); + break; + case 107: + hash = (37 * hash) + DATABASE_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseFunction().hashCode(); + break; + case 108: + hash = (37 * hash) + SYNONYM_FIELD_NUMBER; + hash = (53 * hash) + getSynonym().hashCode(); + break; + case 109: + hash = (37 * hash) + DATABASE_PACKAGE_FIELD_NUMBER; + hash = (53 * hash) + getDatabasePackage().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.DatabaseEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DatabaseEntity 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.clouddms.v1.DatabaseEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DatabaseEntity 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.clouddms.v1.DatabaseEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DatabaseEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.DatabaseEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DatabaseEntity 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.clouddms.v1.DatabaseEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DatabaseEntity 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.clouddms.v1.DatabaseEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DatabaseEntity 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.clouddms.v1.DatabaseEntity 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; + } + /** + * + * + *
+   * The base entity type for all the database related entities.
+   * The message contains the entity name, the name of its parent, the entity
+   * type, and the specific details per entity type.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DatabaseEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.DatabaseEntity) + com.google.cloud.clouddms.v1.DatabaseEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DatabaseEntity.class, + com.google.cloud.clouddms.v1.DatabaseEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.DatabaseEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + shortName_ = ""; + parentEntity_ = ""; + tree_ = 0; + entityType_ = 0; + if (mappingsBuilder_ == null) { + mappings_ = java.util.Collections.emptyList(); + } else { + mappings_ = null; + mappingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (schemaBuilder_ != null) { + schemaBuilder_.clear(); + } + if (tableBuilder_ != null) { + tableBuilder_.clear(); + } + if (viewBuilder_ != null) { + viewBuilder_.clear(); + } + if (sequenceBuilder_ != null) { + sequenceBuilder_.clear(); + } + if (storedProcedureBuilder_ != null) { + storedProcedureBuilder_.clear(); + } + if (databaseFunctionBuilder_ != null) { + databaseFunctionBuilder_.clear(); + } + if (synonymBuilder_ != null) { + synonymBuilder_.clear(); + } + if (databasePackageBuilder_ != null) { + databasePackageBuilder_.clear(); + } + entityBodyCase_ = 0; + entityBody_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_DatabaseEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.DatabaseEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntity build() { + com.google.cloud.clouddms.v1.DatabaseEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntity buildPartial() { + com.google.cloud.clouddms.v1.DatabaseEntity result = + new com.google.cloud.clouddms.v1.DatabaseEntity(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.clouddms.v1.DatabaseEntity result) { + if (mappingsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + mappings_ = java.util.Collections.unmodifiableList(mappings_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.mappings_ = mappings_; + } else { + result.mappings_ = mappingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.clouddms.v1.DatabaseEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.shortName_ = shortName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parentEntity_ = parentEntity_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tree_ = tree_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.entityType_ = entityType_; + } + } + + private void buildPartialOneofs(com.google.cloud.clouddms.v1.DatabaseEntity result) { + result.entityBodyCase_ = entityBodyCase_; + result.entityBody_ = this.entityBody_; + if (entityBodyCase_ == 102 && schemaBuilder_ != null) { + result.entityBody_ = schemaBuilder_.build(); + } + if (entityBodyCase_ == 103 && tableBuilder_ != null) { + result.entityBody_ = tableBuilder_.build(); + } + if (entityBodyCase_ == 104 && viewBuilder_ != null) { + result.entityBody_ = viewBuilder_.build(); + } + if (entityBodyCase_ == 105 && sequenceBuilder_ != null) { + result.entityBody_ = sequenceBuilder_.build(); + } + if (entityBodyCase_ == 106 && storedProcedureBuilder_ != null) { + result.entityBody_ = storedProcedureBuilder_.build(); + } + if (entityBodyCase_ == 107 && databaseFunctionBuilder_ != null) { + result.entityBody_ = databaseFunctionBuilder_.build(); + } + if (entityBodyCase_ == 108 && synonymBuilder_ != null) { + result.entityBody_ = synonymBuilder_.build(); + } + if (entityBodyCase_ == 109 && databasePackageBuilder_ != null) { + result.entityBody_ = databasePackageBuilder_.build(); + } + } + + @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.clouddms.v1.DatabaseEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.DatabaseEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.DatabaseEntity other) { + if (other == com.google.cloud.clouddms.v1.DatabaseEntity.getDefaultInstance()) return this; + if (!other.getShortName().isEmpty()) { + shortName_ = other.shortName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getParentEntity().isEmpty()) { + parentEntity_ = other.parentEntity_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.tree_ != 0) { + setTreeValue(other.getTreeValue()); + } + if (other.entityType_ != 0) { + setEntityTypeValue(other.getEntityTypeValue()); + } + if (mappingsBuilder_ == null) { + if (!other.mappings_.isEmpty()) { + if (mappings_.isEmpty()) { + mappings_ = other.mappings_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureMappingsIsMutable(); + mappings_.addAll(other.mappings_); + } + onChanged(); + } + } else { + if (!other.mappings_.isEmpty()) { + if (mappingsBuilder_.isEmpty()) { + mappingsBuilder_.dispose(); + mappingsBuilder_ = null; + mappings_ = other.mappings_; + bitField0_ = (bitField0_ & ~0x00000010); + mappingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMappingsFieldBuilder() + : null; + } else { + mappingsBuilder_.addAllMessages(other.mappings_); + } + } + } + switch (other.getEntityBodyCase()) { + case SCHEMA: + { + mergeSchema(other.getSchema()); + break; + } + case TABLE: + { + mergeTable(other.getTable()); + break; + } + case VIEW: + { + mergeView(other.getView()); + break; + } + case SEQUENCE: + { + mergeSequence(other.getSequence()); + break; + } + case STORED_PROCEDURE: + { + mergeStoredProcedure(other.getStoredProcedure()); + break; + } + case DATABASE_FUNCTION: + { + mergeDatabaseFunction(other.getDatabaseFunction()); + break; + } + case SYNONYM: + { + mergeSynonym(other.getSynonym()); + break; + } + case DATABASE_PACKAGE: + { + mergeDatabasePackage(other.getDatabasePackage()); + break; + } + case ENTITYBODY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + shortName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + parentEntity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + tree_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + entityType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + com.google.cloud.clouddms.v1.EntityMapping m = + input.readMessage( + com.google.cloud.clouddms.v1.EntityMapping.parser(), extensionRegistry); + if (mappingsBuilder_ == null) { + ensureMappingsIsMutable(); + mappings_.add(m); + } else { + mappingsBuilder_.addMessage(m); + } + break; + } // case 42 + case 818: + { + input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + entityBodyCase_ = 102; + break; + } // case 818 + case 826: + { + input.readMessage(getTableFieldBuilder().getBuilder(), extensionRegistry); + entityBodyCase_ = 103; + break; + } // case 826 + case 834: + { + input.readMessage(getViewFieldBuilder().getBuilder(), extensionRegistry); + entityBodyCase_ = 104; + break; + } // case 834 + case 842: + { + input.readMessage(getSequenceFieldBuilder().getBuilder(), extensionRegistry); + entityBodyCase_ = 105; + break; + } // case 842 + case 850: + { + input.readMessage(getStoredProcedureFieldBuilder().getBuilder(), extensionRegistry); + entityBodyCase_ = 106; + break; + } // case 850 + case 858: + { + input.readMessage( + getDatabaseFunctionFieldBuilder().getBuilder(), extensionRegistry); + entityBodyCase_ = 107; + break; + } // case 858 + case 866: + { + input.readMessage(getSynonymFieldBuilder().getBuilder(), extensionRegistry); + entityBodyCase_ = 108; + break; + } // case 866 + case 874: + { + input.readMessage(getDatabasePackageFieldBuilder().getBuilder(), extensionRegistry); + entityBodyCase_ = 109; + break; + } // case 874 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int entityBodyCase_ = 0; + private java.lang.Object entityBody_; + + public EntityBodyCase getEntityBodyCase() { + return EntityBodyCase.forNumber(entityBodyCase_); + } + + public Builder clearEntityBody() { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object shortName_ = ""; + /** + * + * + *
+     * The short name (e.g. table name) of the entity.
+     * 
+ * + * string short_name = 1; + * + * @return The shortName. + */ + public java.lang.String getShortName() { + java.lang.Object ref = shortName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The short name (e.g. table name) of the entity.
+     * 
+ * + * string short_name = 1; + * + * @return The bytes for shortName. + */ + public com.google.protobuf.ByteString getShortNameBytes() { + java.lang.Object ref = shortName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shortName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The short name (e.g. table name) of the entity.
+     * 
+ * + * string short_name = 1; + * + * @param value The shortName to set. + * @return This builder for chaining. + */ + public Builder setShortName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + shortName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The short name (e.g. table name) of the entity.
+     * 
+ * + * string short_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearShortName() { + shortName_ = getDefaultInstance().getShortName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The short name (e.g. table name) of the entity.
+     * 
+ * + * string short_name = 1; + * + * @param value The bytes for shortName to set. + * @return This builder for chaining. + */ + public Builder setShortNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shortName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object parentEntity_ = ""; + /** + * + * + *
+     * The full name of the parent entity (e.g. schema name).
+     * 
+ * + * string parent_entity = 2; + * + * @return The parentEntity. + */ + public java.lang.String getParentEntity() { + java.lang.Object ref = parentEntity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentEntity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The full name of the parent entity (e.g. schema name).
+     * 
+ * + * string parent_entity = 2; + * + * @return The bytes for parentEntity. + */ + public com.google.protobuf.ByteString getParentEntityBytes() { + java.lang.Object ref = parentEntity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentEntity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The full name of the parent entity (e.g. schema name).
+     * 
+ * + * string parent_entity = 2; + * + * @param value The parentEntity to set. + * @return This builder for chaining. + */ + public Builder setParentEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parentEntity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The full name of the parent entity (e.g. schema name).
+     * 
+ * + * string parent_entity = 2; + * + * @return This builder for chaining. + */ + public Builder clearParentEntity() { + parentEntity_ = getDefaultInstance().getParentEntity(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The full name of the parent entity (e.g. schema name).
+     * 
+ * + * string parent_entity = 2; + * + * @param value The bytes for parentEntity to set. + * @return This builder for chaining. + */ + public Builder setParentEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentEntity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int tree_ = 0; + /** + * + * + *
+     * The type of tree the entity belongs to.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3; + * + * @return The enum numeric value on the wire for tree. + */ + @java.lang.Override + public int getTreeValue() { + return tree_; + } + /** + * + * + *
+     * The type of tree the entity belongs to.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3; + * + * @param value The enum numeric value on the wire for tree to set. + * @return This builder for chaining. + */ + public Builder setTreeValue(int value) { + tree_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of tree the entity belongs to.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3; + * + * @return The tree. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntity.TreeType getTree() { + com.google.cloud.clouddms.v1.DatabaseEntity.TreeType result = + com.google.cloud.clouddms.v1.DatabaseEntity.TreeType.forNumber(tree_); + return result == null + ? com.google.cloud.clouddms.v1.DatabaseEntity.TreeType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The type of tree the entity belongs to.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3; + * + * @param value The tree to set. + * @return This builder for chaining. + */ + public Builder setTree(com.google.cloud.clouddms.v1.DatabaseEntity.TreeType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + tree_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of tree the entity belongs to.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3; + * + * @return This builder for chaining. + */ + public Builder clearTree() { + bitField0_ = (bitField0_ & ~0x00000004); + tree_ = 0; + onChanged(); + return this; + } + + private int entityType_ = 0; + /** + * + * + *
+     * The type of the database entity (table, view, index, ...).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return The enum numeric value on the wire for entityType. + */ + @java.lang.Override + public int getEntityTypeValue() { + return entityType_; + } + /** + * + * + *
+     * The type of the database entity (table, view, index, ...).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @param value The enum numeric value on the wire for entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityTypeValue(int value) { + entityType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of the database entity (table, view, index, ...).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return The entityType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getEntityType() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(entityType_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The type of the database entity (table, view, index, ...).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @param value The entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityType(com.google.cloud.clouddms.v1.DatabaseEntityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + entityType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of the database entity (table, view, index, ...).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearEntityType() { + bitField0_ = (bitField0_ & ~0x00000008); + entityType_ = 0; + onChanged(); + return this; + } + + private java.util.List mappings_ = + java.util.Collections.emptyList(); + + private void ensureMappingsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + mappings_ = new java.util.ArrayList(mappings_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityMapping, + com.google.cloud.clouddms.v1.EntityMapping.Builder, + com.google.cloud.clouddms.v1.EntityMappingOrBuilder> + mappingsBuilder_; + + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public java.util.List getMappingsList() { + if (mappingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mappings_); + } else { + return mappingsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public int getMappingsCount() { + if (mappingsBuilder_ == null) { + return mappings_.size(); + } else { + return mappingsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public com.google.cloud.clouddms.v1.EntityMapping getMappings(int index) { + if (mappingsBuilder_ == null) { + return mappings_.get(index); + } else { + return mappingsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public Builder setMappings(int index, com.google.cloud.clouddms.v1.EntityMapping value) { + if (mappingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMappingsIsMutable(); + mappings_.set(index, value); + onChanged(); + } else { + mappingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public Builder setMappings( + int index, com.google.cloud.clouddms.v1.EntityMapping.Builder builderForValue) { + if (mappingsBuilder_ == null) { + ensureMappingsIsMutable(); + mappings_.set(index, builderForValue.build()); + onChanged(); + } else { + mappingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public Builder addMappings(com.google.cloud.clouddms.v1.EntityMapping value) { + if (mappingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMappingsIsMutable(); + mappings_.add(value); + onChanged(); + } else { + mappingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public Builder addMappings(int index, com.google.cloud.clouddms.v1.EntityMapping value) { + if (mappingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMappingsIsMutable(); + mappings_.add(index, value); + onChanged(); + } else { + mappingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public Builder addMappings(com.google.cloud.clouddms.v1.EntityMapping.Builder builderForValue) { + if (mappingsBuilder_ == null) { + ensureMappingsIsMutable(); + mappings_.add(builderForValue.build()); + onChanged(); + } else { + mappingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public Builder addMappings( + int index, com.google.cloud.clouddms.v1.EntityMapping.Builder builderForValue) { + if (mappingsBuilder_ == null) { + ensureMappingsIsMutable(); + mappings_.add(index, builderForValue.build()); + onChanged(); + } else { + mappingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public Builder addAllMappings( + java.lang.Iterable values) { + if (mappingsBuilder_ == null) { + ensureMappingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mappings_); + onChanged(); + } else { + mappingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public Builder clearMappings() { + if (mappingsBuilder_ == null) { + mappings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + mappingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public Builder removeMappings(int index) { + if (mappingsBuilder_ == null) { + ensureMappingsIsMutable(); + mappings_.remove(index); + onChanged(); + } else { + mappingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public com.google.cloud.clouddms.v1.EntityMapping.Builder getMappingsBuilder(int index) { + return getMappingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public com.google.cloud.clouddms.v1.EntityMappingOrBuilder getMappingsOrBuilder(int index) { + if (mappingsBuilder_ == null) { + return mappings_.get(index); + } else { + return mappingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public java.util.List + getMappingsOrBuilderList() { + if (mappingsBuilder_ != null) { + return mappingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mappings_); + } + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public com.google.cloud.clouddms.v1.EntityMapping.Builder addMappingsBuilder() { + return getMappingsFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.EntityMapping.getDefaultInstance()); + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public com.google.cloud.clouddms.v1.EntityMapping.Builder addMappingsBuilder(int index) { + return getMappingsFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.EntityMapping.getDefaultInstance()); + } + /** + * + * + *
+     * Details about entity mappings.
+     * For source tree entities, this holds the draft entities which were
+     * generated by the mapping rules.
+     * For draft tree entities, this holds the source entities which were
+     * converted to form the draft entity.
+     * Destination entities will have no mapping details.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + public java.util.List + getMappingsBuilderList() { + return getMappingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityMapping, + com.google.cloud.clouddms.v1.EntityMapping.Builder, + com.google.cloud.clouddms.v1.EntityMappingOrBuilder> + getMappingsFieldBuilder() { + if (mappingsBuilder_ == null) { + mappingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityMapping, + com.google.cloud.clouddms.v1.EntityMapping.Builder, + com.google.cloud.clouddms.v1.EntityMappingOrBuilder>( + mappings_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + mappings_ = null; + } + return mappingsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SchemaEntity, + com.google.cloud.clouddms.v1.SchemaEntity.Builder, + com.google.cloud.clouddms.v1.SchemaEntityOrBuilder> + schemaBuilder_; + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return entityBodyCase_ == 102; + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * + * @return The schema. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SchemaEntity getSchema() { + if (schemaBuilder_ == null) { + if (entityBodyCase_ == 102) { + return (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + } else { + if (entityBodyCase_ == 102) { + return schemaBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + public Builder setSchema(com.google.cloud.clouddms.v1.SchemaEntity value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + entityBodyCase_ = 102; + return this; + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + public Builder setSchema(com.google.cloud.clouddms.v1.SchemaEntity.Builder builderForValue) { + if (schemaBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 102; + return this; + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + public Builder mergeSchema(com.google.cloud.clouddms.v1.SchemaEntity value) { + if (schemaBuilder_ == null) { + if (entityBodyCase_ == 102 + && entityBody_ != com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.SchemaEntity.newBuilder( + (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 102) { + schemaBuilder_.mergeFrom(value); + } else { + schemaBuilder_.setMessage(value); + } + } + entityBodyCase_ = 102; + return this; + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + if (entityBodyCase_ == 102) { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + } + } else { + if (entityBodyCase_ == 102) { + entityBodyCase_ = 0; + entityBody_ = null; + } + schemaBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + public com.google.cloud.clouddms.v1.SchemaEntity.Builder getSchemaBuilder() { + return getSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SchemaEntityOrBuilder getSchemaOrBuilder() { + if ((entityBodyCase_ == 102) && (schemaBuilder_ != null)) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + if (entityBodyCase_ == 102) { + return (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Schema.
+     * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SchemaEntity, + com.google.cloud.clouddms.v1.SchemaEntity.Builder, + com.google.cloud.clouddms.v1.SchemaEntityOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + if (!(entityBodyCase_ == 102)) { + entityBody_ = com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + } + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SchemaEntity, + com.google.cloud.clouddms.v1.SchemaEntity.Builder, + com.google.cloud.clouddms.v1.SchemaEntityOrBuilder>( + (com.google.cloud.clouddms.v1.SchemaEntity) entityBody_, + getParentForChildren(), + isClean()); + entityBody_ = null; + } + entityBodyCase_ = 102; + onChanged(); + return schemaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.TableEntity, + com.google.cloud.clouddms.v1.TableEntity.Builder, + com.google.cloud.clouddms.v1.TableEntityOrBuilder> + tableBuilder_; + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + * + * @return Whether the table field is set. + */ + @java.lang.Override + public boolean hasTable() { + return entityBodyCase_ == 103; + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + * + * @return The table. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.TableEntity getTable() { + if (tableBuilder_ == null) { + if (entityBodyCase_ == 103) { + return (com.google.cloud.clouddms.v1.TableEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + } else { + if (entityBodyCase_ == 103) { + return tableBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + public Builder setTable(com.google.cloud.clouddms.v1.TableEntity value) { + if (tableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + tableBuilder_.setMessage(value); + } + entityBodyCase_ = 103; + return this; + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + public Builder setTable(com.google.cloud.clouddms.v1.TableEntity.Builder builderForValue) { + if (tableBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + tableBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 103; + return this; + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + public Builder mergeTable(com.google.cloud.clouddms.v1.TableEntity value) { + if (tableBuilder_ == null) { + if (entityBodyCase_ == 103 + && entityBody_ != com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.TableEntity.newBuilder( + (com.google.cloud.clouddms.v1.TableEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 103) { + tableBuilder_.mergeFrom(value); + } else { + tableBuilder_.setMessage(value); + } + } + entityBodyCase_ = 103; + return this; + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + public Builder clearTable() { + if (tableBuilder_ == null) { + if (entityBodyCase_ == 103) { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + } + } else { + if (entityBodyCase_ == 103) { + entityBodyCase_ = 0; + entityBody_ = null; + } + tableBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + public com.google.cloud.clouddms.v1.TableEntity.Builder getTableBuilder() { + return getTableFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.TableEntityOrBuilder getTableOrBuilder() { + if ((entityBodyCase_ == 103) && (tableBuilder_ != null)) { + return tableBuilder_.getMessageOrBuilder(); + } else { + if (entityBodyCase_ == 103) { + return (com.google.cloud.clouddms.v1.TableEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Table.
+     * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.TableEntity, + com.google.cloud.clouddms.v1.TableEntity.Builder, + com.google.cloud.clouddms.v1.TableEntityOrBuilder> + getTableFieldBuilder() { + if (tableBuilder_ == null) { + if (!(entityBodyCase_ == 103)) { + entityBody_ = com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + } + tableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.TableEntity, + com.google.cloud.clouddms.v1.TableEntity.Builder, + com.google.cloud.clouddms.v1.TableEntityOrBuilder>( + (com.google.cloud.clouddms.v1.TableEntity) entityBody_, + getParentForChildren(), + isClean()); + entityBody_ = null; + } + entityBodyCase_ = 103; + onChanged(); + return tableBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ViewEntity, + com.google.cloud.clouddms.v1.ViewEntity.Builder, + com.google.cloud.clouddms.v1.ViewEntityOrBuilder> + viewBuilder_; + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + * + * @return Whether the view field is set. + */ + @java.lang.Override + public boolean hasView() { + return entityBodyCase_ == 104; + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ViewEntity getView() { + if (viewBuilder_ == null) { + if (entityBodyCase_ == 104) { + return (com.google.cloud.clouddms.v1.ViewEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + } else { + if (entityBodyCase_ == 104) { + return viewBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + public Builder setView(com.google.cloud.clouddms.v1.ViewEntity value) { + if (viewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + viewBuilder_.setMessage(value); + } + entityBodyCase_ = 104; + return this; + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + public Builder setView(com.google.cloud.clouddms.v1.ViewEntity.Builder builderForValue) { + if (viewBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + viewBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 104; + return this; + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + public Builder mergeView(com.google.cloud.clouddms.v1.ViewEntity value) { + if (viewBuilder_ == null) { + if (entityBodyCase_ == 104 + && entityBody_ != com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.ViewEntity.newBuilder( + (com.google.cloud.clouddms.v1.ViewEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 104) { + viewBuilder_.mergeFrom(value); + } else { + viewBuilder_.setMessage(value); + } + } + entityBodyCase_ = 104; + return this; + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + public Builder clearView() { + if (viewBuilder_ == null) { + if (entityBodyCase_ == 104) { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + } + } else { + if (entityBodyCase_ == 104) { + entityBodyCase_ = 0; + entityBody_ = null; + } + viewBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + public com.google.cloud.clouddms.v1.ViewEntity.Builder getViewBuilder() { + return getViewFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ViewEntityOrBuilder getViewOrBuilder() { + if ((entityBodyCase_ == 104) && (viewBuilder_ != null)) { + return viewBuilder_.getMessageOrBuilder(); + } else { + if (entityBodyCase_ == 104) { + return (com.google.cloud.clouddms.v1.ViewEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * View.
+     * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ViewEntity, + com.google.cloud.clouddms.v1.ViewEntity.Builder, + com.google.cloud.clouddms.v1.ViewEntityOrBuilder> + getViewFieldBuilder() { + if (viewBuilder_ == null) { + if (!(entityBodyCase_ == 104)) { + entityBody_ = com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + } + viewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ViewEntity, + com.google.cloud.clouddms.v1.ViewEntity.Builder, + com.google.cloud.clouddms.v1.ViewEntityOrBuilder>( + (com.google.cloud.clouddms.v1.ViewEntity) entityBody_, + getParentForChildren(), + isClean()); + entityBody_ = null; + } + entityBodyCase_ = 104; + onChanged(); + return viewBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SequenceEntity, + com.google.cloud.clouddms.v1.SequenceEntity.Builder, + com.google.cloud.clouddms.v1.SequenceEntityOrBuilder> + sequenceBuilder_; + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * + * @return Whether the sequence field is set. + */ + @java.lang.Override + public boolean hasSequence() { + return entityBodyCase_ == 105; + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * + * @return The sequence. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SequenceEntity getSequence() { + if (sequenceBuilder_ == null) { + if (entityBodyCase_ == 105) { + return (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); + } else { + if (entityBodyCase_ == 105) { + return sequenceBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + public Builder setSequence(com.google.cloud.clouddms.v1.SequenceEntity value) { + if (sequenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + sequenceBuilder_.setMessage(value); + } + entityBodyCase_ = 105; + return this; + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + public Builder setSequence( + com.google.cloud.clouddms.v1.SequenceEntity.Builder builderForValue) { + if (sequenceBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + sequenceBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 105; + return this; + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + public Builder mergeSequence(com.google.cloud.clouddms.v1.SequenceEntity value) { + if (sequenceBuilder_ == null) { + if (entityBodyCase_ == 105 + && entityBody_ != com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.SequenceEntity.newBuilder( + (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 105) { + sequenceBuilder_.mergeFrom(value); + } else { + sequenceBuilder_.setMessage(value); + } + } + entityBodyCase_ = 105; + return this; + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + public Builder clearSequence() { + if (sequenceBuilder_ == null) { + if (entityBodyCase_ == 105) { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + } + } else { + if (entityBodyCase_ == 105) { + entityBodyCase_ = 0; + entityBody_ = null; + } + sequenceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + public com.google.cloud.clouddms.v1.SequenceEntity.Builder getSequenceBuilder() { + return getSequenceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SequenceEntityOrBuilder getSequenceOrBuilder() { + if ((entityBodyCase_ == 105) && (sequenceBuilder_ != null)) { + return sequenceBuilder_.getMessageOrBuilder(); + } else { + if (entityBodyCase_ == 105) { + return (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Sequence.
+     * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SequenceEntity, + com.google.cloud.clouddms.v1.SequenceEntity.Builder, + com.google.cloud.clouddms.v1.SequenceEntityOrBuilder> + getSequenceFieldBuilder() { + if (sequenceBuilder_ == null) { + if (!(entityBodyCase_ == 105)) { + entityBody_ = com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); + } + sequenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SequenceEntity, + com.google.cloud.clouddms.v1.SequenceEntity.Builder, + com.google.cloud.clouddms.v1.SequenceEntityOrBuilder>( + (com.google.cloud.clouddms.v1.SequenceEntity) entityBody_, + getParentForChildren(), + isClean()); + entityBody_ = null; + } + entityBodyCase_ = 105; + onChanged(); + return sequenceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.StoredProcedureEntity, + com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder, + com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder> + storedProcedureBuilder_; + /** + * + * + *
+     * Stored procedure.
+     * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * + * @return Whether the storedProcedure field is set. + */ + @java.lang.Override + public boolean hasStoredProcedure() { + return entityBodyCase_ == 106; + } + /** + * + * + *
+     * Stored procedure.
+     * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * + * @return The storedProcedure. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.StoredProcedureEntity getStoredProcedure() { + if (storedProcedureBuilder_ == null) { + if (entityBodyCase_ == 106) { + return (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); + } else { + if (entityBodyCase_ == 106) { + return storedProcedureBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Stored procedure.
+     * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + */ + public Builder setStoredProcedure(com.google.cloud.clouddms.v1.StoredProcedureEntity value) { + if (storedProcedureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + storedProcedureBuilder_.setMessage(value); + } + entityBodyCase_ = 106; + return this; + } + /** + * + * + *
+     * Stored procedure.
+     * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + */ + public Builder setStoredProcedure( + com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder builderForValue) { + if (storedProcedureBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + storedProcedureBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 106; + return this; + } + /** + * + * + *
+     * Stored procedure.
+     * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + */ + public Builder mergeStoredProcedure(com.google.cloud.clouddms.v1.StoredProcedureEntity value) { + if (storedProcedureBuilder_ == null) { + if (entityBodyCase_ == 106 + && entityBody_ + != com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.StoredProcedureEntity.newBuilder( + (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 106) { + storedProcedureBuilder_.mergeFrom(value); + } else { + storedProcedureBuilder_.setMessage(value); + } + } + entityBodyCase_ = 106; + return this; + } + /** + * + * + *
+     * Stored procedure.
+     * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + */ + public Builder clearStoredProcedure() { + if (storedProcedureBuilder_ == null) { + if (entityBodyCase_ == 106) { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + } + } else { + if (entityBodyCase_ == 106) { + entityBodyCase_ = 0; + entityBody_ = null; + } + storedProcedureBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Stored procedure.
+     * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + */ + public com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder getStoredProcedureBuilder() { + return getStoredProcedureFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Stored procedure.
+     * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder + getStoredProcedureOrBuilder() { + if ((entityBodyCase_ == 106) && (storedProcedureBuilder_ != null)) { + return storedProcedureBuilder_.getMessageOrBuilder(); + } else { + if (entityBodyCase_ == 106) { + return (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Stored procedure.
+     * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.StoredProcedureEntity, + com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder, + com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder> + getStoredProcedureFieldBuilder() { + if (storedProcedureBuilder_ == null) { + if (!(entityBodyCase_ == 106)) { + entityBody_ = com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); + } + storedProcedureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.StoredProcedureEntity, + com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder, + com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder>( + (com.google.cloud.clouddms.v1.StoredProcedureEntity) entityBody_, + getParentForChildren(), + isClean()); + entityBody_ = null; + } + entityBodyCase_ = 106; + onChanged(); + return storedProcedureBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.FunctionEntity, + com.google.cloud.clouddms.v1.FunctionEntity.Builder, + com.google.cloud.clouddms.v1.FunctionEntityOrBuilder> + databaseFunctionBuilder_; + /** + * + * + *
+     * Function.
+     * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * + * @return Whether the databaseFunction field is set. + */ + @java.lang.Override + public boolean hasDatabaseFunction() { + return entityBodyCase_ == 107; + } + /** + * + * + *
+     * Function.
+     * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * + * @return The databaseFunction. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.FunctionEntity getDatabaseFunction() { + if (databaseFunctionBuilder_ == null) { + if (entityBodyCase_ == 107) { + return (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); + } else { + if (entityBodyCase_ == 107) { + return databaseFunctionBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Function.
+     * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + */ + public Builder setDatabaseFunction(com.google.cloud.clouddms.v1.FunctionEntity value) { + if (databaseFunctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + databaseFunctionBuilder_.setMessage(value); + } + entityBodyCase_ = 107; + return this; + } + /** + * + * + *
+     * Function.
+     * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + */ + public Builder setDatabaseFunction( + com.google.cloud.clouddms.v1.FunctionEntity.Builder builderForValue) { + if (databaseFunctionBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + databaseFunctionBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 107; + return this; + } + /** + * + * + *
+     * Function.
+     * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + */ + public Builder mergeDatabaseFunction(com.google.cloud.clouddms.v1.FunctionEntity value) { + if (databaseFunctionBuilder_ == null) { + if (entityBodyCase_ == 107 + && entityBody_ != com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.FunctionEntity.newBuilder( + (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 107) { + databaseFunctionBuilder_.mergeFrom(value); + } else { + databaseFunctionBuilder_.setMessage(value); + } + } + entityBodyCase_ = 107; + return this; + } + /** + * + * + *
+     * Function.
+     * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + */ + public Builder clearDatabaseFunction() { + if (databaseFunctionBuilder_ == null) { + if (entityBodyCase_ == 107) { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + } + } else { + if (entityBodyCase_ == 107) { + entityBodyCase_ = 0; + entityBody_ = null; + } + databaseFunctionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Function.
+     * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + */ + public com.google.cloud.clouddms.v1.FunctionEntity.Builder getDatabaseFunctionBuilder() { + return getDatabaseFunctionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Function.
+     * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.FunctionEntityOrBuilder getDatabaseFunctionOrBuilder() { + if ((entityBodyCase_ == 107) && (databaseFunctionBuilder_ != null)) { + return databaseFunctionBuilder_.getMessageOrBuilder(); + } else { + if (entityBodyCase_ == 107) { + return (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Function.
+     * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.FunctionEntity, + com.google.cloud.clouddms.v1.FunctionEntity.Builder, + com.google.cloud.clouddms.v1.FunctionEntityOrBuilder> + getDatabaseFunctionFieldBuilder() { + if (databaseFunctionBuilder_ == null) { + if (!(entityBodyCase_ == 107)) { + entityBody_ = com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); + } + databaseFunctionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.FunctionEntity, + com.google.cloud.clouddms.v1.FunctionEntity.Builder, + com.google.cloud.clouddms.v1.FunctionEntityOrBuilder>( + (com.google.cloud.clouddms.v1.FunctionEntity) entityBody_, + getParentForChildren(), + isClean()); + entityBody_ = null; + } + entityBodyCase_ = 107; + onChanged(); + return databaseFunctionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SynonymEntity, + com.google.cloud.clouddms.v1.SynonymEntity.Builder, + com.google.cloud.clouddms.v1.SynonymEntityOrBuilder> + synonymBuilder_; + /** + * + * + *
+     * Synonym.
+     * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * + * @return Whether the synonym field is set. + */ + @java.lang.Override + public boolean hasSynonym() { + return entityBodyCase_ == 108; + } + /** + * + * + *
+     * Synonym.
+     * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * + * @return The synonym. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SynonymEntity getSynonym() { + if (synonymBuilder_ == null) { + if (entityBodyCase_ == 108) { + return (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); + } else { + if (entityBodyCase_ == 108) { + return synonymBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Synonym.
+     * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + */ + public Builder setSynonym(com.google.cloud.clouddms.v1.SynonymEntity value) { + if (synonymBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + synonymBuilder_.setMessage(value); + } + entityBodyCase_ = 108; + return this; + } + /** + * + * + *
+     * Synonym.
+     * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + */ + public Builder setSynonym(com.google.cloud.clouddms.v1.SynonymEntity.Builder builderForValue) { + if (synonymBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + synonymBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 108; + return this; + } + /** + * + * + *
+     * Synonym.
+     * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + */ + public Builder mergeSynonym(com.google.cloud.clouddms.v1.SynonymEntity value) { + if (synonymBuilder_ == null) { + if (entityBodyCase_ == 108 + && entityBody_ != com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.SynonymEntity.newBuilder( + (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 108) { + synonymBuilder_.mergeFrom(value); + } else { + synonymBuilder_.setMessage(value); + } + } + entityBodyCase_ = 108; + return this; + } + /** + * + * + *
+     * Synonym.
+     * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + */ + public Builder clearSynonym() { + if (synonymBuilder_ == null) { + if (entityBodyCase_ == 108) { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + } + } else { + if (entityBodyCase_ == 108) { + entityBodyCase_ = 0; + entityBody_ = null; + } + synonymBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Synonym.
+     * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + */ + public com.google.cloud.clouddms.v1.SynonymEntity.Builder getSynonymBuilder() { + return getSynonymFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Synonym.
+     * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.SynonymEntityOrBuilder getSynonymOrBuilder() { + if ((entityBodyCase_ == 108) && (synonymBuilder_ != null)) { + return synonymBuilder_.getMessageOrBuilder(); + } else { + if (entityBodyCase_ == 108) { + return (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Synonym.
+     * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SynonymEntity, + com.google.cloud.clouddms.v1.SynonymEntity.Builder, + com.google.cloud.clouddms.v1.SynonymEntityOrBuilder> + getSynonymFieldBuilder() { + if (synonymBuilder_ == null) { + if (!(entityBodyCase_ == 108)) { + entityBody_ = com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); + } + synonymBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.SynonymEntity, + com.google.cloud.clouddms.v1.SynonymEntity.Builder, + com.google.cloud.clouddms.v1.SynonymEntityOrBuilder>( + (com.google.cloud.clouddms.v1.SynonymEntity) entityBody_, + getParentForChildren(), + isClean()); + entityBody_ = null; + } + entityBodyCase_ = 108; + onChanged(); + return synonymBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PackageEntity, + com.google.cloud.clouddms.v1.PackageEntity.Builder, + com.google.cloud.clouddms.v1.PackageEntityOrBuilder> + databasePackageBuilder_; + /** + * + * + *
+     * Package.
+     * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * + * @return Whether the databasePackage field is set. + */ + @java.lang.Override + public boolean hasDatabasePackage() { + return entityBodyCase_ == 109; + } + /** + * + * + *
+     * Package.
+     * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * + * @return The databasePackage. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PackageEntity getDatabasePackage() { + if (databasePackageBuilder_ == null) { + if (entityBodyCase_ == 109) { + return (com.google.cloud.clouddms.v1.PackageEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); + } else { + if (entityBodyCase_ == 109) { + return databasePackageBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Package.
+     * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + */ + public Builder setDatabasePackage(com.google.cloud.clouddms.v1.PackageEntity value) { + if (databasePackageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityBody_ = value; + onChanged(); + } else { + databasePackageBuilder_.setMessage(value); + } + entityBodyCase_ = 109; + return this; + } + /** + * + * + *
+     * Package.
+     * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + */ + public Builder setDatabasePackage( + com.google.cloud.clouddms.v1.PackageEntity.Builder builderForValue) { + if (databasePackageBuilder_ == null) { + entityBody_ = builderForValue.build(); + onChanged(); + } else { + databasePackageBuilder_.setMessage(builderForValue.build()); + } + entityBodyCase_ = 109; + return this; + } + /** + * + * + *
+     * Package.
+     * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + */ + public Builder mergeDatabasePackage(com.google.cloud.clouddms.v1.PackageEntity value) { + if (databasePackageBuilder_ == null) { + if (entityBodyCase_ == 109 + && entityBody_ != com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance()) { + entityBody_ = + com.google.cloud.clouddms.v1.PackageEntity.newBuilder( + (com.google.cloud.clouddms.v1.PackageEntity) entityBody_) + .mergeFrom(value) + .buildPartial(); + } else { + entityBody_ = value; + } + onChanged(); + } else { + if (entityBodyCase_ == 109) { + databasePackageBuilder_.mergeFrom(value); + } else { + databasePackageBuilder_.setMessage(value); + } + } + entityBodyCase_ = 109; + return this; + } + /** + * + * + *
+     * Package.
+     * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + */ + public Builder clearDatabasePackage() { + if (databasePackageBuilder_ == null) { + if (entityBodyCase_ == 109) { + entityBodyCase_ = 0; + entityBody_ = null; + onChanged(); + } + } else { + if (entityBodyCase_ == 109) { + entityBodyCase_ = 0; + entityBody_ = null; + } + databasePackageBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Package.
+     * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + */ + public com.google.cloud.clouddms.v1.PackageEntity.Builder getDatabasePackageBuilder() { + return getDatabasePackageFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Package.
+     * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PackageEntityOrBuilder getDatabasePackageOrBuilder() { + if ((entityBodyCase_ == 109) && (databasePackageBuilder_ != null)) { + return databasePackageBuilder_.getMessageOrBuilder(); + } else { + if (entityBodyCase_ == 109) { + return (com.google.cloud.clouddms.v1.PackageEntity) entityBody_; + } + return com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Package.
+     * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PackageEntity, + com.google.cloud.clouddms.v1.PackageEntity.Builder, + com.google.cloud.clouddms.v1.PackageEntityOrBuilder> + getDatabasePackageFieldBuilder() { + if (databasePackageBuilder_ == null) { + if (!(entityBodyCase_ == 109)) { + entityBody_ = com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); + } + databasePackageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PackageEntity, + com.google.cloud.clouddms.v1.PackageEntity.Builder, + com.google.cloud.clouddms.v1.PackageEntityOrBuilder>( + (com.google.cloud.clouddms.v1.PackageEntity) entityBody_, + getParentForChildren(), + isClean()); + entityBody_ = null; + } + entityBodyCase_ = 109; + onChanged(); + return databasePackageBuilder_; + } + + @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.clouddms.v1.DatabaseEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DatabaseEntity) + private static final com.google.cloud.clouddms.v1.DatabaseEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DatabaseEntity(); + } + + public static com.google.cloud.clouddms.v1.DatabaseEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatabaseEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityOrBuilder.java new file mode 100644 index 000000000000..b1ae10104c70 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityOrBuilder.java @@ -0,0 +1,484 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface DatabaseEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DatabaseEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The short name (e.g. table name) of the entity.
+   * 
+ * + * string short_name = 1; + * + * @return The shortName. + */ + java.lang.String getShortName(); + /** + * + * + *
+   * The short name (e.g. table name) of the entity.
+   * 
+ * + * string short_name = 1; + * + * @return The bytes for shortName. + */ + com.google.protobuf.ByteString getShortNameBytes(); + + /** + * + * + *
+   * The full name of the parent entity (e.g. schema name).
+   * 
+ * + * string parent_entity = 2; + * + * @return The parentEntity. + */ + java.lang.String getParentEntity(); + /** + * + * + *
+   * The full name of the parent entity (e.g. schema name).
+   * 
+ * + * string parent_entity = 2; + * + * @return The bytes for parentEntity. + */ + com.google.protobuf.ByteString getParentEntityBytes(); + + /** + * + * + *
+   * The type of tree the entity belongs to.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3; + * + * @return The enum numeric value on the wire for tree. + */ + int getTreeValue(); + /** + * + * + *
+   * The type of tree the entity belongs to.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntity.TreeType tree = 3; + * + * @return The tree. + */ + com.google.cloud.clouddms.v1.DatabaseEntity.TreeType getTree(); + + /** + * + * + *
+   * The type of the database entity (table, view, index, ...).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return The enum numeric value on the wire for entityType. + */ + int getEntityTypeValue(); + /** + * + * + *
+   * The type of the database entity (table, view, index, ...).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType entity_type = 4; + * + * @return The entityType. + */ + com.google.cloud.clouddms.v1.DatabaseEntityType getEntityType(); + + /** + * + * + *
+   * Details about entity mappings.
+   * For source tree entities, this holds the draft entities which were
+   * generated by the mapping rules.
+   * For draft tree entities, this holds the source entities which were
+   * converted to form the draft entity.
+   * Destination entities will have no mapping details.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + java.util.List getMappingsList(); + /** + * + * + *
+   * Details about entity mappings.
+   * For source tree entities, this holds the draft entities which were
+   * generated by the mapping rules.
+   * For draft tree entities, this holds the source entities which were
+   * converted to form the draft entity.
+   * Destination entities will have no mapping details.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + com.google.cloud.clouddms.v1.EntityMapping getMappings(int index); + /** + * + * + *
+   * Details about entity mappings.
+   * For source tree entities, this holds the draft entities which were
+   * generated by the mapping rules.
+   * For draft tree entities, this holds the source entities which were
+   * converted to form the draft entity.
+   * Destination entities will have no mapping details.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + int getMappingsCount(); + /** + * + * + *
+   * Details about entity mappings.
+   * For source tree entities, this holds the draft entities which were
+   * generated by the mapping rules.
+   * For draft tree entities, this holds the source entities which were
+   * converted to form the draft entity.
+   * Destination entities will have no mapping details.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + java.util.List + getMappingsOrBuilderList(); + /** + * + * + *
+   * Details about entity mappings.
+   * For source tree entities, this holds the draft entities which were
+   * generated by the mapping rules.
+   * For draft tree entities, this holds the source entities which were
+   * converted to form the draft entity.
+   * Destination entities will have no mapping details.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMapping mappings = 5; + */ + com.google.cloud.clouddms.v1.EntityMappingOrBuilder getMappingsOrBuilder(int index); + + /** + * + * + *
+   * Schema.
+   * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * + * @return Whether the schema field is set. + */ + boolean hasSchema(); + /** + * + * + *
+   * Schema.
+   * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + * + * @return The schema. + */ + com.google.cloud.clouddms.v1.SchemaEntity getSchema(); + /** + * + * + *
+   * Schema.
+   * 
+ * + * .google.cloud.clouddms.v1.SchemaEntity schema = 102; + */ + com.google.cloud.clouddms.v1.SchemaEntityOrBuilder getSchemaOrBuilder(); + + /** + * + * + *
+   * Table.
+   * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + * + * @return Whether the table field is set. + */ + boolean hasTable(); + /** + * + * + *
+   * Table.
+   * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + * + * @return The table. + */ + com.google.cloud.clouddms.v1.TableEntity getTable(); + /** + * + * + *
+   * Table.
+   * 
+ * + * .google.cloud.clouddms.v1.TableEntity table = 103; + */ + com.google.cloud.clouddms.v1.TableEntityOrBuilder getTableOrBuilder(); + + /** + * + * + *
+   * View.
+   * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + * + * @return Whether the view field is set. + */ + boolean hasView(); + /** + * + * + *
+   * View.
+   * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + * + * @return The view. + */ + com.google.cloud.clouddms.v1.ViewEntity getView(); + /** + * + * + *
+   * View.
+   * 
+ * + * .google.cloud.clouddms.v1.ViewEntity view = 104; + */ + com.google.cloud.clouddms.v1.ViewEntityOrBuilder getViewOrBuilder(); + + /** + * + * + *
+   * Sequence.
+   * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * + * @return Whether the sequence field is set. + */ + boolean hasSequence(); + /** + * + * + *
+   * Sequence.
+   * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + * + * @return The sequence. + */ + com.google.cloud.clouddms.v1.SequenceEntity getSequence(); + /** + * + * + *
+   * Sequence.
+   * 
+ * + * .google.cloud.clouddms.v1.SequenceEntity sequence = 105; + */ + com.google.cloud.clouddms.v1.SequenceEntityOrBuilder getSequenceOrBuilder(); + + /** + * + * + *
+   * Stored procedure.
+   * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * + * @return Whether the storedProcedure field is set. + */ + boolean hasStoredProcedure(); + /** + * + * + *
+   * Stored procedure.
+   * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + * + * @return The storedProcedure. + */ + com.google.cloud.clouddms.v1.StoredProcedureEntity getStoredProcedure(); + /** + * + * + *
+   * Stored procedure.
+   * 
+ * + * .google.cloud.clouddms.v1.StoredProcedureEntity stored_procedure = 106; + */ + com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder getStoredProcedureOrBuilder(); + + /** + * + * + *
+   * Function.
+   * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * + * @return Whether the databaseFunction field is set. + */ + boolean hasDatabaseFunction(); + /** + * + * + *
+   * Function.
+   * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + * + * @return The databaseFunction. + */ + com.google.cloud.clouddms.v1.FunctionEntity getDatabaseFunction(); + /** + * + * + *
+   * Function.
+   * 
+ * + * .google.cloud.clouddms.v1.FunctionEntity database_function = 107; + */ + com.google.cloud.clouddms.v1.FunctionEntityOrBuilder getDatabaseFunctionOrBuilder(); + + /** + * + * + *
+   * Synonym.
+   * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * + * @return Whether the synonym field is set. + */ + boolean hasSynonym(); + /** + * + * + *
+   * Synonym.
+   * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + * + * @return The synonym. + */ + com.google.cloud.clouddms.v1.SynonymEntity getSynonym(); + /** + * + * + *
+   * Synonym.
+   * 
+ * + * .google.cloud.clouddms.v1.SynonymEntity synonym = 108; + */ + com.google.cloud.clouddms.v1.SynonymEntityOrBuilder getSynonymOrBuilder(); + + /** + * + * + *
+   * Package.
+   * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * + * @return Whether the databasePackage field is set. + */ + boolean hasDatabasePackage(); + /** + * + * + *
+   * Package.
+   * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + * + * @return The databasePackage. + */ + com.google.cloud.clouddms.v1.PackageEntity getDatabasePackage(); + /** + * + * + *
+   * Package.
+   * 
+ * + * .google.cloud.clouddms.v1.PackageEntity database_package = 109; + */ + com.google.cloud.clouddms.v1.PackageEntityOrBuilder getDatabasePackageOrBuilder(); + + public com.google.cloud.clouddms.v1.DatabaseEntity.EntityBodyCase getEntityBodyCase(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityType.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityType.java new file mode 100644 index 000000000000..fc2bae2504a8 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseEntityType.java @@ -0,0 +1,466 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * The type of database entities supported,
+ * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.DatabaseEntityType} + */ +public enum DatabaseEntityType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified database entity type.
+   * 
+ * + * DATABASE_ENTITY_TYPE_UNSPECIFIED = 0; + */ + DATABASE_ENTITY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Schema.
+   * 
+ * + * DATABASE_ENTITY_TYPE_SCHEMA = 1; + */ + DATABASE_ENTITY_TYPE_SCHEMA(1), + /** + * + * + *
+   * Table.
+   * 
+ * + * DATABASE_ENTITY_TYPE_TABLE = 2; + */ + DATABASE_ENTITY_TYPE_TABLE(2), + /** + * + * + *
+   * Column.
+   * 
+ * + * DATABASE_ENTITY_TYPE_COLUMN = 3; + */ + DATABASE_ENTITY_TYPE_COLUMN(3), + /** + * + * + *
+   * Constraint.
+   * 
+ * + * DATABASE_ENTITY_TYPE_CONSTRAINT = 4; + */ + DATABASE_ENTITY_TYPE_CONSTRAINT(4), + /** + * + * + *
+   * Index.
+   * 
+ * + * DATABASE_ENTITY_TYPE_INDEX = 5; + */ + DATABASE_ENTITY_TYPE_INDEX(5), + /** + * + * + *
+   * Trigger.
+   * 
+ * + * DATABASE_ENTITY_TYPE_TRIGGER = 6; + */ + DATABASE_ENTITY_TYPE_TRIGGER(6), + /** + * + * + *
+   * View.
+   * 
+ * + * DATABASE_ENTITY_TYPE_VIEW = 7; + */ + DATABASE_ENTITY_TYPE_VIEW(7), + /** + * + * + *
+   * Sequence.
+   * 
+ * + * DATABASE_ENTITY_TYPE_SEQUENCE = 8; + */ + DATABASE_ENTITY_TYPE_SEQUENCE(8), + /** + * + * + *
+   * Stored Procedure.
+   * 
+ * + * DATABASE_ENTITY_TYPE_STORED_PROCEDURE = 9; + */ + DATABASE_ENTITY_TYPE_STORED_PROCEDURE(9), + /** + * + * + *
+   * Function.
+   * 
+ * + * DATABASE_ENTITY_TYPE_FUNCTION = 10; + */ + DATABASE_ENTITY_TYPE_FUNCTION(10), + /** + * + * + *
+   * Synonym.
+   * 
+ * + * DATABASE_ENTITY_TYPE_SYNONYM = 11; + */ + DATABASE_ENTITY_TYPE_SYNONYM(11), + /** + * + * + *
+   * Package.
+   * 
+ * + * DATABASE_ENTITY_TYPE_DATABASE_PACKAGE = 12; + */ + DATABASE_ENTITY_TYPE_DATABASE_PACKAGE(12), + /** + * + * + *
+   * UDT.
+   * 
+ * + * DATABASE_ENTITY_TYPE_UDT = 13; + */ + DATABASE_ENTITY_TYPE_UDT(13), + /** + * + * + *
+   * Materialized View.
+   * 
+ * + * DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW = 14; + */ + DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW(14), + /** + * + * + *
+   * Database.
+   * 
+ * + * DATABASE_ENTITY_TYPE_DATABASE = 15; + */ + DATABASE_ENTITY_TYPE_DATABASE(15), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified database entity type.
+   * 
+ * + * DATABASE_ENTITY_TYPE_UNSPECIFIED = 0; + */ + public static final int DATABASE_ENTITY_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Schema.
+   * 
+ * + * DATABASE_ENTITY_TYPE_SCHEMA = 1; + */ + public static final int DATABASE_ENTITY_TYPE_SCHEMA_VALUE = 1; + /** + * + * + *
+   * Table.
+   * 
+ * + * DATABASE_ENTITY_TYPE_TABLE = 2; + */ + public static final int DATABASE_ENTITY_TYPE_TABLE_VALUE = 2; + /** + * + * + *
+   * Column.
+   * 
+ * + * DATABASE_ENTITY_TYPE_COLUMN = 3; + */ + public static final int DATABASE_ENTITY_TYPE_COLUMN_VALUE = 3; + /** + * + * + *
+   * Constraint.
+   * 
+ * + * DATABASE_ENTITY_TYPE_CONSTRAINT = 4; + */ + public static final int DATABASE_ENTITY_TYPE_CONSTRAINT_VALUE = 4; + /** + * + * + *
+   * Index.
+   * 
+ * + * DATABASE_ENTITY_TYPE_INDEX = 5; + */ + public static final int DATABASE_ENTITY_TYPE_INDEX_VALUE = 5; + /** + * + * + *
+   * Trigger.
+   * 
+ * + * DATABASE_ENTITY_TYPE_TRIGGER = 6; + */ + public static final int DATABASE_ENTITY_TYPE_TRIGGER_VALUE = 6; + /** + * + * + *
+   * View.
+   * 
+ * + * DATABASE_ENTITY_TYPE_VIEW = 7; + */ + public static final int DATABASE_ENTITY_TYPE_VIEW_VALUE = 7; + /** + * + * + *
+   * Sequence.
+   * 
+ * + * DATABASE_ENTITY_TYPE_SEQUENCE = 8; + */ + public static final int DATABASE_ENTITY_TYPE_SEQUENCE_VALUE = 8; + /** + * + * + *
+   * Stored Procedure.
+   * 
+ * + * DATABASE_ENTITY_TYPE_STORED_PROCEDURE = 9; + */ + public static final int DATABASE_ENTITY_TYPE_STORED_PROCEDURE_VALUE = 9; + /** + * + * + *
+   * Function.
+   * 
+ * + * DATABASE_ENTITY_TYPE_FUNCTION = 10; + */ + public static final int DATABASE_ENTITY_TYPE_FUNCTION_VALUE = 10; + /** + * + * + *
+   * Synonym.
+   * 
+ * + * DATABASE_ENTITY_TYPE_SYNONYM = 11; + */ + public static final int DATABASE_ENTITY_TYPE_SYNONYM_VALUE = 11; + /** + * + * + *
+   * Package.
+   * 
+ * + * DATABASE_ENTITY_TYPE_DATABASE_PACKAGE = 12; + */ + public static final int DATABASE_ENTITY_TYPE_DATABASE_PACKAGE_VALUE = 12; + /** + * + * + *
+   * UDT.
+   * 
+ * + * DATABASE_ENTITY_TYPE_UDT = 13; + */ + public static final int DATABASE_ENTITY_TYPE_UDT_VALUE = 13; + /** + * + * + *
+   * Materialized View.
+   * 
+ * + * DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW = 14; + */ + public static final int DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW_VALUE = 14; + /** + * + * + *
+   * Database.
+   * 
+ * + * DATABASE_ENTITY_TYPE_DATABASE = 15; + */ + public static final int DATABASE_ENTITY_TYPE_DATABASE_VALUE = 15; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DatabaseEntityType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DatabaseEntityType forNumber(int value) { + switch (value) { + case 0: + return DATABASE_ENTITY_TYPE_UNSPECIFIED; + case 1: + return DATABASE_ENTITY_TYPE_SCHEMA; + case 2: + return DATABASE_ENTITY_TYPE_TABLE; + case 3: + return DATABASE_ENTITY_TYPE_COLUMN; + case 4: + return DATABASE_ENTITY_TYPE_CONSTRAINT; + case 5: + return DATABASE_ENTITY_TYPE_INDEX; + case 6: + return DATABASE_ENTITY_TYPE_TRIGGER; + case 7: + return DATABASE_ENTITY_TYPE_VIEW; + case 8: + return DATABASE_ENTITY_TYPE_SEQUENCE; + case 9: + return DATABASE_ENTITY_TYPE_STORED_PROCEDURE; + case 10: + return DATABASE_ENTITY_TYPE_FUNCTION; + case 11: + return DATABASE_ENTITY_TYPE_SYNONYM; + case 12: + return DATABASE_ENTITY_TYPE_DATABASE_PACKAGE; + case 13: + return DATABASE_ENTITY_TYPE_UDT; + case 14: + return DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW; + case 15: + return DATABASE_ENTITY_TYPE_DATABASE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatabaseEntityType findValueByNumber(int number) { + return DatabaseEntityType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DatabaseEntityType[] VALUES = values(); + + public static DatabaseEntityType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DatabaseEntityType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.DatabaseEntityType) +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java index c17ee0c144d7..f4911588a331 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DatabaseProvider.java @@ -58,6 +58,26 @@ public enum DatabaseProvider implements com.google.protobuf.ProtocolMessageEnum * RDS = 2; */ RDS(2), + /** + * + * + *
+   * Amazon Aurora.
+   * 
+ * + * AURORA = 3; + */ + AURORA(3), + /** + * + * + *
+   * AlloyDB.
+   * 
+ * + * ALLOYDB = 4; + */ + ALLOYDB(4), UNRECOGNIZED(-1), ; @@ -91,6 +111,26 @@ public enum DatabaseProvider implements com.google.protobuf.ProtocolMessageEnum * RDS = 2; */ public static final int RDS_VALUE = 2; + /** + * + * + *
+   * Amazon Aurora.
+   * 
+ * + * AURORA = 3; + */ + public static final int AURORA_VALUE = 3; + /** + * + * + *
+   * AlloyDB.
+   * 
+ * + * ALLOYDB = 4; + */ + public static final int ALLOYDB_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -122,6 +162,10 @@ public static DatabaseProvider forNumber(int value) { return CLOUDSQL; case 2: return RDS; + case 3: + return AURORA; + case 4: + return ALLOYDB; default: return null; } @@ -153,7 +197,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor() .getEnumTypes() - .get(1); + .get(2); } private static final DatabaseProvider[] VALUES = values(); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java index 3b892f3fb6f9..d00163f8b0e2 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequest.java @@ -132,10 +132,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -159,10 +159,10 @@ public java.lang.String getRequestId() { * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -712,10 +712,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -738,10 +738,10 @@ public java.lang.String getRequestId() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -764,10 +764,10 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -789,10 +789,10 @@ public Builder setRequestId(java.lang.String value) { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -810,10 +810,10 @@ public Builder clearRequestId() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java index 730faf522f93..018cc94b7f75 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConnectionProfileRequestOrBuilder.java @@ -56,10 +56,10 @@ public interface DeleteConnectionProfileRequestOrBuilder * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -72,10 +72,10 @@ public interface DeleteConnectionProfileRequestOrBuilder * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequest.java new file mode 100644 index 000000000000..8cbb73c244c1 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequest.java @@ -0,0 +1,859 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'DeleteConversionWorkspace' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest} + */ +public final class DeleteConversionWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest) + DeleteConversionWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteConversionWorkspaceRequest.newBuilder() to construct. + private DeleteConversionWorkspaceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteConversionWorkspaceRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteConversionWorkspaceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the conversion workspace resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the conversion workspace resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 2; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 2; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest other = + (com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest 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.clouddms.v1.DeleteConversionWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest 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.clouddms.v1.DeleteConversionWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest 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.clouddms.v1.DeleteConversionWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest 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.clouddms.v1.DeleteConversionWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest 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.clouddms.v1.DeleteConversionWorkspaceRequest 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; + } + /** + * + * + *
+   * Request message for 'DeleteConversionWorkspace' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest) + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeleteConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest build() { + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest buildPartial() { + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest result = + new com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.clouddms.v1.DeleteConversionWorkspaceRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest other) { + if (other + == com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Name of the conversion workspace resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest) + private static final com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest(); + } + + public static com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConversionWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequestOrBuilder.java new file mode 100644 index 000000000000..5b38ca798660 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteConversionWorkspaceRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface DeleteConversionWorkspaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the conversion workspace resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the conversion workspace resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 2; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 2; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java index 4953158d84c1..70e1c7279d35 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequest.java @@ -131,10 +131,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -158,10 +158,10 @@ public java.lang.String getRequestId() { * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -712,10 +712,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -738,10 +738,10 @@ public java.lang.String getRequestId() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -764,10 +764,10 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -789,10 +789,10 @@ public Builder setRequestId(java.lang.String value) { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -810,10 +810,10 @@ public Builder clearRequestId() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java index 97d25bc44500..cd482b33c0f7 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeleteMigrationJobRequestOrBuilder.java @@ -56,10 +56,10 @@ public interface DeleteMigrationJobRequestOrBuilder * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -72,10 +72,10 @@ public interface DeleteMigrationJobRequestOrBuilder * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeletePrivateConnectionRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeletePrivateConnectionRequest.java new file mode 100644 index 000000000000..a932cfb27379 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeletePrivateConnectionRequest.java @@ -0,0 +1,855 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message to delete a private connection.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DeletePrivateConnectionRequest} + */ +public final class DeletePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DeletePrivateConnectionRequest) + DeletePrivateConnectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeletePrivateConnectionRequest.newBuilder() to construct. + private DeletePrivateConnectionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeletePrivateConnectionRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeletePrivateConnectionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest.class, + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the private connection to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the private connection to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest other = + (com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest 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.clouddms.v1.DeletePrivateConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest 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.clouddms.v1.DeletePrivateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest 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.clouddms.v1.DeletePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest 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.clouddms.v1.DeletePrivateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest 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.clouddms.v1.DeletePrivateConnectionRequest 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; + } + /** + * + * + *
+   * Request message to delete a private connection.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DeletePrivateConnectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.DeletePrivateConnectionRequest) + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest.class, + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DeletePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest build() { + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest buildPartial() { + com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest result = + new com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.clouddms.v1.DeletePrivateConnectionRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest other) { + if (other == com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the private connection to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the private connection to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the private connection to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the private connection to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the private connection to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DeletePrivateConnectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DeletePrivateConnectionRequest) + private static final com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest(); + } + + public static com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeletePrivateConnectionRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeletePrivateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..1a7435e402cd --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DeletePrivateConnectionRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface DeletePrivateConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DeletePrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the private connection to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the private connection to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeConversionWorkspaceRevisionsRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeConversionWorkspaceRevisionsRequest.java new file mode 100644 index 000000000000..9ffc628e3d54 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeConversionWorkspaceRevisionsRequest.java @@ -0,0 +1,861 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'DescribeConversionWorkspaceRevisions' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest} + */ +public final class DescribeConversionWorkspaceRevisionsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest) + DescribeConversionWorkspaceRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DescribeConversionWorkspaceRevisionsRequest.newBuilder() to construct. + private DescribeConversionWorkspaceRevisionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DescribeConversionWorkspaceRevisionsRequest() { + conversionWorkspace_ = ""; + commitId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DescribeConversionWorkspaceRevisionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest.class, + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest.Builder.class); + } + + public static final int CONVERSION_WORKSPACE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversionWorkspace_ = ""; + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose revisions are
+   * listed. Must be in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The conversionWorkspace. + */ + @java.lang.Override + public java.lang.String getConversionWorkspace() { + java.lang.Object ref = conversionWorkspace_; + 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(); + conversionWorkspace_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose revisions are
+   * listed. Must be in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for conversionWorkspace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversionWorkspaceBytes() { + java.lang.Object ref = conversionWorkspace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversionWorkspace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitId_ = ""; + /** + * + * + *
+   * Optional. Optional filter to request a specific commit ID.
+   * 
+ * + * string commit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitId. + */ + @java.lang.Override + public java.lang.String getCommitId() { + java.lang.Object ref = commitId_; + 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(); + commitId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Optional filter to request a specific commit ID.
+   * 
+ * + * string commit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitIdBytes() { + java.lang.Object ref = commitId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitId_ = 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(conversionWorkspace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, conversionWorkspace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commitId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversionWorkspace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, conversionWorkspace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commitId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest other = + (com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest) obj; + + if (!getConversionWorkspace().equals(other.getConversionWorkspace())) return false; + if (!getCommitId().equals(other.getCommitId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONVERSION_WORKSPACE_FIELD_NUMBER; + hash = (53 * hash) + getConversionWorkspace().hashCode(); + hash = (37 * hash) + COMMIT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCommitId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest 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.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest 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.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest 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.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest + 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.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest 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.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest 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; + } + /** + * + * + *
+   * Request message for 'DescribeConversionWorkspaceRevisions' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest) + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest.class, + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conversionWorkspace_ = ""; + commitId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest build() { + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest buildPartial() { + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest result = + new com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.conversionWorkspace_ = conversionWorkspace_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commitId_ = commitId_; + } + } + + @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.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest) { + return mergeFrom( + (com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest other) { + if (other + == com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest + .getDefaultInstance()) return this; + if (!other.getConversionWorkspace().isEmpty()) { + conversionWorkspace_ = other.conversionWorkspace_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCommitId().isEmpty()) { + commitId_ = other.commitId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + conversionWorkspace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + commitId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object conversionWorkspace_ = ""; + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose revisions are
+     * listed. Must be in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The conversionWorkspace. + */ + public java.lang.String getConversionWorkspace() { + java.lang.Object ref = conversionWorkspace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversionWorkspace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose revisions are
+     * listed. Must be in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for conversionWorkspace. + */ + public com.google.protobuf.ByteString getConversionWorkspaceBytes() { + java.lang.Object ref = conversionWorkspace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversionWorkspace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose revisions are
+     * listed. Must be in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The conversionWorkspace to set. + * @return This builder for chaining. + */ + public Builder setConversionWorkspace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversionWorkspace_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose revisions are
+     * listed. Must be in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearConversionWorkspace() { + conversionWorkspace_ = getDefaultInstance().getConversionWorkspace(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose revisions are
+     * listed. Must be in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for conversionWorkspace to set. + * @return This builder for chaining. + */ + public Builder setConversionWorkspaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversionWorkspace_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object commitId_ = ""; + /** + * + * + *
+     * Optional. Optional filter to request a specific commit ID.
+     * 
+ * + * string commit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitId. + */ + public java.lang.String getCommitId() { + java.lang.Object ref = commitId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Optional filter to request a specific commit ID.
+     * 
+ * + * string commit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitId. + */ + public com.google.protobuf.ByteString getCommitIdBytes() { + java.lang.Object ref = commitId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Optional filter to request a specific commit ID.
+     * 
+ * + * string commit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The commitId to set. + * @return This builder for chaining. + */ + public Builder setCommitId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional filter to request a specific commit ID.
+     * 
+ * + * string commit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCommitId() { + commitId_ = getDefaultInstance().getCommitId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional filter to request a specific commit ID.
+     * 
+ * + * string commit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for commitId to set. + * @return This builder for chaining. + */ + public Builder setCommitIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest) + private static final com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest(); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DescribeConversionWorkspaceRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeConversionWorkspaceRevisionsRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeConversionWorkspaceRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..24bb123073f0 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeConversionWorkspaceRevisionsRequestOrBuilder.java @@ -0,0 +1,83 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface DescribeConversionWorkspaceRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose revisions are
+   * listed. Must be in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The conversionWorkspace. + */ + java.lang.String getConversionWorkspace(); + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose revisions are
+   * listed. Must be in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for conversionWorkspace. + */ + com.google.protobuf.ByteString getConversionWorkspaceBytes(); + + /** + * + * + *
+   * Optional. Optional filter to request a specific commit ID.
+   * 
+ * + * string commit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitId. + */ + java.lang.String getCommitId(); + /** + * + * + *
+   * Optional. Optional filter to request a specific commit ID.
+   * 
+ * + * string commit_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitId. + */ + com.google.protobuf.ByteString getCommitIdBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeConversionWorkspaceRevisionsResponse.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeConversionWorkspaceRevisionsResponse.java new file mode 100644 index 000000000000..07acabfb0948 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeConversionWorkspaceRevisionsResponse.java @@ -0,0 +1,969 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Response message for 'DescribeConversionWorkspaceRevisions' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse} + */ +public final class DescribeConversionWorkspaceRevisionsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse) + DescribeConversionWorkspaceRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DescribeConversionWorkspaceRevisionsResponse.newBuilder() to construct. + private DescribeConversionWorkspaceRevisionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DescribeConversionWorkspaceRevisionsResponse() { + revisions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DescribeConversionWorkspaceRevisionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse.class, + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse.Builder + .class); + } + + public static final int REVISIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List revisions_; + /** + * + * + *
+   * The list of conversion workspace revisions.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + @java.lang.Override + public java.util.List getRevisionsList() { + return revisions_; + } + /** + * + * + *
+   * The list of conversion workspace revisions.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + @java.lang.Override + public java.util.List + getRevisionsOrBuilderList() { + return revisions_; + } + /** + * + * + *
+   * The list of conversion workspace revisions.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + @java.lang.Override + public int getRevisionsCount() { + return revisions_.size(); + } + /** + * + * + *
+   * The list of conversion workspace revisions.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspace getRevisions(int index) { + return revisions_.get(index); + } + /** + * + * + *
+   * The list of conversion workspace revisions.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder getRevisionsOrBuilder( + int index) { + return revisions_.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 < revisions_.size(); i++) { + output.writeMessage(1, revisions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < revisions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, revisions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse other = + (com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse) obj; + + if (!getRevisionsList().equals(other.getRevisionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRevisionsCount() > 0) { + hash = (37 * hash) + REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getRevisionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse 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.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse 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.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse 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.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse + 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.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse 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.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse 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; + } + /** + * + * + *
+   * Response message for 'DescribeConversionWorkspaceRevisions' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse) + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse.class, + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (revisionsBuilder_ == null) { + revisions_ = java.util.Collections.emptyList(); + } else { + revisions_ = null; + revisionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeConversionWorkspaceRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse build() { + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse + buildPartial() { + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse result = + new com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse result) { + if (revisionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + revisions_ = java.util.Collections.unmodifiableList(revisions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.revisions_ = revisions_; + } else { + result.revisions_ = revisionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse result) { + int from_bitField0_ = bitField0_; + } + + @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.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse) { + return mergeFrom( + (com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse other) { + if (other + == com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse + .getDefaultInstance()) return this; + if (revisionsBuilder_ == null) { + if (!other.revisions_.isEmpty()) { + if (revisions_.isEmpty()) { + revisions_ = other.revisions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRevisionsIsMutable(); + revisions_.addAll(other.revisions_); + } + onChanged(); + } + } else { + if (!other.revisions_.isEmpty()) { + if (revisionsBuilder_.isEmpty()) { + revisionsBuilder_.dispose(); + revisionsBuilder_ = null; + revisions_ = other.revisions_; + bitField0_ = (bitField0_ & ~0x00000001); + revisionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRevisionsFieldBuilder() + : null; + } else { + revisionsBuilder_.addAllMessages(other.revisions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.clouddms.v1.ConversionWorkspace m = + input.readMessage( + com.google.cloud.clouddms.v1.ConversionWorkspace.parser(), + extensionRegistry); + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + revisions_.add(m); + } else { + revisionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List revisions_ = + java.util.Collections.emptyList(); + + private void ensureRevisionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + revisions_ = + new java.util.ArrayList(revisions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConversionWorkspace, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder> + revisionsBuilder_; + + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public java.util.List getRevisionsList() { + if (revisionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(revisions_); + } else { + return revisionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public int getRevisionsCount() { + if (revisionsBuilder_ == null) { + return revisions_.size(); + } else { + return revisionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public com.google.cloud.clouddms.v1.ConversionWorkspace getRevisions(int index) { + if (revisionsBuilder_ == null) { + return revisions_.get(index); + } else { + return revisionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public Builder setRevisions(int index, com.google.cloud.clouddms.v1.ConversionWorkspace value) { + if (revisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRevisionsIsMutable(); + revisions_.set(index, value); + onChanged(); + } else { + revisionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public Builder setRevisions( + int index, com.google.cloud.clouddms.v1.ConversionWorkspace.Builder builderForValue) { + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + revisions_.set(index, builderForValue.build()); + onChanged(); + } else { + revisionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public Builder addRevisions(com.google.cloud.clouddms.v1.ConversionWorkspace value) { + if (revisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRevisionsIsMutable(); + revisions_.add(value); + onChanged(); + } else { + revisionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public Builder addRevisions(int index, com.google.cloud.clouddms.v1.ConversionWorkspace value) { + if (revisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRevisionsIsMutable(); + revisions_.add(index, value); + onChanged(); + } else { + revisionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public Builder addRevisions( + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder builderForValue) { + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + revisions_.add(builderForValue.build()); + onChanged(); + } else { + revisionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public Builder addRevisions( + int index, com.google.cloud.clouddms.v1.ConversionWorkspace.Builder builderForValue) { + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + revisions_.add(index, builderForValue.build()); + onChanged(); + } else { + revisionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public Builder addAllRevisions( + java.lang.Iterable values) { + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, revisions_); + onChanged(); + } else { + revisionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public Builder clearRevisions() { + if (revisionsBuilder_ == null) { + revisions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + revisionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public Builder removeRevisions(int index) { + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + revisions_.remove(index); + onChanged(); + } else { + revisionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public com.google.cloud.clouddms.v1.ConversionWorkspace.Builder getRevisionsBuilder(int index) { + return getRevisionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder getRevisionsOrBuilder( + int index) { + if (revisionsBuilder_ == null) { + return revisions_.get(index); + } else { + return revisionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public java.util.List + getRevisionsOrBuilderList() { + if (revisionsBuilder_ != null) { + return revisionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(revisions_); + } + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public com.google.cloud.clouddms.v1.ConversionWorkspace.Builder addRevisionsBuilder() { + return getRevisionsFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance()); + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public com.google.cloud.clouddms.v1.ConversionWorkspace.Builder addRevisionsBuilder(int index) { + return getRevisionsFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance()); + } + /** + * + * + *
+     * The list of conversion workspace revisions.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + public java.util.List + getRevisionsBuilderList() { + return getRevisionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConversionWorkspace, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder> + getRevisionsFieldBuilder() { + if (revisionsBuilder_ == null) { + revisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConversionWorkspace, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder>( + revisions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + revisions_ = null; + } + return revisionsBuilder_; + } + + @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.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse) + private static final com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse(); + } + + public static com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DescribeConversionWorkspaceRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeConversionWorkspaceRevisionsResponseOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeConversionWorkspaceRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..ead907edd893 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeConversionWorkspaceRevisionsResponseOrBuilder.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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface DescribeConversionWorkspaceRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of conversion workspace revisions.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + java.util.List getRevisionsList(); + /** + * + * + *
+   * The list of conversion workspace revisions.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + com.google.cloud.clouddms.v1.ConversionWorkspace getRevisions(int index); + /** + * + * + *
+   * The list of conversion workspace revisions.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + int getRevisionsCount(); + /** + * + * + *
+   * The list of conversion workspace revisions.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + java.util.List + getRevisionsOrBuilderList(); + /** + * + * + *
+   * The list of conversion workspace revisions.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace revisions = 1; + */ + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder getRevisionsOrBuilder(int index); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequest.java new file mode 100644 index 000000000000..a2305454760d --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequest.java @@ -0,0 +1,1785 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'DescribeDatabaseEntities' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest} + */ +public final class DescribeDatabaseEntitiesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest) + DescribeDatabaseEntitiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DescribeDatabaseEntitiesRequest.newBuilder() to construct. + private DescribeDatabaseEntitiesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DescribeDatabaseEntitiesRequest() { + conversionWorkspace_ = ""; + pageToken_ = ""; + tree_ = 0; + commitId_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DescribeDatabaseEntitiesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.class, + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.Builder.class); + } + + /** + * + * + *
+   * The type of a tree to return
+   * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType} + */ + public enum DBTreeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified tree type.
+     * 
+ * + * DB_TREE_TYPE_UNSPECIFIED = 0; + */ + DB_TREE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The source database tree.
+     * 
+ * + * SOURCE_TREE = 1; + */ + SOURCE_TREE(1), + /** + * + * + *
+     * The draft database tree.
+     * 
+ * + * DRAFT_TREE = 2; + */ + DRAFT_TREE(2), + /** + * + * + *
+     * The destination database tree.
+     * 
+ * + * DESTINATION_TREE = 3; + */ + DESTINATION_TREE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified tree type.
+     * 
+ * + * DB_TREE_TYPE_UNSPECIFIED = 0; + */ + public static final int DB_TREE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The source database tree.
+     * 
+ * + * SOURCE_TREE = 1; + */ + public static final int SOURCE_TREE_VALUE = 1; + /** + * + * + *
+     * The draft database tree.
+     * 
+ * + * DRAFT_TREE = 2; + */ + public static final int DRAFT_TREE_VALUE = 2; + /** + * + * + *
+     * The destination database tree.
+     * 
+ * + * DESTINATION_TREE = 3; + */ + public static final int DESTINATION_TREE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DBTreeType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DBTreeType forNumber(int value) { + switch (value) { + case 0: + return DB_TREE_TYPE_UNSPECIFIED; + case 1: + return SOURCE_TREE; + case 2: + return DRAFT_TREE; + case 3: + return DESTINATION_TREE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DBTreeType findValueByNumber(int number) { + return DBTreeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DBTreeType[] VALUES = values(); + + public static DBTreeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DBTreeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType) + } + + public static final int CONVERSION_WORKSPACE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversionWorkspace_ = ""; + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose database entities
+   * are described. Must be in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The conversionWorkspace. + */ + @java.lang.Override + public java.lang.String getConversionWorkspace() { + java.lang.Object ref = conversionWorkspace_; + 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(); + conversionWorkspace_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose database entities
+   * are described. Must be in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for conversionWorkspace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversionWorkspaceBytes() { + java.lang.Object ref = conversionWorkspace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversionWorkspace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of entities to return. The service may return
+   * fewer entities than the value specifies.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * The nextPageToken value received in the previous call to
+   * conversionWorkspace.describeDatabaseEntities, used in the subsequent
+   * request to retrieve the next page of results. On first call this should be
+   * left blank. When paginating, all other parameters provided to
+   * conversionWorkspace.describeDatabaseEntities must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The nextPageToken value received in the previous call to
+   * conversionWorkspace.describeDatabaseEntities, used in the subsequent
+   * request to retrieve the next page of results. On first call this should be
+   * left blank. When paginating, all other parameters provided to
+   * conversionWorkspace.describeDatabaseEntities must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TREE_FIELD_NUMBER = 6; + private int tree_ = 0; + /** + * + * + *
+   * The tree to fetch.
+   * 
+ * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * @return The enum numeric value on the wire for tree. + */ + @java.lang.Override + public int getTreeValue() { + return tree_; + } + /** + * + * + *
+   * The tree to fetch.
+   * 
+ * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * @return The tree. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType getTree() { + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType result = + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType.forNumber(tree_); + return result == null + ? com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType.UNRECOGNIZED + : result; + } + + public static final int UNCOMMITTED_FIELD_NUMBER = 11; + private boolean uncommitted_ = false; + /** + * + * + *
+   * Whether to retrieve the latest committed version of the entities or the
+   * latest version. This field is ignored if a specific commit_id is specified.
+   * 
+ * + * bool uncommitted = 11; + * + * @return The uncommitted. + */ + @java.lang.Override + public boolean getUncommitted() { + return uncommitted_; + } + + public static final int COMMIT_ID_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitId_ = ""; + /** + * + * + *
+   * Request a specific commit ID. If not specified, the entities from the
+   * latest commit are returned.
+   * 
+ * + * string commit_id = 12; + * + * @return The commitId. + */ + @java.lang.Override + public java.lang.String getCommitId() { + java.lang.Object ref = commitId_; + 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(); + commitId_ = s; + return s; + } + } + /** + * + * + *
+   * Request a specific commit ID. If not specified, the entities from the
+   * latest commit are returned.
+   * 
+ * + * string commit_id = 12; + * + * @return The bytes for commitId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitIdBytes() { + java.lang.Object ref = commitId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Filter the returned entities based on AIP-160 standard.
+   * 
+ * + * string filter = 13; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filter the returned entities based on AIP-160 standard.
+   * 
+ * + * string filter = 13; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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(conversionWorkspace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, conversionWorkspace_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (tree_ + != com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType + .DB_TREE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, tree_); + } + if (uncommitted_ != false) { + output.writeBool(11, uncommitted_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, commitId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversionWorkspace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, conversionWorkspace_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (tree_ + != com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType + .DB_TREE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, tree_); + } + if (uncommitted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, uncommitted_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, commitId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest other = + (com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest) obj; + + if (!getConversionWorkspace().equals(other.getConversionWorkspace())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (tree_ != other.tree_) return false; + if (getUncommitted() != other.getUncommitted()) return false; + if (!getCommitId().equals(other.getCommitId())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONVERSION_WORKSPACE_FIELD_NUMBER; + hash = (53 * hash) + getConversionWorkspace().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + TREE_FIELD_NUMBER; + hash = (53 * hash) + tree_; + hash = (37 * hash) + UNCOMMITTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUncommitted()); + hash = (37 * hash) + COMMIT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCommitId().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest 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.clouddms.v1.DescribeDatabaseEntitiesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest 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.clouddms.v1.DescribeDatabaseEntitiesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest 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.clouddms.v1.DescribeDatabaseEntitiesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest 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.clouddms.v1.DescribeDatabaseEntitiesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest 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.clouddms.v1.DescribeDatabaseEntitiesRequest 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; + } + /** + * + * + *
+   * Request message for 'DescribeDatabaseEntities' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest) + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.class, + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conversionWorkspace_ = ""; + pageSize_ = 0; + pageToken_ = ""; + tree_ = 0; + uncommitted_ = false; + commitId_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest build() { + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest buildPartial() { + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest result = + new com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.conversionWorkspace_ = conversionWorkspace_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tree_ = tree_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.uncommitted_ = uncommitted_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.commitId_ = commitId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.filter_ = filter_; + } + } + + @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.clouddms.v1.DescribeDatabaseEntitiesRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest other) { + if (other + == com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.getDefaultInstance()) + return this; + if (!other.getConversionWorkspace().isEmpty()) { + conversionWorkspace_ = other.conversionWorkspace_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.tree_ != 0) { + setTreeValue(other.getTreeValue()); + } + if (other.getUncommitted() != false) { + setUncommitted(other.getUncommitted()); + } + if (!other.getCommitId().isEmpty()) { + commitId_ = other.commitId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + conversionWorkspace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 48: + { + tree_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 48 + case 88: + { + uncommitted_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 88 + case 98: + { + commitId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 98 + case 106: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object conversionWorkspace_ = ""; + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose database entities
+     * are described. Must be in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The conversionWorkspace. + */ + public java.lang.String getConversionWorkspace() { + java.lang.Object ref = conversionWorkspace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversionWorkspace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose database entities
+     * are described. Must be in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for conversionWorkspace. + */ + public com.google.protobuf.ByteString getConversionWorkspaceBytes() { + java.lang.Object ref = conversionWorkspace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversionWorkspace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose database entities
+     * are described. Must be in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The conversionWorkspace to set. + * @return This builder for chaining. + */ + public Builder setConversionWorkspace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversionWorkspace_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose database entities
+     * are described. Must be in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearConversionWorkspace() { + conversionWorkspace_ = getDefaultInstance().getConversionWorkspace(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose database entities
+     * are described. Must be in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for conversionWorkspace to set. + * @return This builder for chaining. + */ + public Builder setConversionWorkspaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversionWorkspace_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of entities to return. The service may return
+     * fewer entities than the value specifies.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of entities to return. The service may return
+     * fewer entities than the value specifies.
+     * 
+ * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of entities to return. The service may return
+     * fewer entities than the value specifies.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * conversionWorkspace.describeDatabaseEntities, used in the subsequent
+     * request to retrieve the next page of results. On first call this should be
+     * left blank. When paginating, all other parameters provided to
+     * conversionWorkspace.describeDatabaseEntities must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * conversionWorkspace.describeDatabaseEntities, used in the subsequent
+     * request to retrieve the next page of results. On first call this should be
+     * left blank. When paginating, all other parameters provided to
+     * conversionWorkspace.describeDatabaseEntities must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * conversionWorkspace.describeDatabaseEntities, used in the subsequent
+     * request to retrieve the next page of results. On first call this should be
+     * left blank. When paginating, all other parameters provided to
+     * conversionWorkspace.describeDatabaseEntities must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * conversionWorkspace.describeDatabaseEntities, used in the subsequent
+     * request to retrieve the next page of results. On first call this should be
+     * left blank. When paginating, all other parameters provided to
+     * conversionWorkspace.describeDatabaseEntities must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * conversionWorkspace.describeDatabaseEntities, used in the subsequent
+     * request to retrieve the next page of results. On first call this should be
+     * left blank. When paginating, all other parameters provided to
+     * conversionWorkspace.describeDatabaseEntities must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 4; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int tree_ = 0; + /** + * + * + *
+     * The tree to fetch.
+     * 
+ * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * @return The enum numeric value on the wire for tree. + */ + @java.lang.Override + public int getTreeValue() { + return tree_; + } + /** + * + * + *
+     * The tree to fetch.
+     * 
+ * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * @param value The enum numeric value on the wire for tree to set. + * @return This builder for chaining. + */ + public Builder setTreeValue(int value) { + tree_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The tree to fetch.
+     * 
+ * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * @return The tree. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType getTree() { + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType result = + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType.forNumber(tree_); + return result == null + ? com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The tree to fetch.
+     * 
+ * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * @param value The tree to set. + * @return This builder for chaining. + */ + public Builder setTree( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + tree_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The tree to fetch.
+     * 
+ * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * @return This builder for chaining. + */ + public Builder clearTree() { + bitField0_ = (bitField0_ & ~0x00000008); + tree_ = 0; + onChanged(); + return this; + } + + private boolean uncommitted_; + /** + * + * + *
+     * Whether to retrieve the latest committed version of the entities or the
+     * latest version. This field is ignored if a specific commit_id is specified.
+     * 
+ * + * bool uncommitted = 11; + * + * @return The uncommitted. + */ + @java.lang.Override + public boolean getUncommitted() { + return uncommitted_; + } + /** + * + * + *
+     * Whether to retrieve the latest committed version of the entities or the
+     * latest version. This field is ignored if a specific commit_id is specified.
+     * 
+ * + * bool uncommitted = 11; + * + * @param value The uncommitted to set. + * @return This builder for chaining. + */ + public Builder setUncommitted(boolean value) { + + uncommitted_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to retrieve the latest committed version of the entities or the
+     * latest version. This field is ignored if a specific commit_id is specified.
+     * 
+ * + * bool uncommitted = 11; + * + * @return This builder for chaining. + */ + public Builder clearUncommitted() { + bitField0_ = (bitField0_ & ~0x00000010); + uncommitted_ = false; + onChanged(); + return this; + } + + private java.lang.Object commitId_ = ""; + /** + * + * + *
+     * Request a specific commit ID. If not specified, the entities from the
+     * latest commit are returned.
+     * 
+ * + * string commit_id = 12; + * + * @return The commitId. + */ + public java.lang.String getCommitId() { + java.lang.Object ref = commitId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Request a specific commit ID. If not specified, the entities from the
+     * latest commit are returned.
+     * 
+ * + * string commit_id = 12; + * + * @return The bytes for commitId. + */ + public com.google.protobuf.ByteString getCommitIdBytes() { + java.lang.Object ref = commitId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Request a specific commit ID. If not specified, the entities from the
+     * latest commit are returned.
+     * 
+ * + * string commit_id = 12; + * + * @param value The commitId to set. + * @return This builder for chaining. + */ + public Builder setCommitId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Request a specific commit ID. If not specified, the entities from the
+     * latest commit are returned.
+     * 
+ * + * string commit_id = 12; + * + * @return This builder for chaining. + */ + public Builder clearCommitId() { + commitId_ = getDefaultInstance().getCommitId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Request a specific commit ID. If not specified, the entities from the
+     * latest commit are returned.
+     * 
+ * + * string commit_id = 12; + * + * @param value The bytes for commitId to set. + * @return This builder for chaining. + */ + public Builder setCommitIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filter the returned entities based on AIP-160 standard.
+     * 
+ * + * string filter = 13; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter the returned entities based on AIP-160 standard.
+     * 
+ * + * string filter = 13; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter the returned entities based on AIP-160 standard.
+     * 
+ * + * string filter = 13; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter the returned entities based on AIP-160 standard.
+     * 
+ * + * string filter = 13; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter the returned entities based on AIP-160 standard.
+     * 
+ * + * string filter = 13; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000040; + 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.clouddms.v1.DescribeDatabaseEntitiesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest) + private static final com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest(); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DescribeDatabaseEntitiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequestOrBuilder.java new file mode 100644 index 000000000000..e2efad3909a5 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesRequestOrBuilder.java @@ -0,0 +1,198 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface DescribeDatabaseEntitiesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose database entities
+   * are described. Must be in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The conversionWorkspace. + */ + java.lang.String getConversionWorkspace(); + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose database entities
+   * are described. Must be in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for conversionWorkspace. + */ + com.google.protobuf.ByteString getConversionWorkspaceBytes(); + + /** + * + * + *
+   * The maximum number of entities to return. The service may return
+   * fewer entities than the value specifies.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The nextPageToken value received in the previous call to
+   * conversionWorkspace.describeDatabaseEntities, used in the subsequent
+   * request to retrieve the next page of results. On first call this should be
+   * left blank. When paginating, all other parameters provided to
+   * conversionWorkspace.describeDatabaseEntities must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The nextPageToken value received in the previous call to
+   * conversionWorkspace.describeDatabaseEntities, used in the subsequent
+   * request to retrieve the next page of results. On first call this should be
+   * left blank. When paginating, all other parameters provided to
+   * conversionWorkspace.describeDatabaseEntities must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * The tree to fetch.
+   * 
+ * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * @return The enum numeric value on the wire for tree. + */ + int getTreeValue(); + /** + * + * + *
+   * The tree to fetch.
+   * 
+ * + * .google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType tree = 6; + * + * @return The tree. + */ + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType getTree(); + + /** + * + * + *
+   * Whether to retrieve the latest committed version of the entities or the
+   * latest version. This field is ignored if a specific commit_id is specified.
+   * 
+ * + * bool uncommitted = 11; + * + * @return The uncommitted. + */ + boolean getUncommitted(); + + /** + * + * + *
+   * Request a specific commit ID. If not specified, the entities from the
+   * latest commit are returned.
+   * 
+ * + * string commit_id = 12; + * + * @return The commitId. + */ + java.lang.String getCommitId(); + /** + * + * + *
+   * Request a specific commit ID. If not specified, the entities from the
+   * latest commit are returned.
+   * 
+ * + * string commit_id = 12; + * + * @return The bytes for commitId. + */ + com.google.protobuf.ByteString getCommitIdBytes(); + + /** + * + * + *
+   * Filter the returned entities based on AIP-160 standard.
+   * 
+ * + * string filter = 13; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filter the returned entities based on AIP-160 standard.
+   * 
+ * + * string filter = 13; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesResponse.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesResponse.java new file mode 100644 index 000000000000..cdec99c9d15f --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesResponse.java @@ -0,0 +1,1146 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Response message for 'DescribeDatabaseEntities' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse} + */ +public final class DescribeDatabaseEntitiesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse) + DescribeDatabaseEntitiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DescribeDatabaseEntitiesResponse.newBuilder() to construct. + private DescribeDatabaseEntitiesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DescribeDatabaseEntitiesResponse() { + databaseEntities_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DescribeDatabaseEntitiesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse.class, + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse.Builder.class); + } + + public static final int DATABASE_ENTITIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List databaseEntities_; + /** + * + * + *
+   * The list of database entities for the conversion workspace.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + @java.lang.Override + public java.util.List getDatabaseEntitiesList() { + return databaseEntities_; + } + /** + * + * + *
+   * The list of database entities for the conversion workspace.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + @java.lang.Override + public java.util.List + getDatabaseEntitiesOrBuilderList() { + return databaseEntities_; + } + /** + * + * + *
+   * The list of database entities for the conversion workspace.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + @java.lang.Override + public int getDatabaseEntitiesCount() { + return databaseEntities_.size(); + } + /** + * + * + *
+   * The list of database entities for the conversion workspace.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntity getDatabaseEntities(int index) { + return databaseEntities_.get(index); + } + /** + * + * + *
+   * The list of database entities for the conversion workspace.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityOrBuilder getDatabaseEntitiesOrBuilder( + int index) { + return databaseEntities_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < databaseEntities_.size(); i++) { + output.writeMessage(1, databaseEntities_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < databaseEntities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, databaseEntities_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse other = + (com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse) obj; + + if (!getDatabaseEntitiesList().equals(other.getDatabaseEntitiesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDatabaseEntitiesCount() > 0) { + hash = (37 * hash) + DATABASE_ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseEntitiesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse 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.clouddms.v1.DescribeDatabaseEntitiesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse 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.clouddms.v1.DescribeDatabaseEntitiesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse 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.clouddms.v1.DescribeDatabaseEntitiesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse 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.clouddms.v1.DescribeDatabaseEntitiesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse 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.clouddms.v1.DescribeDatabaseEntitiesResponse 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; + } + /** + * + * + *
+   * Response message for 'DescribeDatabaseEntities' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse) + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse.class, + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (databaseEntitiesBuilder_ == null) { + databaseEntities_ = java.util.Collections.emptyList(); + } else { + databaseEntities_ = null; + databaseEntitiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_DescribeDatabaseEntitiesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse build() { + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse buildPartial() { + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse result = + new com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse result) { + if (databaseEntitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + databaseEntities_ = java.util.Collections.unmodifiableList(databaseEntities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.databaseEntities_ = databaseEntities_; + } else { + result.databaseEntities_ = databaseEntitiesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.clouddms.v1.DescribeDatabaseEntitiesResponse) { + return mergeFrom((com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse other) { + if (other + == com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse.getDefaultInstance()) + return this; + if (databaseEntitiesBuilder_ == null) { + if (!other.databaseEntities_.isEmpty()) { + if (databaseEntities_.isEmpty()) { + databaseEntities_ = other.databaseEntities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDatabaseEntitiesIsMutable(); + databaseEntities_.addAll(other.databaseEntities_); + } + onChanged(); + } + } else { + if (!other.databaseEntities_.isEmpty()) { + if (databaseEntitiesBuilder_.isEmpty()) { + databaseEntitiesBuilder_.dispose(); + databaseEntitiesBuilder_ = null; + databaseEntities_ = other.databaseEntities_; + bitField0_ = (bitField0_ & ~0x00000001); + databaseEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDatabaseEntitiesFieldBuilder() + : null; + } else { + databaseEntitiesBuilder_.addAllMessages(other.databaseEntities_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.clouddms.v1.DatabaseEntity m = + input.readMessage( + com.google.cloud.clouddms.v1.DatabaseEntity.parser(), extensionRegistry); + if (databaseEntitiesBuilder_ == null) { + ensureDatabaseEntitiesIsMutable(); + databaseEntities_.add(m); + } else { + databaseEntitiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List databaseEntities_ = + java.util.Collections.emptyList(); + + private void ensureDatabaseEntitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + databaseEntities_ = + new java.util.ArrayList(databaseEntities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseEntity, + com.google.cloud.clouddms.v1.DatabaseEntity.Builder, + com.google.cloud.clouddms.v1.DatabaseEntityOrBuilder> + databaseEntitiesBuilder_; + + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public java.util.List getDatabaseEntitiesList() { + if (databaseEntitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(databaseEntities_); + } else { + return databaseEntitiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public int getDatabaseEntitiesCount() { + if (databaseEntitiesBuilder_ == null) { + return databaseEntities_.size(); + } else { + return databaseEntitiesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public com.google.cloud.clouddms.v1.DatabaseEntity getDatabaseEntities(int index) { + if (databaseEntitiesBuilder_ == null) { + return databaseEntities_.get(index); + } else { + return databaseEntitiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public Builder setDatabaseEntities( + int index, com.google.cloud.clouddms.v1.DatabaseEntity value) { + if (databaseEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatabaseEntitiesIsMutable(); + databaseEntities_.set(index, value); + onChanged(); + } else { + databaseEntitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public Builder setDatabaseEntities( + int index, com.google.cloud.clouddms.v1.DatabaseEntity.Builder builderForValue) { + if (databaseEntitiesBuilder_ == null) { + ensureDatabaseEntitiesIsMutable(); + databaseEntities_.set(index, builderForValue.build()); + onChanged(); + } else { + databaseEntitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public Builder addDatabaseEntities(com.google.cloud.clouddms.v1.DatabaseEntity value) { + if (databaseEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatabaseEntitiesIsMutable(); + databaseEntities_.add(value); + onChanged(); + } else { + databaseEntitiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public Builder addDatabaseEntities( + int index, com.google.cloud.clouddms.v1.DatabaseEntity value) { + if (databaseEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatabaseEntitiesIsMutable(); + databaseEntities_.add(index, value); + onChanged(); + } else { + databaseEntitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public Builder addDatabaseEntities( + com.google.cloud.clouddms.v1.DatabaseEntity.Builder builderForValue) { + if (databaseEntitiesBuilder_ == null) { + ensureDatabaseEntitiesIsMutable(); + databaseEntities_.add(builderForValue.build()); + onChanged(); + } else { + databaseEntitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public Builder addDatabaseEntities( + int index, com.google.cloud.clouddms.v1.DatabaseEntity.Builder builderForValue) { + if (databaseEntitiesBuilder_ == null) { + ensureDatabaseEntitiesIsMutable(); + databaseEntities_.add(index, builderForValue.build()); + onChanged(); + } else { + databaseEntitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public Builder addAllDatabaseEntities( + java.lang.Iterable values) { + if (databaseEntitiesBuilder_ == null) { + ensureDatabaseEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, databaseEntities_); + onChanged(); + } else { + databaseEntitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public Builder clearDatabaseEntities() { + if (databaseEntitiesBuilder_ == null) { + databaseEntities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + databaseEntitiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public Builder removeDatabaseEntities(int index) { + if (databaseEntitiesBuilder_ == null) { + ensureDatabaseEntitiesIsMutable(); + databaseEntities_.remove(index); + onChanged(); + } else { + databaseEntitiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public com.google.cloud.clouddms.v1.DatabaseEntity.Builder getDatabaseEntitiesBuilder( + int index) { + return getDatabaseEntitiesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public com.google.cloud.clouddms.v1.DatabaseEntityOrBuilder getDatabaseEntitiesOrBuilder( + int index) { + if (databaseEntitiesBuilder_ == null) { + return databaseEntities_.get(index); + } else { + return databaseEntitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public java.util.List + getDatabaseEntitiesOrBuilderList() { + if (databaseEntitiesBuilder_ != null) { + return databaseEntitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(databaseEntities_); + } + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public com.google.cloud.clouddms.v1.DatabaseEntity.Builder addDatabaseEntitiesBuilder() { + return getDatabaseEntitiesFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.DatabaseEntity.getDefaultInstance()); + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public com.google.cloud.clouddms.v1.DatabaseEntity.Builder addDatabaseEntitiesBuilder( + int index) { + return getDatabaseEntitiesFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.DatabaseEntity.getDefaultInstance()); + } + /** + * + * + *
+     * The list of database entities for the conversion workspace.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + public java.util.List + getDatabaseEntitiesBuilderList() { + return getDatabaseEntitiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseEntity, + com.google.cloud.clouddms.v1.DatabaseEntity.Builder, + com.google.cloud.clouddms.v1.DatabaseEntityOrBuilder> + getDatabaseEntitiesFieldBuilder() { + if (databaseEntitiesBuilder_ == null) { + databaseEntitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.DatabaseEntity, + com.google.cloud.clouddms.v1.DatabaseEntity.Builder, + com.google.cloud.clouddms.v1.DatabaseEntityOrBuilder>( + databaseEntities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + databaseEntities_ = null; + } + return databaseEntitiesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse) + private static final com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse(); + } + + public static com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DescribeDatabaseEntitiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesResponseOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesResponseOrBuilder.java new file mode 100644 index 000000000000..1e958981df1c --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/DescribeDatabaseEntitiesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface DescribeDatabaseEntitiesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of database entities for the conversion workspace.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + java.util.List getDatabaseEntitiesList(); + /** + * + * + *
+   * The list of database entities for the conversion workspace.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + com.google.cloud.clouddms.v1.DatabaseEntity getDatabaseEntities(int index); + /** + * + * + *
+   * The list of database entities for the conversion workspace.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + int getDatabaseEntitiesCount(); + /** + * + * + *
+   * The list of database entities for the conversion workspace.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + java.util.List + getDatabaseEntitiesOrBuilderList(); + /** + * + * + *
+   * The list of database entities for the conversion workspace.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.DatabaseEntity database_entities = 1; + */ + com.google.cloud.clouddms.v1.DatabaseEntityOrBuilder getDatabaseEntitiesOrBuilder(int index); + + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMapping.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMapping.java new file mode 100644 index 000000000000..47a6afd80e54 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMapping.java @@ -0,0 +1,1737 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Details of the mappings of a database entity.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.EntityMapping} + */ +public final class EntityMapping extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.EntityMapping) + EntityMappingOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntityMapping.newBuilder() to construct. + private EntityMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntityMapping() { + sourceEntity_ = ""; + draftEntity_ = ""; + sourceType_ = 0; + draftType_ = 0; + mappingLog_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntityMapping(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.EntityMapping.class, + com.google.cloud.clouddms.v1.EntityMapping.Builder.class); + } + + public static final int SOURCE_ENTITY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceEntity_ = ""; + /** + * + * + *
+   * Source entity full name.
+   * The source entity can also be a column, index or constraint using the
+   * same naming notation schema.table.column.
+   * 
+ * + * string source_entity = 1; + * + * @return The sourceEntity. + */ + @java.lang.Override + public java.lang.String getSourceEntity() { + java.lang.Object ref = sourceEntity_; + 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(); + sourceEntity_ = s; + return s; + } + } + /** + * + * + *
+   * Source entity full name.
+   * The source entity can also be a column, index or constraint using the
+   * same naming notation schema.table.column.
+   * 
+ * + * string source_entity = 1; + * + * @return The bytes for sourceEntity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceEntityBytes() { + java.lang.Object ref = sourceEntity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceEntity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DRAFT_ENTITY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object draftEntity_ = ""; + /** + * + * + *
+   * Target entity full name.
+   * The draft entity can also include a column, index or constraint using the
+   * same naming notation schema.table.column.
+   * 
+ * + * string draft_entity = 2; + * + * @return The draftEntity. + */ + @java.lang.Override + public java.lang.String getDraftEntity() { + java.lang.Object ref = draftEntity_; + 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(); + draftEntity_ = s; + return s; + } + } + /** + * + * + *
+   * Target entity full name.
+   * The draft entity can also include a column, index or constraint using the
+   * same naming notation schema.table.column.
+   * 
+ * + * string draft_entity = 2; + * + * @return The bytes for draftEntity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDraftEntityBytes() { + java.lang.Object ref = draftEntity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + draftEntity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_TYPE_FIELD_NUMBER = 4; + private int sourceType_ = 0; + /** + * + * + *
+   * Type of source entity.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4; + * + * @return The enum numeric value on the wire for sourceType. + */ + @java.lang.Override + public int getSourceTypeValue() { + return sourceType_; + } + /** + * + * + *
+   * Type of source entity.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4; + * + * @return The sourceType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getSourceType() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(sourceType_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + + public static final int DRAFT_TYPE_FIELD_NUMBER = 5; + private int draftType_ = 0; + /** + * + * + *
+   * Type of draft entity.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5; + * + * @return The enum numeric value on the wire for draftType. + */ + @java.lang.Override + public int getDraftTypeValue() { + return draftType_; + } + /** + * + * + *
+   * Type of draft entity.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5; + * + * @return The draftType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getDraftType() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(draftType_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + + public static final int MAPPING_LOG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List mappingLog_; + /** + * + * + *
+   * Entity mapping log entries.
+   * Multiple rules can be effective and contribute changes to a converted
+   * entity, such as a rule can handle the entity name, another rule can handle
+   * an entity type. In addition, rules which did not change the entity are also
+   * logged along with the reason preventing them to do so.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + @java.lang.Override + public java.util.List getMappingLogList() { + return mappingLog_; + } + /** + * + * + *
+   * Entity mapping log entries.
+   * Multiple rules can be effective and contribute changes to a converted
+   * entity, such as a rule can handle the entity name, another rule can handle
+   * an entity type. In addition, rules which did not change the entity are also
+   * logged along with the reason preventing them to do so.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + @java.lang.Override + public java.util.List + getMappingLogOrBuilderList() { + return mappingLog_; + } + /** + * + * + *
+   * Entity mapping log entries.
+   * Multiple rules can be effective and contribute changes to a converted
+   * entity, such as a rule can handle the entity name, another rule can handle
+   * an entity type. In addition, rules which did not change the entity are also
+   * logged along with the reason preventing them to do so.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + @java.lang.Override + public int getMappingLogCount() { + return mappingLog_.size(); + } + /** + * + * + *
+   * Entity mapping log entries.
+   * Multiple rules can be effective and contribute changes to a converted
+   * entity, such as a rule can handle the entity name, another rule can handle
+   * an entity type. In addition, rules which did not change the entity are also
+   * logged along with the reason preventing them to do so.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMappingLogEntry getMappingLog(int index) { + return mappingLog_.get(index); + } + /** + * + * + *
+   * Entity mapping log entries.
+   * Multiple rules can be effective and contribute changes to a converted
+   * entity, such as a rule can handle the entity name, another rule can handle
+   * an entity type. In addition, rules which did not change the entity are also
+   * logged along with the reason preventing them to do so.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMappingLogEntryOrBuilder getMappingLogOrBuilder( + int index) { + return mappingLog_.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(sourceEntity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceEntity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(draftEntity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, draftEntity_); + } + for (int i = 0; i < mappingLog_.size(); i++) { + output.writeMessage(3, mappingLog_.get(i)); + } + if (sourceType_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, sourceType_); + } + if (draftType_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, draftType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceEntity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceEntity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(draftEntity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, draftEntity_); + } + for (int i = 0; i < mappingLog_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, mappingLog_.get(i)); + } + if (sourceType_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, sourceType_); + } + if (draftType_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, draftType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.EntityMapping)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.EntityMapping other = + (com.google.cloud.clouddms.v1.EntityMapping) obj; + + if (!getSourceEntity().equals(other.getSourceEntity())) return false; + if (!getDraftEntity().equals(other.getDraftEntity())) return false; + if (sourceType_ != other.sourceType_) return false; + if (draftType_ != other.draftType_) return false; + if (!getMappingLogList().equals(other.getMappingLogList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getSourceEntity().hashCode(); + hash = (37 * hash) + DRAFT_ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getDraftEntity().hashCode(); + hash = (37 * hash) + SOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + sourceType_; + hash = (37 * hash) + DRAFT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + draftType_; + if (getMappingLogCount() > 0) { + hash = (37 * hash) + MAPPING_LOG_FIELD_NUMBER; + hash = (53 * hash) + getMappingLogList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.EntityMapping parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityMapping 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.clouddms.v1.EntityMapping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityMapping 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.clouddms.v1.EntityMapping parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityMapping parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.EntityMapping parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityMapping 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.clouddms.v1.EntityMapping parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityMapping 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.clouddms.v1.EntityMapping parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityMapping 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.clouddms.v1.EntityMapping 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; + } + /** + * + * + *
+   * Details of the mappings of a database entity.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.EntityMapping} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.EntityMapping) + com.google.cloud.clouddms.v1.EntityMappingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.EntityMapping.class, + com.google.cloud.clouddms.v1.EntityMapping.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.EntityMapping.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceEntity_ = ""; + draftEntity_ = ""; + sourceType_ = 0; + draftType_ = 0; + if (mappingLogBuilder_ == null) { + mappingLog_ = java.util.Collections.emptyList(); + } else { + mappingLog_ = null; + mappingLogBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMapping_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMapping getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.EntityMapping.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMapping build() { + com.google.cloud.clouddms.v1.EntityMapping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMapping buildPartial() { + com.google.cloud.clouddms.v1.EntityMapping result = + new com.google.cloud.clouddms.v1.EntityMapping(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.clouddms.v1.EntityMapping result) { + if (mappingLogBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + mappingLog_ = java.util.Collections.unmodifiableList(mappingLog_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.mappingLog_ = mappingLog_; + } else { + result.mappingLog_ = mappingLogBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.clouddms.v1.EntityMapping result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceEntity_ = sourceEntity_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.draftEntity_ = draftEntity_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceType_ = sourceType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.draftType_ = draftType_; + } + } + + @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.clouddms.v1.EntityMapping) { + return mergeFrom((com.google.cloud.clouddms.v1.EntityMapping) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.EntityMapping other) { + if (other == com.google.cloud.clouddms.v1.EntityMapping.getDefaultInstance()) return this; + if (!other.getSourceEntity().isEmpty()) { + sourceEntity_ = other.sourceEntity_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDraftEntity().isEmpty()) { + draftEntity_ = other.draftEntity_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.sourceType_ != 0) { + setSourceTypeValue(other.getSourceTypeValue()); + } + if (other.draftType_ != 0) { + setDraftTypeValue(other.getDraftTypeValue()); + } + if (mappingLogBuilder_ == null) { + if (!other.mappingLog_.isEmpty()) { + if (mappingLog_.isEmpty()) { + mappingLog_ = other.mappingLog_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureMappingLogIsMutable(); + mappingLog_.addAll(other.mappingLog_); + } + onChanged(); + } + } else { + if (!other.mappingLog_.isEmpty()) { + if (mappingLogBuilder_.isEmpty()) { + mappingLogBuilder_.dispose(); + mappingLogBuilder_ = null; + mappingLog_ = other.mappingLog_; + bitField0_ = (bitField0_ & ~0x00000010); + mappingLogBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMappingLogFieldBuilder() + : null; + } else { + mappingLogBuilder_.addAllMessages(other.mappingLog_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sourceEntity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + draftEntity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.clouddms.v1.EntityMappingLogEntry m = + input.readMessage( + com.google.cloud.clouddms.v1.EntityMappingLogEntry.parser(), + extensionRegistry); + if (mappingLogBuilder_ == null) { + ensureMappingLogIsMutable(); + mappingLog_.add(m); + } else { + mappingLogBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + sourceType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: + { + draftType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sourceEntity_ = ""; + /** + * + * + *
+     * Source entity full name.
+     * The source entity can also be a column, index or constraint using the
+     * same naming notation schema.table.column.
+     * 
+ * + * string source_entity = 1; + * + * @return The sourceEntity. + */ + public java.lang.String getSourceEntity() { + java.lang.Object ref = sourceEntity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceEntity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Source entity full name.
+     * The source entity can also be a column, index or constraint using the
+     * same naming notation schema.table.column.
+     * 
+ * + * string source_entity = 1; + * + * @return The bytes for sourceEntity. + */ + public com.google.protobuf.ByteString getSourceEntityBytes() { + java.lang.Object ref = sourceEntity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceEntity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Source entity full name.
+     * The source entity can also be a column, index or constraint using the
+     * same naming notation schema.table.column.
+     * 
+ * + * string source_entity = 1; + * + * @param value The sourceEntity to set. + * @return This builder for chaining. + */ + public Builder setSourceEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceEntity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Source entity full name.
+     * The source entity can also be a column, index or constraint using the
+     * same naming notation schema.table.column.
+     * 
+ * + * string source_entity = 1; + * + * @return This builder for chaining. + */ + public Builder clearSourceEntity() { + sourceEntity_ = getDefaultInstance().getSourceEntity(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Source entity full name.
+     * The source entity can also be a column, index or constraint using the
+     * same naming notation schema.table.column.
+     * 
+ * + * string source_entity = 1; + * + * @param value The bytes for sourceEntity to set. + * @return This builder for chaining. + */ + public Builder setSourceEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceEntity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object draftEntity_ = ""; + /** + * + * + *
+     * Target entity full name.
+     * The draft entity can also include a column, index or constraint using the
+     * same naming notation schema.table.column.
+     * 
+ * + * string draft_entity = 2; + * + * @return The draftEntity. + */ + public java.lang.String getDraftEntity() { + java.lang.Object ref = draftEntity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + draftEntity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Target entity full name.
+     * The draft entity can also include a column, index or constraint using the
+     * same naming notation schema.table.column.
+     * 
+ * + * string draft_entity = 2; + * + * @return The bytes for draftEntity. + */ + public com.google.protobuf.ByteString getDraftEntityBytes() { + java.lang.Object ref = draftEntity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + draftEntity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Target entity full name.
+     * The draft entity can also include a column, index or constraint using the
+     * same naming notation schema.table.column.
+     * 
+ * + * string draft_entity = 2; + * + * @param value The draftEntity to set. + * @return This builder for chaining. + */ + public Builder setDraftEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + draftEntity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Target entity full name.
+     * The draft entity can also include a column, index or constraint using the
+     * same naming notation schema.table.column.
+     * 
+ * + * string draft_entity = 2; + * + * @return This builder for chaining. + */ + public Builder clearDraftEntity() { + draftEntity_ = getDefaultInstance().getDraftEntity(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Target entity full name.
+     * The draft entity can also include a column, index or constraint using the
+     * same naming notation schema.table.column.
+     * 
+ * + * string draft_entity = 2; + * + * @param value The bytes for draftEntity to set. + * @return This builder for chaining. + */ + public Builder setDraftEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + draftEntity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int sourceType_ = 0; + /** + * + * + *
+     * Type of source entity.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4; + * + * @return The enum numeric value on the wire for sourceType. + */ + @java.lang.Override + public int getSourceTypeValue() { + return sourceType_; + } + /** + * + * + *
+     * Type of source entity.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4; + * + * @param value The enum numeric value on the wire for sourceType to set. + * @return This builder for chaining. + */ + public Builder setSourceTypeValue(int value) { + sourceType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of source entity.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4; + * + * @return The sourceType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getSourceType() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(sourceType_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Type of source entity.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4; + * + * @param value The sourceType to set. + * @return This builder for chaining. + */ + public Builder setSourceType(com.google.cloud.clouddms.v1.DatabaseEntityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + sourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of source entity.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearSourceType() { + bitField0_ = (bitField0_ & ~0x00000004); + sourceType_ = 0; + onChanged(); + return this; + } + + private int draftType_ = 0; + /** + * + * + *
+     * Type of draft entity.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5; + * + * @return The enum numeric value on the wire for draftType. + */ + @java.lang.Override + public int getDraftTypeValue() { + return draftType_; + } + /** + * + * + *
+     * Type of draft entity.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5; + * + * @param value The enum numeric value on the wire for draftType to set. + * @return This builder for chaining. + */ + public Builder setDraftTypeValue(int value) { + draftType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of draft entity.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5; + * + * @return The draftType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getDraftType() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(draftType_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Type of draft entity.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5; + * + * @param value The draftType to set. + * @return This builder for chaining. + */ + public Builder setDraftType(com.google.cloud.clouddms.v1.DatabaseEntityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + draftType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of draft entity.
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5; + * + * @return This builder for chaining. + */ + public Builder clearDraftType() { + bitField0_ = (bitField0_ & ~0x00000008); + draftType_ = 0; + onChanged(); + return this; + } + + private java.util.List mappingLog_ = + java.util.Collections.emptyList(); + + private void ensureMappingLogIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + mappingLog_ = + new java.util.ArrayList( + mappingLog_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityMappingLogEntry, + com.google.cloud.clouddms.v1.EntityMappingLogEntry.Builder, + com.google.cloud.clouddms.v1.EntityMappingLogEntryOrBuilder> + mappingLogBuilder_; + + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public java.util.List getMappingLogList() { + if (mappingLogBuilder_ == null) { + return java.util.Collections.unmodifiableList(mappingLog_); + } else { + return mappingLogBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public int getMappingLogCount() { + if (mappingLogBuilder_ == null) { + return mappingLog_.size(); + } else { + return mappingLogBuilder_.getCount(); + } + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public com.google.cloud.clouddms.v1.EntityMappingLogEntry getMappingLog(int index) { + if (mappingLogBuilder_ == null) { + return mappingLog_.get(index); + } else { + return mappingLogBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public Builder setMappingLog( + int index, com.google.cloud.clouddms.v1.EntityMappingLogEntry value) { + if (mappingLogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMappingLogIsMutable(); + mappingLog_.set(index, value); + onChanged(); + } else { + mappingLogBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public Builder setMappingLog( + int index, com.google.cloud.clouddms.v1.EntityMappingLogEntry.Builder builderForValue) { + if (mappingLogBuilder_ == null) { + ensureMappingLogIsMutable(); + mappingLog_.set(index, builderForValue.build()); + onChanged(); + } else { + mappingLogBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public Builder addMappingLog(com.google.cloud.clouddms.v1.EntityMappingLogEntry value) { + if (mappingLogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMappingLogIsMutable(); + mappingLog_.add(value); + onChanged(); + } else { + mappingLogBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public Builder addMappingLog( + int index, com.google.cloud.clouddms.v1.EntityMappingLogEntry value) { + if (mappingLogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMappingLogIsMutable(); + mappingLog_.add(index, value); + onChanged(); + } else { + mappingLogBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public Builder addMappingLog( + com.google.cloud.clouddms.v1.EntityMappingLogEntry.Builder builderForValue) { + if (mappingLogBuilder_ == null) { + ensureMappingLogIsMutable(); + mappingLog_.add(builderForValue.build()); + onChanged(); + } else { + mappingLogBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public Builder addMappingLog( + int index, com.google.cloud.clouddms.v1.EntityMappingLogEntry.Builder builderForValue) { + if (mappingLogBuilder_ == null) { + ensureMappingLogIsMutable(); + mappingLog_.add(index, builderForValue.build()); + onChanged(); + } else { + mappingLogBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public Builder addAllMappingLog( + java.lang.Iterable values) { + if (mappingLogBuilder_ == null) { + ensureMappingLogIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mappingLog_); + onChanged(); + } else { + mappingLogBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public Builder clearMappingLog() { + if (mappingLogBuilder_ == null) { + mappingLog_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + mappingLogBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public Builder removeMappingLog(int index) { + if (mappingLogBuilder_ == null) { + ensureMappingLogIsMutable(); + mappingLog_.remove(index); + onChanged(); + } else { + mappingLogBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public com.google.cloud.clouddms.v1.EntityMappingLogEntry.Builder getMappingLogBuilder( + int index) { + return getMappingLogFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public com.google.cloud.clouddms.v1.EntityMappingLogEntryOrBuilder getMappingLogOrBuilder( + int index) { + if (mappingLogBuilder_ == null) { + return mappingLog_.get(index); + } else { + return mappingLogBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public java.util.List + getMappingLogOrBuilderList() { + if (mappingLogBuilder_ != null) { + return mappingLogBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mappingLog_); + } + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public com.google.cloud.clouddms.v1.EntityMappingLogEntry.Builder addMappingLogBuilder() { + return getMappingLogFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.EntityMappingLogEntry.getDefaultInstance()); + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public com.google.cloud.clouddms.v1.EntityMappingLogEntry.Builder addMappingLogBuilder( + int index) { + return getMappingLogFieldBuilder() + .addBuilder( + index, com.google.cloud.clouddms.v1.EntityMappingLogEntry.getDefaultInstance()); + } + /** + * + * + *
+     * Entity mapping log entries.
+     * Multiple rules can be effective and contribute changes to a converted
+     * entity, such as a rule can handle the entity name, another rule can handle
+     * an entity type. In addition, rules which did not change the entity are also
+     * logged along with the reason preventing them to do so.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + public java.util.List + getMappingLogBuilderList() { + return getMappingLogFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityMappingLogEntry, + com.google.cloud.clouddms.v1.EntityMappingLogEntry.Builder, + com.google.cloud.clouddms.v1.EntityMappingLogEntryOrBuilder> + getMappingLogFieldBuilder() { + if (mappingLogBuilder_ == null) { + mappingLogBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.EntityMappingLogEntry, + com.google.cloud.clouddms.v1.EntityMappingLogEntry.Builder, + com.google.cloud.clouddms.v1.EntityMappingLogEntryOrBuilder>( + mappingLog_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + mappingLog_ = null; + } + return mappingLogBuilder_; + } + + @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.clouddms.v1.EntityMapping) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.EntityMapping) + private static final com.google.cloud.clouddms.v1.EntityMapping DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.EntityMapping(); + } + + public static com.google.cloud.clouddms.v1.EntityMapping getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityMapping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMapping getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMappingLogEntry.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMappingLogEntry.java new file mode 100644 index 000000000000..c036c716d42c --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMappingLogEntry.java @@ -0,0 +1,993 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * A single record of a rule which was used for a mapping.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.EntityMappingLogEntry} + */ +public final class EntityMappingLogEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.EntityMappingLogEntry) + EntityMappingLogEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntityMappingLogEntry.newBuilder() to construct. + private EntityMappingLogEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntityMappingLogEntry() { + ruleId_ = ""; + ruleRevisionId_ = ""; + mappingComment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntityMappingLogEntry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.EntityMappingLogEntry.class, + com.google.cloud.clouddms.v1.EntityMappingLogEntry.Builder.class); + } + + public static final int RULE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ruleId_ = ""; + /** + * + * + *
+   * Which rule caused this log entry.
+   * 
+ * + * string rule_id = 1; + * + * @return The ruleId. + */ + @java.lang.Override + public java.lang.String getRuleId() { + java.lang.Object ref = ruleId_; + 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(); + ruleId_ = s; + return s; + } + } + /** + * + * + *
+   * Which rule caused this log entry.
+   * 
+ * + * string rule_id = 1; + * + * @return The bytes for ruleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleIdBytes() { + java.lang.Object ref = ruleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ruleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULE_REVISION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object ruleRevisionId_ = ""; + /** + * + * + *
+   * Rule revision ID.
+   * 
+ * + * string rule_revision_id = 2; + * + * @return The ruleRevisionId. + */ + @java.lang.Override + public java.lang.String getRuleRevisionId() { + java.lang.Object ref = ruleRevisionId_; + 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(); + ruleRevisionId_ = s; + return s; + } + } + /** + * + * + *
+   * Rule revision ID.
+   * 
+ * + * string rule_revision_id = 2; + * + * @return The bytes for ruleRevisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleRevisionIdBytes() { + java.lang.Object ref = ruleRevisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ruleRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAPPING_COMMENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object mappingComment_ = ""; + /** + * + * + *
+   * Comment.
+   * 
+ * + * string mapping_comment = 3; + * + * @return The mappingComment. + */ + @java.lang.Override + public java.lang.String getMappingComment() { + java.lang.Object ref = mappingComment_; + 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(); + mappingComment_ = s; + return s; + } + } + /** + * + * + *
+   * Comment.
+   * 
+ * + * string mapping_comment = 3; + * + * @return The bytes for mappingComment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMappingCommentBytes() { + java.lang.Object ref = mappingComment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mappingComment_ = 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(ruleId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ruleId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleRevisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ruleRevisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mappingComment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mappingComment_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ruleId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleRevisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ruleRevisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mappingComment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mappingComment_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.EntityMappingLogEntry)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.EntityMappingLogEntry other = + (com.google.cloud.clouddms.v1.EntityMappingLogEntry) obj; + + if (!getRuleId().equals(other.getRuleId())) return false; + if (!getRuleRevisionId().equals(other.getRuleRevisionId())) return false; + if (!getMappingComment().equals(other.getMappingComment())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RULE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRuleId().hashCode(); + hash = (37 * hash) + RULE_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRuleRevisionId().hashCode(); + hash = (37 * hash) + MAPPING_COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getMappingComment().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.EntityMappingLogEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityMappingLogEntry 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.clouddms.v1.EntityMappingLogEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityMappingLogEntry 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.clouddms.v1.EntityMappingLogEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.EntityMappingLogEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.EntityMappingLogEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityMappingLogEntry 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.clouddms.v1.EntityMappingLogEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityMappingLogEntry 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.clouddms.v1.EntityMappingLogEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.EntityMappingLogEntry 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.clouddms.v1.EntityMappingLogEntry 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 record of a rule which was used for a mapping.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.EntityMappingLogEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.EntityMappingLogEntry) + com.google.cloud.clouddms.v1.EntityMappingLogEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.EntityMappingLogEntry.class, + com.google.cloud.clouddms.v1.EntityMappingLogEntry.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.EntityMappingLogEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ruleId_ = ""; + ruleRevisionId_ = ""; + mappingComment_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_EntityMappingLogEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMappingLogEntry getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.EntityMappingLogEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMappingLogEntry build() { + com.google.cloud.clouddms.v1.EntityMappingLogEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMappingLogEntry buildPartial() { + com.google.cloud.clouddms.v1.EntityMappingLogEntry result = + new com.google.cloud.clouddms.v1.EntityMappingLogEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.EntityMappingLogEntry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ruleId_ = ruleId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ruleRevisionId_ = ruleRevisionId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mappingComment_ = mappingComment_; + } + } + + @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.clouddms.v1.EntityMappingLogEntry) { + return mergeFrom((com.google.cloud.clouddms.v1.EntityMappingLogEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.EntityMappingLogEntry other) { + if (other == com.google.cloud.clouddms.v1.EntityMappingLogEntry.getDefaultInstance()) + return this; + if (!other.getRuleId().isEmpty()) { + ruleId_ = other.ruleId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRuleRevisionId().isEmpty()) { + ruleRevisionId_ = other.ruleRevisionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMappingComment().isEmpty()) { + mappingComment_ = other.mappingComment_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + ruleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + ruleRevisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + mappingComment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object ruleId_ = ""; + /** + * + * + *
+     * Which rule caused this log entry.
+     * 
+ * + * string rule_id = 1; + * + * @return The ruleId. + */ + public java.lang.String getRuleId() { + java.lang.Object ref = ruleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ruleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Which rule caused this log entry.
+     * 
+ * + * string rule_id = 1; + * + * @return The bytes for ruleId. + */ + public com.google.protobuf.ByteString getRuleIdBytes() { + java.lang.Object ref = ruleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ruleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Which rule caused this log entry.
+     * 
+ * + * string rule_id = 1; + * + * @param value The ruleId to set. + * @return This builder for chaining. + */ + public Builder setRuleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ruleId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Which rule caused this log entry.
+     * 
+ * + * string rule_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearRuleId() { + ruleId_ = getDefaultInstance().getRuleId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Which rule caused this log entry.
+     * 
+ * + * string rule_id = 1; + * + * @param value The bytes for ruleId to set. + * @return This builder for chaining. + */ + public Builder setRuleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ruleId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object ruleRevisionId_ = ""; + /** + * + * + *
+     * Rule revision ID.
+     * 
+ * + * string rule_revision_id = 2; + * + * @return The ruleRevisionId. + */ + public java.lang.String getRuleRevisionId() { + java.lang.Object ref = ruleRevisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ruleRevisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Rule revision ID.
+     * 
+ * + * string rule_revision_id = 2; + * + * @return The bytes for ruleRevisionId. + */ + public com.google.protobuf.ByteString getRuleRevisionIdBytes() { + java.lang.Object ref = ruleRevisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ruleRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Rule revision ID.
+     * 
+ * + * string rule_revision_id = 2; + * + * @param value The ruleRevisionId to set. + * @return This builder for chaining. + */ + public Builder setRuleRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ruleRevisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Rule revision ID.
+     * 
+ * + * string rule_revision_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearRuleRevisionId() { + ruleRevisionId_ = getDefaultInstance().getRuleRevisionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Rule revision ID.
+     * 
+ * + * string rule_revision_id = 2; + * + * @param value The bytes for ruleRevisionId to set. + * @return This builder for chaining. + */ + public Builder setRuleRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ruleRevisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object mappingComment_ = ""; + /** + * + * + *
+     * Comment.
+     * 
+ * + * string mapping_comment = 3; + * + * @return The mappingComment. + */ + public java.lang.String getMappingComment() { + java.lang.Object ref = mappingComment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mappingComment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Comment.
+     * 
+ * + * string mapping_comment = 3; + * + * @return The bytes for mappingComment. + */ + public com.google.protobuf.ByteString getMappingCommentBytes() { + java.lang.Object ref = mappingComment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mappingComment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Comment.
+     * 
+ * + * string mapping_comment = 3; + * + * @param value The mappingComment to set. + * @return This builder for chaining. + */ + public Builder setMappingComment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mappingComment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Comment.
+     * 
+ * + * string mapping_comment = 3; + * + * @return This builder for chaining. + */ + public Builder clearMappingComment() { + mappingComment_ = getDefaultInstance().getMappingComment(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Comment.
+     * 
+ * + * string mapping_comment = 3; + * + * @param value The bytes for mappingComment to set. + * @return This builder for chaining. + */ + public Builder setMappingCommentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mappingComment_ = value; + bitField0_ |= 0x00000004; + 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.clouddms.v1.EntityMappingLogEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.EntityMappingLogEntry) + private static final com.google.cloud.clouddms.v1.EntityMappingLogEntry DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.EntityMappingLogEntry(); + } + + public static com.google.cloud.clouddms.v1.EntityMappingLogEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityMappingLogEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.EntityMappingLogEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMappingLogEntryOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMappingLogEntryOrBuilder.java new file mode 100644 index 000000000000..89f26bd2b10b --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMappingLogEntryOrBuilder.java @@ -0,0 +1,100 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface EntityMappingLogEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.EntityMappingLogEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Which rule caused this log entry.
+   * 
+ * + * string rule_id = 1; + * + * @return The ruleId. + */ + java.lang.String getRuleId(); + /** + * + * + *
+   * Which rule caused this log entry.
+   * 
+ * + * string rule_id = 1; + * + * @return The bytes for ruleId. + */ + com.google.protobuf.ByteString getRuleIdBytes(); + + /** + * + * + *
+   * Rule revision ID.
+   * 
+ * + * string rule_revision_id = 2; + * + * @return The ruleRevisionId. + */ + java.lang.String getRuleRevisionId(); + /** + * + * + *
+   * Rule revision ID.
+   * 
+ * + * string rule_revision_id = 2; + * + * @return The bytes for ruleRevisionId. + */ + com.google.protobuf.ByteString getRuleRevisionIdBytes(); + + /** + * + * + *
+   * Comment.
+   * 
+ * + * string mapping_comment = 3; + * + * @return The mappingComment. + */ + java.lang.String getMappingComment(); + /** + * + * + *
+   * Comment.
+   * 
+ * + * string mapping_comment = 3; + * + * @return The bytes for mappingComment. + */ + com.google.protobuf.ByteString getMappingCommentBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMappingOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMappingOrBuilder.java new file mode 100644 index 000000000000..627d43c19114 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/EntityMappingOrBuilder.java @@ -0,0 +1,205 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface EntityMappingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.EntityMapping) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Source entity full name.
+   * The source entity can also be a column, index or constraint using the
+   * same naming notation schema.table.column.
+   * 
+ * + * string source_entity = 1; + * + * @return The sourceEntity. + */ + java.lang.String getSourceEntity(); + /** + * + * + *
+   * Source entity full name.
+   * The source entity can also be a column, index or constraint using the
+   * same naming notation schema.table.column.
+   * 
+ * + * string source_entity = 1; + * + * @return The bytes for sourceEntity. + */ + com.google.protobuf.ByteString getSourceEntityBytes(); + + /** + * + * + *
+   * Target entity full name.
+   * The draft entity can also include a column, index or constraint using the
+   * same naming notation schema.table.column.
+   * 
+ * + * string draft_entity = 2; + * + * @return The draftEntity. + */ + java.lang.String getDraftEntity(); + /** + * + * + *
+   * Target entity full name.
+   * The draft entity can also include a column, index or constraint using the
+   * same naming notation schema.table.column.
+   * 
+ * + * string draft_entity = 2; + * + * @return The bytes for draftEntity. + */ + com.google.protobuf.ByteString getDraftEntityBytes(); + + /** + * + * + *
+   * Type of source entity.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4; + * + * @return The enum numeric value on the wire for sourceType. + */ + int getSourceTypeValue(); + /** + * + * + *
+   * Type of source entity.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 4; + * + * @return The sourceType. + */ + com.google.cloud.clouddms.v1.DatabaseEntityType getSourceType(); + + /** + * + * + *
+   * Type of draft entity.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5; + * + * @return The enum numeric value on the wire for draftType. + */ + int getDraftTypeValue(); + /** + * + * + *
+   * Type of draft entity.
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType draft_type = 5; + * + * @return The draftType. + */ + com.google.cloud.clouddms.v1.DatabaseEntityType getDraftType(); + + /** + * + * + *
+   * Entity mapping log entries.
+   * Multiple rules can be effective and contribute changes to a converted
+   * entity, such as a rule can handle the entity name, another rule can handle
+   * an entity type. In addition, rules which did not change the entity are also
+   * logged along with the reason preventing them to do so.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + java.util.List getMappingLogList(); + /** + * + * + *
+   * Entity mapping log entries.
+   * Multiple rules can be effective and contribute changes to a converted
+   * entity, such as a rule can handle the entity name, another rule can handle
+   * an entity type. In addition, rules which did not change the entity are also
+   * logged along with the reason preventing them to do so.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + com.google.cloud.clouddms.v1.EntityMappingLogEntry getMappingLog(int index); + /** + * + * + *
+   * Entity mapping log entries.
+   * Multiple rules can be effective and contribute changes to a converted
+   * entity, such as a rule can handle the entity name, another rule can handle
+   * an entity type. In addition, rules which did not change the entity are also
+   * logged along with the reason preventing them to do so.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + int getMappingLogCount(); + /** + * + * + *
+   * Entity mapping log entries.
+   * Multiple rules can be effective and contribute changes to a converted
+   * entity, such as a rule can handle the entity name, another rule can handle
+   * an entity type. In addition, rules which did not change the entity are also
+   * logged along with the reason preventing them to do so.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + java.util.List + getMappingLogOrBuilderList(); + /** + * + * + *
+   * Entity mapping log entries.
+   * Multiple rules can be effective and contribute changes to a converted
+   * entity, such as a rule can handle the entity name, another rule can handle
+   * an entity type. In addition, rules which did not change the entity are also
+   * logged along with the reason preventing them to do so.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.EntityMappingLogEntry mapping_log = 3; + */ + com.google.cloud.clouddms.v1.EntityMappingLogEntryOrBuilder getMappingLogOrBuilder(int index); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FetchStaticIpsRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FetchStaticIpsRequest.java new file mode 100644 index 000000000000..67b4cfbf9552 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FetchStaticIpsRequest.java @@ -0,0 +1,925 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'FetchStaticIps' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.FetchStaticIpsRequest} + */ +public final class FetchStaticIpsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.FetchStaticIpsRequest) + FetchStaticIpsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchStaticIpsRequest.newBuilder() to construct. + private FetchStaticIpsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchStaticIpsRequest() { + name_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchStaticIpsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.FetchStaticIpsRequest.class, + com.google.cloud.clouddms.v1.FetchStaticIpsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name for the location for which static IPs should be
+   * returned. Must be in the format `projects/*/locations/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name for the location for which static IPs should be
+   * returned. Must be in the format `projects/*/locations/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Maximum number of IPs to return.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `FetchStaticIps` call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `FetchStaticIps` call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.FetchStaticIpsRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.FetchStaticIpsRequest other = + (com.google.cloud.clouddms.v1.FetchStaticIpsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsRequest 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.clouddms.v1.FetchStaticIpsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsRequest 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.clouddms.v1.FetchStaticIpsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsRequest 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.clouddms.v1.FetchStaticIpsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsRequest 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.clouddms.v1.FetchStaticIpsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsRequest 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.clouddms.v1.FetchStaticIpsRequest 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; + } + /** + * + * + *
+   * Request message for 'FetchStaticIps' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.FetchStaticIpsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.FetchStaticIpsRequest) + com.google.cloud.clouddms.v1.FetchStaticIpsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.FetchStaticIpsRequest.class, + com.google.cloud.clouddms.v1.FetchStaticIpsRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.FetchStaticIpsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_FetchStaticIpsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FetchStaticIpsRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.FetchStaticIpsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FetchStaticIpsRequest build() { + com.google.cloud.clouddms.v1.FetchStaticIpsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FetchStaticIpsRequest buildPartial() { + com.google.cloud.clouddms.v1.FetchStaticIpsRequest result = + new com.google.cloud.clouddms.v1.FetchStaticIpsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.FetchStaticIpsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.clouddms.v1.FetchStaticIpsRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.FetchStaticIpsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.FetchStaticIpsRequest other) { + if (other == com.google.cloud.clouddms.v1.FetchStaticIpsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name for the location for which static IPs should be
+     * returned. Must be in the format `projects/*/locations/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name for the location for which static IPs should be
+     * returned. Must be in the format `projects/*/locations/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name for the location for which static IPs should be
+     * returned. Must be in the format `projects/*/locations/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name for the location for which static IPs should be
+     * returned. Must be in the format `projects/*/locations/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name for the location for which static IPs should be
+     * returned. Must be in the format `projects/*/locations/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Maximum number of IPs to return.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Maximum number of IPs to return.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum number of IPs to return.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `FetchStaticIps` call.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `FetchStaticIps` call.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `FetchStaticIps` call.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `FetchStaticIps` call.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `FetchStaticIps` call.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + 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.clouddms.v1.FetchStaticIpsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.FetchStaticIpsRequest) + private static final com.google.cloud.clouddms.v1.FetchStaticIpsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.FetchStaticIpsRequest(); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchStaticIpsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FetchStaticIpsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FetchStaticIpsRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FetchStaticIpsRequestOrBuilder.java new file mode 100644 index 000000000000..64b1667b0f1d --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FetchStaticIpsRequestOrBuilder.java @@ -0,0 +1,94 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface FetchStaticIpsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.FetchStaticIpsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name for the location for which static IPs should be
+   * returned. Must be in the format `projects/*/locations/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name for the location for which static IPs should be
+   * returned. Must be in the format `projects/*/locations/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Maximum number of IPs to return.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `FetchStaticIps` call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `FetchStaticIps` call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FetchStaticIpsResponse.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FetchStaticIpsResponse.java new file mode 100644 index 000000000000..6d466e0cfc27 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FetchStaticIpsResponse.java @@ -0,0 +1,913 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Response message for a 'FetchStaticIps' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.FetchStaticIpsResponse} + */ +public final class FetchStaticIpsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.FetchStaticIpsResponse) + FetchStaticIpsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchStaticIpsResponse.newBuilder() to construct. + private FetchStaticIpsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchStaticIpsResponse() { + staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchStaticIpsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.FetchStaticIpsResponse.class, + com.google.cloud.clouddms.v1.FetchStaticIpsResponse.Builder.class); + } + + public static final int STATIC_IPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList staticIps_; + /** + * + * + *
+   * List of static IPs.
+   * 
+ * + * repeated string static_ips = 1; + * + * @return A list containing the staticIps. + */ + public com.google.protobuf.ProtocolStringList getStaticIpsList() { + return staticIps_; + } + /** + * + * + *
+   * List of static IPs.
+   * 
+ * + * repeated string static_ips = 1; + * + * @return The count of staticIps. + */ + public int getStaticIpsCount() { + return staticIps_.size(); + } + /** + * + * + *
+   * List of static IPs.
+   * 
+ * + * repeated string static_ips = 1; + * + * @param index The index of the element to return. + * @return The staticIps at the given index. + */ + public java.lang.String getStaticIps(int index) { + return staticIps_.get(index); + } + /** + * + * + *
+   * List of static IPs.
+   * 
+ * + * repeated string static_ips = 1; + * + * @param index The index of the value to return. + * @return The bytes of the staticIps at the given index. + */ + public com.google.protobuf.ByteString getStaticIpsBytes(int index) { + return staticIps_.getByteString(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < staticIps_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, staticIps_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < staticIps_.size(); i++) { + dataSize += computeStringSizeNoTag(staticIps_.getRaw(i)); + } + size += dataSize; + size += 1 * getStaticIpsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.FetchStaticIpsResponse)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.FetchStaticIpsResponse other = + (com.google.cloud.clouddms.v1.FetchStaticIpsResponse) obj; + + if (!getStaticIpsList().equals(other.getStaticIpsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getStaticIpsCount() > 0) { + hash = (37 * hash) + STATIC_IPS_FIELD_NUMBER; + hash = (53 * hash) + getStaticIpsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsResponse 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.clouddms.v1.FetchStaticIpsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsResponse 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.clouddms.v1.FetchStaticIpsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsResponse 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.clouddms.v1.FetchStaticIpsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsResponse 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.clouddms.v1.FetchStaticIpsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsResponse 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.clouddms.v1.FetchStaticIpsResponse 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; + } + /** + * + * + *
+   * Response message for a 'FetchStaticIps' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.FetchStaticIpsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.FetchStaticIpsResponse) + com.google.cloud.clouddms.v1.FetchStaticIpsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.FetchStaticIpsResponse.class, + com.google.cloud.clouddms.v1.FetchStaticIpsResponse.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.FetchStaticIpsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_FetchStaticIpsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FetchStaticIpsResponse getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.FetchStaticIpsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FetchStaticIpsResponse build() { + com.google.cloud.clouddms.v1.FetchStaticIpsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FetchStaticIpsResponse buildPartial() { + com.google.cloud.clouddms.v1.FetchStaticIpsResponse result = + new com.google.cloud.clouddms.v1.FetchStaticIpsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.clouddms.v1.FetchStaticIpsResponse result) { + if (((bitField0_ & 0x00000001) != 0)) { + staticIps_ = staticIps_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.staticIps_ = staticIps_; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.FetchStaticIpsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.clouddms.v1.FetchStaticIpsResponse) { + return mergeFrom((com.google.cloud.clouddms.v1.FetchStaticIpsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.FetchStaticIpsResponse other) { + if (other == com.google.cloud.clouddms.v1.FetchStaticIpsResponse.getDefaultInstance()) + return this; + if (!other.staticIps_.isEmpty()) { + if (staticIps_.isEmpty()) { + staticIps_ = other.staticIps_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStaticIpsIsMutable(); + staticIps_.addAll(other.staticIps_); + } + onChanged(); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStaticIpsIsMutable(); + staticIps_.add(s); + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList staticIps_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureStaticIpsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + staticIps_ = new com.google.protobuf.LazyStringArrayList(staticIps_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * List of static IPs.
+     * 
+ * + * repeated string static_ips = 1; + * + * @return A list containing the staticIps. + */ + public com.google.protobuf.ProtocolStringList getStaticIpsList() { + return staticIps_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of static IPs.
+     * 
+ * + * repeated string static_ips = 1; + * + * @return The count of staticIps. + */ + public int getStaticIpsCount() { + return staticIps_.size(); + } + /** + * + * + *
+     * List of static IPs.
+     * 
+ * + * repeated string static_ips = 1; + * + * @param index The index of the element to return. + * @return The staticIps at the given index. + */ + public java.lang.String getStaticIps(int index) { + return staticIps_.get(index); + } + /** + * + * + *
+     * List of static IPs.
+     * 
+ * + * repeated string static_ips = 1; + * + * @param index The index of the value to return. + * @return The bytes of the staticIps at the given index. + */ + public com.google.protobuf.ByteString getStaticIpsBytes(int index) { + return staticIps_.getByteString(index); + } + /** + * + * + *
+     * List of static IPs.
+     * 
+ * + * repeated string static_ips = 1; + * + * @param index The index to set the value at. + * @param value The staticIps to set. + * @return This builder for chaining. + */ + public Builder setStaticIps(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStaticIpsIsMutable(); + staticIps_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of static IPs.
+     * 
+ * + * repeated string static_ips = 1; + * + * @param value The staticIps to add. + * @return This builder for chaining. + */ + public Builder addStaticIps(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStaticIpsIsMutable(); + staticIps_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of static IPs.
+     * 
+ * + * repeated string static_ips = 1; + * + * @param values The staticIps to add. + * @return This builder for chaining. + */ + public Builder addAllStaticIps(java.lang.Iterable values) { + ensureStaticIpsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, staticIps_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of static IPs.
+     * 
+ * + * repeated string static_ips = 1; + * + * @return This builder for chaining. + */ + public Builder clearStaticIps() { + staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * List of static IPs.
+     * 
+ * + * repeated string static_ips = 1; + * + * @param value The bytes of the staticIps to add. + * @return This builder for chaining. + */ + public Builder addStaticIpsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureStaticIpsIsMutable(); + staticIps_.add(value); + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.FetchStaticIpsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.FetchStaticIpsResponse) + private static final com.google.cloud.clouddms.v1.FetchStaticIpsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.FetchStaticIpsResponse(); + } + + public static com.google.cloud.clouddms.v1.FetchStaticIpsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchStaticIpsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FetchStaticIpsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FetchStaticIpsResponseOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FetchStaticIpsResponseOrBuilder.java new file mode 100644 index 000000000000..3189175a8d1f --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FetchStaticIpsResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface FetchStaticIpsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.FetchStaticIpsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of static IPs.
+   * 
+ * + * repeated string static_ips = 1; + * + * @return A list containing the staticIps. + */ + java.util.List getStaticIpsList(); + /** + * + * + *
+   * List of static IPs.
+   * 
+ * + * repeated string static_ips = 1; + * + * @return The count of staticIps. + */ + int getStaticIpsCount(); + /** + * + * + *
+   * List of static IPs.
+   * 
+ * + * repeated string static_ips = 1; + * + * @param index The index of the element to return. + * @return The staticIps at the given index. + */ + java.lang.String getStaticIps(int index); + /** + * + * + *
+   * List of static IPs.
+   * 
+ * + * repeated string static_ips = 1; + * + * @param index The index of the value to return. + * @return The bytes of the staticIps at the given index. + */ + com.google.protobuf.ByteString getStaticIpsBytes(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ForwardSshTunnelConnectivity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ForwardSshTunnelConnectivity.java new file mode 100644 index 000000000000..b163060578e9 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ForwardSshTunnelConnectivity.java @@ -0,0 +1,1452 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Forward SSH Tunnel connectivity.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ForwardSshTunnelConnectivity} + */ +public final class ForwardSshTunnelConnectivity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) + ForwardSshTunnelConnectivityOrBuilder { + private static final long serialVersionUID = 0L; + // Use ForwardSshTunnelConnectivity.newBuilder() to construct. + private ForwardSshTunnelConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ForwardSshTunnelConnectivity() { + hostname_ = ""; + username_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ForwardSshTunnelConnectivity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ForwardSshTunnelConnectivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ForwardSshTunnelConnectivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.class, + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.Builder.class); + } + + private int authenticationMethodCase_ = 0; + private java.lang.Object authenticationMethod_; + + public enum AuthenticationMethodCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PASSWORD(100), + PRIVATE_KEY(101), + AUTHENTICATIONMETHOD_NOT_SET(0); + private final int value; + + private AuthenticationMethodCase(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 AuthenticationMethodCase valueOf(int value) { + return forNumber(value); + } + + public static AuthenticationMethodCase forNumber(int value) { + switch (value) { + case 100: + return PASSWORD; + case 101: + return PRIVATE_KEY; + case 0: + return AUTHENTICATIONMETHOD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + } + + public static final int HOSTNAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostname_ = ""; + /** + * + * + *
+   * Required. Hostname for the SSH tunnel.
+   * 
+ * + * 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 SSH tunnel.
+   * 
+ * + * 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 USERNAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + /** + * + * + *
+   * Required. Username for the SSH tunnel.
+   * 
+ * + * string username = 2 [(.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 SSH tunnel.
+   * 
+ * + * string username = 2 [(.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 PORT_FIELD_NUMBER = 3; + private int port_ = 0; + /** + * + * + *
+   * Port for the SSH tunnel, default value is 22.
+   * 
+ * + * int32 port = 3; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int PASSWORD_FIELD_NUMBER = 100; + /** + * + * + *
+   * Input only. SSH password.
+   * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return Whether the password field is set. + */ + public boolean hasPassword() { + return authenticationMethodCase_ == 100; + } + /** + * + * + *
+   * Input only. SSH password.
+   * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = ""; + if (authenticationMethodCase_ == 100) { + ref = authenticationMethod_; + } + 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(); + if (authenticationMethodCase_ == 100) { + authenticationMethod_ = s; + } + return s; + } + } + /** + * + * + *
+   * Input only. SSH password.
+   * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for password. + */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = ""; + if (authenticationMethodCase_ == 100) { + ref = authenticationMethod_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (authenticationMethodCase_ == 100) { + authenticationMethod_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_KEY_FIELD_NUMBER = 101; + /** + * + * + *
+   * Input only. SSH private key.
+   * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return Whether the privateKey field is set. + */ + public boolean hasPrivateKey() { + return authenticationMethodCase_ == 101; + } + /** + * + * + *
+   * Input only. SSH private key.
+   * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The privateKey. + */ + public java.lang.String getPrivateKey() { + java.lang.Object ref = ""; + if (authenticationMethodCase_ == 101) { + ref = authenticationMethod_; + } + 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(); + if (authenticationMethodCase_ == 101) { + authenticationMethod_ = s; + } + return s; + } + } + /** + * + * + *
+   * Input only. SSH private key.
+   * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for privateKey. + */ + public com.google.protobuf.ByteString getPrivateKeyBytes() { + java.lang.Object ref = ""; + if (authenticationMethodCase_ == 101) { + ref = authenticationMethod_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (authenticationMethodCase_ == 101) { + authenticationMethod_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); + } + if (port_ != 0) { + output.writeInt32(3, port_); + } + if (authenticationMethodCase_ == 100) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, authenticationMethod_); + } + if (authenticationMethodCase_ == 101) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, authenticationMethod_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, port_); + } + if (authenticationMethodCase_ == 100) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, authenticationMethod_); + } + if (authenticationMethodCase_ == 101) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, authenticationMethod_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity other = + (com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) obj; + + if (!getHostname().equals(other.getHostname())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (getPort() != other.getPort()) return false; + if (!getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase())) return false; + switch (authenticationMethodCase_) { + case 100: + if (!getPassword().equals(other.getPassword())) return false; + break; + case 101: + if (!getPrivateKey().equals(other.getPrivateKey())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + switch (authenticationMethodCase_) { + case 100: + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + break; + case 101: + hash = (37 * hash) + PRIVATE_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKey().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity 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.clouddms.v1.ForwardSshTunnelConnectivity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity 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.clouddms.v1.ForwardSshTunnelConnectivity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity 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.clouddms.v1.ForwardSshTunnelConnectivity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity 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.clouddms.v1.ForwardSshTunnelConnectivity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity 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.clouddms.v1.ForwardSshTunnelConnectivity 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; + } + /** + * + * + *
+   * Forward SSH Tunnel connectivity.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ForwardSshTunnelConnectivity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ForwardSshTunnelConnectivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ForwardSshTunnelConnectivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.class, + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hostname_ = ""; + username_ = ""; + port_ = 0; + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_ForwardSshTunnelConnectivity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity build() { + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity buildPartial() { + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity result = + new com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hostname_ = hostname_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.port_ = port_; + } + } + + private void buildPartialOneofs( + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity result) { + result.authenticationMethodCase_ = authenticationMethodCase_; + result.authenticationMethod_ = this.authenticationMethod_; + } + + @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.clouddms.v1.ForwardSshTunnelConnectivity) { + return mergeFrom((com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity other) { + if (other == com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.getDefaultInstance()) + return this; + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + switch (other.getAuthenticationMethodCase()) { + case PASSWORD: + { + authenticationMethodCase_ = 100; + authenticationMethod_ = other.authenticationMethod_; + onChanged(); + break; + } + case PRIVATE_KEY: + { + authenticationMethodCase_ = 101; + authenticationMethod_ = other.authenticationMethod_; + onChanged(); + break; + } + case AUTHENTICATIONMETHOD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 100; + authenticationMethod_ = s; + break; + } // case 802 + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 101; + authenticationMethod_ = s; + break; + } // case 810 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int authenticationMethodCase_ = 0; + private java.lang.Object authenticationMethod_; + + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + } + + public Builder clearAuthenticationMethod() { + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object hostname_ = ""; + /** + * + * + *
+     * Required. Hostname for the SSH tunnel.
+     * 
+ * + * 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 SSH tunnel.
+     * 
+ * + * 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 SSH tunnel.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Hostname for the SSH tunnel.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Hostname for the SSH tunnel.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object username_ = ""; + /** + * + * + *
+     * Required. Username for the SSH tunnel.
+     * 
+ * + * string username = 2 [(.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 SSH tunnel.
+     * 
+ * + * string username = 2 [(.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 SSH tunnel.
+     * 
+ * + * string username = 2 [(.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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Username for the SSH tunnel.
+     * 
+ * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Username for the SSH tunnel.
+     * 
+ * + * string username = 2 [(.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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int port_; + /** + * + * + *
+     * Port for the SSH tunnel, default value is 22.
+     * 
+ * + * int32 port = 3; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * + * + *
+     * Port for the SSH tunnel, default value is 22.
+     * 
+ * + * int32 port = 3; + * + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Port for the SSH tunnel, default value is 22.
+     * 
+ * + * int32 port = 3; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000004); + port_ = 0; + onChanged(); + return this; + } + + /** + * + * + *
+     * Input only. SSH password.
+     * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return Whether the password field is set. + */ + @java.lang.Override + public boolean hasPassword() { + return authenticationMethodCase_ == 100; + } + /** + * + * + *
+     * Input only. SSH password.
+     * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = ""; + if (authenticationMethodCase_ == 100) { + ref = authenticationMethod_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (authenticationMethodCase_ == 100) { + authenticationMethod_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Input only. SSH password.
+     * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = ""; + if (authenticationMethodCase_ == 100) { + ref = authenticationMethod_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (authenticationMethodCase_ == 100) { + authenticationMethod_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Input only. SSH password.
+     * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authenticationMethodCase_ = 100; + authenticationMethod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. SSH password.
+     * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + if (authenticationMethodCase_ == 100) { + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Input only. SSH password.
+     * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @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); + authenticationMethodCase_ = 100; + authenticationMethod_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Input only. SSH private key.
+     * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return Whether the privateKey field is set. + */ + @java.lang.Override + public boolean hasPrivateKey() { + return authenticationMethodCase_ == 101; + } + /** + * + * + *
+     * Input only. SSH private key.
+     * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The privateKey. + */ + @java.lang.Override + public java.lang.String getPrivateKey() { + java.lang.Object ref = ""; + if (authenticationMethodCase_ == 101) { + ref = authenticationMethod_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (authenticationMethodCase_ == 101) { + authenticationMethod_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Input only. SSH private key.
+     * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for privateKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateKeyBytes() { + java.lang.Object ref = ""; + if (authenticationMethodCase_ == 101) { + ref = authenticationMethod_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (authenticationMethodCase_ == 101) { + authenticationMethod_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Input only. SSH private key.
+     * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The privateKey to set. + * @return This builder for chaining. + */ + public Builder setPrivateKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authenticationMethodCase_ = 101; + authenticationMethod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. SSH private key.
+     * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPrivateKey() { + if (authenticationMethodCase_ == 101) { + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Input only. SSH private key.
+     * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The bytes for privateKey to set. + * @return This builder for chaining. + */ + public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authenticationMethodCase_ = 101; + authenticationMethod_ = 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.clouddms.v1.ForwardSshTunnelConnectivity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) + private static final com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity(); + } + + public static com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForwardSshTunnelConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ForwardSshTunnelConnectivityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ForwardSshTunnelConnectivityOrBuilder.java new file mode 100644 index 000000000000..b034842918f1 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ForwardSshTunnelConnectivityOrBuilder.java @@ -0,0 +1,165 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface ForwardSshTunnelConnectivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Hostname for the SSH tunnel.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + java.lang.String getHostname(); + /** + * + * + *
+   * Required. Hostname for the SSH tunnel.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
+   * Required. Username for the SSH tunnel.
+   * 
+ * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
+   * Required. Username for the SSH tunnel.
+   * 
+ * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
+   * Port for the SSH tunnel, default value is 22.
+   * 
+ * + * int32 port = 3; + * + * @return The port. + */ + int getPort(); + + /** + * + * + *
+   * Input only. SSH password.
+   * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return Whether the password field is set. + */ + boolean hasPassword(); + /** + * + * + *
+   * Input only. SSH password.
+   * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The password. + */ + java.lang.String getPassword(); + /** + * + * + *
+   * Input only. SSH password.
+   * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); + + /** + * + * + *
+   * Input only. SSH private key.
+   * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return Whether the privateKey field is set. + */ + boolean hasPrivateKey(); + /** + * + * + *
+   * Input only. SSH private key.
+   * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The privateKey. + */ + java.lang.String getPrivateKey(); + /** + * + * + *
+   * Input only. SSH private key.
+   * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for privateKey. + */ + com.google.protobuf.ByteString getPrivateKeyBytes(); + + public com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.AuthenticationMethodCase + getAuthenticationMethodCase(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FunctionEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FunctionEntity.java new file mode 100644 index 000000000000..105c2ae39226 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FunctionEntity.java @@ -0,0 +1,893 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Function's parent is a schema.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.FunctionEntity} + */ +public final class FunctionEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.FunctionEntity) + FunctionEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunctionEntity.newBuilder() to construct. + private FunctionEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunctionEntity() { + sqlCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunctionEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_FunctionEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_FunctionEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.FunctionEntity.class, + com.google.cloud.clouddms.v1.FunctionEntity.Builder.class); + } + + public static final int SQL_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sqlCode_ = ""; + /** + * + * + *
+   * The SQL code which creates the function.
+   * 
+ * + * string sql_code = 1; + * + * @return The sqlCode. + */ + @java.lang.Override + public java.lang.String getSqlCode() { + java.lang.Object ref = sqlCode_; + 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(); + sqlCode_ = s; + return s; + } + } + /** + * + * + *
+   * The SQL code which creates the function.
+   * 
+ * + * string sql_code = 1; + * + * @return The bytes for sqlCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlCodeBytes() { + java.lang.Object ref = sqlCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 2; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + 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(sqlCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlCode_); + } + if (customFeatures_ != null) { + output.writeMessage(2, getCustomFeatures()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlCode_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomFeatures()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.FunctionEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.FunctionEntity other = + (com.google.cloud.clouddms.v1.FunctionEntity) obj; + + if (!getSqlCode().equals(other.getSqlCode())) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SQL_CODE_FIELD_NUMBER; + hash = (53 * hash) + getSqlCode().hashCode(); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.FunctionEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.FunctionEntity 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.clouddms.v1.FunctionEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.FunctionEntity 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.clouddms.v1.FunctionEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.FunctionEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.FunctionEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.FunctionEntity 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.clouddms.v1.FunctionEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.FunctionEntity 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.clouddms.v1.FunctionEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.FunctionEntity 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.clouddms.v1.FunctionEntity 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; + } + /** + * + * + *
+   * Function's parent is a schema.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.FunctionEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.FunctionEntity) + com.google.cloud.clouddms.v1.FunctionEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_FunctionEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_FunctionEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.FunctionEntity.class, + com.google.cloud.clouddms.v1.FunctionEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.FunctionEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sqlCode_ = ""; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_FunctionEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FunctionEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FunctionEntity build() { + com.google.cloud.clouddms.v1.FunctionEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FunctionEntity buildPartial() { + com.google.cloud.clouddms.v1.FunctionEntity result = + new com.google.cloud.clouddms.v1.FunctionEntity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.FunctionEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sqlCode_ = sqlCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + @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.clouddms.v1.FunctionEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.FunctionEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.FunctionEntity other) { + if (other == com.google.cloud.clouddms.v1.FunctionEntity.getDefaultInstance()) return this; + if (!other.getSqlCode().isEmpty()) { + sqlCode_ = other.sqlCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sqlCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sqlCode_ = ""; + /** + * + * + *
+     * The SQL code which creates the function.
+     * 
+ * + * string sql_code = 1; + * + * @return The sqlCode. + */ + public java.lang.String getSqlCode() { + java.lang.Object ref = sqlCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the function.
+     * 
+ * + * string sql_code = 1; + * + * @return The bytes for sqlCode. + */ + public com.google.protobuf.ByteString getSqlCodeBytes() { + java.lang.Object ref = sqlCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the function.
+     * 
+ * + * string sql_code = 1; + * + * @param value The sqlCode to set. + * @return This builder for chaining. + */ + public Builder setSqlCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the function.
+     * 
+ * + * string sql_code = 1; + * + * @return This builder for chaining. + */ + public Builder clearSqlCode() { + sqlCode_ = getDefaultInstance().getSqlCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the function.
+     * 
+ * + * string sql_code = 1; + * + * @param value The bytes for sqlCode to set. + * @return This builder for chaining. + */ + public Builder setSqlCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000002); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @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.clouddms.v1.FunctionEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.FunctionEntity) + private static final com.google.cloud.clouddms.v1.FunctionEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.FunctionEntity(); + } + + public static com.google.cloud.clouddms.v1.FunctionEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunctionEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.FunctionEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FunctionEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FunctionEntityOrBuilder.java new file mode 100644 index 000000000000..618373e00135 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/FunctionEntityOrBuilder.java @@ -0,0 +1,85 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface FunctionEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.FunctionEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The SQL code which creates the function.
+   * 
+ * + * string sql_code = 1; + * + * @return The sqlCode. + */ + java.lang.String getSqlCode(); + /** + * + * + *
+   * The SQL code which creates the function.
+   * 
+ * + * string sql_code = 1; + * + * @return The bytes for sqlCode. + */ + com.google.protobuf.ByteString getSqlCodeBytes(); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java index 621a385fdfcc..1928f7ef6580 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequest.java @@ -325,7 +325,7 @@ public com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder getVmSelectionCon * * *
-   * The port that will be open on the bastion host
+   * The port that will be open on the bastion host.
    * 
* * int32 vm_port = 3; @@ -1464,7 +1464,7 @@ public com.google.cloud.clouddms.v1.VmSelectionConfigOrBuilder getVmSelectionCon * * *
-     * The port that will be open on the bastion host
+     * The port that will be open on the bastion host.
      * 
* * int32 vm_port = 3; @@ -1479,7 +1479,7 @@ public int getVmPort() { * * *
-     * The port that will be open on the bastion host
+     * The port that will be open on the bastion host.
      * 
* * int32 vm_port = 3; @@ -1498,7 +1498,7 @@ public Builder setVmPort(int value) { * * *
-     * The port that will be open on the bastion host
+     * The port that will be open on the bastion host.
      * 
* * int32 vm_port = 3; diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java index c1a829a3dfe1..745ad6102c49 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GenerateSshScriptRequestOrBuilder.java @@ -147,7 +147,7 @@ public interface GenerateSshScriptRequestOrBuilder * * *
-   * The port that will be open on the bastion host
+   * The port that will be open on the bastion host.
    * 
* * int32 vm_port = 3; diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConversionWorkspaceRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConversionWorkspaceRequest.java new file mode 100644 index 000000000000..c1a5fde6f591 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConversionWorkspaceRequest.java @@ -0,0 +1,644 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'GetConversionWorkspace' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.GetConversionWorkspaceRequest} + */ +public final class GetConversionWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.GetConversionWorkspaceRequest) + GetConversionWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetConversionWorkspaceRequest.newBuilder() to construct. + private GetConversionWorkspaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetConversionWorkspaceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetConversionWorkspaceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the conversion workspace resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the conversion workspace resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest other = + (com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest 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.clouddms.v1.GetConversionWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest 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.clouddms.v1.GetConversionWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest 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.clouddms.v1.GetConversionWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest 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.clouddms.v1.GetConversionWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest 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.clouddms.v1.GetConversionWorkspaceRequest 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; + } + /** + * + * + *
+   * Request message for 'GetConversionWorkspace' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.GetConversionWorkspaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.GetConversionWorkspaceRequest) + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest build() { + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest buildPartial() { + com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest result = + new com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.clouddms.v1.GetConversionWorkspaceRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest other) { + if (other == com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Name of the conversion workspace resource to get.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to get.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to get.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to get.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to get.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @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.clouddms.v1.GetConversionWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.GetConversionWorkspaceRequest) + private static final com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest(); + } + + public static com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConversionWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConversionWorkspaceRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConversionWorkspaceRequestOrBuilder.java new file mode 100644 index 000000000000..d3a873b7f4d3 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetConversionWorkspaceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface GetConversionWorkspaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GetConversionWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the conversion workspace resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the conversion workspace resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetPrivateConnectionRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetPrivateConnectionRequest.java new file mode 100644 index 000000000000..bcc47ef127d5 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetPrivateConnectionRequest.java @@ -0,0 +1,644 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message to get a private connection resource.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.GetPrivateConnectionRequest} + */ +public final class GetPrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.GetPrivateConnectionRequest) + GetPrivateConnectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetPrivateConnectionRequest.newBuilder() to construct. + private GetPrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPrivateConnectionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPrivateConnectionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest.class, + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the private connection to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the private connection to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.GetPrivateConnectionRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest other = + (com.google.cloud.clouddms.v1.GetPrivateConnectionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.GetPrivateConnectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.GetPrivateConnectionRequest 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.clouddms.v1.GetPrivateConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.GetPrivateConnectionRequest 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.clouddms.v1.GetPrivateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.GetPrivateConnectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.GetPrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.GetPrivateConnectionRequest 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.clouddms.v1.GetPrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.GetPrivateConnectionRequest 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.clouddms.v1.GetPrivateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.GetPrivateConnectionRequest 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.clouddms.v1.GetPrivateConnectionRequest 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; + } + /** + * + * + *
+   * Request message to get a private connection resource.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.GetPrivateConnectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.GetPrivateConnectionRequest) + com.google.cloud.clouddms.v1.GetPrivateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest.class, + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.GetPrivateConnectionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_GetPrivateConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GetPrivateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.GetPrivateConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GetPrivateConnectionRequest build() { + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GetPrivateConnectionRequest buildPartial() { + com.google.cloud.clouddms.v1.GetPrivateConnectionRequest result = + new com.google.cloud.clouddms.v1.GetPrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.GetPrivateConnectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.clouddms.v1.GetPrivateConnectionRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.GetPrivateConnectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.GetPrivateConnectionRequest other) { + if (other == com.google.cloud.clouddms.v1.GetPrivateConnectionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the private connection to get.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the private connection to get.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the private connection to get.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the private connection to get.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the private connection to get.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @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.clouddms.v1.GetPrivateConnectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.GetPrivateConnectionRequest) + private static final com.google.cloud.clouddms.v1.GetPrivateConnectionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.GetPrivateConnectionRequest(); + } + + public static com.google.cloud.clouddms.v1.GetPrivateConnectionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.GetPrivateConnectionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetPrivateConnectionRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetPrivateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..64c561f7d6c2 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/GetPrivateConnectionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface GetPrivateConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.GetPrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the private connection to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the private connection to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequest.java new file mode 100644 index 000000000000..0318d8b719a6 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequest.java @@ -0,0 +1,2337 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'ImportMappingRules' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ImportMappingRulesRequest} + */ +public final class ImportMappingRulesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ImportMappingRulesRequest) + ImportMappingRulesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportMappingRulesRequest.newBuilder() to construct. + private ImportMappingRulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportMappingRulesRequest() { + parent_ = ""; + rulesFormat_ = 0; + rulesFiles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportMappingRulesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.class, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.Builder.class); + } + + public interface RulesFileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The filename of the rules that needs to be converted. The filename is
+     * used mainly so that future logs of the import rules job contain it, and
+     * can therefore be searched by it.
+     * 
+ * + * string rules_source_filename = 1; + * + * @return The rulesSourceFilename. + */ + java.lang.String getRulesSourceFilename(); + /** + * + * + *
+     * The filename of the rules that needs to be converted. The filename is
+     * used mainly so that future logs of the import rules job contain it, and
+     * can therefore be searched by it.
+     * 
+ * + * string rules_source_filename = 1; + * + * @return The bytes for rulesSourceFilename. + */ + com.google.protobuf.ByteString getRulesSourceFilenameBytes(); + + /** + * + * + *
+     * The text content of the rules that needs to be converted.
+     * 
+ * + * string rules_content = 2; + * + * @return The rulesContent. + */ + java.lang.String getRulesContent(); + /** + * + * + *
+     * The text content of the rules that needs to be converted.
+     * 
+ * + * string rules_content = 2; + * + * @return The bytes for rulesContent. + */ + com.google.protobuf.ByteString getRulesContentBytes(); + } + /** + * + * + *
+   * Details of a single rules file.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile} + */ + public static final class RulesFile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile) + RulesFileOrBuilder { + private static final long serialVersionUID = 0L; + // Use RulesFile.newBuilder() to construct. + private RulesFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RulesFile() { + rulesSourceFilename_ = ""; + rulesContent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RulesFile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_RulesFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_RulesFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.class, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder.class); + } + + public static final int RULES_SOURCE_FILENAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object rulesSourceFilename_ = ""; + /** + * + * + *
+     * The filename of the rules that needs to be converted. The filename is
+     * used mainly so that future logs of the import rules job contain it, and
+     * can therefore be searched by it.
+     * 
+ * + * string rules_source_filename = 1; + * + * @return The rulesSourceFilename. + */ + @java.lang.Override + public java.lang.String getRulesSourceFilename() { + java.lang.Object ref = rulesSourceFilename_; + 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(); + rulesSourceFilename_ = s; + return s; + } + } + /** + * + * + *
+     * The filename of the rules that needs to be converted. The filename is
+     * used mainly so that future logs of the import rules job contain it, and
+     * can therefore be searched by it.
+     * 
+ * + * string rules_source_filename = 1; + * + * @return The bytes for rulesSourceFilename. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRulesSourceFilenameBytes() { + java.lang.Object ref = rulesSourceFilename_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rulesSourceFilename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULES_CONTENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rulesContent_ = ""; + /** + * + * + *
+     * The text content of the rules that needs to be converted.
+     * 
+ * + * string rules_content = 2; + * + * @return The rulesContent. + */ + @java.lang.Override + public java.lang.String getRulesContent() { + java.lang.Object ref = rulesContent_; + 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(); + rulesContent_ = s; + return s; + } + } + /** + * + * + *
+     * The text content of the rules that needs to be converted.
+     * 
+ * + * string rules_content = 2; + * + * @return The bytes for rulesContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRulesContentBytes() { + java.lang.Object ref = rulesContent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rulesContent_ = 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(rulesSourceFilename_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rulesSourceFilename_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rulesContent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rulesContent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rulesSourceFilename_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rulesSourceFilename_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rulesContent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rulesContent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile other = + (com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile) obj; + + if (!getRulesSourceFilename().equals(other.getRulesSourceFilename())) return false; + if (!getRulesContent().equals(other.getRulesContent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RULES_SOURCE_FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getRulesSourceFilename().hashCode(); + hash = (37 * hash) + RULES_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getRulesContent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile 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.clouddms.v1.ImportMappingRulesRequest.RulesFile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile 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.clouddms.v1.ImportMappingRulesRequest.RulesFile parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile 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.clouddms.v1.ImportMappingRulesRequest.RulesFile + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile + 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.clouddms.v1.ImportMappingRulesRequest.RulesFile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile 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.clouddms.v1.ImportMappingRulesRequest.RulesFile 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; + } + /** + * + * + *
+     * Details of a single rules file.
+     * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile) + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_RulesFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_RulesFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.class, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder.class); + } + + // Construct using + // com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rulesSourceFilename_ = ""; + rulesContent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_RulesFile_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile build() { + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile buildPartial() { + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile result = + new com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rulesSourceFilename_ = rulesSourceFilename_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rulesContent_ = rulesContent_; + } + } + + @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.clouddms.v1.ImportMappingRulesRequest.RulesFile) { + return mergeFrom( + (com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile other) { + if (other + == com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile + .getDefaultInstance()) return this; + if (!other.getRulesSourceFilename().isEmpty()) { + rulesSourceFilename_ = other.rulesSourceFilename_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRulesContent().isEmpty()) { + rulesContent_ = other.rulesContent_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + rulesSourceFilename_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rulesContent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object rulesSourceFilename_ = ""; + /** + * + * + *
+       * The filename of the rules that needs to be converted. The filename is
+       * used mainly so that future logs of the import rules job contain it, and
+       * can therefore be searched by it.
+       * 
+ * + * string rules_source_filename = 1; + * + * @return The rulesSourceFilename. + */ + public java.lang.String getRulesSourceFilename() { + java.lang.Object ref = rulesSourceFilename_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rulesSourceFilename_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The filename of the rules that needs to be converted. The filename is
+       * used mainly so that future logs of the import rules job contain it, and
+       * can therefore be searched by it.
+       * 
+ * + * string rules_source_filename = 1; + * + * @return The bytes for rulesSourceFilename. + */ + public com.google.protobuf.ByteString getRulesSourceFilenameBytes() { + java.lang.Object ref = rulesSourceFilename_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rulesSourceFilename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The filename of the rules that needs to be converted. The filename is
+       * used mainly so that future logs of the import rules job contain it, and
+       * can therefore be searched by it.
+       * 
+ * + * string rules_source_filename = 1; + * + * @param value The rulesSourceFilename to set. + * @return This builder for chaining. + */ + public Builder setRulesSourceFilename(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rulesSourceFilename_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The filename of the rules that needs to be converted. The filename is
+       * used mainly so that future logs of the import rules job contain it, and
+       * can therefore be searched by it.
+       * 
+ * + * string rules_source_filename = 1; + * + * @return This builder for chaining. + */ + public Builder clearRulesSourceFilename() { + rulesSourceFilename_ = getDefaultInstance().getRulesSourceFilename(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The filename of the rules that needs to be converted. The filename is
+       * used mainly so that future logs of the import rules job contain it, and
+       * can therefore be searched by it.
+       * 
+ * + * string rules_source_filename = 1; + * + * @param value The bytes for rulesSourceFilename to set. + * @return This builder for chaining. + */ + public Builder setRulesSourceFilenameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rulesSourceFilename_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rulesContent_ = ""; + /** + * + * + *
+       * The text content of the rules that needs to be converted.
+       * 
+ * + * string rules_content = 2; + * + * @return The rulesContent. + */ + public java.lang.String getRulesContent() { + java.lang.Object ref = rulesContent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rulesContent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The text content of the rules that needs to be converted.
+       * 
+ * + * string rules_content = 2; + * + * @return The bytes for rulesContent. + */ + public com.google.protobuf.ByteString getRulesContentBytes() { + java.lang.Object ref = rulesContent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rulesContent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The text content of the rules that needs to be converted.
+       * 
+ * + * string rules_content = 2; + * + * @param value The rulesContent to set. + * @return This builder for chaining. + */ + public Builder setRulesContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rulesContent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The text content of the rules that needs to be converted.
+       * 
+ * + * string rules_content = 2; + * + * @return This builder for chaining. + */ + public Builder clearRulesContent() { + rulesContent_ = getDefaultInstance().getRulesContent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * The text content of the rules that needs to be converted.
+       * 
+ * + * string rules_content = 2; + * + * @param value The bytes for rulesContent to set. + * @return This builder for chaining. + */ + public Builder setRulesContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rulesContent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile) + private static final com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile(); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RulesFile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Name of the conversion workspace resource to import the rules to
+   * in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the conversion workspace resource to import the rules to
+   * in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULES_FORMAT_FIELD_NUMBER = 2; + private int rulesFormat_ = 0; + /** + * + * + *
+   * The format of the rules content file.
+   * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * @return The enum numeric value on the wire for rulesFormat. + */ + @java.lang.Override + public int getRulesFormatValue() { + return rulesFormat_; + } + /** + * + * + *
+   * The format of the rules content file.
+   * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * @return The rulesFormat. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportRulesFileFormat getRulesFormat() { + com.google.cloud.clouddms.v1.ImportRulesFileFormat result = + com.google.cloud.clouddms.v1.ImportRulesFileFormat.forNumber(rulesFormat_); + return result == null + ? com.google.cloud.clouddms.v1.ImportRulesFileFormat.UNRECOGNIZED + : result; + } + + public static final int RULES_FILES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + rulesFiles_; + /** + * + * + *
+   * One or more rules files.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + @java.lang.Override + public java.util.List + getRulesFilesList() { + return rulesFiles_; + } + /** + * + * + *
+   * One or more rules files.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder> + getRulesFilesOrBuilderList() { + return rulesFiles_; + } + /** + * + * + *
+   * One or more rules files.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + @java.lang.Override + public int getRulesFilesCount() { + return rulesFiles_.size(); + } + /** + * + * + *
+   * One or more rules files.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile getRulesFiles(int index) { + return rulesFiles_.get(index); + } + /** + * + * + *
+   * One or more rules files.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder + getRulesFilesOrBuilder(int index) { + return rulesFiles_.get(index); + } + + public static final int AUTO_COMMIT_FIELD_NUMBER = 6; + private boolean autoCommit_ = false; + /** + * + * + *
+   * Should the conversion workspace be committed automatically after the
+   * import operation.
+   * 
+ * + * bool auto_commit = 6; + * + * @return The autoCommit. + */ + @java.lang.Override + public boolean getAutoCommit() { + return autoCommit_; + } + + 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (rulesFormat_ + != com.google.cloud.clouddms.v1.ImportRulesFileFormat.IMPORT_RULES_FILE_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, rulesFormat_); + } + for (int i = 0; i < rulesFiles_.size(); i++) { + output.writeMessage(3, rulesFiles_.get(i)); + } + if (autoCommit_ != false) { + output.writeBool(6, autoCommit_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (rulesFormat_ + != com.google.cloud.clouddms.v1.ImportRulesFileFormat.IMPORT_RULES_FILE_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, rulesFormat_); + } + for (int i = 0; i < rulesFiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rulesFiles_.get(i)); + } + if (autoCommit_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, autoCommit_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ImportMappingRulesRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ImportMappingRulesRequest other = + (com.google.cloud.clouddms.v1.ImportMappingRulesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (rulesFormat_ != other.rulesFormat_) return false; + if (!getRulesFilesList().equals(other.getRulesFilesList())) return false; + if (getAutoCommit() != other.getAutoCommit()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + RULES_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + rulesFormat_; + if (getRulesFilesCount() > 0) { + hash = (37 * hash) + RULES_FILES_FIELD_NUMBER; + hash = (53 * hash) + getRulesFilesList().hashCode(); + } + hash = (37 * hash) + AUTO_COMMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoCommit()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest 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.clouddms.v1.ImportMappingRulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest 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.clouddms.v1.ImportMappingRulesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest 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.clouddms.v1.ImportMappingRulesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest 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.clouddms.v1.ImportMappingRulesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest 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.clouddms.v1.ImportMappingRulesRequest 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; + } + /** + * + * + *
+   * Request message for 'ImportMappingRules' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ImportMappingRulesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ImportMappingRulesRequest) + com.google.cloud.clouddms.v1.ImportMappingRulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.class, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ImportMappingRulesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + rulesFormat_ = 0; + if (rulesFilesBuilder_ == null) { + rulesFiles_ = java.util.Collections.emptyList(); + } else { + rulesFiles_ = null; + rulesFilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + autoCommit_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ImportMappingRulesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ImportMappingRulesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest build() { + com.google.cloud.clouddms.v1.ImportMappingRulesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest buildPartial() { + com.google.cloud.clouddms.v1.ImportMappingRulesRequest result = + new com.google.cloud.clouddms.v1.ImportMappingRulesRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest result) { + if (rulesFilesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + rulesFiles_ = java.util.Collections.unmodifiableList(rulesFiles_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.rulesFiles_ = rulesFiles_; + } else { + result.rulesFiles_ = rulesFilesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ImportMappingRulesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rulesFormat_ = rulesFormat_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.autoCommit_ = autoCommit_; + } + } + + @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.clouddms.v1.ImportMappingRulesRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.ImportMappingRulesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ImportMappingRulesRequest other) { + if (other == com.google.cloud.clouddms.v1.ImportMappingRulesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.rulesFormat_ != 0) { + setRulesFormatValue(other.getRulesFormatValue()); + } + if (rulesFilesBuilder_ == null) { + if (!other.rulesFiles_.isEmpty()) { + if (rulesFiles_.isEmpty()) { + rulesFiles_ = other.rulesFiles_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRulesFilesIsMutable(); + rulesFiles_.addAll(other.rulesFiles_); + } + onChanged(); + } + } else { + if (!other.rulesFiles_.isEmpty()) { + if (rulesFilesBuilder_.isEmpty()) { + rulesFilesBuilder_.dispose(); + rulesFilesBuilder_ = null; + rulesFiles_ = other.rulesFiles_; + bitField0_ = (bitField0_ & ~0x00000004); + rulesFilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRulesFilesFieldBuilder() + : null; + } else { + rulesFilesBuilder_.addAllMessages(other.rulesFiles_); + } + } + } + if (other.getAutoCommit() != false) { + setAutoCommit(other.getAutoCommit()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + rulesFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile m = + input.readMessage( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.parser(), + extensionRegistry); + if (rulesFilesBuilder_ == null) { + ensureRulesFilesIsMutable(); + rulesFiles_.add(m); + } else { + rulesFilesBuilder_.addMessage(m); + } + break; + } // case 26 + case 48: + { + autoCommit_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Name of the conversion workspace resource to import the rules to
+     * in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to import the rules to
+     * in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to import the rules to
+     * in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to import the rules to
+     * in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to import the rules to
+     * in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int rulesFormat_ = 0; + /** + * + * + *
+     * The format of the rules content file.
+     * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * @return The enum numeric value on the wire for rulesFormat. + */ + @java.lang.Override + public int getRulesFormatValue() { + return rulesFormat_; + } + /** + * + * + *
+     * The format of the rules content file.
+     * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * @param value The enum numeric value on the wire for rulesFormat to set. + * @return This builder for chaining. + */ + public Builder setRulesFormatValue(int value) { + rulesFormat_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The format of the rules content file.
+     * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * @return The rulesFormat. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportRulesFileFormat getRulesFormat() { + com.google.cloud.clouddms.v1.ImportRulesFileFormat result = + com.google.cloud.clouddms.v1.ImportRulesFileFormat.forNumber(rulesFormat_); + return result == null + ? com.google.cloud.clouddms.v1.ImportRulesFileFormat.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The format of the rules content file.
+     * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * @param value The rulesFormat to set. + * @return This builder for chaining. + */ + public Builder setRulesFormat(com.google.cloud.clouddms.v1.ImportRulesFileFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + rulesFormat_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The format of the rules content file.
+     * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * @return This builder for chaining. + */ + public Builder clearRulesFormat() { + bitField0_ = (bitField0_ & ~0x00000002); + rulesFormat_ = 0; + onChanged(); + return this; + } + + private java.util.List + rulesFiles_ = java.util.Collections.emptyList(); + + private void ensureRulesFilesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + rulesFiles_ = + new java.util.ArrayList< + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile>(rulesFiles_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder> + rulesFilesBuilder_; + + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public java.util.List + getRulesFilesList() { + if (rulesFilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rulesFiles_); + } else { + return rulesFilesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public int getRulesFilesCount() { + if (rulesFilesBuilder_ == null) { + return rulesFiles_.size(); + } else { + return rulesFilesBuilder_.getCount(); + } + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile getRulesFiles( + int index) { + if (rulesFilesBuilder_ == null) { + return rulesFiles_.get(index); + } else { + return rulesFilesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public Builder setRulesFiles( + int index, com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile value) { + if (rulesFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesFilesIsMutable(); + rulesFiles_.set(index, value); + onChanged(); + } else { + rulesFilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public Builder setRulesFiles( + int index, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder builderForValue) { + if (rulesFilesBuilder_ == null) { + ensureRulesFilesIsMutable(); + rulesFiles_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesFilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public Builder addRulesFiles( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile value) { + if (rulesFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesFilesIsMutable(); + rulesFiles_.add(value); + onChanged(); + } else { + rulesFilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public Builder addRulesFiles( + int index, com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile value) { + if (rulesFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesFilesIsMutable(); + rulesFiles_.add(index, value); + onChanged(); + } else { + rulesFilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public Builder addRulesFiles( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder builderForValue) { + if (rulesFilesBuilder_ == null) { + ensureRulesFilesIsMutable(); + rulesFiles_.add(builderForValue.build()); + onChanged(); + } else { + rulesFilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public Builder addRulesFiles( + int index, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder builderForValue) { + if (rulesFilesBuilder_ == null) { + ensureRulesFilesIsMutable(); + rulesFiles_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesFilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public Builder addAllRulesFiles( + java.lang.Iterable< + ? extends com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile> + values) { + if (rulesFilesBuilder_ == null) { + ensureRulesFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rulesFiles_); + onChanged(); + } else { + rulesFilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public Builder clearRulesFiles() { + if (rulesFilesBuilder_ == null) { + rulesFiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + rulesFilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public Builder removeRulesFiles(int index) { + if (rulesFilesBuilder_ == null) { + ensureRulesFilesIsMutable(); + rulesFiles_.remove(index); + onChanged(); + } else { + rulesFilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder + getRulesFilesBuilder(int index) { + return getRulesFilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder + getRulesFilesOrBuilder(int index) { + if (rulesFilesBuilder_ == null) { + return rulesFiles_.get(index); + } else { + return rulesFilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public java.util.List< + ? extends com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder> + getRulesFilesOrBuilderList() { + if (rulesFilesBuilder_ != null) { + return rulesFilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rulesFiles_); + } + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder + addRulesFilesBuilder() { + return getRulesFilesFieldBuilder() + .addBuilder( + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile + .getDefaultInstance()); + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder + addRulesFilesBuilder(int index) { + return getRulesFilesFieldBuilder() + .addBuilder( + index, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile + .getDefaultInstance()); + } + /** + * + * + *
+     * One or more rules files.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + public java.util.List + getRulesFilesBuilderList() { + return getRulesFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder> + getRulesFilesFieldBuilder() { + if (rulesFilesBuilder_ == null) { + rulesFilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile.Builder, + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder>( + rulesFiles_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + rulesFiles_ = null; + } + return rulesFilesBuilder_; + } + + private boolean autoCommit_; + /** + * + * + *
+     * Should the conversion workspace be committed automatically after the
+     * import operation.
+     * 
+ * + * bool auto_commit = 6; + * + * @return The autoCommit. + */ + @java.lang.Override + public boolean getAutoCommit() { + return autoCommit_; + } + /** + * + * + *
+     * Should the conversion workspace be committed automatically after the
+     * import operation.
+     * 
+ * + * bool auto_commit = 6; + * + * @param value The autoCommit to set. + * @return This builder for chaining. + */ + public Builder setAutoCommit(boolean value) { + + autoCommit_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Should the conversion workspace be committed automatically after the
+     * import operation.
+     * 
+ * + * bool auto_commit = 6; + * + * @return This builder for chaining. + */ + public Builder clearAutoCommit() { + bitField0_ = (bitField0_ & ~0x00000008); + autoCommit_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.ImportMappingRulesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ImportMappingRulesRequest) + private static final com.google.cloud.clouddms.v1.ImportMappingRulesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ImportMappingRulesRequest(); + } + + public static com.google.cloud.clouddms.v1.ImportMappingRulesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportMappingRulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ImportMappingRulesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequestOrBuilder.java new file mode 100644 index 000000000000..323bcd116f1e --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportMappingRulesRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface ImportMappingRulesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ImportMappingRulesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the conversion workspace resource to import the rules to
+   * in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Name of the conversion workspace resource to import the rules to
+   * in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The format of the rules content file.
+   * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * @return The enum numeric value on the wire for rulesFormat. + */ + int getRulesFormatValue(); + /** + * + * + *
+   * The format of the rules content file.
+   * 
+ * + * .google.cloud.clouddms.v1.ImportRulesFileFormat rules_format = 2; + * + * @return The rulesFormat. + */ + com.google.cloud.clouddms.v1.ImportRulesFileFormat getRulesFormat(); + + /** + * + * + *
+   * One or more rules files.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + java.util.List + getRulesFilesList(); + /** + * + * + *
+   * One or more rules files.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile getRulesFiles(int index); + /** + * + * + *
+   * One or more rules files.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + int getRulesFilesCount(); + /** + * + * + *
+   * One or more rules files.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + java.util.List< + ? extends com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder> + getRulesFilesOrBuilderList(); + /** + * + * + *
+   * One or more rules files.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile rules_files = 3; + * + */ + com.google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFileOrBuilder getRulesFilesOrBuilder( + int index); + + /** + * + * + *
+   * Should the conversion workspace be committed automatically after the
+   * import operation.
+   * 
+ * + * bool auto_commit = 6; + * + * @return The autoCommit. + */ + boolean getAutoCommit(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportRulesFileFormat.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportRulesFileFormat.java new file mode 100644 index 000000000000..639da8655fba --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ImportRulesFileFormat.java @@ -0,0 +1,181 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * The format for the import rules file.
+ * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.ImportRulesFileFormat} + */ +public enum ImportRulesFileFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified rules format.
+   * 
+ * + * IMPORT_RULES_FILE_FORMAT_UNSPECIFIED = 0; + */ + IMPORT_RULES_FILE_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+   * HarbourBridge session file.
+   * 
+ * + * IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE = 1; + */ + IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE(1), + /** + * + * + *
+   * Ora2Pg configuration file.
+   * 
+ * + * IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE = 2; + */ + IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified rules format.
+   * 
+ * + * IMPORT_RULES_FILE_FORMAT_UNSPECIFIED = 0; + */ + public static final int IMPORT_RULES_FILE_FORMAT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * HarbourBridge session file.
+   * 
+ * + * IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE = 1; + */ + public static final int IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE_VALUE = 1; + /** + * + * + *
+   * Ora2Pg configuration file.
+   * 
+ * + * IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE = 2; + */ + public static final int IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ImportRulesFileFormat valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ImportRulesFileFormat forNumber(int value) { + switch (value) { + case 0: + return IMPORT_RULES_FILE_FORMAT_UNSPECIFIED; + case 1: + return IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE; + case 2: + return IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ImportRulesFileFormat findValueByNumber(int number) { + return ImportRulesFileFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final ImportRulesFileFormat[] VALUES = values(); + + public static ImportRulesFileFormat valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ImportRulesFileFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.ImportRulesFileFormat) +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/IndexEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/IndexEntity.java new file mode 100644 index 000000000000..403360a93e83 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/IndexEntity.java @@ -0,0 +1,1458 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Index is not used as an independent entity, it is retrieved as part of a
+ * Table entity.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.IndexEntity} + */ +public final class IndexEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.IndexEntity) + IndexEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use IndexEntity.newBuilder() to construct. + private IndexEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IndexEntity() { + name_ = ""; + type_ = ""; + tableColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IndexEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_IndexEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_IndexEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.IndexEntity.class, + com.google.cloud.clouddms.v1.IndexEntity.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the index.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the index.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + /** + * + * + *
+   * Type of index, for example B-TREE.
+   * 
+ * + * string type = 2; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + * + * + *
+   * Type of index, for example B-TREE.
+   * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_COLUMNS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList tableColumns_; + /** + * + * + *
+   * Table columns used as part of the Index, for example B-TREE index should
+   * list the columns which constitutes the index.
+   * 
+ * + * repeated string table_columns = 3; + * + * @return A list containing the tableColumns. + */ + public com.google.protobuf.ProtocolStringList getTableColumnsList() { + return tableColumns_; + } + /** + * + * + *
+   * Table columns used as part of the Index, for example B-TREE index should
+   * list the columns which constitutes the index.
+   * 
+ * + * repeated string table_columns = 3; + * + * @return The count of tableColumns. + */ + public int getTableColumnsCount() { + return tableColumns_.size(); + } + /** + * + * + *
+   * Table columns used as part of the Index, for example B-TREE index should
+   * list the columns which constitutes the index.
+   * 
+ * + * repeated string table_columns = 3; + * + * @param index The index of the element to return. + * @return The tableColumns at the given index. + */ + public java.lang.String getTableColumns(int index) { + return tableColumns_.get(index); + } + /** + * + * + *
+   * Table columns used as part of the Index, for example B-TREE index should
+   * list the columns which constitutes the index.
+   * 
+ * + * repeated string table_columns = 3; + * + * @param index The index of the value to return. + * @return The bytes of the tableColumns at the given index. + */ + public com.google.protobuf.ByteString getTableColumnsBytes(int index) { + return tableColumns_.getByteString(index); + } + + public static final int UNIQUE_FIELD_NUMBER = 4; + private boolean unique_ = false; + /** + * + * + *
+   * Boolean value indicating whether the index is unique.
+   * 
+ * + * bool unique = 4; + * + * @return The unique. + */ + @java.lang.Override + public boolean getUnique() { + return unique_; + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 5; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + for (int i = 0; i < tableColumns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableColumns_.getRaw(i)); + } + if (unique_ != false) { + output.writeBool(4, unique_); + } + if (customFeatures_ != null) { + output.writeMessage(5, getCustomFeatures()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + { + int dataSize = 0; + for (int i = 0; i < tableColumns_.size(); i++) { + dataSize += computeStringSizeNoTag(tableColumns_.getRaw(i)); + } + size += dataSize; + size += 1 * getTableColumnsList().size(); + } + if (unique_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, unique_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCustomFeatures()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.IndexEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.IndexEntity other = (com.google.cloud.clouddms.v1.IndexEntity) obj; + + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; + if (!getTableColumnsList().equals(other.getTableColumnsList())) return false; + if (getUnique() != other.getUnique()) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (getTableColumnsCount() > 0) { + hash = (37 * hash) + TABLE_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getTableColumnsList().hashCode(); + } + hash = (37 * hash) + UNIQUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUnique()); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.IndexEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.IndexEntity 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.clouddms.v1.IndexEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.IndexEntity 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.clouddms.v1.IndexEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.IndexEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.IndexEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.IndexEntity 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.clouddms.v1.IndexEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.IndexEntity 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.clouddms.v1.IndexEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.IndexEntity 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.clouddms.v1.IndexEntity 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; + } + /** + * + * + *
+   * Index is not used as an independent entity, it is retrieved as part of a
+   * Table entity.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.IndexEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.IndexEntity) + com.google.cloud.clouddms.v1.IndexEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_IndexEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_IndexEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.IndexEntity.class, + com.google.cloud.clouddms.v1.IndexEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.IndexEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = ""; + tableColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + unique_ = false; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_IndexEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.IndexEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.IndexEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.IndexEntity build() { + com.google.cloud.clouddms.v1.IndexEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.IndexEntity buildPartial() { + com.google.cloud.clouddms.v1.IndexEntity result = + new com.google.cloud.clouddms.v1.IndexEntity(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.clouddms.v1.IndexEntity result) { + if (((bitField0_ & 0x00000004) != 0)) { + tableColumns_ = tableColumns_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tableColumns_ = tableColumns_; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.IndexEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.unique_ = unique_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + @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.clouddms.v1.IndexEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.IndexEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.IndexEntity other) { + if (other == com.google.cloud.clouddms.v1.IndexEntity.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.tableColumns_.isEmpty()) { + if (tableColumns_.isEmpty()) { + tableColumns_ = other.tableColumns_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTableColumnsIsMutable(); + tableColumns_.addAll(other.tableColumns_); + } + onChanged(); + } + if (other.getUnique() != false) { + setUnique(other.getUnique()); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTableColumnsIsMutable(); + tableColumns_.add(s); + break; + } // case 26 + case 32: + { + unique_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the index.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the index.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the index.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the index.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the index.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+     * Type of index, for example B-TREE.
+     * 
+ * + * string type = 2; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Type of index, for example B-TREE.
+     * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Type of index, for example B-TREE.
+     * 
+ * + * string type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of index, for example B-TREE.
+     * 
+ * + * string type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of index, for example B-TREE.
+     * 
+ * + * string type = 2; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tableColumns_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTableColumnsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + tableColumns_ = new com.google.protobuf.LazyStringArrayList(tableColumns_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Table columns used as part of the Index, for example B-TREE index should
+     * list the columns which constitutes the index.
+     * 
+ * + * repeated string table_columns = 3; + * + * @return A list containing the tableColumns. + */ + public com.google.protobuf.ProtocolStringList getTableColumnsList() { + return tableColumns_.getUnmodifiableView(); + } + /** + * + * + *
+     * Table columns used as part of the Index, for example B-TREE index should
+     * list the columns which constitutes the index.
+     * 
+ * + * repeated string table_columns = 3; + * + * @return The count of tableColumns. + */ + public int getTableColumnsCount() { + return tableColumns_.size(); + } + /** + * + * + *
+     * Table columns used as part of the Index, for example B-TREE index should
+     * list the columns which constitutes the index.
+     * 
+ * + * repeated string table_columns = 3; + * + * @param index The index of the element to return. + * @return The tableColumns at the given index. + */ + public java.lang.String getTableColumns(int index) { + return tableColumns_.get(index); + } + /** + * + * + *
+     * Table columns used as part of the Index, for example B-TREE index should
+     * list the columns which constitutes the index.
+     * 
+ * + * repeated string table_columns = 3; + * + * @param index The index of the value to return. + * @return The bytes of the tableColumns at the given index. + */ + public com.google.protobuf.ByteString getTableColumnsBytes(int index) { + return tableColumns_.getByteString(index); + } + /** + * + * + *
+     * Table columns used as part of the Index, for example B-TREE index should
+     * list the columns which constitutes the index.
+     * 
+ * + * repeated string table_columns = 3; + * + * @param index The index to set the value at. + * @param value The tableColumns to set. + * @return This builder for chaining. + */ + public Builder setTableColumns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableColumnsIsMutable(); + tableColumns_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Table columns used as part of the Index, for example B-TREE index should
+     * list the columns which constitutes the index.
+     * 
+ * + * repeated string table_columns = 3; + * + * @param value The tableColumns to add. + * @return This builder for chaining. + */ + public Builder addTableColumns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableColumnsIsMutable(); + tableColumns_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Table columns used as part of the Index, for example B-TREE index should
+     * list the columns which constitutes the index.
+     * 
+ * + * repeated string table_columns = 3; + * + * @param values The tableColumns to add. + * @return This builder for chaining. + */ + public Builder addAllTableColumns(java.lang.Iterable values) { + ensureTableColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tableColumns_); + onChanged(); + return this; + } + /** + * + * + *
+     * Table columns used as part of the Index, for example B-TREE index should
+     * list the columns which constitutes the index.
+     * 
+ * + * repeated string table_columns = 3; + * + * @return This builder for chaining. + */ + public Builder clearTableColumns() { + tableColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Table columns used as part of the Index, for example B-TREE index should
+     * list the columns which constitutes the index.
+     * 
+ * + * repeated string table_columns = 3; + * + * @param value The bytes of the tableColumns to add. + * @return This builder for chaining. + */ + public Builder addTableColumnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTableColumnsIsMutable(); + tableColumns_.add(value); + onChanged(); + return this; + } + + private boolean unique_; + /** + * + * + *
+     * Boolean value indicating whether the index is unique.
+     * 
+ * + * bool unique = 4; + * + * @return The unique. + */ + @java.lang.Override + public boolean getUnique() { + return unique_; + } + /** + * + * + *
+     * Boolean value indicating whether the index is unique.
+     * 
+ * + * bool unique = 4; + * + * @param value The unique to set. + * @return This builder for chaining. + */ + public Builder setUnique(boolean value) { + + unique_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Boolean value indicating whether the index is unique.
+     * 
+ * + * bool unique = 4; + * + * @return This builder for chaining. + */ + public Builder clearUnique() { + bitField0_ = (bitField0_ & ~0x00000008); + unique_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000010); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @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.clouddms.v1.IndexEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.IndexEntity) + private static final com.google.cloud.clouddms.v1.IndexEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.IndexEntity(); + } + + public static com.google.cloud.clouddms.v1.IndexEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.IndexEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/IndexEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/IndexEntityOrBuilder.java new file mode 100644 index 000000000000..54fcd8e1810b --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/IndexEntityOrBuilder.java @@ -0,0 +1,178 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface IndexEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.IndexEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the index.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the index.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Type of index, for example B-TREE.
+   * 
+ * + * string type = 2; + * + * @return The type. + */ + java.lang.String getType(); + /** + * + * + *
+   * Type of index, for example B-TREE.
+   * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * Table columns used as part of the Index, for example B-TREE index should
+   * list the columns which constitutes the index.
+   * 
+ * + * repeated string table_columns = 3; + * + * @return A list containing the tableColumns. + */ + java.util.List getTableColumnsList(); + /** + * + * + *
+   * Table columns used as part of the Index, for example B-TREE index should
+   * list the columns which constitutes the index.
+   * 
+ * + * repeated string table_columns = 3; + * + * @return The count of tableColumns. + */ + int getTableColumnsCount(); + /** + * + * + *
+   * Table columns used as part of the Index, for example B-TREE index should
+   * list the columns which constitutes the index.
+   * 
+ * + * repeated string table_columns = 3; + * + * @param index The index of the element to return. + * @return The tableColumns at the given index. + */ + java.lang.String getTableColumns(int index); + /** + * + * + *
+   * Table columns used as part of the Index, for example B-TREE index should
+   * list the columns which constitutes the index.
+   * 
+ * + * repeated string table_columns = 3; + * + * @param index The index of the value to return. + * @return The bytes of the tableColumns at the given index. + */ + com.google.protobuf.ByteString getTableColumnsBytes(int index); + + /** + * + * + *
+   * Boolean value indicating whether the index is unique.
+   * 
+ * + * bool unique = 4; + * + * @return The unique. + */ + boolean getUnique(); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java index 56e3fbfc5d79..f89cf9fd3c30 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent, which owns this collection of connection profiles.
+   * Required. The parent which owns this collection of connection profiles.
    * 
* * @@ -103,7 +103,7 @@ public java.lang.String getParent() { * * *
-   * Required. The parent, which owns this collection of connection profiles.
+   * Required. The parent which owns this collection of connection profiles.
    * 
* * @@ -133,7 +133,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The maximum number of connection profiles to return. The service may return
    * fewer than this value. If unspecified, at most 50 connection profiles will
-   * be returned. The maximum value is 1000; values above 1000 will be coerced
+   * be returned. The maximum value is 1000; values above 1000 are coerced
    * to 1000.
    * 
* @@ -278,7 +278,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-   * the order by fields for the result.
+   * A comma-separated list of fields to order results according to.
    * 
* * string order_by = 5; @@ -301,7 +301,7 @@ public java.lang.String getOrderBy() { * * *
-   * the order by fields for the result.
+   * A comma-separated list of fields to order results according to.
    * 
* * string order_by = 5; @@ -763,7 +763,7 @@ public Builder mergeFrom( * * *
-     * Required. The parent, which owns this collection of connection profiles.
+     * Required. The parent which owns this collection of connection profiles.
      * 
* * @@ -787,7 +787,7 @@ public java.lang.String getParent() { * * *
-     * Required. The parent, which owns this collection of connection profiles.
+     * Required. The parent which owns this collection of connection profiles.
      * 
* * @@ -811,7 +811,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The parent, which owns this collection of connection profiles.
+     * Required. The parent which owns this collection of connection profiles.
      * 
* * @@ -834,7 +834,7 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The parent, which owns this collection of connection profiles.
+     * Required. The parent which owns this collection of connection profiles.
      * 
* * @@ -853,7 +853,7 @@ public Builder clearParent() { * * *
-     * Required. The parent, which owns this collection of connection profiles.
+     * Required. The parent which owns this collection of connection profiles.
      * 
* * @@ -881,7 +881,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The maximum number of connection profiles to return. The service may return
      * fewer than this value. If unspecified, at most 50 connection profiles will
-     * be returned. The maximum value is 1000; values above 1000 will be coerced
+     * be returned. The maximum value is 1000; values above 1000 are coerced
      * to 1000.
      * 
* @@ -899,7 +899,7 @@ public int getPageSize() { *
      * The maximum number of connection profiles to return. The service may return
      * fewer than this value. If unspecified, at most 50 connection profiles will
-     * be returned. The maximum value is 1000; values above 1000 will be coerced
+     * be returned. The maximum value is 1000; values above 1000 are coerced
      * to 1000.
      * 
* @@ -921,7 +921,7 @@ public Builder setPageSize(int value) { *
      * The maximum number of connection profiles to return. The service may return
      * fewer than this value. If unspecified, at most 50 connection profiles will
-     * be returned. The maximum value is 1000; values above 1000 will be coerced
+     * be returned. The maximum value is 1000; values above 1000 are coerced
      * to 1000.
      * 
* @@ -1208,7 +1208,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * the order by fields for the result.
+     * A comma-separated list of fields to order results according to.
      * 
* * string order_by = 5; @@ -1230,7 +1230,7 @@ public java.lang.String getOrderBy() { * * *
-     * the order by fields for the result.
+     * A comma-separated list of fields to order results according to.
      * 
* * string order_by = 5; @@ -1252,7 +1252,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
-     * the order by fields for the result.
+     * A comma-separated list of fields to order results according to.
      * 
* * string order_by = 5; @@ -1273,7 +1273,7 @@ public Builder setOrderBy(java.lang.String value) { * * *
-     * the order by fields for the result.
+     * A comma-separated list of fields to order results according to.
      * 
* * string order_by = 5; @@ -1290,7 +1290,7 @@ public Builder clearOrderBy() { * * *
-     * the order by fields for the result.
+     * A comma-separated list of fields to order results according to.
      * 
* * string order_by = 5; diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java index 92ea3aefa855..5621ce541296 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface ListConnectionProfilesRequestOrBuilder * * *
-   * Required. The parent, which owns this collection of connection profiles.
+   * Required. The parent which owns this collection of connection profiles.
    * 
* * @@ -41,7 +41,7 @@ public interface ListConnectionProfilesRequestOrBuilder * * *
-   * Required. The parent, which owns this collection of connection profiles.
+   * Required. The parent which owns this collection of connection profiles.
    * 
* * @@ -58,7 +58,7 @@ public interface ListConnectionProfilesRequestOrBuilder *
    * The maximum number of connection profiles to return. The service may return
    * fewer than this value. If unspecified, at most 50 connection profiles will
-   * be returned. The maximum value is 1000; values above 1000 will be coerced
+   * be returned. The maximum value is 1000; values above 1000 are coerced
    * to 1000.
    * 
* @@ -144,7 +144,7 @@ public interface ListConnectionProfilesRequestOrBuilder * * *
-   * the order by fields for the result.
+   * A comma-separated list of fields to order results according to.
    * 
* * string order_by = 5; @@ -156,7 +156,7 @@ public interface ListConnectionProfilesRequestOrBuilder * * *
-   * the order by fields for the result.
+   * A comma-separated list of fields to order results according to.
    * 
* * string order_by = 5; diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java index cd57c0a276a0..27d3c8404d65 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponse.java @@ -151,7 +151,7 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf * * *
-   * A token, which can be sent as `page_token` to retrieve the next page.
+   * A token which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* @@ -175,7 +175,7 @@ public java.lang.String getNextPageToken() { * * *
-   * A token, which can be sent as `page_token` to retrieve the next page.
+   * A token which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* @@ -1081,7 +1081,7 @@ public com.google.cloud.clouddms.v1.ConnectionProfile.Builder addConnectionProfi * * *
-     * A token, which can be sent as `page_token` to retrieve the next page.
+     * A token which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* @@ -1104,7 +1104,7 @@ public java.lang.String getNextPageToken() { * * *
-     * A token, which can be sent as `page_token` to retrieve the next page.
+     * A token which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* @@ -1127,7 +1127,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * A token, which can be sent as `page_token` to retrieve the next page.
+     * A token which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* @@ -1149,7 +1149,7 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * A token, which can be sent as `page_token` to retrieve the next page.
+     * A token which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* @@ -1167,7 +1167,7 @@ public Builder clearNextPageToken() { * * *
-     * A token, which can be sent as `page_token` to retrieve the next page.
+     * A token which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java index 9497172a266d..2b82041db385 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConnectionProfilesResponseOrBuilder.java @@ -79,7 +79,7 @@ public interface ListConnectionProfilesResponseOrBuilder * * *
-   * A token, which can be sent as `page_token` to retrieve the next page.
+   * A token which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* @@ -92,7 +92,7 @@ public interface ListConnectionProfilesResponseOrBuilder * * *
-   * A token, which can be sent as `page_token` to retrieve the next page.
+   * A token which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConversionWorkspacesRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConversionWorkspacesRequest.java new file mode 100644 index 000000000000..0021fa5dcc9c --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConversionWorkspacesRequest.java @@ -0,0 +1,1194 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Retrieve a list of all conversion workspaces in a given project and location.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ListConversionWorkspacesRequest} + */ +public final class ListConversionWorkspacesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListConversionWorkspacesRequest) + ListConversionWorkspacesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConversionWorkspacesRequest.newBuilder() to construct. + private ListConversionWorkspacesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConversionWorkspacesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConversionWorkspacesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest.class, + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent which owns this collection of conversion workspaces.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent which owns this collection of conversion workspaces.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of conversion workspaces to return. The service may
+   * return fewer than this value. If unspecified, at most 50 sets are returned.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * The nextPageToken value received in the previous call to
+   * conversionWorkspaces.list, used in the subsequent request to retrieve the
+   * next page of results. On first call this should be left blank. When
+   * paginating, all other parameters provided to conversionWorkspaces.list must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The nextPageToken value received in the previous call to
+   * conversionWorkspaces.list, used in the subsequent request to retrieve the
+   * next page of results. On first call this should be left blank. When
+   * paginating, all other parameters provided to conversionWorkspaces.list must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * A filter expression that filters conversion workspaces listed in the
+   * response. The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value must
+   * be a string, a number, or a boolean. The comparison operator must be either
+   * =, !=, >, or <. For example, list conversion workspaces created this year
+   * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
+   * also filter nested fields. For example, you could specify
+   * **source.version = "12.c.1"** to select all conversion workspaces with
+   * source database version equal to 12.c.1.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * A filter expression that filters conversion workspaces listed in the
+   * response. The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value must
+   * be a string, a number, or a boolean. The comparison operator must be either
+   * =, !=, >, or <. For example, list conversion workspaces created this year
+   * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
+   * also filter nested fields. For example, you could specify
+   * **source.version = "12.c.1"** to select all conversion workspaces with
+   * source database version equal to 12.c.1.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest other = + (com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest 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.clouddms.v1.ListConversionWorkspacesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest 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.clouddms.v1.ListConversionWorkspacesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest 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.clouddms.v1.ListConversionWorkspacesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest 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.clouddms.v1.ListConversionWorkspacesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest 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.clouddms.v1.ListConversionWorkspacesRequest 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; + } + /** + * + * + *
+   * Retrieve a list of all conversion workspaces in a given project and location.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ListConversionWorkspacesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ListConversionWorkspacesRequest) + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest.class, + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest build() { + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest buildPartial() { + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest result = + new com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + + @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.clouddms.v1.ListConversionWorkspacesRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest other) { + if (other + == com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent which owns this collection of conversion workspaces.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent which owns this collection of conversion workspaces.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent which owns this collection of conversion workspaces.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent which owns this collection of conversion workspaces.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent which owns this collection of conversion workspaces.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of conversion workspaces to return. The service may
+     * return fewer than this value. If unspecified, at most 50 sets are returned.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of conversion workspaces to return. The service may
+     * return fewer than this value. If unspecified, at most 50 sets are returned.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of conversion workspaces to return. The service may
+     * return fewer than this value. If unspecified, at most 50 sets are returned.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * conversionWorkspaces.list, used in the subsequent request to retrieve the
+     * next page of results. On first call this should be left blank. When
+     * paginating, all other parameters provided to conversionWorkspaces.list must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * conversionWorkspaces.list, used in the subsequent request to retrieve the
+     * next page of results. On first call this should be left blank. When
+     * paginating, all other parameters provided to conversionWorkspaces.list must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * conversionWorkspaces.list, used in the subsequent request to retrieve the
+     * next page of results. On first call this should be left blank. When
+     * paginating, all other parameters provided to conversionWorkspaces.list must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * conversionWorkspaces.list, used in the subsequent request to retrieve the
+     * next page of results. On first call this should be left blank. When
+     * paginating, all other parameters provided to conversionWorkspaces.list must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The nextPageToken value received in the previous call to
+     * conversionWorkspaces.list, used in the subsequent request to retrieve the
+     * next page of results. On first call this should be left blank. When
+     * paginating, all other parameters provided to conversionWorkspaces.list must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * A filter expression that filters conversion workspaces listed in the
+     * response. The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value must
+     * be a string, a number, or a boolean. The comparison operator must be either
+     * =, !=, >, or <. For example, list conversion workspaces created this year
+     * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
+     * also filter nested fields. For example, you could specify
+     * **source.version = "12.c.1"** to select all conversion workspaces with
+     * source database version equal to 12.c.1.
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A filter expression that filters conversion workspaces listed in the
+     * response. The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value must
+     * be a string, a number, or a boolean. The comparison operator must be either
+     * =, !=, >, or <. For example, list conversion workspaces created this year
+     * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
+     * also filter nested fields. For example, you could specify
+     * **source.version = "12.c.1"** to select all conversion workspaces with
+     * source database version equal to 12.c.1.
+     * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A filter expression that filters conversion workspaces listed in the
+     * response. The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value must
+     * be a string, a number, or a boolean. The comparison operator must be either
+     * =, !=, >, or <. For example, list conversion workspaces created this year
+     * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
+     * also filter nested fields. For example, you could specify
+     * **source.version = "12.c.1"** to select all conversion workspaces with
+     * source database version equal to 12.c.1.
+     * 
+ * + * string filter = 4; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that filters conversion workspaces listed in the
+     * response. The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value must
+     * be a string, a number, or a boolean. The comparison operator must be either
+     * =, !=, >, or <. For example, list conversion workspaces created this year
+     * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
+     * also filter nested fields. For example, you could specify
+     * **source.version = "12.c.1"** to select all conversion workspaces with
+     * source database version equal to 12.c.1.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that filters conversion workspaces listed in the
+     * response. The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value must
+     * be a string, a number, or a boolean. The comparison operator must be either
+     * =, !=, >, or <. For example, list conversion workspaces created this year
+     * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
+     * also filter nested fields. For example, you could specify
+     * **source.version = "12.c.1"** to select all conversion workspaces with
+     * source database version equal to 12.c.1.
+     * 
+ * + * string filter = 4; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + 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.clouddms.v1.ListConversionWorkspacesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListConversionWorkspacesRequest) + private static final com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest(); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversionWorkspacesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConversionWorkspacesRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConversionWorkspacesRequestOrBuilder.java new file mode 100644 index 000000000000..da27b60a784d --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConversionWorkspacesRequestOrBuilder.java @@ -0,0 +1,142 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface ListConversionWorkspacesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListConversionWorkspacesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent which owns this collection of conversion workspaces.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent which owns this collection of conversion workspaces.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of conversion workspaces to return. The service may
+   * return fewer than this value. If unspecified, at most 50 sets are returned.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The nextPageToken value received in the previous call to
+   * conversionWorkspaces.list, used in the subsequent request to retrieve the
+   * next page of results. On first call this should be left blank. When
+   * paginating, all other parameters provided to conversionWorkspaces.list must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The nextPageToken value received in the previous call to
+   * conversionWorkspaces.list, used in the subsequent request to retrieve the
+   * next page of results. On first call this should be left blank. When
+   * paginating, all other parameters provided to conversionWorkspaces.list must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * A filter expression that filters conversion workspaces listed in the
+   * response. The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value must
+   * be a string, a number, or a boolean. The comparison operator must be either
+   * =, !=, >, or <. For example, list conversion workspaces created this year
+   * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
+   * also filter nested fields. For example, you could specify
+   * **source.version = "12.c.1"** to select all conversion workspaces with
+   * source database version equal to 12.c.1.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * A filter expression that filters conversion workspaces listed in the
+   * response. The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value must
+   * be a string, a number, or a boolean. The comparison operator must be either
+   * =, !=, >, or <. For example, list conversion workspaces created this year
+   * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
+   * also filter nested fields. For example, you could specify
+   * **source.version = "12.c.1"** to select all conversion workspaces with
+   * source database version equal to 12.c.1.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConversionWorkspacesResponse.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConversionWorkspacesResponse.java new file mode 100644 index 000000000000..2fffaf7ef740 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConversionWorkspacesResponse.java @@ -0,0 +1,1442 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Response message for 'ListConversionWorkspaces' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ListConversionWorkspacesResponse} + */ +public final class ListConversionWorkspacesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListConversionWorkspacesResponse) + ListConversionWorkspacesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConversionWorkspacesResponse.newBuilder() to construct. + private ListConversionWorkspacesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConversionWorkspacesResponse() { + conversionWorkspaces_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConversionWorkspacesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse.class, + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse.Builder.class); + } + + public static final int CONVERSION_WORKSPACES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List conversionWorkspaces_; + /** + * + * + *
+   * The list of conversion workspace objects.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + */ + @java.lang.Override + public java.util.List + getConversionWorkspacesList() { + return conversionWorkspaces_; + } + /** + * + * + *
+   * The list of conversion workspace objects.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + */ + @java.lang.Override + public java.util.List + getConversionWorkspacesOrBuilderList() { + return conversionWorkspaces_; + } + /** + * + * + *
+   * The list of conversion workspace objects.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + */ + @java.lang.Override + public int getConversionWorkspacesCount() { + return conversionWorkspaces_.size(); + } + /** + * + * + *
+   * The list of conversion workspace objects.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspace getConversionWorkspaces(int index) { + return conversionWorkspaces_.get(index); + } + /** + * + * + *
+   * The list of conversion workspace objects.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder getConversionWorkspacesOrBuilder( + int index) { + return conversionWorkspaces_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < conversionWorkspaces_.size(); i++) { + output.writeMessage(1, conversionWorkspaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conversionWorkspaces_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, conversionWorkspaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse other = + (com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse) obj; + + if (!getConversionWorkspacesList().equals(other.getConversionWorkspacesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConversionWorkspacesCount() > 0) { + hash = (37 * hash) + CONVERSION_WORKSPACES_FIELD_NUMBER; + hash = (53 * hash) + getConversionWorkspacesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse 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.clouddms.v1.ListConversionWorkspacesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse 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.clouddms.v1.ListConversionWorkspacesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse 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.clouddms.v1.ListConversionWorkspacesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse 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.clouddms.v1.ListConversionWorkspacesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse 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.clouddms.v1.ListConversionWorkspacesResponse 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; + } + /** + * + * + *
+   * Response message for 'ListConversionWorkspaces' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ListConversionWorkspacesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ListConversionWorkspacesResponse) + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse.class, + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (conversionWorkspacesBuilder_ == null) { + conversionWorkspaces_ = java.util.Collections.emptyList(); + } else { + conversionWorkspaces_ = null; + conversionWorkspacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListConversionWorkspacesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse build() { + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse buildPartial() { + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse result = + new com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse result) { + if (conversionWorkspacesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + conversionWorkspaces_ = java.util.Collections.unmodifiableList(conversionWorkspaces_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conversionWorkspaces_ = conversionWorkspaces_; + } else { + result.conversionWorkspaces_ = conversionWorkspacesBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unreachable_ = unreachable_; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.clouddms.v1.ListConversionWorkspacesResponse) { + return mergeFrom((com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse other) { + if (other + == com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse.getDefaultInstance()) + return this; + if (conversionWorkspacesBuilder_ == null) { + if (!other.conversionWorkspaces_.isEmpty()) { + if (conversionWorkspaces_.isEmpty()) { + conversionWorkspaces_ = other.conversionWorkspaces_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConversionWorkspacesIsMutable(); + conversionWorkspaces_.addAll(other.conversionWorkspaces_); + } + onChanged(); + } + } else { + if (!other.conversionWorkspaces_.isEmpty()) { + if (conversionWorkspacesBuilder_.isEmpty()) { + conversionWorkspacesBuilder_.dispose(); + conversionWorkspacesBuilder_ = null; + conversionWorkspaces_ = other.conversionWorkspaces_; + bitField0_ = (bitField0_ & ~0x00000001); + conversionWorkspacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConversionWorkspacesFieldBuilder() + : null; + } else { + conversionWorkspacesBuilder_.addAllMessages(other.conversionWorkspaces_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.clouddms.v1.ConversionWorkspace m = + input.readMessage( + com.google.cloud.clouddms.v1.ConversionWorkspace.parser(), + extensionRegistry); + if (conversionWorkspacesBuilder_ == null) { + ensureConversionWorkspacesIsMutable(); + conversionWorkspaces_.add(m); + } else { + conversionWorkspacesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List conversionWorkspaces_ = + java.util.Collections.emptyList(); + + private void ensureConversionWorkspacesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + conversionWorkspaces_ = + new java.util.ArrayList( + conversionWorkspaces_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConversionWorkspace, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder> + conversionWorkspacesBuilder_; + + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public java.util.List + getConversionWorkspacesList() { + if (conversionWorkspacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(conversionWorkspaces_); + } else { + return conversionWorkspacesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public int getConversionWorkspacesCount() { + if (conversionWorkspacesBuilder_ == null) { + return conversionWorkspaces_.size(); + } else { + return conversionWorkspacesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public com.google.cloud.clouddms.v1.ConversionWorkspace getConversionWorkspaces(int index) { + if (conversionWorkspacesBuilder_ == null) { + return conversionWorkspaces_.get(index); + } else { + return conversionWorkspacesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public Builder setConversionWorkspaces( + int index, com.google.cloud.clouddms.v1.ConversionWorkspace value) { + if (conversionWorkspacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionWorkspacesIsMutable(); + conversionWorkspaces_.set(index, value); + onChanged(); + } else { + conversionWorkspacesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public Builder setConversionWorkspaces( + int index, com.google.cloud.clouddms.v1.ConversionWorkspace.Builder builderForValue) { + if (conversionWorkspacesBuilder_ == null) { + ensureConversionWorkspacesIsMutable(); + conversionWorkspaces_.set(index, builderForValue.build()); + onChanged(); + } else { + conversionWorkspacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public Builder addConversionWorkspaces(com.google.cloud.clouddms.v1.ConversionWorkspace value) { + if (conversionWorkspacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionWorkspacesIsMutable(); + conversionWorkspaces_.add(value); + onChanged(); + } else { + conversionWorkspacesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public Builder addConversionWorkspaces( + int index, com.google.cloud.clouddms.v1.ConversionWorkspace value) { + if (conversionWorkspacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionWorkspacesIsMutable(); + conversionWorkspaces_.add(index, value); + onChanged(); + } else { + conversionWorkspacesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public Builder addConversionWorkspaces( + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder builderForValue) { + if (conversionWorkspacesBuilder_ == null) { + ensureConversionWorkspacesIsMutable(); + conversionWorkspaces_.add(builderForValue.build()); + onChanged(); + } else { + conversionWorkspacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public Builder addConversionWorkspaces( + int index, com.google.cloud.clouddms.v1.ConversionWorkspace.Builder builderForValue) { + if (conversionWorkspacesBuilder_ == null) { + ensureConversionWorkspacesIsMutable(); + conversionWorkspaces_.add(index, builderForValue.build()); + onChanged(); + } else { + conversionWorkspacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public Builder addAllConversionWorkspaces( + java.lang.Iterable values) { + if (conversionWorkspacesBuilder_ == null) { + ensureConversionWorkspacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversionWorkspaces_); + onChanged(); + } else { + conversionWorkspacesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public Builder clearConversionWorkspaces() { + if (conversionWorkspacesBuilder_ == null) { + conversionWorkspaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conversionWorkspacesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public Builder removeConversionWorkspaces(int index) { + if (conversionWorkspacesBuilder_ == null) { + ensureConversionWorkspacesIsMutable(); + conversionWorkspaces_.remove(index); + onChanged(); + } else { + conversionWorkspacesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public com.google.cloud.clouddms.v1.ConversionWorkspace.Builder getConversionWorkspacesBuilder( + int index) { + return getConversionWorkspacesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder + getConversionWorkspacesOrBuilder(int index) { + if (conversionWorkspacesBuilder_ == null) { + return conversionWorkspaces_.get(index); + } else { + return conversionWorkspacesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public java.util.List + getConversionWorkspacesOrBuilderList() { + if (conversionWorkspacesBuilder_ != null) { + return conversionWorkspacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conversionWorkspaces_); + } + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public com.google.cloud.clouddms.v1.ConversionWorkspace.Builder + addConversionWorkspacesBuilder() { + return getConversionWorkspacesFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance()); + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public com.google.cloud.clouddms.v1.ConversionWorkspace.Builder addConversionWorkspacesBuilder( + int index) { + return getConversionWorkspacesFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance()); + } + /** + * + * + *
+     * The list of conversion workspace objects.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + * + */ + public java.util.List + getConversionWorkspacesBuilderList() { + return getConversionWorkspacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConversionWorkspace, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder> + getConversionWorkspacesFieldBuilder() { + if (conversionWorkspacesBuilder_ == null) { + conversionWorkspacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConversionWorkspace, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder>( + conversionWorkspaces_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + conversionWorkspaces_ = null; + } + return conversionWorkspacesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(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.clouddms.v1.ListConversionWorkspacesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListConversionWorkspacesResponse) + private static final com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse(); + } + + public static com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversionWorkspacesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConversionWorkspacesResponseOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConversionWorkspacesResponseOrBuilder.java new file mode 100644 index 000000000000..49b1f0421816 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListConversionWorkspacesResponseOrBuilder.java @@ -0,0 +1,156 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface ListConversionWorkspacesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListConversionWorkspacesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of conversion workspace objects.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + */ + java.util.List getConversionWorkspacesList(); + /** + * + * + *
+   * The list of conversion workspace objects.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + */ + com.google.cloud.clouddms.v1.ConversionWorkspace getConversionWorkspaces(int index); + /** + * + * + *
+   * The list of conversion workspace objects.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + */ + int getConversionWorkspacesCount(); + /** + * + * + *
+   * The list of conversion workspace objects.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + */ + java.util.List + getConversionWorkspacesOrBuilderList(); + /** + * + * + *
+   * The list of conversion workspace objects.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspaces = 1; + */ + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder getConversionWorkspacesOrBuilder( + int index); + + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java index 92155d48bc45..e14984f54c93 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequest.java @@ -22,7 +22,7 @@ * * *
- * Retrieve a list of all migration jobs in a given project and location.
+ * Retrieves a list of all migration jobs in a given project and location.
  * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListMigrationJobsRequest} @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent, which owns this collection of migrationJobs.
+   * Required. The parent which owns this collection of migrationJobs.
    * 
* * @@ -103,7 +103,7 @@ public java.lang.String getParent() { * * *
-   * Required. The parent, which owns this collection of migrationJobs.
+   * Required. The parent which owns this collection of migrationJobs.
    * 
* * @@ -133,7 +133,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The maximum number of migration jobs to return. The service may return
    * fewer than this value. If unspecified, at most 50 migration jobs will be
-   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * returned. The maximum value is 1000; values above 1000 are coerced to
    * 1000.
    * 
* @@ -525,7 +525,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Retrieve a list of all migration jobs in a given project and location.
+   * Retrieves a list of all migration jobs in a given project and location.
    * 
* * Protobuf type {@code google.cloud.clouddms.v1.ListMigrationJobsRequest} @@ -767,7 +767,7 @@ public Builder mergeFrom( * * *
-     * Required. The parent, which owns this collection of migrationJobs.
+     * Required. The parent which owns this collection of migrationJobs.
      * 
* * @@ -791,7 +791,7 @@ public java.lang.String getParent() { * * *
-     * Required. The parent, which owns this collection of migrationJobs.
+     * Required. The parent which owns this collection of migrationJobs.
      * 
* * @@ -815,7 +815,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The parent, which owns this collection of migrationJobs.
+     * Required. The parent which owns this collection of migrationJobs.
      * 
* * @@ -838,7 +838,7 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The parent, which owns this collection of migrationJobs.
+     * Required. The parent which owns this collection of migrationJobs.
      * 
* * @@ -857,7 +857,7 @@ public Builder clearParent() { * * *
-     * Required. The parent, which owns this collection of migrationJobs.
+     * Required. The parent which owns this collection of migrationJobs.
      * 
* * @@ -885,7 +885,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The maximum number of migration jobs to return. The service may return
      * fewer than this value. If unspecified, at most 50 migration jobs will be
-     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * returned. The maximum value is 1000; values above 1000 are coerced to
      * 1000.
      * 
* @@ -903,7 +903,7 @@ public int getPageSize() { *
      * The maximum number of migration jobs to return. The service may return
      * fewer than this value. If unspecified, at most 50 migration jobs will be
-     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * returned. The maximum value is 1000; values above 1000 are coerced to
      * 1000.
      * 
* @@ -925,7 +925,7 @@ public Builder setPageSize(int value) { *
      * The maximum number of migration jobs to return. The service may return
      * fewer than this value. If unspecified, at most 50 migration jobs will be
-     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * returned. The maximum value is 1000; values above 1000 are coerced to
      * 1000.
      * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java index 95bc7bfb6c40..20df5d80b911 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface ListMigrationJobsRequestOrBuilder * * *
-   * Required. The parent, which owns this collection of migrationJobs.
+   * Required. The parent which owns this collection of migrationJobs.
    * 
* * @@ -41,7 +41,7 @@ public interface ListMigrationJobsRequestOrBuilder * * *
-   * Required. The parent, which owns this collection of migrationJobs.
+   * Required. The parent which owns this collection of migrationJobs.
    * 
* * @@ -58,7 +58,7 @@ public interface ListMigrationJobsRequestOrBuilder *
    * The maximum number of migration jobs to return. The service may return
    * fewer than this value. If unspecified, at most 50 migration jobs will be
-   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * returned. The maximum value is 1000; values above 1000 are coerced to
    * 1000.
    * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java index 19c2a8fc505f..42585dc95da4 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponse.java @@ -148,7 +148,7 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobsOrBuil * * *
-   * A token, which can be sent as `page_token` to retrieve the next page.
+   * A token which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* @@ -172,7 +172,7 @@ public java.lang.String getNextPageToken() { * * *
-   * A token, which can be sent as `page_token` to retrieve the next page.
+   * A token which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* @@ -1070,7 +1070,7 @@ public com.google.cloud.clouddms.v1.MigrationJob.Builder addMigrationJobsBuilder * * *
-     * A token, which can be sent as `page_token` to retrieve the next page.
+     * A token which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* @@ -1093,7 +1093,7 @@ public java.lang.String getNextPageToken() { * * *
-     * A token, which can be sent as `page_token` to retrieve the next page.
+     * A token which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* @@ -1116,7 +1116,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-     * A token, which can be sent as `page_token` to retrieve the next page.
+     * A token which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* @@ -1138,7 +1138,7 @@ public Builder setNextPageToken(java.lang.String value) { * * *
-     * A token, which can be sent as `page_token` to retrieve the next page.
+     * A token which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* @@ -1156,7 +1156,7 @@ public Builder clearNextPageToken() { * * *
-     * A token, which can be sent as `page_token` to retrieve the next page.
+     * A token which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java index d9cf91e3aab7..f2d195c418f1 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListMigrationJobsResponseOrBuilder.java @@ -79,7 +79,7 @@ public interface ListMigrationJobsResponseOrBuilder * * *
-   * A token, which can be sent as `page_token` to retrieve the next page.
+   * A token which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* @@ -92,7 +92,7 @@ public interface ListMigrationJobsResponseOrBuilder * * *
-   * A token, which can be sent as `page_token` to retrieve the next page.
+   * A token which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListPrivateConnectionsRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListPrivateConnectionsRequest.java new file mode 100644 index 000000000000..9805cb6cac26 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListPrivateConnectionsRequest.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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message to retrieve a list of private connections in a given project
+ * and location.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ListPrivateConnectionsRequest} + */ +public final class ListPrivateConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListPrivateConnectionsRequest) + ListPrivateConnectionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPrivateConnectionsRequest.newBuilder() to construct. + private ListPrivateConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPrivateConnectionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPrivateConnectionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest.class, + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent that owns the collection of private connections.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent that owns the collection of private connections.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Maximum number of private connections to return.
+   * If unspecified, at most 50 private connections that are returned.
+   * The maximum value is 1000; values above 1000 are coerced to 1000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Page token received from a previous `ListPrivateConnections` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListPrivateConnections` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Page token received from a previous `ListPrivateConnections` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListPrivateConnections` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * A filter expression that filters private connections listed in the
+   * response. The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value must
+   * be a string, a number, or a boolean. The comparison operator must be either
+   * =, !=, >, or <. For example, list private connections created this year by
+   * specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * A filter expression that filters private connections listed in the
+   * response. The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value must
+   * be a string, a number, or a boolean. The comparison operator must be either
+   * =, !=, >, or <. For example, list private connections created this year by
+   * specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
+   * Order by fields for the result.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Order by fields for the result.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest other = + (com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest 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.clouddms.v1.ListPrivateConnectionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest 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.clouddms.v1.ListPrivateConnectionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest 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.clouddms.v1.ListPrivateConnectionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest 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.clouddms.v1.ListPrivateConnectionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest 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.clouddms.v1.ListPrivateConnectionsRequest 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; + } + /** + * + * + *
+   * Request message to retrieve a list of private connections in a given project
+   * and location.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ListPrivateConnectionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ListPrivateConnectionsRequest) + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest.class, + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest build() { + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest buildPartial() { + com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest result = + new com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @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.clouddms.v1.ListPrivateConnectionsRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest other) { + if (other == com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent that owns the collection of private connections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent that owns the collection of private connections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent that owns the collection of private connections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent that owns the collection of private connections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent that owns the collection of private connections.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Maximum number of private connections to return.
+     * If unspecified, at most 50 private connections that are returned.
+     * The maximum value is 1000; values above 1000 are coerced to 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Maximum number of private connections to return.
+     * If unspecified, at most 50 private connections that are returned.
+     * The maximum value is 1000; values above 1000 are coerced to 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum number of private connections to return.
+     * If unspecified, at most 50 private connections that are returned.
+     * The maximum value is 1000; values above 1000 are coerced to 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Page token received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Page token received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Page token received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Page token received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Page token received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * A filter expression that filters private connections listed in the
+     * response. The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value must
+     * be a string, a number, or a boolean. The comparison operator must be either
+     * =, !=, >, or <. For example, list private connections created this year by
+     * specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A filter expression that filters private connections listed in the
+     * response. The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value must
+     * be a string, a number, or a boolean. The comparison operator must be either
+     * =, !=, >, or <. For example, list private connections created this year by
+     * specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.
+     * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A filter expression that filters private connections listed in the
+     * response. The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value must
+     * be a string, a number, or a boolean. The comparison operator must be either
+     * =, !=, >, or <. For example, list private connections created this year by
+     * specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.
+     * 
+ * + * string filter = 4; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that filters private connections listed in the
+     * response. The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value must
+     * be a string, a number, or a boolean. The comparison operator must be either
+     * =, !=, >, or <. For example, list private connections created this year by
+     * specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * A filter expression that filters private connections listed in the
+     * response. The expression must specify the field name, a comparison
+     * operator, and the value that you want to use for filtering. The value must
+     * be a string, a number, or a boolean. The comparison operator must be either
+     * =, !=, >, or <. For example, list private connections created this year by
+     * specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.
+     * 
+ * + * string filter = 4; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + 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.clouddms.v1.ListPrivateConnectionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListPrivateConnectionsRequest) + private static final com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest(); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListPrivateConnectionsRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListPrivateConnectionsRequestOrBuilder.java new file mode 100644 index 000000000000..a9402f969db7 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListPrivateConnectionsRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface ListPrivateConnectionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListPrivateConnectionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent that owns the collection of private connections.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent that owns the collection of private connections.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Maximum number of private connections to return.
+   * If unspecified, at most 50 private connections that are returned.
+   * The maximum value is 1000; values above 1000 are coerced to 1000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Page token received from a previous `ListPrivateConnections` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListPrivateConnections` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Page token received from a previous `ListPrivateConnections` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListPrivateConnections` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * A filter expression that filters private connections listed in the
+   * response. The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value must
+   * be a string, a number, or a boolean. The comparison operator must be either
+   * =, !=, >, or <. For example, list private connections created this year by
+   * specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * A filter expression that filters private connections listed in the
+   * response. The expression must specify the field name, a comparison
+   * operator, and the value that you want to use for filtering. The value must
+   * be a string, a number, or a boolean. The comparison operator must be either
+   * =, !=, >, or <. For example, list private connections created this year by
+   * specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Order by fields for the result.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Order by fields for the result.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListPrivateConnectionsResponse.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListPrivateConnectionsResponse.java new file mode 100644 index 000000000000..abbaf7f236f7 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListPrivateConnectionsResponse.java @@ -0,0 +1,1418 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Response message for 'ListPrivateConnections' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ListPrivateConnectionsResponse} + */ +public final class ListPrivateConnectionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ListPrivateConnectionsResponse) + ListPrivateConnectionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPrivateConnectionsResponse.newBuilder() to construct. + private ListPrivateConnectionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPrivateConnectionsResponse() { + privateConnections_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPrivateConnectionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse.class, + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse.Builder.class); + } + + public static final int PRIVATE_CONNECTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List privateConnections_; + /** + * + * + *
+   * List of private connections.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public java.util.List + getPrivateConnectionsList() { + return privateConnections_; + } + /** + * + * + *
+   * List of private connections.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public java.util.List + getPrivateConnectionsOrBuilderList() { + return privateConnections_; + } + /** + * + * + *
+   * List of private connections.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public int getPrivateConnectionsCount() { + return privateConnections_.size(); + } + /** + * + * + *
+   * List of private connections.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnection getPrivateConnections(int index) { + return privateConnections_.get(index); + } + /** + * + * + *
+   * List of private connections.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( + int index) { + return privateConnections_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < privateConnections_.size(); i++) { + output.writeMessage(1, privateConnections_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < privateConnections_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, privateConnections_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse other = + (com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse) obj; + + if (!getPrivateConnectionsList().equals(other.getPrivateConnectionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPrivateConnectionsCount() > 0) { + hash = (37 * hash) + PRIVATE_CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnectionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse 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.clouddms.v1.ListPrivateConnectionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse 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.clouddms.v1.ListPrivateConnectionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse 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.clouddms.v1.ListPrivateConnectionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse 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.clouddms.v1.ListPrivateConnectionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse 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.clouddms.v1.ListPrivateConnectionsResponse 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; + } + /** + * + * + *
+   * Response message for 'ListPrivateConnections' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ListPrivateConnectionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ListPrivateConnectionsResponse) + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse.class, + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (privateConnectionsBuilder_ == null) { + privateConnections_ = java.util.Collections.emptyList(); + } else { + privateConnections_ = null; + privateConnectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_ListPrivateConnectionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse build() { + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse buildPartial() { + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse result = + new com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse result) { + if (privateConnectionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + privateConnections_ = java.util.Collections.unmodifiableList(privateConnections_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.privateConnections_ = privateConnections_; + } else { + result.privateConnections_ = privateConnectionsBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unreachable_ = unreachable_; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.clouddms.v1.ListPrivateConnectionsResponse) { + return mergeFrom((com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse other) { + if (other == com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse.getDefaultInstance()) + return this; + if (privateConnectionsBuilder_ == null) { + if (!other.privateConnections_.isEmpty()) { + if (privateConnections_.isEmpty()) { + privateConnections_ = other.privateConnections_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrivateConnectionsIsMutable(); + privateConnections_.addAll(other.privateConnections_); + } + onChanged(); + } + } else { + if (!other.privateConnections_.isEmpty()) { + if (privateConnectionsBuilder_.isEmpty()) { + privateConnectionsBuilder_.dispose(); + privateConnectionsBuilder_ = null; + privateConnections_ = other.privateConnections_; + bitField0_ = (bitField0_ & ~0x00000001); + privateConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPrivateConnectionsFieldBuilder() + : null; + } else { + privateConnectionsBuilder_.addAllMessages(other.privateConnections_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.clouddms.v1.PrivateConnection m = + input.readMessage( + com.google.cloud.clouddms.v1.PrivateConnection.parser(), extensionRegistry); + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(m); + } else { + privateConnectionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List privateConnections_ = + java.util.Collections.emptyList(); + + private void ensurePrivateConnectionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + privateConnections_ = + new java.util.ArrayList( + privateConnections_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.PrivateConnection, + com.google.cloud.clouddms.v1.PrivateConnection.Builder, + com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder> + privateConnectionsBuilder_; + + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public java.util.List + getPrivateConnectionsList() { + if (privateConnectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(privateConnections_); + } else { + return privateConnectionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public int getPrivateConnectionsCount() { + if (privateConnectionsBuilder_ == null) { + return privateConnections_.size(); + } else { + return privateConnectionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public com.google.cloud.clouddms.v1.PrivateConnection getPrivateConnections(int index) { + if (privateConnectionsBuilder_ == null) { + return privateConnections_.get(index); + } else { + return privateConnectionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public Builder setPrivateConnections( + int index, com.google.cloud.clouddms.v1.PrivateConnection value) { + if (privateConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateConnectionsIsMutable(); + privateConnections_.set(index, value); + onChanged(); + } else { + privateConnectionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public Builder setPrivateConnections( + int index, com.google.cloud.clouddms.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.set(index, builderForValue.build()); + onChanged(); + } else { + privateConnectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public Builder addPrivateConnections(com.google.cloud.clouddms.v1.PrivateConnection value) { + if (privateConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(value); + onChanged(); + } else { + privateConnectionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public Builder addPrivateConnections( + int index, com.google.cloud.clouddms.v1.PrivateConnection value) { + if (privateConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(index, value); + onChanged(); + } else { + privateConnectionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public Builder addPrivateConnections( + com.google.cloud.clouddms.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(builderForValue.build()); + onChanged(); + } else { + privateConnectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public Builder addPrivateConnections( + int index, com.google.cloud.clouddms.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(index, builderForValue.build()); + onChanged(); + } else { + privateConnectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public Builder addAllPrivateConnections( + java.lang.Iterable values) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateConnections_); + onChanged(); + } else { + privateConnectionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public Builder clearPrivateConnections() { + if (privateConnectionsBuilder_ == null) { + privateConnections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + privateConnectionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public Builder removePrivateConnections(int index) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.remove(index); + onChanged(); + } else { + privateConnectionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public com.google.cloud.clouddms.v1.PrivateConnection.Builder getPrivateConnectionsBuilder( + int index) { + return getPrivateConnectionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( + int index) { + if (privateConnectionsBuilder_ == null) { + return privateConnections_.get(index); + } else { + return privateConnectionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public java.util.List + getPrivateConnectionsOrBuilderList() { + if (privateConnectionsBuilder_ != null) { + return privateConnectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(privateConnections_); + } + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public com.google.cloud.clouddms.v1.PrivateConnection.Builder addPrivateConnectionsBuilder() { + return getPrivateConnectionsFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.PrivateConnection.getDefaultInstance()); + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public com.google.cloud.clouddms.v1.PrivateConnection.Builder addPrivateConnectionsBuilder( + int index) { + return getPrivateConnectionsFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.PrivateConnection.getDefaultInstance()); + } + /** + * + * + *
+     * List of private connections.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + public java.util.List + getPrivateConnectionsBuilderList() { + return getPrivateConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.PrivateConnection, + com.google.cloud.clouddms.v1.PrivateConnection.Builder, + com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder> + getPrivateConnectionsFieldBuilder() { + if (privateConnectionsBuilder_ == null) { + privateConnectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.PrivateConnection, + com.google.cloud.clouddms.v1.PrivateConnection.Builder, + com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder>( + privateConnections_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + privateConnections_ = null; + } + return privateConnectionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(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.clouddms.v1.ListPrivateConnectionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ListPrivateConnectionsResponse) + private static final com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse(); + } + + public static com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListPrivateConnectionsResponseOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListPrivateConnectionsResponseOrBuilder.java new file mode 100644 index 000000000000..3d77dbe1cbb7 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ListPrivateConnectionsResponseOrBuilder.java @@ -0,0 +1,155 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface ListPrivateConnectionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ListPrivateConnectionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of private connections.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + java.util.List getPrivateConnectionsList(); + /** + * + * + *
+   * List of private connections.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + com.google.cloud.clouddms.v1.PrivateConnection getPrivateConnections(int index); + /** + * + * + *
+   * List of private connections.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + int getPrivateConnectionsCount(); + /** + * + * + *
+   * List of private connections.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + java.util.List + getPrivateConnectionsOrBuilderList(); + /** + * + * + *
+   * List of private connections.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.PrivateConnection private_connections = 1; + */ + com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder(int index); + + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java index 5b988b609a85..eb56e5a7fd57 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJob.java @@ -46,6 +46,8 @@ private MigrationJob() { dumpPath_ = ""; source_ = ""; destination_ = ""; + filter_ = ""; + cmekKeyName_ = ""; } @java.lang.Override @@ -908,757 +910,2661 @@ private Type(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.MigrationJob.Type) } - private int connectivityCase_ = 0; - private java.lang.Object connectivity_; - - public enum ConnectivityCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - REVERSE_SSH_CONNECTIVITY(101), - VPC_PEERING_CONNECTIVITY(102), - STATIC_IP_CONNECTIVITY(103), - CONNECTIVITY_NOT_SET(0); - private final int value; + public interface DumpFlagOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MigrationJob.DumpFlag) + com.google.protobuf.MessageOrBuilder { - private ConnectivityCase(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. + * + * + *
+     * The name of the flag
+     * 
+ * + * string name = 1; + * + * @return The name. */ - @java.lang.Deprecated - public static ConnectivityCase valueOf(int value) { - return forNumber(value); - } - - public static ConnectivityCase forNumber(int value) { - switch (value) { - case 101: - return REVERSE_SSH_CONNECTIVITY; - case 102: - return VPC_PEERING_CONNECTIVITY; - case 103: - return STATIC_IP_CONNECTIVITY; - case 0: - return CONNECTIVITY_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; + java.lang.String getName(); + /** + * + * + *
+     * The name of the flag
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); - public ConnectivityCase getConnectivityCase() { - return ConnectivityCase.forNumber(connectivityCase_); + /** + * + * + *
+     * The value of the flag.
+     * 
+ * + * string value = 2; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+     * The value of the flag.
+     * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; /** * * *
-   * The name (URI) of this migration job resource, in the form of:
-   * projects/{project}/locations/{location}/instances/{instance}.
+   * Dump flag definition.
    * 
* - * string name = 1; - * - * @return The name. + * Protobuf type {@code google.cloud.clouddms.v1.MigrationJob.DumpFlag} */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public static final class DumpFlag extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MigrationJob.DumpFlag) + DumpFlagOrBuilder { + private static final long serialVersionUID = 0L; + // Use DumpFlag.newBuilder() to construct. + private DumpFlag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - /** - * - * - *
-   * The name (URI) of this migration job resource, in the form of:
-   * projects/{project}/locations/{location}/instances/{instance}.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + private DumpFlag() { + name_ = ""; + value_ = ""; } - } - public static final int CREATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The timestamp when the migration job resource was created.
-   * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-   * Example: "2014-10-02T15:01:23.045123456Z".
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The timestamp when the migration job resource was created.
-   * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-   * Example: "2014-10-02T15:01:23.045123456Z".
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The timestamp when the migration job resource was created.
-   * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-   * Example: "2014-10-02T15:01:23.045123456Z".
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DumpFlag(); + } - public static final int UPDATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. The timestamp when the migration job resource was last updated.
-   * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-   * Example: "2014-10-02T15:01:23.045123456Z".
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. The timestamp when the migration job resource was last updated.
-   * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-   * Example: "2014-10-02T15:01:23.045123456Z".
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. The timestamp when the migration job resource was last updated.
-   * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-   * Example: "2014-10-02T15:01:23.045123456Z".
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public static final int LABELS_FIELD_NUMBER = 4; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlag_descriptor; + } - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.class, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.Builder.class); + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; + public static final int NAME_FIELD_NUMBER = 1; - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the flag
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+     * The name of the flag
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - return labels_; - } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * The resource labels for migration job to use to annotate any related
-   * underlying resources such as Compute Engine VMs. An object containing a
-   * list of "key": "value" pairs.
-   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
-   * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public static final int VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+     * The value of the flag.
+     * 
+ * + * string value = 2; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * The resource labels for migration job to use to annotate any related
-   * underlying resources such as Compute Engine VMs. An object containing a
-   * list of "key": "value" pairs.
-   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
-   * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * The resource labels for migration job to use to annotate any related
-   * underlying resources such as Compute Engine VMs. An object containing a
-   * list of "key": "value" pairs.
-   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
-   * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + /** + * + * + *
+     * The value of the flag.
+     * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The resource labels for migration job to use to annotate any related
-   * underlying resources such as Compute Engine VMs. An object containing a
-   * list of "key": "value" pairs.
-   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
-   * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + + 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.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + getUnknownFields().writeTo(output); } - return map.get(key); - } - public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - * - * - *
-   * The migration job display name.
-   * 
- * - * string display_name = 5; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - 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(); - displayName_ = s; - return s; + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - } - /** - * - * - *
-   * The migration job display name.
-   * 
- * - * string display_name = 5; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.MigrationJob.DumpFlag)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag other = + (com.google.cloud.clouddms.v1.MigrationJob.DumpFlag) obj; + + if (!getName().equals(other.getName())) return false; + if (!getValue().equals(other.getValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - } - public static final int STATE_FIELD_NUMBER = 6; - private int state_ = 0; - /** - * - * - *
-   * The current migration job state.
-   * 
- * - * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * The current migration job state.
-   * 
- * - * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJob.State getState() { - com.google.cloud.clouddms.v1.MigrationJob.State result = - com.google.cloud.clouddms.v1.MigrationJob.State.forNumber(state_); - return result == null ? com.google.cloud.clouddms.v1.MigrationJob.State.UNRECOGNIZED : result; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int PHASE_FIELD_NUMBER = 7; - private int phase_ = 0; - /** - * - * - *
-   * Output only. The current migration job phase.
-   * 
- * - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for phase. - */ - @java.lang.Override - public int getPhaseValue() { - return phase_; - } - /** - * - * - *
-   * Output only. The current migration job phase.
-   * 
- * - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The phase. - */ - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJob.Phase getPhase() { - com.google.cloud.clouddms.v1.MigrationJob.Phase result = - com.google.cloud.clouddms.v1.MigrationJob.Phase.forNumber(phase_); - return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Phase.UNRECOGNIZED : result; - } + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int TYPE_FIELD_NUMBER = 8; - private int type_ = 0; - /** - * - * - *
-   * Required. The migration job type.
-   * 
- * - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-   * Required. The migration job type.
-   * 
- * - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJob.Type getType() { - com.google.cloud.clouddms.v1.MigrationJob.Type result = - com.google.cloud.clouddms.v1.MigrationJob.Type.forNumber(type_); - return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Type.UNRECOGNIZED : result; - } + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int DUMP_PATH_FIELD_NUMBER = 9; + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @SuppressWarnings("serial") - private volatile java.lang.Object dumpPath_ = ""; - /** - * - * - *
-   * The path to the dump file in Google Cloud Storage,
-   * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
-   * 
- * - * string dump_path = 9; - * - * @return The dumpPath. - */ - @java.lang.Override - public java.lang.String getDumpPath() { - java.lang.Object ref = dumpPath_; - 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(); - dumpPath_ = s; - return s; + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - } - /** - * - * - *
-   * The path to the dump file in Google Cloud Storage,
-   * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
-   * 
- * - * string dump_path = 9; - * - * @return The bytes for dumpPath. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDumpPathBytes() { - java.lang.Object ref = dumpPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dumpPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - } - public static final int SOURCE_FIELD_NUMBER = 10; + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @SuppressWarnings("serial") - private volatile java.lang.Object source_ = ""; - /** - * - * - *
-   * Required. The resource name (URI) of the source connection profile.
-   * 
- * - * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The source. - */ - @java.lang.Override - public java.lang.String getSource() { - java.lang.Object ref = source_; - 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(); - source_ = s; - return s; + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - } - /** - * - * - *
-   * Required. The resource name (URI) of the source connection profile.
-   * 
- * - * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for source. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag 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 final int DESTINATION_FIELD_NUMBER = 11; + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @SuppressWarnings("serial") - private volatile java.lang.Object destination_ = ""; - /** - * - * - *
-   * Required. The resource name (URI) of the destination connection profile.
-   * 
- * - * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The destination. - */ - @java.lang.Override - public java.lang.String getDestination() { - java.lang.Object ref = destination_; - 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(); - destination_ = s; - return s; + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - } - /** - * - * - *
-   * Required. The resource name (URI) of the destination connection profile.
-   * 
- * - * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for destination. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDestinationBytes() { - java.lang.Object ref = destination_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - destination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - } - public static final int REVERSE_SSH_CONNECTIVITY_FIELD_NUMBER = 101; - /** - * - * - *
-   * The details needed to communicate to the source over Reverse SSH
-   * tunnel connectivity.
-   * 
- * - * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; - * - * @return Whether the reverseSshConnectivity field is set. - */ - @java.lang.Override - public boolean hasReverseSshConnectivity() { - return connectivityCase_ == 101; - } - /** - * - * - *
-   * The details needed to communicate to the source over Reverse SSH
-   * tunnel connectivity.
-   * 
- * - * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; - * - * @return The reverseSshConnectivity. - */ - @java.lang.Override - public com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnectivity() { - if (connectivityCase_ == 101) { - return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_; + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); - } - /** - * - * - *
-   * The details needed to communicate to the source over Reverse SSH
-   * tunnel connectivity.
-   * 
- * - * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; - */ - @java.lang.Override - public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder - getReverseSshConnectivityOrBuilder() { - if (connectivityCase_ == 101) { - return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_; + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.clouddms.v1.MigrationJob.DumpFlag 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; + } + /** + * + * + *
+     * Dump flag definition.
+     * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MigrationJob.DumpFlag} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.MigrationJob.DumpFlag) + com.google.cloud.clouddms.v1.MigrationJob.DumpFlagOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.class, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlag_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlag getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlag build() { + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlag buildPartial() { + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag result = + new com.google.cloud.clouddms.v1.MigrationJob.DumpFlag(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.MigrationJob.DumpFlag result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + + @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.clouddms.v1.MigrationJob.DumpFlag) { + return mergeFrom((com.google.cloud.clouddms.v1.MigrationJob.DumpFlag) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.MigrationJob.DumpFlag other) { + if (other == com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+       * The name of the flag
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the flag
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the flag
+       * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the flag
+       * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the flag
+       * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+       * The value of the flag.
+       * 
+ * + * string value = 2; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The value of the flag.
+       * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The value of the flag.
+       * 
+ * + * string value = 2; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The value of the flag.
+       * 
+ * + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * The value of the flag.
+       * 
+ * + * string value = 2; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.MigrationJob.DumpFlag) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MigrationJob.DumpFlag) + private static final com.google.cloud.clouddms.v1.MigrationJob.DumpFlag DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MigrationJob.DumpFlag(); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlag getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DumpFlag parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlag getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); } - public static final int VPC_PEERING_CONNECTIVITY_FIELD_NUMBER = 102; - /** - * - * - *
-   * The details of the VPC network that the source database is located in.
-   * 
- * - * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; - * - * @return Whether the vpcPeeringConnectivity field is set. - */ - @java.lang.Override - public boolean hasVpcPeeringConnectivity() { - return connectivityCase_ == 102; + public interface DumpFlagsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.MigrationJob.DumpFlags) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The flags for the initial dump.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + java.util.List getDumpFlagsList(); + /** + * + * + *
+     * The flags for the initial dump.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag getDumpFlags(int index); + /** + * + * + *
+     * The flags for the initial dump.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + int getDumpFlagsCount(); + /** + * + * + *
+     * The flags for the initial dump.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + java.util.List + getDumpFlagsOrBuilderList(); + /** + * + * + *
+     * The flags for the initial dump.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + com.google.cloud.clouddms.v1.MigrationJob.DumpFlagOrBuilder getDumpFlagsOrBuilder(int index); } /** * * *
-   * The details of the VPC network that the source database is located in.
+   * Dump flags definition.
    * 
* - * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; - * - * @return The vpcPeeringConnectivity. + * Protobuf type {@code google.cloud.clouddms.v1.MigrationJob.DumpFlags} */ - @java.lang.Override - public com.google.cloud.clouddms.v1.VpcPeeringConnectivity getVpcPeeringConnectivity() { - if (connectivityCase_ == 102) { - return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; + public static final class DumpFlags extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.MigrationJob.DumpFlags) + DumpFlagsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DumpFlags.newBuilder() to construct. + private DumpFlags(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); - } - /** - * - * - *
-   * The details of the VPC network that the source database is located in.
-   * 
- * - * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; - */ - @java.lang.Override - public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder - getVpcPeeringConnectivityOrBuilder() { - if (connectivityCase_ == 102) { - return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; + + private DumpFlags() { + dumpFlags_ = java.util.Collections.emptyList(); } - return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DumpFlags(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlags_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.class, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.Builder.class); + } + + public static final int DUMP_FLAGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dumpFlags_; + /** + * + * + *
+     * The flags for the initial dump.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + @java.lang.Override + public java.util.List getDumpFlagsList() { + return dumpFlags_; + } + /** + * + * + *
+     * The flags for the initial dump.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + @java.lang.Override + public java.util.List + getDumpFlagsOrBuilderList() { + return dumpFlags_; + } + /** + * + * + *
+     * The flags for the initial dump.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + @java.lang.Override + public int getDumpFlagsCount() { + return dumpFlags_.size(); + } + /** + * + * + *
+     * The flags for the initial dump.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlag getDumpFlags(int index) { + return dumpFlags_.get(index); + } + /** + * + * + *
+     * The flags for the initial dump.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlagOrBuilder getDumpFlagsOrBuilder( + int index) { + return dumpFlags_.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 < dumpFlags_.size(); i++) { + output.writeMessage(1, dumpFlags_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dumpFlags_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dumpFlags_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.MigrationJob.DumpFlags)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags other = + (com.google.cloud.clouddms.v1.MigrationJob.DumpFlags) obj; + + if (!getDumpFlagsList().equals(other.getDumpFlagsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDumpFlagsCount() > 0) { + hash = (37 * hash) + DUMP_FLAGS_FIELD_NUMBER; + hash = (53 * hash) + getDumpFlagsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlags parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlags 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.clouddms.v1.MigrationJob.DumpFlags parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlags 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.clouddms.v1.MigrationJob.DumpFlags parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlags parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlags parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlags 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.clouddms.v1.MigrationJob.DumpFlags parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlags 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.clouddms.v1.MigrationJob.DumpFlags parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlags 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.clouddms.v1.MigrationJob.DumpFlags 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; + } + /** + * + * + *
+     * Dump flags definition.
+     * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MigrationJob.DumpFlags} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.MigrationJob.DumpFlags) + com.google.cloud.clouddms.v1.MigrationJob.DumpFlagsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlags_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.class, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dumpFlagsBuilder_ == null) { + dumpFlags_ = java.util.Collections.emptyList(); + } else { + dumpFlags_ = null; + dumpFlagsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_DumpFlags_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlags getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlags build() { + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlags buildPartial() { + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags result = + new com.google.cloud.clouddms.v1.MigrationJob.DumpFlags(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags result) { + if (dumpFlagsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dumpFlags_ = java.util.Collections.unmodifiableList(dumpFlags_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dumpFlags_ = dumpFlags_; + } else { + result.dumpFlags_ = dumpFlagsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.clouddms.v1.MigrationJob.DumpFlags result) { + int from_bitField0_ = bitField0_; + } + + @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.clouddms.v1.MigrationJob.DumpFlags) { + return mergeFrom((com.google.cloud.clouddms.v1.MigrationJob.DumpFlags) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.MigrationJob.DumpFlags other) { + if (other == com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.getDefaultInstance()) + return this; + if (dumpFlagsBuilder_ == null) { + if (!other.dumpFlags_.isEmpty()) { + if (dumpFlags_.isEmpty()) { + dumpFlags_ = other.dumpFlags_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDumpFlagsIsMutable(); + dumpFlags_.addAll(other.dumpFlags_); + } + onChanged(); + } + } else { + if (!other.dumpFlags_.isEmpty()) { + if (dumpFlagsBuilder_.isEmpty()) { + dumpFlagsBuilder_.dispose(); + dumpFlagsBuilder_ = null; + dumpFlags_ = other.dumpFlags_; + bitField0_ = (bitField0_ & ~0x00000001); + dumpFlagsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDumpFlagsFieldBuilder() + : null; + } else { + dumpFlagsBuilder_.addAllMessages(other.dumpFlags_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag m = + input.readMessage( + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.parser(), + extensionRegistry); + if (dumpFlagsBuilder_ == null) { + ensureDumpFlagsIsMutable(); + dumpFlags_.add(m); + } else { + dumpFlagsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List dumpFlags_ = + java.util.Collections.emptyList(); + + private void ensureDumpFlagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dumpFlags_ = + new java.util.ArrayList( + dumpFlags_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.Builder, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlagOrBuilder> + dumpFlagsBuilder_; + + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public java.util.List getDumpFlagsList() { + if (dumpFlagsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dumpFlags_); + } else { + return dumpFlagsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public int getDumpFlagsCount() { + if (dumpFlagsBuilder_ == null) { + return dumpFlags_.size(); + } else { + return dumpFlagsBuilder_.getCount(); + } + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlag getDumpFlags(int index) { + if (dumpFlagsBuilder_ == null) { + return dumpFlags_.get(index); + } else { + return dumpFlagsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public Builder setDumpFlags( + int index, com.google.cloud.clouddms.v1.MigrationJob.DumpFlag value) { + if (dumpFlagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDumpFlagsIsMutable(); + dumpFlags_.set(index, value); + onChanged(); + } else { + dumpFlagsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public Builder setDumpFlags( + int index, com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.Builder builderForValue) { + if (dumpFlagsBuilder_ == null) { + ensureDumpFlagsIsMutable(); + dumpFlags_.set(index, builderForValue.build()); + onChanged(); + } else { + dumpFlagsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public Builder addDumpFlags(com.google.cloud.clouddms.v1.MigrationJob.DumpFlag value) { + if (dumpFlagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDumpFlagsIsMutable(); + dumpFlags_.add(value); + onChanged(); + } else { + dumpFlagsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public Builder addDumpFlags( + int index, com.google.cloud.clouddms.v1.MigrationJob.DumpFlag value) { + if (dumpFlagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDumpFlagsIsMutable(); + dumpFlags_.add(index, value); + onChanged(); + } else { + dumpFlagsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public Builder addDumpFlags( + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.Builder builderForValue) { + if (dumpFlagsBuilder_ == null) { + ensureDumpFlagsIsMutable(); + dumpFlags_.add(builderForValue.build()); + onChanged(); + } else { + dumpFlagsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public Builder addDumpFlags( + int index, com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.Builder builderForValue) { + if (dumpFlagsBuilder_ == null) { + ensureDumpFlagsIsMutable(); + dumpFlags_.add(index, builderForValue.build()); + onChanged(); + } else { + dumpFlagsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public Builder addAllDumpFlags( + java.lang.Iterable values) { + if (dumpFlagsBuilder_ == null) { + ensureDumpFlagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dumpFlags_); + onChanged(); + } else { + dumpFlagsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public Builder clearDumpFlags() { + if (dumpFlagsBuilder_ == null) { + dumpFlags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dumpFlagsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public Builder removeDumpFlags(int index) { + if (dumpFlagsBuilder_ == null) { + ensureDumpFlagsIsMutable(); + dumpFlags_.remove(index); + onChanged(); + } else { + dumpFlagsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.Builder getDumpFlagsBuilder( + int index) { + return getDumpFlagsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlagOrBuilder getDumpFlagsOrBuilder( + int index) { + if (dumpFlagsBuilder_ == null) { + return dumpFlags_.get(index); + } else { + return dumpFlagsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public java.util.List + getDumpFlagsOrBuilderList() { + if (dumpFlagsBuilder_ != null) { + return dumpFlagsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dumpFlags_); + } + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.Builder addDumpFlagsBuilder() { + return getDumpFlagsFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.getDefaultInstance()); + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.Builder addDumpFlagsBuilder( + int index) { + return getDumpFlagsFieldBuilder() + .addBuilder( + index, com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.getDefaultInstance()); + } + /** + * + * + *
+       * The flags for the initial dump.
+       * 
+ * + * repeated .google.cloud.clouddms.v1.MigrationJob.DumpFlag dump_flags = 1; + */ + public java.util.List + getDumpFlagsBuilderList() { + return getDumpFlagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.Builder, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlagOrBuilder> + getDumpFlagsFieldBuilder() { + if (dumpFlagsBuilder_ == null) { + dumpFlagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlag.Builder, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlagOrBuilder>( + dumpFlags_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dumpFlags_ = null; + } + return dumpFlagsBuilder_; + } + + @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.clouddms.v1.MigrationJob.DumpFlags) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.MigrationJob.DumpFlags) + private static final com.google.cloud.clouddms.v1.MigrationJob.DumpFlags DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.MigrationJob.DumpFlags(); + } + + public static com.google.cloud.clouddms.v1.MigrationJob.DumpFlags getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DumpFlags parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlags getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int connectivityCase_ = 0; + private java.lang.Object connectivity_; + + public enum ConnectivityCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + REVERSE_SSH_CONNECTIVITY(101), + VPC_PEERING_CONNECTIVITY(102), + STATIC_IP_CONNECTIVITY(103), + CONNECTIVITY_NOT_SET(0); + private final int value; + + private ConnectivityCase(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 ConnectivityCase valueOf(int value) { + return forNumber(value); + } + + public static ConnectivityCase forNumber(int value) { + switch (value) { + case 101: + return REVERSE_SSH_CONNECTIVITY; + case 102: + return VPC_PEERING_CONNECTIVITY; + case 103: + return STATIC_IP_CONNECTIVITY; + case 0: + return CONNECTIVITY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConnectivityCase getConnectivityCase() { + return ConnectivityCase.forNumber(connectivityCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name (URI) of this migration job resource, in the form of:
+   * projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (URI) of this migration job resource, in the form of:
+   * projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The timestamp when the migration job resource was created.
+   * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+   * Example: "2014-10-02T15:01:23.045123456Z".
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when the migration job resource was created.
+   * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+   * Example: "2014-10-02T15:01:23.045123456Z".
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The timestamp when the migration job resource was created.
+   * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+   * Example: "2014-10-02T15:01:23.045123456Z".
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The timestamp when the migration job resource was last
+   * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+   * Example: "2014-10-02T15:01:23.045123456Z".
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when the migration job resource was last
+   * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+   * Example: "2014-10-02T15:01:23.045123456Z".
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. The timestamp when the migration job resource was last
+   * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+   * Example: "2014-10-02T15:01:23.045123456Z".
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * The resource labels for migration job to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * The resource labels for migration job to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The resource labels for migration job to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The resource labels for migration job to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * The migration job display name.
+   * 
+ * + * string display_name = 5; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * The migration job display name.
+   * 
+ * + * string display_name = 5; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + /** + * + * + *
+   * The current migration job state.
+   * 
+ * + * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * The current migration job state.
+   * 
+ * + * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.State getState() { + com.google.cloud.clouddms.v1.MigrationJob.State result = + com.google.cloud.clouddms.v1.MigrationJob.State.forNumber(state_); + return result == null ? com.google.cloud.clouddms.v1.MigrationJob.State.UNRECOGNIZED : result; + } + + public static final int PHASE_FIELD_NUMBER = 7; + private int phase_ = 0; + /** + * + * + *
+   * Output only. The current migration job phase.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for phase. + */ + @java.lang.Override + public int getPhaseValue() { + return phase_; + } + /** + * + * + *
+   * Output only. The current migration job phase.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The phase. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.Phase getPhase() { + com.google.cloud.clouddms.v1.MigrationJob.Phase result = + com.google.cloud.clouddms.v1.MigrationJob.Phase.forNumber(phase_); + return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Phase.UNRECOGNIZED : result; + } + + public static final int TYPE_FIELD_NUMBER = 8; + private int type_ = 0; + /** + * + * + *
+   * Required. The migration job type.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required. The migration job type.
+   * 
+ * + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.Type getType() { + com.google.cloud.clouddms.v1.MigrationJob.Type result = + com.google.cloud.clouddms.v1.MigrationJob.Type.forNumber(type_); + return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Type.UNRECOGNIZED : result; + } + + public static final int DUMP_PATH_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object dumpPath_ = ""; + /** + * + * + *
+   * The path to the dump file in Google Cloud Storage,
+   * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+   * This field and the "dump_flags" field are mutually exclusive.
+   * 
+ * + * string dump_path = 9; + * + * @return The dumpPath. + */ + @java.lang.Override + public java.lang.String getDumpPath() { + java.lang.Object ref = dumpPath_; + 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(); + dumpPath_ = s; + return s; + } + } + /** + * + * + *
+   * The path to the dump file in Google Cloud Storage,
+   * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+   * This field and the "dump_flags" field are mutually exclusive.
+   * 
+ * + * string dump_path = 9; + * + * @return The bytes for dumpPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDumpPathBytes() { + java.lang.Object ref = dumpPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dumpPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DUMP_FLAGS_FIELD_NUMBER = 17; + private com.google.cloud.clouddms.v1.MigrationJob.DumpFlags dumpFlags_; + /** + * + * + *
+   * The initial dump flags.
+   * This field and the "dump_path" field are mutually exclusive.
+   * 
+ * + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; + * + * @return Whether the dumpFlags field is set. + */ + @java.lang.Override + public boolean hasDumpFlags() { + return dumpFlags_ != null; + } + /** + * + * + *
+   * The initial dump flags.
+   * This field and the "dump_path" field are mutually exclusive.
+   * 
+ * + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; + * + * @return The dumpFlags. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlags getDumpFlags() { + return dumpFlags_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.getDefaultInstance() + : dumpFlags_; + } + /** + * + * + *
+   * The initial dump flags.
+   * This field and the "dump_path" field are mutually exclusive.
+   * 
+ * + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlagsOrBuilder getDumpFlagsOrBuilder() { + return dumpFlags_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.getDefaultInstance() + : dumpFlags_; + } + + public static final int SOURCE_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + /** + * + * + *
+   * Required. The resource name (URI) of the source connection profile.
+   * 
+ * + * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + 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(); + source_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name (URI) of the source connection profile.
+   * 
+ * + * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object destination_ = ""; + /** + * + * + *
+   * Required. The resource name (URI) of the destination connection profile.
+   * 
+ * + * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destination. + */ + @java.lang.Override + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + 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(); + destination_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name (URI) of the destination connection profile.
+   * 
+ * + * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destination. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVERSE_SSH_CONNECTIVITY_FIELD_NUMBER = 101; + /** + * + * + *
+   * The details needed to communicate to the source over Reverse SSH
+   * tunnel connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * + * @return Whether the reverseSshConnectivity field is set. + */ + @java.lang.Override + public boolean hasReverseSshConnectivity() { + return connectivityCase_ == 101; + } + /** + * + * + *
+   * The details needed to communicate to the source over Reverse SSH
+   * tunnel connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * + * @return The reverseSshConnectivity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnectivity() { + if (connectivityCase_ == 101) { + return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); + } + /** + * + * + *
+   * The details needed to communicate to the source over Reverse SSH
+   * tunnel connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder + getReverseSshConnectivityOrBuilder() { + if (connectivityCase_ == 101) { + return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); + } + + public static final int VPC_PEERING_CONNECTIVITY_FIELD_NUMBER = 102; + /** + * + * + *
+   * The details of the VPC network that the source database is located in.
+   * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * + * @return Whether the vpcPeeringConnectivity field is set. + */ + @java.lang.Override + public boolean hasVpcPeeringConnectivity() { + return connectivityCase_ == 102; + } + /** + * + * + *
+   * The details of the VPC network that the source database is located in.
+   * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * + * @return The vpcPeeringConnectivity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.VpcPeeringConnectivity getVpcPeeringConnectivity() { + if (connectivityCase_ == 102) { + return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); + } + /** + * + * + *
+   * The details of the VPC network that the source database is located in.
+   * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder + getVpcPeeringConnectivityOrBuilder() { + if (connectivityCase_ == 102) { + return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); } public static final int STATIC_IP_CONNECTIVITY_FIELD_NUMBER = 103; @@ -1719,8 +3625,9 @@ public com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity * * *
-   * Output only. The duration of the migration job (in seconds). A duration in seconds
-   * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+   * Output only. The duration of the migration job (in seconds). A duration in
+   * seconds with up to nine fractional digits, terminated by 's'. Example:
+   * "3.5s".
    * 
* * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1736,8 +3643,9 @@ public boolean hasDuration() { * * *
-   * Output only. The duration of the migration job (in seconds). A duration in seconds
-   * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+   * Output only. The duration of the migration job (in seconds). A duration in
+   * seconds with up to nine fractional digits, terminated by 's'. Example:
+   * "3.5s".
    * 
* * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1753,8 +3661,9 @@ public com.google.protobuf.Duration getDuration() { * * *
-   * Output only. The duration of the migration job (in seconds). A duration in seconds
-   * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+   * Output only. The duration of the migration job (in seconds). A duration in
+   * seconds with up to nine fractional digits, terminated by 's'. Example:
+   * "3.5s".
    * 
* * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1917,7 +3826,8 @@ public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabase * * *
-   * Output only. If the migration job is completed, the time when it was completed.
+   * Output only. If the migration job is completed, the time when it was
+   * completed.
    * 
* * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1933,7 +3843,8 @@ public boolean hasEndTime() { * * *
-   * Output only. If the migration job is completed, the time when it was completed.
+   * Output only. If the migration job is completed, the time when it was
+   * completed.
    * 
* * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1949,7 +3860,8 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
-   * Output only. If the migration job is completed, the time when it was completed.
+   * Output only. If the migration job is completed, the time when it was
+   * completed.
    * 
* * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1960,6 +3872,187 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } + public static final int CONVERSION_WORKSPACE_FIELD_NUMBER = 18; + private com.google.cloud.clouddms.v1.ConversionWorkspaceInfo conversionWorkspace_; + /** + * + * + *
+   * The conversion workspace used by the migration.
+   * 
+ * + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; + * + * @return Whether the conversionWorkspace field is set. + */ + @java.lang.Override + public boolean hasConversionWorkspace() { + return conversionWorkspace_ != null; + } + /** + * + * + *
+   * The conversion workspace used by the migration.
+   * 
+ * + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; + * + * @return The conversionWorkspace. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspaceInfo getConversionWorkspace() { + return conversionWorkspace_ == null + ? com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.getDefaultInstance() + : conversionWorkspace_; + } + /** + * + * + *
+   * The conversion workspace used by the migration.
+   * 
+ * + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspaceInfoOrBuilder + getConversionWorkspaceOrBuilder() { + return conversionWorkspace_ == null + ? com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.getDefaultInstance() + : conversionWorkspace_; + } + + public static final int FILTER_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * This field can be used to select the entities to migrate as part of
+   * the migration job. It uses AIP-160 notation to select a subset of the
+   * entities configured on the associated conversion-workspace. This field
+   * should not be set on migration-jobs that are not associated with a
+   * conversion workspace.
+   * 
+ * + * string filter = 20; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * This field can be used to select the entities to migrate as part of
+   * the migration job. It uses AIP-160 notation to select a subset of the
+   * entities configured on the associated conversion-workspace. This field
+   * should not be set on migration-jobs that are not associated with a
+   * conversion workspace.
+   * 
+ * + * string filter = 20; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CMEK_KEY_NAME_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private volatile java.lang.Object cmekKeyName_ = ""; + /** + * + * + *
+   * The CMEK (customer-managed encryption key) fully qualified key name used
+   * for the migration job.
+   * This field supports all migration jobs types except for:
+   * * Mysql to Mysql (use the cmek field in the cloudsql connection profile
+   * instead).
+   * * PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql
+   * connection profile instead).
+   * * PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb
+   * connection profile instead).
+   * Each Cloud CMEK key has the following format:
+   * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+   * 
+ * + * string cmek_key_name = 21; + * + * @return The cmekKeyName. + */ + @java.lang.Override + public java.lang.String getCmekKeyName() { + java.lang.Object ref = cmekKeyName_; + 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(); + cmekKeyName_ = s; + return s; + } + } + /** + * + * + *
+   * The CMEK (customer-managed encryption key) fully qualified key name used
+   * for the migration job.
+   * This field supports all migration jobs types except for:
+   * * Mysql to Mysql (use the cmek field in the cloudsql connection profile
+   * instead).
+   * * PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql
+   * connection profile instead).
+   * * PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb
+   * connection profile instead).
+   * Each Cloud CMEK key has the following format:
+   * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+   * 
+ * + * string cmek_key_name = 21; + * + * @return The bytes for cmekKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCmekKeyNameBytes() { + java.lang.Object ref = cmekKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cmekKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2021,6 +4114,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(16, getEndTime()); } + if (dumpFlags_ != null) { + output.writeMessage(17, getDumpFlags()); + } + if (conversionWorkspace_ != null) { + output.writeMessage(18, getConversionWorkspace()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cmekKeyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 21, cmekKeyName_); + } if (connectivityCase_ == 101) { output.writeMessage(101, (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_); } @@ -2095,6 +4200,19 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getEndTime()); } + if (dumpFlags_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getDumpFlags()); + } + if (conversionWorkspace_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(18, getConversionWorkspace()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cmekKeyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, cmekKeyName_); + } if (connectivityCase_ == 101) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -2141,6 +4259,10 @@ public boolean equals(final java.lang.Object obj) { if (phase_ != other.phase_) return false; if (type_ != other.type_) return false; if (!getDumpPath().equals(other.getDumpPath())) return false; + if (hasDumpFlags() != other.hasDumpFlags()) return false; + if (hasDumpFlags()) { + if (!getDumpFlags().equals(other.getDumpFlags())) return false; + } if (!getSource().equals(other.getSource())) return false; if (!getDestination().equals(other.getDestination())) return false; if (hasDuration() != other.hasDuration()) return false; @@ -2163,6 +4285,12 @@ public boolean equals(final java.lang.Object obj) { if (hasEndTime()) { if (!getEndTime().equals(other.getEndTime())) return false; } + if (hasConversionWorkspace() != other.hasConversionWorkspace()) return false; + if (hasConversionWorkspace()) { + if (!getConversionWorkspace().equals(other.getConversionWorkspace())) return false; + } + if (!getFilter().equals(other.getFilter())) return false; + if (!getCmekKeyName().equals(other.getCmekKeyName())) return false; if (!getConnectivityCase().equals(other.getConnectivityCase())) return false; switch (connectivityCase_) { case 101: @@ -2212,6 +4340,10 @@ public int hashCode() { hash = (53 * hash) + type_; hash = (37 * hash) + DUMP_PATH_FIELD_NUMBER; hash = (53 * hash) + getDumpPath().hashCode(); + if (hasDumpFlags()) { + hash = (37 * hash) + DUMP_FLAGS_FIELD_NUMBER; + hash = (53 * hash) + getDumpFlags().hashCode(); + } hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); hash = (37 * hash) + DESTINATION_FIELD_NUMBER; @@ -2236,6 +4368,14 @@ public int hashCode() { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } + if (hasConversionWorkspace()) { + hash = (37 * hash) + CONVERSION_WORKSPACE_FIELD_NUMBER; + hash = (53 * hash) + getConversionWorkspace().hashCode(); + } + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + CMEK_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCmekKeyName().hashCode(); switch (connectivityCase_) { case 101: hash = (37 * hash) + REVERSE_SSH_CONNECTIVITY_FIELD_NUMBER; @@ -2338,728 +4478,1410 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.clouddms.v1.MigrationJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static Builder newBuilder(com.google.cloud.clouddms.v1.MigrationJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a Database Migration Service migration job object.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.MigrationJob} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.MigrationJob) + com.google.cloud.clouddms.v1.MigrationJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.MigrationJob.class, + com.google.cloud.clouddms.v1.MigrationJob.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.MigrationJob.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + displayName_ = ""; + state_ = 0; + phase_ = 0; + type_ = 0; + dumpPath_ = ""; + dumpFlags_ = null; + if (dumpFlagsBuilder_ != null) { + dumpFlagsBuilder_.dispose(); + dumpFlagsBuilder_ = null; + } + source_ = ""; + destination_ = ""; + if (reverseSshConnectivityBuilder_ != null) { + reverseSshConnectivityBuilder_.clear(); + } + if (vpcPeeringConnectivityBuilder_ != null) { + vpcPeeringConnectivityBuilder_.clear(); + } + if (staticIpConnectivityBuilder_ != null) { + staticIpConnectivityBuilder_.clear(); + } + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + sourceDatabase_ = null; + if (sourceDatabaseBuilder_ != null) { + sourceDatabaseBuilder_.dispose(); + sourceDatabaseBuilder_ = null; + } + destinationDatabase_ = null; + if (destinationDatabaseBuilder_ != null) { + destinationDatabaseBuilder_.dispose(); + destinationDatabaseBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + conversionWorkspace_ = null; + if (conversionWorkspaceBuilder_ != null) { + conversionWorkspaceBuilder_.dispose(); + conversionWorkspaceBuilder_ = null; + } + filter_ = ""; + cmekKeyName_ = ""; + connectivityCase_ = 0; + connectivity_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob build() { + com.google.cloud.clouddms.v1.MigrationJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob buildPartial() { + com.google.cloud.clouddms.v1.MigrationJob result = + new com.google.cloud.clouddms.v1.MigrationJob(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.MigrationJob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.phase_ = phase_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.dumpPath_ = dumpPath_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.dumpFlags_ = dumpFlagsBuilder_ == null ? dumpFlags_ : dumpFlagsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.destination_ = destination_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.sourceDatabase_ = + sourceDatabaseBuilder_ == null ? sourceDatabase_ : sourceDatabaseBuilder_.build(); + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.destinationDatabase_ = + destinationDatabaseBuilder_ == null + ? destinationDatabase_ + : destinationDatabaseBuilder_.build(); + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.conversionWorkspace_ = + conversionWorkspaceBuilder_ == null + ? conversionWorkspace_ + : conversionWorkspaceBuilder_.build(); + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.cmekKeyName_ = cmekKeyName_; + } + } + + private void buildPartialOneofs(com.google.cloud.clouddms.v1.MigrationJob result) { + result.connectivityCase_ = connectivityCase_; + result.connectivity_ = this.connectivity_; + if (connectivityCase_ == 101 && reverseSshConnectivityBuilder_ != null) { + result.connectivity_ = reverseSshConnectivityBuilder_.build(); + } + if (connectivityCase_ == 102 && vpcPeeringConnectivityBuilder_ != null) { + result.connectivity_ = vpcPeeringConnectivityBuilder_.build(); + } + if (connectivityCase_ == 103 && staticIpConnectivityBuilder_ != null) { + result.connectivity_ = staticIpConnectivityBuilder_.build(); + } + } + + @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 toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @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 - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Represents a Database Migration Service migration job object.
-   * 
- * - * Protobuf type {@code google.cloud.clouddms.v1.MigrationJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.MigrationJob) - com.google.cloud.clouddms.v1.MigrationJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.clouddms.v1.MigrationJob) { + return mergeFrom((com.google.cloud.clouddms.v1.MigrationJob) other); + } else { + super.mergeFrom(other); + return this; } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); + public Builder mergeFrom(com.google.cloud.clouddms.v1.MigrationJob other) { + if (other == com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getDumpPath().isEmpty()) { + dumpPath_ = other.dumpPath_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasDumpFlags()) { + mergeDumpFlags(other.getDumpFlags()); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getDestination().isEmpty()) { + destination_ = other.destination_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasError()) { + mergeError(other.getError()); + } + if (other.hasSourceDatabase()) { + mergeSourceDatabase(other.getSourceDatabase()); + } + if (other.hasDestinationDatabase()) { + mergeDestinationDatabase(other.getDestinationDatabase()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasConversionWorkspace()) { + mergeConversionWorkspace(other.getConversionWorkspace()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00200000; + onChanged(); + } + if (!other.getCmekKeyName().isEmpty()) { + cmekKeyName_ = other.cmekKeyName_; + bitField0_ |= 0x00400000; + onChanged(); } + switch (other.getConnectivityCase()) { + case REVERSE_SSH_CONNECTIVITY: + { + mergeReverseSshConnectivity(other.getReverseSshConnectivity()); + break; + } + case VPC_PEERING_CONNECTIVITY: + { + mergeVpcPeeringConnectivity(other.getVpcPeeringConnectivity()); + break; + } + case STATIC_IP_CONNECTIVITY: + { + mergeStaticIpConnectivity(other.getStaticIpConnectivity()); + break; + } + case CONNECTIVITY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.clouddms.v1.MigrationJob.class, - com.google.cloud.clouddms.v1.MigrationJob.Builder.class); + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + phase_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + dumpPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 90: + { + destination_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 98: + { + input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 98 + case 106: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 106 + case 114: + { + input.readMessage(getSourceDatabaseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 114 + case 122: + { + input.readMessage( + getDestinationDatabaseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 122 + case 130: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 130 + case 138: + { + input.readMessage(getDumpFlagsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 138 + case 146: + { + input.readMessage( + getConversionWorkspaceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 146 + case 162: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 162 + case 170: + { + cmekKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00400000; + break; + } // case 170 + case 810: + { + input.readMessage( + getReverseSshConnectivityFieldBuilder().getBuilder(), extensionRegistry); + connectivityCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage( + getVpcPeeringConnectivityFieldBuilder().getBuilder(), extensionRegistry); + connectivityCase_ = 102; + break; + } // case 818 + case 826: + { + input.readMessage( + getStaticIpConnectivityFieldBuilder().getBuilder(), extensionRegistry); + connectivityCase_ = 103; + break; + } // case 826 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - // Construct using com.google.cloud.clouddms.v1.MigrationJob.newBuilder() - private Builder() {} + private int connectivityCase_ = 0; + private java.lang.Object connectivity_; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + public ConnectivityCase getConnectivityCase() { + return ConnectivityCase.forNumber(connectivityCase_); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - internalGetMutableLabels().clear(); - displayName_ = ""; - state_ = 0; - phase_ = 0; - type_ = 0; - dumpPath_ = ""; - source_ = ""; - destination_ = ""; - if (reverseSshConnectivityBuilder_ != null) { - reverseSshConnectivityBuilder_.clear(); - } - if (vpcPeeringConnectivityBuilder_ != null) { - vpcPeeringConnectivityBuilder_.clear(); - } - if (staticIpConnectivityBuilder_ != null) { - staticIpConnectivityBuilder_.clear(); - } - duration_ = null; - if (durationBuilder_ != null) { - durationBuilder_.dispose(); - durationBuilder_ = null; - } - error_ = null; - if (errorBuilder_ != null) { - errorBuilder_.dispose(); - errorBuilder_ = null; - } - sourceDatabase_ = null; - if (sourceDatabaseBuilder_ != null) { - sourceDatabaseBuilder_.dispose(); - sourceDatabaseBuilder_ = null; - } - destinationDatabase_ = null; - if (destinationDatabaseBuilder_ != null) { - destinationDatabaseBuilder_.dispose(); - destinationDatabaseBuilder_ = null; - } - endTime_ = null; - if (endTimeBuilder_ != null) { - endTimeBuilder_.dispose(); - endTimeBuilder_ = null; - } + public Builder clearConnectivity() { connectivityCase_ = 0; connectivity_ = null; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.clouddms.v1.ClouddmsResourcesProto - .internal_static_google_cloud_clouddms_v1_MigrationJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJob getDefaultInstanceForType() { - return com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance(); - } + private int bitField0_; - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJob build() { - com.google.cloud.clouddms.v1.MigrationJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (URI) of this migration job resource, in the form of:
+     * projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; } - return result; } - - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJob buildPartial() { - com.google.cloud.clouddms.v1.MigrationJob result = - new com.google.cloud.clouddms.v1.MigrationJob(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+     * The name (URI) of this migration job resource, in the form of:
+     * projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - buildPartialOneofs(result); - onBuilt(); - return result; } - - private void buildPartial0(com.google.cloud.clouddms.v1.MigrationJob result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.state_ = state_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.phase_ = phase_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.dumpPath_ = dumpPath_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.source_ = source_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.destination_ = destination_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.sourceDatabase_ = - sourceDatabaseBuilder_ == null ? sourceDatabase_ : sourceDatabaseBuilder_.build(); - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.destinationDatabase_ = - destinationDatabaseBuilder_ == null - ? destinationDatabase_ - : destinationDatabaseBuilder_.build(); + /** + * + * + *
+     * The name (URI) of this migration job resource, in the form of:
+     * projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (URI) of this migration job resource, in the form of:
+     * projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (URI) of this migration job resource, in the form of:
+     * projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - private void buildPartialOneofs(com.google.cloud.clouddms.v1.MigrationJob result) { - result.connectivityCase_ = connectivityCase_; - result.connectivity_ = this.connectivity_; - if (connectivityCase_ == 101 && reverseSshConnectivityBuilder_ != null) { - result.connectivity_ = reverseSshConnectivityBuilder_.build(); + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was created.
+     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was created.
+     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); } - if (connectivityCase_ == 102 && vpcPeeringConnectivityBuilder_ != null) { - result.connectivity_ = vpcPeeringConnectivityBuilder_.build(); + } + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was created.
+     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); } - if (connectivityCase_ == 103 && staticIpConnectivityBuilder_ != null) { - result.connectivity_ = staticIpConnectivityBuilder_.build(); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was created.
+     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000002; + onChanged(); + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was created.
+     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was created.
+     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was created.
+     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was created.
+     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was created.
+     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was last
+     * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.clouddms.v1.MigrationJob) { - return mergeFrom((com.google.cloud.clouddms.v1.MigrationJob) other); + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was last
+     * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { - super.mergeFrom(other); - return this; + return updateTimeBuilder_.getMessage(); } } - - public Builder mergeFrom(com.google.cloud.clouddms.v1.MigrationJob other) { - if (other == com.google.cloud.clouddms.v1.MigrationJob.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000008; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getDumpPath().isEmpty()) { - dumpPath_ = other.dumpPath_; - bitField0_ |= 0x00000100; - onChanged(); + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was last
+     * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); } - if (!other.getSource().isEmpty()) { - source_ = other.source_; - bitField0_ |= 0x00000200; - onChanged(); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was last
+     * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); } - if (!other.getDestination().isEmpty()) { - destination_ = other.destination_; - bitField0_ |= 0x00000400; - onChanged(); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was last
+     * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was last
+     * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; } - if (other.hasError()) { - mergeError(other.getError()); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was last
+     * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was last
+     * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } - if (other.hasSourceDatabase()) { - mergeSourceDatabase(other.getSourceDatabase()); + } + /** + * + * + *
+     * Output only. The timestamp when the migration job resource was last
+     * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+     * Example: "2014-10-02T15:01:23.045123456Z".
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; } - if (other.hasDestinationDatabase()) { - mergeDestinationDatabase(other.getDestinationDatabase()); + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } - switch (other.getConnectivityCase()) { - case REVERSE_SSH_CONNECTIVITY: - { - mergeReverseSshConnectivity(other.getReverseSshConnectivity()); - break; - } - case VPC_PEERING_CONNECTIVITY: - { - mergeVpcPeeringConnectivity(other.getVpcPeeringConnectivity()); - break; - } - case STATIC_IP_CONNECTIVITY: - { - mergeStaticIpConnectivity(other.getStaticIpConnectivity()); - break; - } - case CONNECTIVITY_NOT_SET: - { - break; - } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000008; onChanged(); - return this; + return labels_; } - @java.lang.Override - public final boolean isInitialized() { - return true; + public int getLabelsCount() { + return internalGetLabels().getMap().size(); } - + /** + * + * + *
+     * The resource labels for migration job to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * 
+ * + * map<string, string> labels = 4; + */ @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - phase_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: - { - dumpPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - source_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - destination_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: - { - input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 98 - case 106: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 106 - case 114: - { - input.readMessage(getSourceDatabaseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 114 - case 122: - { - input.readMessage( - getDestinationDatabaseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 122 - case 130: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 130 - case 810: - { - input.readMessage( - getReverseSshConnectivityFieldBuilder().getBuilder(), extensionRegistry); - connectivityCase_ = 101; - break; - } // case 810 - case 818: - { - input.readMessage( - getVpcPeeringConnectivityFieldBuilder().getBuilder(), extensionRegistry); - connectivityCase_ = 102; - break; - } // case 818 - case 826: - { - input.readMessage( - getStaticIpConnectivityFieldBuilder().getBuilder(), extensionRegistry); - connectivityCase_ = 103; - break; - } // case 826 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int connectivityCase_ = 0; - private java.lang.Object connectivity_; - - public ConnectivityCase getConnectivityCase() { - return ConnectivityCase.forNumber(connectivityCase_); + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); } - - public Builder clearConnectivity() { - connectivityCase_ = 0; - connectivity_ = null; - onChanged(); - return this; + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); } - - private int bitField0_; - - private java.lang.Object name_ = ""; /** * * *
-     * The name (URI) of this migration job resource, in the form of:
-     * projects/{project}/locations/{location}/instances/{instance}.
+     * The resource labels for migration job to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
      * 
* - * string name = 1; - * - * @return The name. + * map<string, string> labels = 4; */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); } /** * * *
-     * The name (URI) of this migration job resource, in the form of:
-     * projects/{project}/locations/{location}/instances/{instance}.
+     * The resource labels for migration job to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
      * 
* - * string name = 1; - * - * @return The bytes for name. + * map<string, string> labels = 4; */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * The name (URI) of this migration job resource, in the form of:
-     * projects/{project}/locations/{location}/instances/{instance}.
+     * The resource labels for migration job to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
      * 
* - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. + * map<string, string> labels = 4; */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
-     * The name (URI) of this migration job resource, in the form of:
-     * projects/{project}/locations/{location}/instances/{instance}.
+     * The resource labels for migration job to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
      * 
* - * string name = 1; - * - * @return This builder for chaining. + * map<string, string> labels = 4; */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } /** * * *
-     * The name (URI) of this migration job resource, in the form of:
-     * projects/{project}/locations/{location}/instances/{instance}.
+     * The resource labels for migration job to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
      * 
* - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. + * map<string, string> labels = 4; */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException(); + throw new NullPointerException("map value"); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
+     * The resource labels for migration job to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; return this; } - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + private java.lang.Object displayName_ = ""; /** * * *
-     * Output only. The timestamp when the migration job resource was created.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * The migration job display name.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string display_name = 5; * - * @return Whether the createTime field is set. + * @return The displayName. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Output only. The timestamp when the migration job resource was created.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * The migration job display name.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string display_name = 5; * - * @return The createTime. + * @return The bytes for displayName. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; } else { - return createTimeBuilder_.getMessage(); + return (com.google.protobuf.ByteString) ref; } } /** * * *
-     * Output only. The timestamp when the migration job resource was created.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * The migration job display name.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string display_name = 5; + * + * @param value The displayName to set. + * @return This builder for chaining. */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000002; + displayName_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3067,22 +5889,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The timestamp when the migration job resource was created.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * The migration job display name.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; + * string display_name = 5; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -3090,195 +5906,150 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The timestamp when the migration job resource was created.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * The migration job display name.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string display_name = 5; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000002; + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } + + private int state_ = 0; /** * * *
-     * Output only. The timestamp when the migration job resource was created.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * The current migration job state.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * + * @return The enum numeric value on the wire for state. */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000002); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; + @java.lang.Override + public int getStateValue() { + return state_; } /** * * *
-     * Output only. The timestamp when the migration job resource was created.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * The current migration job state.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Output only. The timestamp when the migration job resource was created.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * The current migration job state.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * + * @return The state. */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.State getState() { + com.google.cloud.clouddms.v1.MigrationJob.State result = + com.google.cloud.clouddms.v1.MigrationJob.State.forNumber(state_); + return result == null ? com.google.cloud.clouddms.v1.MigrationJob.State.UNRECOGNIZED : result; } /** * * *
-     * Output only. The timestamp when the migration job resource was created.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * The current migration job state.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * + * @param value The state to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + public Builder setState(com.google.cloud.clouddms.v1.MigrationJob.State value) { + if (value == null) { + throw new NullPointerException(); } - return createTimeBuilder_; + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; /** * * *
-     * Output only. The timestamp when the migration job resource was last updated.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * The current migration job state.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.MigrationJob.State state = 6; * - * @return Whether the updateTime field is set. + * @return This builder for chaining. */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000004) != 0); + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; } + + private int phase_ = 0; /** * * *
-     * Output only. The timestamp when the migration job resource was last updated.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * Output only. The current migration job phase.
      * 
* * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The updateTime. + * @return The enum numeric value on the wire for phase. */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } + @java.lang.Override + public int getPhaseValue() { + return phase_; } /** * * *
-     * Output only. The timestamp when the migration job resource was last updated.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * Output only. The current migration job phase.
      * 
* * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The enum numeric value on the wire for phase to set. + * @return This builder for chaining. */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; + public Builder setPhaseValue(int value) { + phase_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3286,51 +6057,41 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The timestamp when the migration job resource was last updated.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * Output only. The current migration job phase.
      * 
* * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The phase. */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.Phase getPhase() { + com.google.cloud.clouddms.v1.MigrationJob.Phase result = + com.google.cloud.clouddms.v1.MigrationJob.Phase.forNumber(phase_); + return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Phase.UNRECOGNIZED : result; } /** * * *
-     * Output only. The timestamp when the migration job resource was last updated.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * Output only. The current migration job phase.
      * 
* * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The phase to set. + * @return This builder for chaining. */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); + public Builder setPhase(com.google.cloud.clouddms.v1.MigrationJob.Phase value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; + phase_ = value.getNumber(); onChanged(); return this; } @@ -3338,342 +6099,300 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The timestamp when the migration job resource was last updated.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * Output only. The current migration job phase.
      * 
* * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } + * + * @return This builder for chaining. + */ + public Builder clearPhase() { + bitField0_ = (bitField0_ & ~0x00000040); + phase_ = 0; onChanged(); return this; } + + private int type_ = 0; /** * * *
-     * Output only. The timestamp when the migration job resource was last updated.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * Required. The migration job type.
      * 
* * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for type. */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); + @java.lang.Override + public int getTypeValue() { + return type_; } /** * * *
-     * Output only. The timestamp when the migration job resource was last updated.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * Required. The migration job type.
      * 
* * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
-     * Output only. The timestamp when the migration job resource was last updated.
-     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
-     * Example: "2014-10-02T15:01:23.045123456Z".
+     * Required. The migration job type.
      * 
* * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The type. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000008; - onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); + @java.lang.Override + public com.google.cloud.clouddms.v1.MigrationJob.Type getType() { + com.google.cloud.clouddms.v1.MigrationJob.Type result = + com.google.cloud.clouddms.v1.MigrationJob.Type.forNumber(type_); + return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Type.UNRECOGNIZED : result; } /** * * *
-     * The resource labels for migration job to use to annotate any related
-     * underlying resources such as Compute Engine VMs. An object containing a
-     * list of "key": "value" pairs.
-     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * Required. The migration job type.
      * 
* - * map<string, string> labels = 4; + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setType(com.google.cloud.clouddms.v1.MigrationJob.Type value) { + if (value == null) { + throw new NullPointerException(); } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); + bitField0_ |= 0x00000080; + type_ = value.getNumber(); + onChanged(); + return this; } /** * * *
-     * The resource labels for migration job to use to annotate any related
-     * underlying resources such as Compute Engine VMs. An object containing a
-     * list of "key": "value" pairs.
-     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * Required. The migration job type.
      * 
* - * map<string, string> labels = 4; + * + * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000080); + type_ = 0; + onChanged(); + return this; } + + private java.lang.Object dumpPath_ = ""; /** * * *
-     * The resource labels for migration job to use to annotate any related
-     * underlying resources such as Compute Engine VMs. An object containing a
-     * list of "key": "value" pairs.
-     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * The path to the dump file in Google Cloud Storage,
+     * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+     * This field and the "dump_flags" field are mutually exclusive.
      * 
* - * map<string, string> labels = 4; + * string dump_path = 9; + * + * @return The dumpPath. */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public java.lang.String getDumpPath() { + java.lang.Object ref = dumpPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dumpPath_ = s; + return s; + } else { + return (java.lang.String) ref; } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * The resource labels for migration job to use to annotate any related
-     * underlying resources such as Compute Engine VMs. An object containing a
-     * list of "key": "value" pairs.
-     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * The path to the dump file in Google Cloud Storage,
+     * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+     * This field and the "dump_flags" field are mutually exclusive.
      * 
* - * map<string, string> labels = 4; + * string dump_path = 9; + * + * @return The bytes for dumpPath. */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public com.google.protobuf.ByteString getDumpPathBytes() { + java.lang.Object ref = dumpPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dumpPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); - return this; } /** * * *
-     * The resource labels for migration job to use to annotate any related
-     * underlying resources such as Compute Engine VMs. An object containing a
-     * list of "key": "value" pairs.
-     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * The path to the dump file in Google Cloud Storage,
+     * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+     * This field and the "dump_flags" field are mutually exclusive.
      * 
* - * map<string, string> labels = 4; + * string dump_path = 9; + * + * @param value The dumpPath to set. + * @return This builder for chaining. */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setDumpPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - internalGetMutableLabels().getMutableMap().remove(key); + dumpPath_ = value; + bitField0_ |= 0x00000100; + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000008; - return internalGetMutableLabels().getMutableMap(); - } /** * * *
-     * The resource labels for migration job to use to annotate any related
-     * underlying resources such as Compute Engine VMs. An object containing a
-     * list of "key": "value" pairs.
-     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * The path to the dump file in Google Cloud Storage,
+     * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+     * This field and the "dump_flags" field are mutually exclusive.
      * 
* - * map<string, string> labels = 4; + * string dump_path = 9; + * + * @return This builder for chaining. */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000008; + public Builder clearDumpPath() { + dumpPath_ = getDefaultInstance().getDumpPath(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); return this; } /** * * *
-     * The resource labels for migration job to use to annotate any related
-     * underlying resources such as Compute Engine VMs. An object containing a
-     * list of "key": "value" pairs.
-     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * The path to the dump file in Google Cloud Storage,
+     * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+     * This field and the "dump_flags" field are mutually exclusive.
      * 
* - * map<string, string> labels = 4; + * string dump_path = 9; + * + * @param value The bytes for dumpPath to set. + * @return This builder for chaining. */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000008; + public Builder setDumpPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dumpPath_ = value; + bitField0_ |= 0x00000100; + onChanged(); return this; } - private java.lang.Object displayName_ = ""; + private com.google.cloud.clouddms.v1.MigrationJob.DumpFlags dumpFlags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.Builder, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlagsOrBuilder> + dumpFlagsBuilder_; /** * * *
-     * The migration job display name.
+     * The initial dump flags.
+     * This field and the "dump_path" field are mutually exclusive.
      * 
* - * string display_name = 5; + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; * - * @return The displayName. + * @return Whether the dumpFlags field is set. */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasDumpFlags() { + return ((bitField0_ & 0x00000200) != 0); } /** * * *
-     * The migration job display name.
+     * The initial dump flags.
+     * This field and the "dump_path" field are mutually exclusive.
      * 
* - * string display_name = 5; + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; * - * @return The bytes for displayName. + * @return The dumpFlags. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlags getDumpFlags() { + if (dumpFlagsBuilder_ == null) { + return dumpFlags_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.getDefaultInstance() + : dumpFlags_; } else { - return (com.google.protobuf.ByteString) ref; + return dumpFlagsBuilder_.getMessage(); } } /** * * *
-     * The migration job display name.
+     * The initial dump flags.
+     * This field and the "dump_path" field are mutually exclusive.
      * 
* - * string display_name = 5; - * - * @param value The displayName to set. - * @return This builder for chaining. + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setDumpFlags(com.google.cloud.clouddms.v1.MigrationJob.DumpFlags value) { + if (dumpFlagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dumpFlags_ = value; + } else { + dumpFlagsBuilder_.setMessage(value); } - displayName_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3681,16 +6400,20 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * The migration job display name.
+     * The initial dump flags.
+     * This field and the "dump_path" field are mutually exclusive.
      * 
* - * string display_name = 5; - * - * @return This builder for chaining. + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000010); + public Builder setDumpFlags( + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.Builder builderForValue) { + if (dumpFlagsBuilder_ == null) { + dumpFlags_ = builderForValue.build(); + } else { + dumpFlagsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3698,150 +6421,173 @@ public Builder clearDisplayName() { * * *
-     * The migration job display name.
+     * The initial dump flags.
+     * This field and the "dump_path" field are mutually exclusive.
      * 
* - * string display_name = 5; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeDumpFlags(com.google.cloud.clouddms.v1.MigrationJob.DumpFlags value) { + if (dumpFlagsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && dumpFlags_ != null + && dumpFlags_ + != com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.getDefaultInstance()) { + getDumpFlagsBuilder().mergeFrom(value); + } else { + dumpFlags_ = value; + } + } else { + dumpFlagsBuilder_.mergeFrom(value); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000200; onChanged(); return this; } - - private int state_ = 0; /** * * *
-     * The current migration job state.
+     * The initial dump flags.
+     * This field and the "dump_path" field are mutually exclusive.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * - * @return The enum numeric value on the wire for state. + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; */ - @java.lang.Override - public int getStateValue() { - return state_; + public Builder clearDumpFlags() { + bitField0_ = (bitField0_ & ~0x00000200); + dumpFlags_ = null; + if (dumpFlagsBuilder_ != null) { + dumpFlagsBuilder_.dispose(); + dumpFlagsBuilder_ = null; + } + onChanged(); + return this; } /** * * *
-     * The current migration job state.
+     * The initial dump flags.
+     * This field and the "dump_path" field are mutually exclusive.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000020; + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.Builder getDumpFlagsBuilder() { + bitField0_ |= 0x00000200; onChanged(); - return this; + return getDumpFlagsFieldBuilder().getBuilder(); } /** * * *
-     * The current migration job state.
+     * The initial dump flags.
+     * This field and the "dump_path" field are mutually exclusive.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * - * @return The state. + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; */ - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJob.State getState() { - com.google.cloud.clouddms.v1.MigrationJob.State result = - com.google.cloud.clouddms.v1.MigrationJob.State.forNumber(state_); - return result == null ? com.google.cloud.clouddms.v1.MigrationJob.State.UNRECOGNIZED : result; + public com.google.cloud.clouddms.v1.MigrationJob.DumpFlagsOrBuilder getDumpFlagsOrBuilder() { + if (dumpFlagsBuilder_ != null) { + return dumpFlagsBuilder_.getMessageOrBuilder(); + } else { + return dumpFlags_ == null + ? com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.getDefaultInstance() + : dumpFlags_; + } } /** * * *
-     * The current migration job state.
+     * The initial dump flags.
+     * This field and the "dump_path" field are mutually exclusive.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.State state = 6; - * - * @param value The state to set. - * @return This builder for chaining. + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; */ - public Builder setState(com.google.cloud.clouddms.v1.MigrationJob.State value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.Builder, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlagsOrBuilder> + getDumpFlagsFieldBuilder() { + if (dumpFlagsBuilder_ == null) { + dumpFlagsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags.Builder, + com.google.cloud.clouddms.v1.MigrationJob.DumpFlagsOrBuilder>( + getDumpFlags(), getParentForChildren(), isClean()); + dumpFlags_ = null; } - bitField0_ |= 0x00000020; - state_ = value.getNumber(); - onChanged(); - return this; + return dumpFlagsBuilder_; } + + private java.lang.Object source_ = ""; /** * * *
-     * The current migration job state.
+     * Required. The resource name (URI) of the source connection profile.
      * 
* - * .google.cloud.clouddms.v1.MigrationJob.State state = 6; + * string source = 10 [(.google.api.field_behavior) = REQUIRED]; * - * @return This builder for chaining. + * @return The source. */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000020); - state_ = 0; - onChanged(); - return this; + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - private int phase_ = 0; /** * * *
-     * Output only. The current migration job phase.
+     * Required. The resource name (URI) of the source connection profile.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string source = 10 [(.google.api.field_behavior) = REQUIRED]; * - * @return The enum numeric value on the wire for phase. + * @return The bytes for source. */ - @java.lang.Override - public int getPhaseValue() { - return phase_; + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * Output only. The current migration job phase.
+     * Required. The resource name (URI) of the source connection profile.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string source = 10 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The enum numeric value on the wire for phase to set. + * @param value The source to set. * @return This builder for chaining. */ - public Builder setPhaseValue(int value) { - phase_ = value; - bitField0_ |= 0x00000040; + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3849,99 +6595,105 @@ public Builder setPhaseValue(int value) { * * *
-     * Output only. The current migration job phase.
+     * Required. The resource name (URI) of the source connection profile.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string source = 10 [(.google.api.field_behavior) = REQUIRED]; * - * @return The phase. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJob.Phase getPhase() { - com.google.cloud.clouddms.v1.MigrationJob.Phase result = - com.google.cloud.clouddms.v1.MigrationJob.Phase.forNumber(phase_); - return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Phase.UNRECOGNIZED : result; + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; } /** * * *
-     * Output only. The current migration job phase.
+     * Required. The resource name (URI) of the source connection profile.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string source = 10 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The phase to set. + * @param value The bytes for source to set. * @return This builder for chaining. */ - public Builder setPhase(com.google.cloud.clouddms.v1.MigrationJob.Phase value) { + public Builder setSourceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000040; - phase_ = value.getNumber(); + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } + + private java.lang.Object destination_ = ""; /** * * *
-     * Output only. The current migration job phase.
+     * Required. The resource name (URI) of the destination connection profile.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; * - * @return This builder for chaining. + * @return The destination. */ - public Builder clearPhase() { - bitField0_ = (bitField0_ & ~0x00000040); - phase_ = 0; - onChanged(); - return this; + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destination_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - private int type_ = 0; /** * * *
-     * Required. The migration job type.
+     * Required. The resource name (URI) of the destination connection profile.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; * - * @return The enum numeric value on the wire for type. + * @return The bytes for destination. */ - @java.lang.Override - public int getTypeValue() { - return type_; + public com.google.protobuf.ByteString getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * Required. The migration job type.
+     * Required. The resource name (URI) of the destination connection profile.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The enum numeric value on the wire for type to set. + * @param value The destination to set. * @return This builder for chaining. */ - public Builder setTypeValue(int value) { - type_ = value; - bitField0_ |= 0x00000080; + public Builder setDestination(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3949,498 +6701,585 @@ public Builder setTypeValue(int value) { * * *
-     * Required. The migration job type.
+     * Required. The resource name (URI) of the destination connection profile.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; * - * @return The type. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.MigrationJob.Type getType() { - com.google.cloud.clouddms.v1.MigrationJob.Type result = - com.google.cloud.clouddms.v1.MigrationJob.Type.forNumber(type_); - return result == null ? com.google.cloud.clouddms.v1.MigrationJob.Type.UNRECOGNIZED : result; + public Builder clearDestination() { + destination_ = getDefaultInstance().getDestination(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; } /** * * *
-     * Required. The migration job type.
+     * Required. The resource name (URI) of the destination connection profile.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The type to set. + * @param value The bytes for destination to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.clouddms.v1.MigrationJob.Type value) { + public Builder setDestinationBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000080; - type_ = value.getNumber(); + checkByteStringIsUtf8(value); + destination_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ReverseSshConnectivity, + com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, + com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder> + reverseSshConnectivityBuilder_; /** * * *
-     * Required. The migration job type.
+     * The details needed to communicate to the source over Reverse SSH
+     * tunnel connectivity.
      * 
* - * - * .google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; * - * @return This builder for chaining. + * @return Whether the reverseSshConnectivity field is set. */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000080); - type_ = 0; - onChanged(); - return this; + @java.lang.Override + public boolean hasReverseSshConnectivity() { + return connectivityCase_ == 101; } - - private java.lang.Object dumpPath_ = ""; /** * * *
-     * The path to the dump file in Google Cloud Storage,
-     * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+     * The details needed to communicate to the source over Reverse SSH
+     * tunnel connectivity.
      * 
* - * string dump_path = 9; + * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; * - * @return The dumpPath. + * @return The reverseSshConnectivity. */ - public java.lang.String getDumpPath() { - java.lang.Object ref = dumpPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dumpPath_ = s; - return s; + @java.lang.Override + public com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnectivity() { + if (reverseSshConnectivityBuilder_ == null) { + if (connectivityCase_ == 101) { + return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); } else { - return (java.lang.String) ref; + if (connectivityCase_ == 101) { + return reverseSshConnectivityBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); } } /** * * *
-     * The path to the dump file in Google Cloud Storage,
-     * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+     * The details needed to communicate to the source over Reverse SSH
+     * tunnel connectivity.
      * 
* - * string dump_path = 9; - * - * @return The bytes for dumpPath. + * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; */ - public com.google.protobuf.ByteString getDumpPathBytes() { - java.lang.Object ref = dumpPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dumpPath_ = b; - return b; + public Builder setReverseSshConnectivity( + com.google.cloud.clouddms.v1.ReverseSshConnectivity value) { + if (reverseSshConnectivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectivity_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + reverseSshConnectivityBuilder_.setMessage(value); } + connectivityCase_ = 101; + return this; } /** * * *
-     * The path to the dump file in Google Cloud Storage,
-     * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+     * The details needed to communicate to the source over Reverse SSH
+     * tunnel connectivity.
      * 
* - * string dump_path = 9; - * - * @param value The dumpPath to set. - * @return This builder for chaining. + * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; */ - public Builder setDumpPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setReverseSshConnectivity( + com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder builderForValue) { + if (reverseSshConnectivityBuilder_ == null) { + connectivity_ = builderForValue.build(); + onChanged(); + } else { + reverseSshConnectivityBuilder_.setMessage(builderForValue.build()); } - dumpPath_ = value; - bitField0_ |= 0x00000100; - onChanged(); + connectivityCase_ = 101; return this; } /** * * *
-     * The path to the dump file in Google Cloud Storage,
-     * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+     * The details needed to communicate to the source over Reverse SSH
+     * tunnel connectivity.
      * 
* - * string dump_path = 9; - * - * @return This builder for chaining. + * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; */ - public Builder clearDumpPath() { - dumpPath_ = getDefaultInstance().getDumpPath(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); + public Builder mergeReverseSshConnectivity( + com.google.cloud.clouddms.v1.ReverseSshConnectivity value) { + if (reverseSshConnectivityBuilder_ == null) { + if (connectivityCase_ == 101 + && connectivity_ + != com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance()) { + connectivity_ = + com.google.cloud.clouddms.v1.ReverseSshConnectivity.newBuilder( + (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_) + .mergeFrom(value) + .buildPartial(); + } else { + connectivity_ = value; + } + onChanged(); + } else { + if (connectivityCase_ == 101) { + reverseSshConnectivityBuilder_.mergeFrom(value); + } else { + reverseSshConnectivityBuilder_.setMessage(value); + } + } + connectivityCase_ = 101; return this; } /** * * *
-     * The path to the dump file in Google Cloud Storage,
-     * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+     * The details needed to communicate to the source over Reverse SSH
+     * tunnel connectivity.
      * 
* - * string dump_path = 9; - * - * @param value The bytes for dumpPath to set. - * @return This builder for chaining. + * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; */ - public Builder setDumpPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearReverseSshConnectivity() { + if (reverseSshConnectivityBuilder_ == null) { + if (connectivityCase_ == 101) { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + } + } else { + if (connectivityCase_ == 101) { + connectivityCase_ = 0; + connectivity_ = null; + } + reverseSshConnectivityBuilder_.clear(); } - checkByteStringIsUtf8(value); - dumpPath_ = value; - bitField0_ |= 0x00000100; - onChanged(); return this; } - - private java.lang.Object source_ = ""; /** * * *
-     * Required. The resource name (URI) of the source connection profile.
+     * The details needed to communicate to the source over Reverse SSH
+     * tunnel connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + */ + public com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder + getReverseSshConnectivityBuilder() { + return getReverseSshConnectivityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The details needed to communicate to the source over Reverse SSH
+     * tunnel connectivity.
      * 
* - * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The source. + * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - source_ = s; - return s; + @java.lang.Override + public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder + getReverseSshConnectivityOrBuilder() { + if ((connectivityCase_ == 101) && (reverseSshConnectivityBuilder_ != null)) { + return reverseSshConnectivityBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + if (connectivityCase_ == 101) { + return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); } } /** * * *
-     * Required. The resource name (URI) of the source connection profile.
+     * The details needed to communicate to the source over Reverse SSH
+     * tunnel connectivity.
      * 
* - * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for source. + * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; */ - public com.google.protobuf.ByteString getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ReverseSshConnectivity, + com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, + com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder> + getReverseSshConnectivityFieldBuilder() { + if (reverseSshConnectivityBuilder_ == null) { + if (!(connectivityCase_ == 101)) { + connectivity_ = com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); + } + reverseSshConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ReverseSshConnectivity, + com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, + com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder>( + (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_, + getParentForChildren(), + isClean()); + connectivity_ = null; } + connectivityCase_ = 101; + onChanged(); + return reverseSshConnectivityBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.VpcPeeringConnectivity, + com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, + com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder> + vpcPeeringConnectivityBuilder_; /** * * *
-     * Required. The resource name (URI) of the source connection profile.
+     * The details of the VPC network that the source database is located in.
      * 
* - * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; * - * @param value The source to set. - * @return This builder for chaining. + * @return Whether the vpcPeeringConnectivity field is set. */ - public Builder setSource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - source_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; + @java.lang.Override + public boolean hasVpcPeeringConnectivity() { + return connectivityCase_ == 102; } /** * * *
-     * Required. The resource name (URI) of the source connection profile.
+     * The details of the VPC network that the source database is located in.
      * 
* - * string source = 10 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; * - * @return This builder for chaining. + * @return The vpcPeeringConnectivity. */ - public Builder clearSource() { - source_ = getDefaultInstance().getSource(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.clouddms.v1.VpcPeeringConnectivity getVpcPeeringConnectivity() { + if (vpcPeeringConnectivityBuilder_ == null) { + if (connectivityCase_ == 102) { + return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); + } else { + if (connectivityCase_ == 102) { + return vpcPeeringConnectivityBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); + } } /** * * *
-     * Required. The resource name (URI) of the source connection profile.
+     * The details of the VPC network that the source database is located in.
      * 
* - * string source = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for source to set. - * @return This builder for chaining. + * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ - public Builder setSourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setVpcPeeringConnectivity( + com.google.cloud.clouddms.v1.VpcPeeringConnectivity value) { + if (vpcPeeringConnectivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectivity_ = value; + onChanged(); + } else { + vpcPeeringConnectivityBuilder_.setMessage(value); } - checkByteStringIsUtf8(value); - source_ = value; - bitField0_ |= 0x00000200; - onChanged(); + connectivityCase_ = 102; return this; } - - private java.lang.Object destination_ = ""; /** * * *
-     * Required. The resource name (URI) of the destination connection profile.
+     * The details of the VPC network that the source database is located in.
      * 
* - * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The destination. + * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ - public java.lang.String getDestination() { - java.lang.Object ref = destination_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destination_ = s; - return s; + public Builder setVpcPeeringConnectivity( + com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder builderForValue) { + if (vpcPeeringConnectivityBuilder_ == null) { + connectivity_ = builderForValue.build(); + onChanged(); } else { - return (java.lang.String) ref; + vpcPeeringConnectivityBuilder_.setMessage(builderForValue.build()); } + connectivityCase_ = 102; + return this; } /** * * *
-     * Required. The resource name (URI) of the destination connection profile.
+     * The details of the VPC network that the source database is located in.
      * 
* - * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for destination. + * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ - public com.google.protobuf.ByteString getDestinationBytes() { - java.lang.Object ref = destination_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - destination_ = b; - return b; + public Builder mergeVpcPeeringConnectivity( + com.google.cloud.clouddms.v1.VpcPeeringConnectivity value) { + if (vpcPeeringConnectivityBuilder_ == null) { + if (connectivityCase_ == 102 + && connectivity_ + != com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance()) { + connectivity_ = + com.google.cloud.clouddms.v1.VpcPeeringConnectivity.newBuilder( + (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_) + .mergeFrom(value) + .buildPartial(); + } else { + connectivity_ = value; + } + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + if (connectivityCase_ == 102) { + vpcPeeringConnectivityBuilder_.mergeFrom(value); + } else { + vpcPeeringConnectivityBuilder_.setMessage(value); + } } + connectivityCase_ = 102; + return this; } /** * * *
-     * Required. The resource name (URI) of the destination connection profile.
+     * The details of the VPC network that the source database is located in.
      * 
* - * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The destination to set. - * @return This builder for chaining. + * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ - public Builder setDestination(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearVpcPeeringConnectivity() { + if (vpcPeeringConnectivityBuilder_ == null) { + if (connectivityCase_ == 102) { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + } + } else { + if (connectivityCase_ == 102) { + connectivityCase_ = 0; + connectivity_ = null; + } + vpcPeeringConnectivityBuilder_.clear(); } - destination_ = value; - bitField0_ |= 0x00000400; - onChanged(); return this; } /** * * *
-     * Required. The resource name (URI) of the destination connection profile.
+     * The details of the VPC network that the source database is located in.
      * 
* - * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. + * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ - public Builder clearDestination() { - destination_ = getDefaultInstance().getDestination(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; + public com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder + getVpcPeeringConnectivityBuilder() { + return getVpcPeeringConnectivityFieldBuilder().getBuilder(); } /** * * *
-     * Required. The resource name (URI) of the destination connection profile.
+     * The details of the VPC network that the source database is located in.
      * 
* - * string destination = 11 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder + getVpcPeeringConnectivityOrBuilder() { + if ((connectivityCase_ == 102) && (vpcPeeringConnectivityBuilder_ != null)) { + return vpcPeeringConnectivityBuilder_.getMessageOrBuilder(); + } else { + if (connectivityCase_ == 102) { + return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); + } + } + /** + * + * + *
+     * The details of the VPC network that the source database is located in.
+     * 
* - * @param value The bytes for destination to set. - * @return This builder for chaining. + * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; */ - public Builder setDestinationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.VpcPeeringConnectivity, + com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, + com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder> + getVpcPeeringConnectivityFieldBuilder() { + if (vpcPeeringConnectivityBuilder_ == null) { + if (!(connectivityCase_ == 102)) { + connectivity_ = com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); + } + vpcPeeringConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.VpcPeeringConnectivity, + com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, + com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder>( + (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_, + getParentForChildren(), + isClean()); + connectivity_ = null; } - checkByteStringIsUtf8(value); - destination_ = value; - bitField0_ |= 0x00000400; + connectivityCase_ = 102; onChanged(); - return this; + return vpcPeeringConnectivityBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ReverseSshConnectivity, - com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, - com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder> - reverseSshConnectivityBuilder_; + com.google.cloud.clouddms.v1.StaticIpConnectivity, + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, + com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> + staticIpConnectivityBuilder_; /** * * *
-     * The details needed to communicate to the source over Reverse SSH
-     * tunnel connectivity.
+     * static ip connectivity data (default, no additional details needed).
      * 
* - * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; * - * @return Whether the reverseSshConnectivity field is set. + * @return Whether the staticIpConnectivity field is set. */ @java.lang.Override - public boolean hasReverseSshConnectivity() { - return connectivityCase_ == 101; + public boolean hasStaticIpConnectivity() { + return connectivityCase_ == 103; } /** * * *
-     * The details needed to communicate to the source over Reverse SSH
-     * tunnel connectivity.
+     * static ip connectivity data (default, no additional details needed).
      * 
* - * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; * - * @return The reverseSshConnectivity. + * @return The staticIpConnectivity. */ @java.lang.Override - public com.google.cloud.clouddms.v1.ReverseSshConnectivity getReverseSshConnectivity() { - if (reverseSshConnectivityBuilder_ == null) { - if (connectivityCase_ == 101) { - return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_; + public com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity() { + if (staticIpConnectivityBuilder_ == null) { + if (connectivityCase_ == 103) { + return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; } - return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); } else { - if (connectivityCase_ == 101) { - return reverseSshConnectivityBuilder_.getMessage(); + if (connectivityCase_ == 103) { + return staticIpConnectivityBuilder_.getMessage(); } - return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); } } /** * * *
-     * The details needed to communicate to the source over Reverse SSH
-     * tunnel connectivity.
+     * static ip connectivity data (default, no additional details needed).
      * 
* - * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ - public Builder setReverseSshConnectivity( - com.google.cloud.clouddms.v1.ReverseSshConnectivity value) { - if (reverseSshConnectivityBuilder_ == null) { + public Builder setStaticIpConnectivity( + com.google.cloud.clouddms.v1.StaticIpConnectivity value) { + if (staticIpConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } connectivity_ = value; onChanged(); } else { - reverseSshConnectivityBuilder_.setMessage(value); + staticIpConnectivityBuilder_.setMessage(value); } - connectivityCase_ = 101; + connectivityCase_ = 103; return this; } /** * * *
-     * The details needed to communicate to the source over Reverse SSH
-     * tunnel connectivity.
+     * static ip connectivity data (default, no additional details needed).
      * 
* - * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ - public Builder setReverseSshConnectivity( - com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder builderForValue) { - if (reverseSshConnectivityBuilder_ == null) { + public Builder setStaticIpConnectivity( + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder builderForValue) { + if (staticIpConnectivityBuilder_ == null) { connectivity_ = builderForValue.build(); onChanged(); } else { - reverseSshConnectivityBuilder_.setMessage(builderForValue.build()); + staticIpConnectivityBuilder_.setMessage(builderForValue.build()); } - connectivityCase_ = 101; + connectivityCase_ = 103; return this; } /** * * *
-     * The details needed to communicate to the source over Reverse SSH
-     * tunnel connectivity.
+     * static ip connectivity data (default, no additional details needed).
      * 
* - * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ - public Builder mergeReverseSshConnectivity( - com.google.cloud.clouddms.v1.ReverseSshConnectivity value) { - if (reverseSshConnectivityBuilder_ == null) { - if (connectivityCase_ == 101 + public Builder mergeStaticIpConnectivity( + com.google.cloud.clouddms.v1.StaticIpConnectivity value) { + if (staticIpConnectivityBuilder_ == null) { + if (connectivityCase_ == 103 && connectivity_ - != com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance()) { + != com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance()) { connectivity_ = - com.google.cloud.clouddms.v1.ReverseSshConnectivity.newBuilder( - (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_) + com.google.cloud.clouddms.v1.StaticIpConnectivity.newBuilder( + (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_) .mergeFrom(value) .buildPartial(); } else { @@ -4448,38 +7287,37 @@ public Builder mergeReverseSshConnectivity( } onChanged(); } else { - if (connectivityCase_ == 101) { - reverseSshConnectivityBuilder_.mergeFrom(value); + if (connectivityCase_ == 103) { + staticIpConnectivityBuilder_.mergeFrom(value); } else { - reverseSshConnectivityBuilder_.setMessage(value); + staticIpConnectivityBuilder_.setMessage(value); } } - connectivityCase_ = 101; + connectivityCase_ = 103; return this; } /** * * *
-     * The details needed to communicate to the source over Reverse SSH
-     * tunnel connectivity.
+     * static ip connectivity data (default, no additional details needed).
      * 
* - * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ - public Builder clearReverseSshConnectivity() { - if (reverseSshConnectivityBuilder_ == null) { - if (connectivityCase_ == 101) { + public Builder clearStaticIpConnectivity() { + if (staticIpConnectivityBuilder_ == null) { + if (connectivityCase_ == 103) { connectivityCase_ = 0; connectivity_ = null; onChanged(); } } else { - if (connectivityCase_ == 101) { + if (connectivityCase_ == 103) { connectivityCase_ = 0; connectivity_ = null; } - reverseSshConnectivityBuilder_.clear(); + staticIpConnectivityBuilder_.clear(); } return this; } @@ -4487,563 +7325,508 @@ public Builder clearReverseSshConnectivity() { * * *
-     * The details needed to communicate to the source over Reverse SSH
-     * tunnel connectivity.
+     * static ip connectivity data (default, no additional details needed).
      * 
* - * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ - public com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder - getReverseSshConnectivityBuilder() { - return getReverseSshConnectivityFieldBuilder().getBuilder(); + public com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder + getStaticIpConnectivityBuilder() { + return getStaticIpConnectivityFieldBuilder().getBuilder(); } /** * * *
-     * The details needed to communicate to the source over Reverse SSH
-     * tunnel connectivity.
+     * static ip connectivity data (default, no additional details needed).
      * 
* - * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ @java.lang.Override - public com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder - getReverseSshConnectivityOrBuilder() { - if ((connectivityCase_ == 101) && (reverseSshConnectivityBuilder_ != null)) { - return reverseSshConnectivityBuilder_.getMessageOrBuilder(); + public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder + getStaticIpConnectivityOrBuilder() { + if ((connectivityCase_ == 103) && (staticIpConnectivityBuilder_ != null)) { + return staticIpConnectivityBuilder_.getMessageOrBuilder(); } else { - if (connectivityCase_ == 101) { - return (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_; + if (connectivityCase_ == 103) { + return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; } - return com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); + return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); } } /** * * *
-     * The details needed to communicate to the source over Reverse SSH
-     * tunnel connectivity.
+     * static ip connectivity data (default, no additional details needed).
      * 
* - * .google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101; + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ReverseSshConnectivity, - com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, - com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder> - getReverseSshConnectivityFieldBuilder() { - if (reverseSshConnectivityBuilder_ == null) { - if (!(connectivityCase_ == 101)) { - connectivity_ = com.google.cloud.clouddms.v1.ReverseSshConnectivity.getDefaultInstance(); + com.google.cloud.clouddms.v1.StaticIpConnectivity, + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, + com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> + getStaticIpConnectivityFieldBuilder() { + if (staticIpConnectivityBuilder_ == null) { + if (!(connectivityCase_ == 103)) { + connectivity_ = com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); } - reverseSshConnectivityBuilder_ = + staticIpConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.ReverseSshConnectivity, - com.google.cloud.clouddms.v1.ReverseSshConnectivity.Builder, - com.google.cloud.clouddms.v1.ReverseSshConnectivityOrBuilder>( - (com.google.cloud.clouddms.v1.ReverseSshConnectivity) connectivity_, + com.google.cloud.clouddms.v1.StaticIpConnectivity, + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, + com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder>( + (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_, getParentForChildren(), isClean()); connectivity_ = null; } - connectivityCase_ = 101; + connectivityCase_ = 103; onChanged(); - return reverseSshConnectivityBuilder_; + return staticIpConnectivityBuilder_; } + private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VpcPeeringConnectivity, - com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, - com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder> - vpcPeeringConnectivityBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** * * *
-     * The details of the VPC network that the source database is located in.
+     * Output only. The duration of the migration job (in seconds). A duration in
+     * seconds with up to nine fractional digits, terminated by 's'. Example:
+     * "3.5s".
      * 
* - * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return Whether the vpcPeeringConnectivity field is set. + * @return Whether the duration field is set. */ - @java.lang.Override - public boolean hasVpcPeeringConnectivity() { - return connectivityCase_ == 102; + public boolean hasDuration() { + return ((bitField0_ & 0x00008000) != 0); } /** * * *
-     * The details of the VPC network that the source database is located in.
+     * Output only. The duration of the migration job (in seconds). A duration in
+     * seconds with up to nine fractional digits, terminated by 's'. Example:
+     * "3.5s".
      * 
* - * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The vpcPeeringConnectivity. + * @return The duration. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.VpcPeeringConnectivity getVpcPeeringConnectivity() { - if (vpcPeeringConnectivityBuilder_ == null) { - if (connectivityCase_ == 102) { - return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; - } - return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } else { - if (connectivityCase_ == 102) { - return vpcPeeringConnectivityBuilder_.getMessage(); - } - return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); + return durationBuilder_.getMessage(); } } /** * * *
-     * The details of the VPC network that the source database is located in.
+     * Output only. The duration of the migration job (in seconds). A duration in
+     * seconds with up to nine fractional digits, terminated by 's'. Example:
+     * "3.5s".
      * 
* - * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setVpcPeeringConnectivity( - com.google.cloud.clouddms.v1.VpcPeeringConnectivity value) { - if (vpcPeeringConnectivityBuilder_ == null) { + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - connectivity_ = value; - onChanged(); + duration_ = value; } else { - vpcPeeringConnectivityBuilder_.setMessage(value); + durationBuilder_.setMessage(value); } - connectivityCase_ = 102; + bitField0_ |= 0x00008000; + onChanged(); return this; } /** * * *
-     * The details of the VPC network that the source database is located in.
+     * Output only. The duration of the migration job (in seconds). A duration in
+     * seconds with up to nine fractional digits, terminated by 's'. Example:
+     * "3.5s".
      * 
* - * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setVpcPeeringConnectivity( - com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder builderForValue) { - if (vpcPeeringConnectivityBuilder_ == null) { - connectivity_ = builderForValue.build(); - onChanged(); + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); } else { - vpcPeeringConnectivityBuilder_.setMessage(builderForValue.build()); + durationBuilder_.setMessage(builderForValue.build()); } - connectivityCase_ = 102; + bitField0_ |= 0x00008000; + onChanged(); return this; } /** * * *
-     * The details of the VPC network that the source database is located in.
+     * Output only. The duration of the migration job (in seconds). A duration in
+     * seconds with up to nine fractional digits, terminated by 's'. Example:
+     * "3.5s".
      * 
* - * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeVpcPeeringConnectivity( - com.google.cloud.clouddms.v1.VpcPeeringConnectivity value) { - if (vpcPeeringConnectivityBuilder_ == null) { - if (connectivityCase_ == 102 - && connectivity_ - != com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance()) { - connectivity_ = - com.google.cloud.clouddms.v1.VpcPeeringConnectivity.newBuilder( - (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_) - .mergeFrom(value) - .buildPartial(); + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && duration_ != null + && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDurationBuilder().mergeFrom(value); } else { - connectivity_ = value; + duration_ = value; } - onChanged(); } else { - if (connectivityCase_ == 102) { - vpcPeeringConnectivityBuilder_.mergeFrom(value); - } else { - vpcPeeringConnectivityBuilder_.setMessage(value); - } + durationBuilder_.mergeFrom(value); } - connectivityCase_ = 102; + bitField0_ |= 0x00008000; + onChanged(); return this; } /** * * *
-     * The details of the VPC network that the source database is located in.
+     * Output only. The duration of the migration job (in seconds). A duration in
+     * seconds with up to nine fractional digits, terminated by 's'. Example:
+     * "3.5s".
      * 
* - * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearVpcPeeringConnectivity() { - if (vpcPeeringConnectivityBuilder_ == null) { - if (connectivityCase_ == 102) { - connectivityCase_ = 0; - connectivity_ = null; - onChanged(); - } - } else { - if (connectivityCase_ == 102) { - connectivityCase_ = 0; - connectivity_ = null; - } - vpcPeeringConnectivityBuilder_.clear(); + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00008000); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; } + onChanged(); return this; } /** * * *
-     * The details of the VPC network that the source database is located in.
+     * Output only. The duration of the migration job (in seconds). A duration in
+     * seconds with up to nine fractional digits, terminated by 's'. Example:
+     * "3.5s".
      * 
* - * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder - getVpcPeeringConnectivityBuilder() { - return getVpcPeeringConnectivityFieldBuilder().getBuilder(); + public com.google.protobuf.Duration.Builder getDurationBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getDurationFieldBuilder().getBuilder(); } /** * * *
-     * The details of the VPC network that the source database is located in.
+     * Output only. The duration of the migration job (in seconds). A duration in
+     * seconds with up to nine fractional digits, terminated by 's'. Example:
+     * "3.5s".
      * 
* - * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder - getVpcPeeringConnectivityOrBuilder() { - if ((connectivityCase_ == 102) && (vpcPeeringConnectivityBuilder_ != null)) { - return vpcPeeringConnectivityBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); } else { - if (connectivityCase_ == 102) { - return (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_; - } - return com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** * * *
-     * The details of the VPC network that the source database is located in.
+     * Output only. The duration of the migration job (in seconds). A duration in
+     * seconds with up to nine fractional digits, terminated by 's'. Example:
+     * "3.5s".
      * 
* - * .google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VpcPeeringConnectivity, - com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, - com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder> - getVpcPeeringConnectivityFieldBuilder() { - if (vpcPeeringConnectivityBuilder_ == null) { - if (!(connectivityCase_ == 102)) { - connectivity_ = com.google.cloud.clouddms.v1.VpcPeeringConnectivity.getDefaultInstance(); - } - vpcPeeringConnectivityBuilder_ = + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.VpcPeeringConnectivity, - com.google.cloud.clouddms.v1.VpcPeeringConnectivity.Builder, - com.google.cloud.clouddms.v1.VpcPeeringConnectivityOrBuilder>( - (com.google.cloud.clouddms.v1.VpcPeeringConnectivity) connectivity_, - getParentForChildren(), - isClean()); - connectivity_ = null; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); + duration_ = null; } - connectivityCase_ = 102; - onChanged(); - return vpcPeeringConnectivityBuilder_; + return durationBuilder_; } + private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.StaticIpConnectivity, - com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, - com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> - staticIpConnectivityBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** * * *
-     * static ip connectivity data (default, no additional details needed).
+     * Output only. The error details in case of state FAILED.
      * 
* - * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the staticIpConnectivity field is set. + * @return Whether the error field is set. */ - @java.lang.Override - public boolean hasStaticIpConnectivity() { - return connectivityCase_ == 103; + public boolean hasError() { + return ((bitField0_ & 0x00010000) != 0); } /** * * *
-     * static ip connectivity data (default, no additional details needed).
+     * Output only. The error details in case of state FAILED.
      * 
* - * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The staticIpConnectivity. + * @return The error. */ - @java.lang.Override - public com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity() { - if (staticIpConnectivityBuilder_ == null) { - if (connectivityCase_ == 103) { - return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; - } - return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } else { - if (connectivityCase_ == 103) { - return staticIpConnectivityBuilder_.getMessage(); - } - return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); + return errorBuilder_.getMessage(); } } /** * * *
-     * static ip connectivity data (default, no additional details needed).
+     * Output only. The error details in case of state FAILED.
      * 
* - * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStaticIpConnectivity( - com.google.cloud.clouddms.v1.StaticIpConnectivity value) { - if (staticIpConnectivityBuilder_ == null) { + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - connectivity_ = value; - onChanged(); + error_ = value; } else { - staticIpConnectivityBuilder_.setMessage(value); + errorBuilder_.setMessage(value); } - connectivityCase_ = 103; + bitField0_ |= 0x00010000; + onChanged(); return this; } /** * * *
-     * static ip connectivity data (default, no additional details needed).
+     * Output only. The error details in case of state FAILED.
      * 
* - * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStaticIpConnectivity( - com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder builderForValue) { - if (staticIpConnectivityBuilder_ == null) { - connectivity_ = builderForValue.build(); - onChanged(); + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); } else { - staticIpConnectivityBuilder_.setMessage(builderForValue.build()); + errorBuilder_.setMessage(builderForValue.build()); } - connectivityCase_ = 103; + bitField0_ |= 0x00010000; + onChanged(); return this; } /** * * *
-     * static ip connectivity data (default, no additional details needed).
+     * Output only. The error details in case of state FAILED.
      * 
* - * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeStaticIpConnectivity( - com.google.cloud.clouddms.v1.StaticIpConnectivity value) { - if (staticIpConnectivityBuilder_ == null) { - if (connectivityCase_ == 103 - && connectivity_ - != com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance()) { - connectivity_ = - com.google.cloud.clouddms.v1.StaticIpConnectivity.newBuilder( - (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_) - .mergeFrom(value) - .buildPartial(); + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { - connectivity_ = value; + error_ = value; } - onChanged(); } else { - if (connectivityCase_ == 103) { - staticIpConnectivityBuilder_.mergeFrom(value); - } else { - staticIpConnectivityBuilder_.setMessage(value); - } + errorBuilder_.mergeFrom(value); } - connectivityCase_ = 103; + bitField0_ |= 0x00010000; + onChanged(); return this; } /** * * *
-     * static ip connectivity data (default, no additional details needed).
+     * Output only. The error details in case of state FAILED.
      * 
* - * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder clearStaticIpConnectivity() { - if (staticIpConnectivityBuilder_ == null) { - if (connectivityCase_ == 103) { - connectivityCase_ = 0; - connectivity_ = null; - onChanged(); - } - } else { - if (connectivityCase_ == 103) { - connectivityCase_ = 0; - connectivity_ = null; - } - staticIpConnectivityBuilder_.clear(); + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00010000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; } + onChanged(); return this; } /** * * *
-     * static ip connectivity data (default, no additional details needed).
+     * Output only. The error details in case of state FAILED.
      * 
* - * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder - getStaticIpConnectivityBuilder() { - return getStaticIpConnectivityFieldBuilder().getBuilder(); + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getErrorFieldBuilder().getBuilder(); } /** * * *
-     * static ip connectivity data (default, no additional details needed).
+     * Output only. The error details in case of state FAILED.
      * 
* - * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - @java.lang.Override - public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder - getStaticIpConnectivityOrBuilder() { - if ((connectivityCase_ == 103) && (staticIpConnectivityBuilder_ != null)) { - return staticIpConnectivityBuilder_.getMessageOrBuilder(); + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); } else { - if (connectivityCase_ == 103) { - return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; - } - return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } } /** * * *
-     * static ip connectivity data (default, no additional details needed).
+     * Output only. The error details in case of state FAILED.
      * 
* - * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103; + * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.StaticIpConnectivity, - com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, - com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> - getStaticIpConnectivityFieldBuilder() { - if (staticIpConnectivityBuilder_ == null) { - if (!(connectivityCase_ == 103)) { - connectivity_ = com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); - } - staticIpConnectivityBuilder_ = + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.StaticIpConnectivity, - com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, - com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder>( - (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_, - getParentForChildren(), - isClean()); - connectivity_ = null; + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; } - connectivityCase_ = 103; - onChanged(); - return staticIpConnectivityBuilder_; + return errorBuilder_; } - private com.google.protobuf.Duration duration_; + private com.google.cloud.clouddms.v1.DatabaseType sourceDatabase_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; + com.google.cloud.clouddms.v1.DatabaseType, + com.google.cloud.clouddms.v1.DatabaseType.Builder, + com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> + sourceDatabaseBuilder_; /** * * *
-     * Output only. The duration of the migration job (in seconds). A duration in seconds
-     * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+     * The database engine type and provider of the source.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.DatabaseType source_database = 14; * - * @return Whether the duration field is set. + * @return Whether the sourceDatabase field is set. */ - public boolean hasDuration() { - return ((bitField0_ & 0x00004000) != 0); + public boolean hasSourceDatabase() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *
-     * Output only. The duration of the migration job (in seconds). A duration in seconds
-     * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+     * The database engine type and provider of the source.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.DatabaseType source_database = 14; * - * @return The duration. + * @return The sourceDatabase. */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + public com.google.cloud.clouddms.v1.DatabaseType getSourceDatabase() { + if (sourceDatabaseBuilder_ == null) { + return sourceDatabase_ == null + ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() + : sourceDatabase_; } else { - return durationBuilder_.getMessage(); + return sourceDatabaseBuilder_.getMessage(); } } /** * * *
-     * Output only. The duration of the migration job (in seconds). A duration in seconds
-     * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+     * The database engine type and provider of the source.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.DatabaseType source_database = 14; */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { + public Builder setSourceDatabase(com.google.cloud.clouddms.v1.DatabaseType value) { + if (sourceDatabaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - duration_ = value; + sourceDatabase_ = value; } else { - durationBuilder_.setMessage(value); + sourceDatabaseBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5051,20 +7834,19 @@ public Builder setDuration(com.google.protobuf.Duration value) { * * *
-     * Output only. The duration of the migration job (in seconds). A duration in seconds
-     * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+     * The database engine type and provider of the source.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.DatabaseType source_database = 14; */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); + public Builder setSourceDatabase( + com.google.cloud.clouddms.v1.DatabaseType.Builder builderForValue) { + if (sourceDatabaseBuilder_ == null) { + sourceDatabase_ = builderForValue.build(); } else { - durationBuilder_.setMessage(builderForValue.build()); + sourceDatabaseBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5072,26 +7854,24 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) * * *
-     * Output only. The duration of the migration job (in seconds). A duration in seconds
-     * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+     * The database engine type and provider of the source.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.DatabaseType source_database = 14; */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && duration_ != null - && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getDurationBuilder().mergeFrom(value); + public Builder mergeSourceDatabase(com.google.cloud.clouddms.v1.DatabaseType value) { + if (sourceDatabaseBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && sourceDatabase_ != null + && sourceDatabase_ != com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance()) { + getSourceDatabaseBuilder().mergeFrom(value); } else { - duration_ = value; + sourceDatabase_ = value; } } else { - durationBuilder_.mergeFrom(value); + sourceDatabaseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5099,19 +7879,17 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { * * *
-     * Output only. The duration of the migration job (in seconds). A duration in seconds
-     * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+     * The database engine type and provider of the source.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.DatabaseType source_database = 14; */ - public Builder clearDuration() { - bitField0_ = (bitField0_ & ~0x00004000); - duration_ = null; - if (durationBuilder_ != null) { - durationBuilder_.dispose(); - durationBuilder_ = null; + public Builder clearSourceDatabase() { + bitField0_ = (bitField0_ & ~0x00020000); + sourceDatabase_ = null; + if (sourceDatabaseBuilder_ != null) { + sourceDatabaseBuilder_.dispose(); + sourceDatabaseBuilder_ = null; } onChanged(); return this; @@ -5120,119 +7898,119 @@ public Builder clearDuration() { * * *
-     * Output only. The duration of the migration job (in seconds). A duration in seconds
-     * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+     * The database engine type and provider of the source.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.DatabaseType source_database = 14; */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - bitField0_ |= 0x00004000; + public com.google.cloud.clouddms.v1.DatabaseType.Builder getSourceDatabaseBuilder() { + bitField0_ |= 0x00020000; onChanged(); - return getDurationFieldBuilder().getBuilder(); + return getSourceDatabaseFieldBuilder().getBuilder(); } /** * * *
-     * Output only. The duration of the migration job (in seconds). A duration in seconds
-     * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+     * The database engine type and provider of the source.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.DatabaseType source_database = 14; */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); + public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getSourceDatabaseOrBuilder() { + if (sourceDatabaseBuilder_ != null) { + return sourceDatabaseBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return sourceDatabase_ == null + ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() + : sourceDatabase_; } } /** * * *
-     * Output only. The duration of the migration job (in seconds). A duration in seconds
-     * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+     * The database engine type and provider of the source.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.clouddms.v1.DatabaseType source_database = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = + com.google.cloud.clouddms.v1.DatabaseType, + com.google.cloud.clouddms.v1.DatabaseType.Builder, + com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> + getSourceDatabaseFieldBuilder() { + if (sourceDatabaseBuilder_ == null) { + sourceDatabaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); - duration_ = null; + com.google.cloud.clouddms.v1.DatabaseType, + com.google.cloud.clouddms.v1.DatabaseType.Builder, + com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder>( + getSourceDatabase(), getParentForChildren(), isClean()); + sourceDatabase_ = null; } - return durationBuilder_; + return sourceDatabaseBuilder_; } - private com.google.rpc.Status error_; + private com.google.cloud.clouddms.v1.DatabaseType destinationDatabase_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.cloud.clouddms.v1.DatabaseType, + com.google.cloud.clouddms.v1.DatabaseType.Builder, + com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> + destinationDatabaseBuilder_; /** * * *
-     * Output only. The error details in case of state FAILED.
+     * The database engine type and provider of the destination.
      * 
* - * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; * - * @return Whether the error field is set. + * @return Whether the destinationDatabase field is set. */ - public boolean hasError() { - return ((bitField0_ & 0x00008000) != 0); + public boolean hasDestinationDatabase() { + return ((bitField0_ & 0x00040000) != 0); } /** * * *
-     * Output only. The error details in case of state FAILED.
+     * The database engine type and provider of the destination.
      * 
* - * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; * - * @return The error. + * @return The destinationDatabase. */ - public com.google.rpc.Status getError() { - if (errorBuilder_ == null) { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + public com.google.cloud.clouddms.v1.DatabaseType getDestinationDatabase() { + if (destinationDatabaseBuilder_ == null) { + return destinationDatabase_ == null + ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() + : destinationDatabase_; } else { - return errorBuilder_.getMessage(); + return destinationDatabaseBuilder_.getMessage(); } } /** * * *
-     * Output only. The error details in case of state FAILED.
+     * The database engine type and provider of the destination.
      * 
* - * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; */ - public Builder setError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { + public Builder setDestinationDatabase(com.google.cloud.clouddms.v1.DatabaseType value) { + if (destinationDatabaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - error_ = value; + destinationDatabase_ = value; } else { - errorBuilder_.setMessage(value); + destinationDatabaseBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5240,18 +8018,19 @@ public Builder setError(com.google.rpc.Status value) { * * *
-     * Output only. The error details in case of state FAILED.
+     * The database engine type and provider of the destination.
      * 
* - * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { - if (errorBuilder_ == null) { - error_ = builderForValue.build(); + public Builder setDestinationDatabase( + com.google.cloud.clouddms.v1.DatabaseType.Builder builderForValue) { + if (destinationDatabaseBuilder_ == null) { + destinationDatabase_ = builderForValue.build(); } else { - errorBuilder_.setMessage(builderForValue.build()); + destinationDatabaseBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5259,24 +8038,25 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { * * *
-     * Output only. The error details in case of state FAILED.
+     * The database engine type and provider of the destination.
      * 
* - * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; */ - public Builder mergeError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && error_ != null - && error_ != com.google.rpc.Status.getDefaultInstance()) { - getErrorBuilder().mergeFrom(value); + public Builder mergeDestinationDatabase(com.google.cloud.clouddms.v1.DatabaseType value) { + if (destinationDatabaseBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && destinationDatabase_ != null + && destinationDatabase_ + != com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance()) { + getDestinationDatabaseBuilder().mergeFrom(value); } else { - error_ = value; + destinationDatabase_ = value; } } else { - errorBuilder_.mergeFrom(value); + destinationDatabaseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5284,17 +8064,17 @@ public Builder mergeError(com.google.rpc.Status value) { * * *
-     * Output only. The error details in case of state FAILED.
+     * The database engine type and provider of the destination.
      * 
* - * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; */ - public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00008000); - error_ = null; - if (errorBuilder_ != null) { - errorBuilder_.dispose(); - errorBuilder_ = null; + public Builder clearDestinationDatabase() { + bitField0_ = (bitField0_ & ~0x00040000); + destinationDatabase_ = null; + if (destinationDatabaseBuilder_ != null) { + destinationDatabaseBuilder_.dispose(); + destinationDatabaseBuilder_ = null; } onChanged(); return this; @@ -5303,114 +8083,123 @@ public Builder clearError() { * * *
-     * Output only. The error details in case of state FAILED.
+     * The database engine type and provider of the destination.
      * 
* - * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; */ - public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00008000; + public com.google.cloud.clouddms.v1.DatabaseType.Builder getDestinationDatabaseBuilder() { + bitField0_ |= 0x00040000; onChanged(); - return getErrorFieldBuilder().getBuilder(); + return getDestinationDatabaseFieldBuilder().getBuilder(); } /** * * *
-     * Output only. The error details in case of state FAILED.
+     * The database engine type and provider of the destination.
      * 
* - * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; */ - public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - if (errorBuilder_ != null) { - return errorBuilder_.getMessageOrBuilder(); + public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabaseOrBuilder() { + if (destinationDatabaseBuilder_ != null) { + return destinationDatabaseBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + return destinationDatabase_ == null + ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() + : destinationDatabase_; } } /** * * *
-     * Output only. The error details in case of state FAILED.
+     * The database engine type and provider of the destination.
      * 
* - * .google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - errorBuilder_ = + com.google.cloud.clouddms.v1.DatabaseType, + com.google.cloud.clouddms.v1.DatabaseType.Builder, + com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> + getDestinationDatabaseFieldBuilder() { + if (destinationDatabaseBuilder_ == null) { + destinationDatabaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); - error_ = null; + com.google.cloud.clouddms.v1.DatabaseType, + com.google.cloud.clouddms.v1.DatabaseType.Builder, + com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder>( + getDestinationDatabase(), getParentForChildren(), isClean()); + destinationDatabase_ = null; } - return errorBuilder_; + return destinationDatabaseBuilder_; } - private com.google.cloud.clouddms.v1.DatabaseType sourceDatabase_; + private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, - com.google.cloud.clouddms.v1.DatabaseType.Builder, - com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> - sourceDatabaseBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** * * *
-     * The database engine type and provider of the source.
+     * Output only. If the migration job is completed, the time when it was
+     * completed.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return Whether the sourceDatabase field is set. + * @return Whether the endTime field is set. */ - public boolean hasSourceDatabase() { - return ((bitField0_ & 0x00010000) != 0); + public boolean hasEndTime() { + return ((bitField0_ & 0x00080000) != 0); } /** * * *
-     * The database engine type and provider of the source.
+     * Output only. If the migration job is completed, the time when it was
+     * completed.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The sourceDatabase. + * @return The endTime. */ - public com.google.cloud.clouddms.v1.DatabaseType getSourceDatabase() { - if (sourceDatabaseBuilder_ == null) { - return sourceDatabase_ == null - ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() - : sourceDatabase_; + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } else { - return sourceDatabaseBuilder_.getMessage(); + return endTimeBuilder_.getMessage(); } } /** * * *
-     * The database engine type and provider of the source.
+     * Output only. If the migration job is completed, the time when it was
+     * completed.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSourceDatabase(com.google.cloud.clouddms.v1.DatabaseType value) { - if (sourceDatabaseBuilder_ == null) { + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - sourceDatabase_ = value; + endTime_ = value; } else { - sourceDatabaseBuilder_.setMessage(value); + endTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5418,19 +8207,20 @@ public Builder setSourceDatabase(com.google.cloud.clouddms.v1.DatabaseType value * * *
-     * The database engine type and provider of the source.
+     * Output only. If the migration job is completed, the time when it was
+     * completed.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSourceDatabase( - com.google.cloud.clouddms.v1.DatabaseType.Builder builderForValue) { - if (sourceDatabaseBuilder_ == null) { - sourceDatabase_ = builderForValue.build(); + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); } else { - sourceDatabaseBuilder_.setMessage(builderForValue.build()); + endTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5438,24 +8228,26 @@ public Builder setSourceDatabase( * * *
-     * The database engine type and provider of the source.
+     * Output only. If the migration job is completed, the time when it was
+     * completed.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeSourceDatabase(com.google.cloud.clouddms.v1.DatabaseType value) { - if (sourceDatabaseBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && sourceDatabase_ != null - && sourceDatabase_ != com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance()) { - getSourceDatabaseBuilder().mergeFrom(value); + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { - sourceDatabase_ = value; + endTime_ = value; } } else { - sourceDatabaseBuilder_.mergeFrom(value); + endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5463,17 +8255,19 @@ public Builder mergeSourceDatabase(com.google.cloud.clouddms.v1.DatabaseType val * * *
-     * The database engine type and provider of the source.
+     * Output only. If the migration job is completed, the time when it was
+     * completed.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearSourceDatabase() { - bitField0_ = (bitField0_ & ~0x00010000); - sourceDatabase_ = null; - if (sourceDatabaseBuilder_ != null) { - sourceDatabaseBuilder_.dispose(); - sourceDatabaseBuilder_ = null; + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00080000); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; } onChanged(); return this; @@ -5482,119 +8276,124 @@ public Builder clearSourceDatabase() { * * *
-     * The database engine type and provider of the source.
+     * Output only. If the migration job is completed, the time when it was
+     * completed.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.clouddms.v1.DatabaseType.Builder getSourceDatabaseBuilder() { - bitField0_ |= 0x00010000; + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00080000; onChanged(); - return getSourceDatabaseFieldBuilder().getBuilder(); + return getEndTimeFieldBuilder().getBuilder(); } /** * * *
-     * The database engine type and provider of the source.
+     * Output only. If the migration job is completed, the time when it was
+     * completed.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType source_database = 14; + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getSourceDatabaseOrBuilder() { - if (sourceDatabaseBuilder_ != null) { - return sourceDatabaseBuilder_.getMessageOrBuilder(); + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); } else { - return sourceDatabase_ == null - ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() - : sourceDatabase_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** * * *
-     * The database engine type and provider of the source.
+     * Output only. If the migration job is completed, the time when it was
+     * completed.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType source_database = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, - com.google.cloud.clouddms.v1.DatabaseType.Builder, - com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> - getSourceDatabaseFieldBuilder() { - if (sourceDatabaseBuilder_ == null) { - sourceDatabaseBuilder_ = + * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, - com.google.cloud.clouddms.v1.DatabaseType.Builder, - com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder>( - getSourceDatabase(), getParentForChildren(), isClean()); - sourceDatabase_ = null; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; } - return sourceDatabaseBuilder_; + return endTimeBuilder_; } - private com.google.cloud.clouddms.v1.DatabaseType destinationDatabase_; + private com.google.cloud.clouddms.v1.ConversionWorkspaceInfo conversionWorkspace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, - com.google.cloud.clouddms.v1.DatabaseType.Builder, - com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> - destinationDatabaseBuilder_; + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo, + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceInfoOrBuilder> + conversionWorkspaceBuilder_; /** * * *
-     * The database engine type and provider of the destination.
+     * The conversion workspace used by the migration.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; * - * @return Whether the destinationDatabase field is set. + * @return Whether the conversionWorkspace field is set. */ - public boolean hasDestinationDatabase() { - return ((bitField0_ & 0x00020000) != 0); + public boolean hasConversionWorkspace() { + return ((bitField0_ & 0x00100000) != 0); } /** * * *
-     * The database engine type and provider of the destination.
+     * The conversion workspace used by the migration.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; * - * @return The destinationDatabase. + * @return The conversionWorkspace. */ - public com.google.cloud.clouddms.v1.DatabaseType getDestinationDatabase() { - if (destinationDatabaseBuilder_ == null) { - return destinationDatabase_ == null - ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() - : destinationDatabase_; + public com.google.cloud.clouddms.v1.ConversionWorkspaceInfo getConversionWorkspace() { + if (conversionWorkspaceBuilder_ == null) { + return conversionWorkspace_ == null + ? com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.getDefaultInstance() + : conversionWorkspace_; } else { - return destinationDatabaseBuilder_.getMessage(); + return conversionWorkspaceBuilder_.getMessage(); } } /** * * *
-     * The database engine type and provider of the destination.
+     * The conversion workspace used by the migration.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; */ - public Builder setDestinationDatabase(com.google.cloud.clouddms.v1.DatabaseType value) { - if (destinationDatabaseBuilder_ == null) { + public Builder setConversionWorkspace( + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo value) { + if (conversionWorkspaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - destinationDatabase_ = value; + conversionWorkspace_ = value; } else { - destinationDatabaseBuilder_.setMessage(value); + conversionWorkspaceBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5602,19 +8401,19 @@ public Builder setDestinationDatabase(com.google.cloud.clouddms.v1.DatabaseType * * *
-     * The database engine type and provider of the destination.
+     * The conversion workspace used by the migration.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; */ - public Builder setDestinationDatabase( - com.google.cloud.clouddms.v1.DatabaseType.Builder builderForValue) { - if (destinationDatabaseBuilder_ == null) { - destinationDatabase_ = builderForValue.build(); + public Builder setConversionWorkspace( + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.Builder builderForValue) { + if (conversionWorkspaceBuilder_ == null) { + conversionWorkspace_ = builderForValue.build(); } else { - destinationDatabaseBuilder_.setMessage(builderForValue.build()); + conversionWorkspaceBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5622,25 +8421,26 @@ public Builder setDestinationDatabase( * * *
-     * The database engine type and provider of the destination.
+     * The conversion workspace used by the migration.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; */ - public Builder mergeDestinationDatabase(com.google.cloud.clouddms.v1.DatabaseType value) { - if (destinationDatabaseBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && destinationDatabase_ != null - && destinationDatabase_ - != com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance()) { - getDestinationDatabaseBuilder().mergeFrom(value); + public Builder mergeConversionWorkspace( + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo value) { + if (conversionWorkspaceBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && conversionWorkspace_ != null + && conversionWorkspace_ + != com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.getDefaultInstance()) { + getConversionWorkspaceBuilder().mergeFrom(value); } else { - destinationDatabase_ = value; + conversionWorkspace_ = value; } } else { - destinationDatabaseBuilder_.mergeFrom(value); + conversionWorkspaceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5648,17 +8448,17 @@ public Builder mergeDestinationDatabase(com.google.cloud.clouddms.v1.DatabaseTyp * * *
-     * The database engine type and provider of the destination.
+     * The conversion workspace used by the migration.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; */ - public Builder clearDestinationDatabase() { - bitField0_ = (bitField0_ & ~0x00020000); - destinationDatabase_ = null; - if (destinationDatabaseBuilder_ != null) { - destinationDatabaseBuilder_.dispose(); - destinationDatabaseBuilder_ = null; + public Builder clearConversionWorkspace() { + bitField0_ = (bitField0_ & ~0x00100000); + conversionWorkspace_ = null; + if (conversionWorkspaceBuilder_ != null) { + conversionWorkspaceBuilder_.dispose(); + conversionWorkspaceBuilder_ = null; } onChanged(); return this; @@ -5667,120 +8467,137 @@ public Builder clearDestinationDatabase() { * * *
-     * The database engine type and provider of the destination.
+     * The conversion workspace used by the migration.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; */ - public com.google.cloud.clouddms.v1.DatabaseType.Builder getDestinationDatabaseBuilder() { - bitField0_ |= 0x00020000; + public com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.Builder + getConversionWorkspaceBuilder() { + bitField0_ |= 0x00100000; onChanged(); - return getDestinationDatabaseFieldBuilder().getBuilder(); + return getConversionWorkspaceFieldBuilder().getBuilder(); } /** * * *
-     * The database engine type and provider of the destination.
+     * The conversion workspace used by the migration.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; */ - public com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder getDestinationDatabaseOrBuilder() { - if (destinationDatabaseBuilder_ != null) { - return destinationDatabaseBuilder_.getMessageOrBuilder(); + public com.google.cloud.clouddms.v1.ConversionWorkspaceInfoOrBuilder + getConversionWorkspaceOrBuilder() { + if (conversionWorkspaceBuilder_ != null) { + return conversionWorkspaceBuilder_.getMessageOrBuilder(); } else { - return destinationDatabase_ == null - ? com.google.cloud.clouddms.v1.DatabaseType.getDefaultInstance() - : destinationDatabase_; + return conversionWorkspace_ == null + ? com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.getDefaultInstance() + : conversionWorkspace_; } } /** * * *
-     * The database engine type and provider of the destination.
+     * The conversion workspace used by the migration.
      * 
* - * .google.cloud.clouddms.v1.DatabaseType destination_database = 15; + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, - com.google.cloud.clouddms.v1.DatabaseType.Builder, - com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder> - getDestinationDatabaseFieldBuilder() { - if (destinationDatabaseBuilder_ == null) { - destinationDatabaseBuilder_ = + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo, + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceInfoOrBuilder> + getConversionWorkspaceFieldBuilder() { + if (conversionWorkspaceBuilder_ == null) { + conversionWorkspaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.clouddms.v1.DatabaseType, - com.google.cloud.clouddms.v1.DatabaseType.Builder, - com.google.cloud.clouddms.v1.DatabaseTypeOrBuilder>( - getDestinationDatabase(), getParentForChildren(), isClean()); - destinationDatabase_ = null; + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo, + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceInfoOrBuilder>( + getConversionWorkspace(), getParentForChildren(), isClean()); + conversionWorkspace_ = null; } - return destinationDatabaseBuilder_; + return conversionWorkspaceBuilder_; } - private com.google.protobuf.Timestamp endTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + private java.lang.Object filter_ = ""; /** * * *
-     * Output only. If the migration job is completed, the time when it was completed.
+     * This field can be used to select the entities to migrate as part of
+     * the migration job. It uses AIP-160 notation to select a subset of the
+     * entities configured on the associated conversion-workspace. This field
+     * should not be set on migration-jobs that are not associated with a
+     * conversion workspace.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string filter = 20; * - * @return Whether the endTime field is set. + * @return The filter. */ - public boolean hasEndTime() { - return ((bitField0_ & 0x00040000) != 0); + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Output only. If the migration job is completed, the time when it was completed.
+     * This field can be used to select the entities to migrate as part of
+     * the migration job. It uses AIP-160 notation to select a subset of the
+     * entities configured on the associated conversion-workspace. This field
+     * should not be set on migration-jobs that are not associated with a
+     * conversion workspace.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string filter = 20; * - * @return The endTime. + * @return The bytes for filter. */ - public com.google.protobuf.Timestamp getEndTime() { - if (endTimeBuilder_ == null) { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; } else { - return endTimeBuilder_.getMessage(); + return (com.google.protobuf.ByteString) ref; } } /** * * *
-     * Output only. If the migration job is completed, the time when it was completed.
+     * This field can be used to select the entities to migrate as part of
+     * the migration job. It uses AIP-160 notation to select a subset of the
+     * entities configured on the associated conversion-workspace. This field
+     * should not be set on migration-jobs that are not associated with a
+     * conversion workspace.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string filter = 20; + * + * @param value The filter to set. + * @return This builder for chaining. */ - public Builder setEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endTime_ = value; - } else { - endTimeBuilder_.setMessage(value); + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00040000; + filter_ = value; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -5788,19 +8605,20 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. If the migration job is completed, the time when it was completed.
+     * This field can be used to select the entities to migrate as part of
+     * the migration job. It uses AIP-160 notation to select a subset of the
+     * entities configured on the associated conversion-workspace. This field
+     * should not be set on migration-jobs that are not associated with a
+     * conversion workspace.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string filter = 20; + * + * @return This builder for chaining. */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (endTimeBuilder_ == null) { - endTime_ = builderForValue.build(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -5808,105 +8626,183 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) * * *
-     * Output only. If the migration job is completed, the time when it was completed.
+     * This field can be used to select the entities to migrate as part of
+     * the migration job. It uses AIP-160 notation to select a subset of the
+     * entities configured on the associated conversion-workspace. This field
+     * should not be set on migration-jobs that are not associated with a
+     * conversion workspace.
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string filter = 20; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. */ - public Builder mergeEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getEndTimeBuilder().mergeFrom(value); - } else { - endTime_ = value; - } - } else { - endTimeBuilder_.mergeFrom(value); + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00040000; + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00200000; onChanged(); return this; } + + private java.lang.Object cmekKeyName_ = ""; /** * * *
-     * Output only. If the migration job is completed, the time when it was completed.
+     * The CMEK (customer-managed encryption key) fully qualified key name used
+     * for the migration job.
+     * This field supports all migration jobs types except for:
+     * * Mysql to Mysql (use the cmek field in the cloudsql connection profile
+     * instead).
+     * * PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql
+     * connection profile instead).
+     * * PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb
+     * connection profile instead).
+     * Each Cloud CMEK key has the following format:
+     * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string cmek_key_name = 21; + * + * @return The cmekKeyName. */ - public Builder clearEndTime() { - bitField0_ = (bitField0_ & ~0x00040000); - endTime_ = null; - if (endTimeBuilder_ != null) { - endTimeBuilder_.dispose(); - endTimeBuilder_ = null; + public java.lang.String getCmekKeyName() { + java.lang.Object ref = cmekKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cmekKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; } - onChanged(); - return this; } /** * * *
-     * Output only. If the migration job is completed, the time when it was completed.
+     * The CMEK (customer-managed encryption key) fully qualified key name used
+     * for the migration job.
+     * This field supports all migration jobs types except for:
+     * * Mysql to Mysql (use the cmek field in the cloudsql connection profile
+     * instead).
+     * * PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql
+     * connection profile instead).
+     * * PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb
+     * connection profile instead).
+     * Each Cloud CMEK key has the following format:
+     * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string cmek_key_name = 21; + * + * @return The bytes for cmekKeyName. */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); + public com.google.protobuf.ByteString getCmekKeyNameBytes() { + java.lang.Object ref = cmekKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cmekKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * Output only. If the migration job is completed, the time when it was completed.
+     * The CMEK (customer-managed encryption key) fully qualified key name used
+     * for the migration job.
+     * This field supports all migration jobs types except for:
+     * * Mysql to Mysql (use the cmek field in the cloudsql connection profile
+     * instead).
+     * * PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql
+     * connection profile instead).
+     * * PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb
+     * connection profile instead).
+     * Each Cloud CMEK key has the following format:
+     * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string cmek_key_name = 21; + * + * @param value The cmekKeyName to set. + * @return This builder for chaining. */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - if (endTimeBuilder_ != null) { - return endTimeBuilder_.getMessageOrBuilder(); - } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + public Builder setCmekKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + cmekKeyName_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; } /** * * *
-     * Output only. If the migration job is completed, the time when it was completed.
+     * The CMEK (customer-managed encryption key) fully qualified key name used
+     * for the migration job.
+     * This field supports all migration jobs types except for:
+     * * Mysql to Mysql (use the cmek field in the cloudsql connection profile
+     * instead).
+     * * PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql
+     * connection profile instead).
+     * * PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb
+     * connection profile instead).
+     * Each Cloud CMEK key has the following format:
+     * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
      * 
* - * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string cmek_key_name = 21; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getEndTimeFieldBuilder() { - if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); - endTime_ = null; + public Builder clearCmekKeyName() { + cmekKeyName_ = getDefaultInstance().getCmekKeyName(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + return this; + } + /** + * + * + *
+     * The CMEK (customer-managed encryption key) fully qualified key name used
+     * for the migration job.
+     * This field supports all migration jobs types except for:
+     * * Mysql to Mysql (use the cmek field in the cloudsql connection profile
+     * instead).
+     * * PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql
+     * connection profile instead).
+     * * PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb
+     * connection profile instead).
+     * Each Cloud CMEK key has the following format:
+     * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+     * 
+ * + * string cmek_key_name = 21; + * + * @param value The bytes for cmekKeyName to set. + * @return This builder for chaining. + */ + public Builder setCmekKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return endTimeBuilder_; + checkByteStringIsUtf8(value); + cmekKeyName_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; } @java.lang.Override diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java index 17c869993c23..5ce61532b464 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobOrBuilder.java @@ -28,7 +28,7 @@ public interface MigrationJobOrBuilder * *
    * The name (URI) of this migration job resource, in the form of:
-   * projects/{project}/locations/{location}/instances/{instance}.
+   * projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
    * 
* * string name = 1; @@ -41,7 +41,7 @@ public interface MigrationJobOrBuilder * *
    * The name (URI) of this migration job resource, in the form of:
-   * projects/{project}/locations/{location}/instances/{instance}.
+   * projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
    * 
* * string name = 1; @@ -98,8 +98,8 @@ public interface MigrationJobOrBuilder * * *
-   * Output only. The timestamp when the migration job resource was last updated.
-   * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+   * Output only. The timestamp when the migration job resource was last
+   * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* @@ -113,8 +113,8 @@ public interface MigrationJobOrBuilder * * *
-   * Output only. The timestamp when the migration job resource was last updated.
-   * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+   * Output only. The timestamp when the migration job resource was last
+   * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* @@ -128,8 +128,8 @@ public interface MigrationJobOrBuilder * * *
-   * Output only. The timestamp when the migration job resource was last updated.
-   * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
+   * Output only. The timestamp when the migration job resource was last
+   * updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
    * Example: "2014-10-02T15:01:23.045123456Z".
    * 
* @@ -325,6 +325,7 @@ java.lang.String getLabelsOrDefault( *
    * The path to the dump file in Google Cloud Storage,
    * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+   * This field and the "dump_flags" field are mutually exclusive.
    * 
* * string dump_path = 9; @@ -338,6 +339,7 @@ java.lang.String getLabelsOrDefault( *
    * The path to the dump file in Google Cloud Storage,
    * in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).
+   * This field and the "dump_flags" field are mutually exclusive.
    * 
* * string dump_path = 9; @@ -346,6 +348,44 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getDumpPathBytes(); + /** + * + * + *
+   * The initial dump flags.
+   * This field and the "dump_path" field are mutually exclusive.
+   * 
+ * + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; + * + * @return Whether the dumpFlags field is set. + */ + boolean hasDumpFlags(); + /** + * + * + *
+   * The initial dump flags.
+   * This field and the "dump_path" field are mutually exclusive.
+   * 
+ * + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; + * + * @return The dumpFlags. + */ + com.google.cloud.clouddms.v1.MigrationJob.DumpFlags getDumpFlags(); + /** + * + * + *
+   * The initial dump flags.
+   * This field and the "dump_path" field are mutually exclusive.
+   * 
+ * + * .google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17; + */ + com.google.cloud.clouddms.v1.MigrationJob.DumpFlagsOrBuilder getDumpFlagsOrBuilder(); + /** * * @@ -508,8 +548,9 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The duration of the migration job (in seconds). A duration in seconds
-   * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+   * Output only. The duration of the migration job (in seconds). A duration in
+   * seconds with up to nine fractional digits, terminated by 's'. Example:
+   * "3.5s".
    * 
* * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -522,8 +563,9 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The duration of the migration job (in seconds). A duration in seconds
-   * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+   * Output only. The duration of the migration job (in seconds). A duration in
+   * seconds with up to nine fractional digits, terminated by 's'. Example:
+   * "3.5s".
    * 
* * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -536,8 +578,9 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The duration of the migration job (in seconds). A duration in seconds
-   * with up to nine fractional digits, terminated by 's'. Example: "3.5s".
+   * Output only. The duration of the migration job (in seconds). A duration in
+   * seconds with up to nine fractional digits, terminated by 's'. Example:
+   * "3.5s".
    * 
* * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -654,7 +697,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. If the migration job is completed, the time when it was completed.
+   * Output only. If the migration job is completed, the time when it was
+   * completed.
    * 
* * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -667,7 +711,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. If the migration job is completed, the time when it was completed.
+   * Output only. If the migration job is completed, the time when it was
+   * completed.
    * 
* * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -680,7 +725,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. If the migration job is completed, the time when it was completed.
+   * Output only. If the migration job is completed, the time when it was
+   * completed.
    * 
* * .google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -688,5 +734,118 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + /** + * + * + *
+   * The conversion workspace used by the migration.
+   * 
+ * + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; + * + * @return Whether the conversionWorkspace field is set. + */ + boolean hasConversionWorkspace(); + /** + * + * + *
+   * The conversion workspace used by the migration.
+   * 
+ * + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; + * + * @return The conversionWorkspace. + */ + com.google.cloud.clouddms.v1.ConversionWorkspaceInfo getConversionWorkspace(); + /** + * + * + *
+   * The conversion workspace used by the migration.
+   * 
+ * + * .google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18; + */ + com.google.cloud.clouddms.v1.ConversionWorkspaceInfoOrBuilder getConversionWorkspaceOrBuilder(); + + /** + * + * + *
+   * This field can be used to select the entities to migrate as part of
+   * the migration job. It uses AIP-160 notation to select a subset of the
+   * entities configured on the associated conversion-workspace. This field
+   * should not be set on migration-jobs that are not associated with a
+   * conversion workspace.
+   * 
+ * + * string filter = 20; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * This field can be used to select the entities to migrate as part of
+   * the migration job. It uses AIP-160 notation to select a subset of the
+   * entities configured on the associated conversion-workspace. This field
+   * should not be set on migration-jobs that are not associated with a
+   * conversion workspace.
+   * 
+ * + * string filter = 20; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The CMEK (customer-managed encryption key) fully qualified key name used
+   * for the migration job.
+   * This field supports all migration jobs types except for:
+   * * Mysql to Mysql (use the cmek field in the cloudsql connection profile
+   * instead).
+   * * PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql
+   * connection profile instead).
+   * * PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb
+   * connection profile instead).
+   * Each Cloud CMEK key has the following format:
+   * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+   * 
+ * + * string cmek_key_name = 21; + * + * @return The cmekKeyName. + */ + java.lang.String getCmekKeyName(); + /** + * + * + *
+   * The CMEK (customer-managed encryption key) fully qualified key name used
+   * for the migration job.
+   * This field supports all migration jobs types except for:
+   * * Mysql to Mysql (use the cmek field in the cloudsql connection profile
+   * instead).
+   * * PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql
+   * connection profile instead).
+   * * PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb
+   * connection profile instead).
+   * Each Cloud CMEK key has the following format:
+   * projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
+   * 
+ * + * string cmek_key_name = 21; + * + * @return The bytes for cmekKeyName. + */ + com.google.protobuf.ByteString getCmekKeyNameBytes(); + public com.google.cloud.clouddms.v1.MigrationJob.ConnectivityCase getConnectivityCase(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java index 8d5c8e85d7a8..51620434716c 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationError.java @@ -282,6 +282,58 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * CANT_RESTART_RUNNING_MIGRATION = 21; */ CANT_RESTART_RUNNING_MIGRATION(21), + /** + * + * + *
+     * The source has tables with limited support.
+     * E.g. PostgreSQL tables without primary keys.
+     * 
+ * + * TABLES_WITH_LIMITED_SUPPORT = 24; + */ + TABLES_WITH_LIMITED_SUPPORT(24), + /** + * + * + *
+     * The source uses an unsupported locale.
+     * 
+ * + * UNSUPPORTED_DATABASE_LOCALE = 25; + */ + UNSUPPORTED_DATABASE_LOCALE(25), + /** + * + * + *
+     * The source uses an unsupported Foreign Data Wrapper configuration.
+     * 
+ * + * UNSUPPORTED_DATABASE_FDW_CONFIG = 26; + */ + UNSUPPORTED_DATABASE_FDW_CONFIG(26), + /** + * + * + *
+     * There was an underlying RDBMS error.
+     * 
+ * + * ERROR_RDBMS = 27; + */ + ERROR_RDBMS(27), + /** + * + * + *
+     * The source DB size in Bytes exceeds a certain threshold. The migration
+     * might require an increase of quota, or might not be supported.
+     * 
+ * + * SOURCE_SIZE_EXCEEDS_THRESHOLD = 28; + */ + SOURCE_SIZE_EXCEEDS_THRESHOLD(28), UNRECOGNIZED(-1), ; @@ -488,6 +540,58 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * CANT_RESTART_RUNNING_MIGRATION = 21; */ public static final int CANT_RESTART_RUNNING_MIGRATION_VALUE = 21; + /** + * + * + *
+     * The source has tables with limited support.
+     * E.g. PostgreSQL tables without primary keys.
+     * 
+ * + * TABLES_WITH_LIMITED_SUPPORT = 24; + */ + public static final int TABLES_WITH_LIMITED_SUPPORT_VALUE = 24; + /** + * + * + *
+     * The source uses an unsupported locale.
+     * 
+ * + * UNSUPPORTED_DATABASE_LOCALE = 25; + */ + public static final int UNSUPPORTED_DATABASE_LOCALE_VALUE = 25; + /** + * + * + *
+     * The source uses an unsupported Foreign Data Wrapper configuration.
+     * 
+ * + * UNSUPPORTED_DATABASE_FDW_CONFIG = 26; + */ + public static final int UNSUPPORTED_DATABASE_FDW_CONFIG_VALUE = 26; + /** + * + * + *
+     * There was an underlying RDBMS error.
+     * 
+ * + * ERROR_RDBMS = 27; + */ + public static final int ERROR_RDBMS_VALUE = 27; + /** + * + * + *
+     * The source DB size in Bytes exceeds a certain threshold. The migration
+     * might require an increase of quota, or might not be supported.
+     * 
+ * + * SOURCE_SIZE_EXCEEDS_THRESHOLD = 28; + */ + public static final int SOURCE_SIZE_EXCEEDS_THRESHOLD_VALUE = 28; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -553,6 +657,16 @@ public static ErrorCode forNumber(int value) { return UNSUPPORTED_DEFINER; case 21: return CANT_RESTART_RUNNING_MIGRATION; + case 24: + return TABLES_WITH_LIMITED_SUPPORT; + case 25: + return UNSUPPORTED_DATABASE_LOCALE; + case 26: + return UNSUPPORTED_DATABASE_FDW_CONFIG; + case 27: + return ERROR_RDBMS; + case 28: + return SOURCE_SIZE_EXCEEDS_THRESHOLD; default: return null; } @@ -657,7 +771,8 @@ public com.google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode getE * * *
-   * Output only. A formatted message with further details about the error and a CTA.
+   * Output only. A formatted message with further details about the error and a
+   * CTA.
    * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -680,7 +795,8 @@ public java.lang.String getErrorMessage() { * * *
-   * Output only. A formatted message with further details about the error and a CTA.
+   * Output only. A formatted message with further details about the error and a
+   * CTA.
    * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1255,7 +1371,8 @@ public Builder clearErrorCode() { * * *
-     * Output only. A formatted message with further details about the error and a CTA.
+     * Output only. A formatted message with further details about the error and a
+     * CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1277,7 +1394,8 @@ public java.lang.String getErrorMessage() { * * *
-     * Output only. A formatted message with further details about the error and a CTA.
+     * Output only. A formatted message with further details about the error and a
+     * CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1299,7 +1417,8 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { * * *
-     * Output only. A formatted message with further details about the error and a CTA.
+     * Output only. A formatted message with further details about the error and a
+     * CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1320,7 +1439,8 @@ public Builder setErrorMessage(java.lang.String value) { * * *
-     * Output only. A formatted message with further details about the error and a CTA.
+     * Output only. A formatted message with further details about the error and a
+     * CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1337,7 +1457,8 @@ public Builder clearErrorMessage() { * * *
-     * Output only. A formatted message with further details about the error and a CTA.
+     * Output only. A formatted message with further details about the error and a
+     * CTA.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java index d82156b789de..2119c0004dff 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobVerificationErrorOrBuilder.java @@ -56,7 +56,8 @@ public interface MigrationJobVerificationErrorOrBuilder * * *
-   * Output only. A formatted message with further details about the error and a CTA.
+   * Output only. A formatted message with further details about the error and a
+   * CTA.
    * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -68,7 +69,8 @@ public interface MigrationJobVerificationErrorOrBuilder * * *
-   * Output only. A formatted message with further details about the error and a CTA.
+   * Output only. A formatted message with further details about the error and a
+   * CTA.
    * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java index bc6a6260ad9a..c5dc4a6dc27c 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfile.java @@ -147,8 +147,9 @@ public int getPort() { * * *
-   * Required. The username that Database Migration Service will use to connect to the
-   * database. The value is encrypted when stored in Database Migration Service.
+   * Required. The username that Database Migration Service will use to connect
+   * to the database. The value is encrypted when stored in Database Migration
+   * Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -171,8 +172,9 @@ public java.lang.String getUsername() { * * *
-   * Required. The username that Database Migration Service will use to connect to the
-   * database. The value is encrypted when stored in Database Migration Service.
+   * Required. The username that Database Migration Service will use to connect
+   * to the database. The value is encrypted when stored in Database Migration
+   * Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -200,9 +202,10 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * *
-   * Required. Input only. The password for the user that Database Migration Service will be using to
-   * connect to the database. This field is not returned on request, and the
-   * value is encrypted when stored in Database Migration Service.
+   * Required. Input only. The password for the user that Database Migration
+   * Service will be using to connect to the database. This field is not
+   * returned on request, and the value is encrypted when stored in Database
+   * Migration Service.
    * 
* * @@ -227,9 +230,10 @@ public java.lang.String getPassword() { * * *
-   * Required. Input only. The password for the user that Database Migration Service will be using to
-   * connect to the database. This field is not returned on request, and the
-   * value is encrypted when stored in Database Migration Service.
+   * Required. Input only. The password for the user that Database Migration
+   * Service will be using to connect to the database. This field is not
+   * returned on request, and the value is encrypted when stored in Database
+   * Migration Service.
    * 
* * @@ -1021,8 +1025,9 @@ public Builder clearPort() { * * *
-     * Required. The username that Database Migration Service will use to connect to the
-     * database. The value is encrypted when stored in Database Migration Service.
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1044,8 +1049,9 @@ public java.lang.String getUsername() { * * *
-     * Required. The username that Database Migration Service will use to connect to the
-     * database. The value is encrypted when stored in Database Migration Service.
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1067,8 +1073,9 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * *
-     * Required. The username that Database Migration Service will use to connect to the
-     * database. The value is encrypted when stored in Database Migration Service.
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1089,8 +1096,9 @@ public Builder setUsername(java.lang.String value) { * * *
-     * Required. The username that Database Migration Service will use to connect to the
-     * database. The value is encrypted when stored in Database Migration Service.
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1107,8 +1115,9 @@ public Builder clearUsername() { * * *
-     * Required. The username that Database Migration Service will use to connect to the
-     * database. The value is encrypted when stored in Database Migration Service.
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1132,9 +1141,10 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Input only. The password for the user that Database Migration Service will be using to
-     * connect to the database. This field is not returned on request, and the
-     * value is encrypted when stored in Database Migration Service.
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
      * 
* * @@ -1158,9 +1168,10 @@ public java.lang.String getPassword() { * * *
-     * Required. Input only. The password for the user that Database Migration Service will be using to
-     * connect to the database. This field is not returned on request, and the
-     * value is encrypted when stored in Database Migration Service.
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
      * 
* * @@ -1184,9 +1195,10 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * *
-     * Required. Input only. The password for the user that Database Migration Service will be using to
-     * connect to the database. This field is not returned on request, and the
-     * value is encrypted when stored in Database Migration Service.
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
      * 
* * @@ -1209,9 +1221,10 @@ public Builder setPassword(java.lang.String value) { * * *
-     * Required. Input only. The password for the user that Database Migration Service will be using to
-     * connect to the database. This field is not returned on request, and the
-     * value is encrypted when stored in Database Migration Service.
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
      * 
* * @@ -1230,9 +1243,10 @@ public Builder clearPassword() { * * *
-     * Required. Input only. The password for the user that Database Migration Service will be using to
-     * connect to the database. This field is not returned on request, and the
-     * value is encrypted when stored in Database Migration Service.
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
      * 
* * diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java index 98886b9e4e80..94ec7746487a 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MySqlConnectionProfileOrBuilder.java @@ -65,8 +65,9 @@ public interface MySqlConnectionProfileOrBuilder * * *
-   * Required. The username that Database Migration Service will use to connect to the
-   * database. The value is encrypted when stored in Database Migration Service.
+   * Required. The username that Database Migration Service will use to connect
+   * to the database. The value is encrypted when stored in Database Migration
+   * Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -78,8 +79,9 @@ public interface MySqlConnectionProfileOrBuilder * * *
-   * Required. The username that Database Migration Service will use to connect to the
-   * database. The value is encrypted when stored in Database Migration Service.
+   * Required. The username that Database Migration Service will use to connect
+   * to the database. The value is encrypted when stored in Database Migration
+   * Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -92,9 +94,10 @@ public interface MySqlConnectionProfileOrBuilder * * *
-   * Required. Input only. The password for the user that Database Migration Service will be using to
-   * connect to the database. This field is not returned on request, and the
-   * value is encrypted when stored in Database Migration Service.
+   * Required. Input only. The password for the user that Database Migration
+   * Service will be using to connect to the database. This field is not
+   * returned on request, and the value is encrypted when stored in Database
+   * Migration Service.
    * 
* * @@ -108,9 +111,10 @@ public interface MySqlConnectionProfileOrBuilder * * *
-   * Required. Input only. The password for the user that Database Migration Service will be using to
-   * connect to the database. This field is not returned on request, and the
-   * value is encrypted when stored in Database Migration Service.
+   * Required. Input only. The password for the user that Database Migration
+   * Service will be using to connect to the database. This field is not
+   * returned on request, and the value is encrypted when stored in Database
+   * Migration Service.
    * 
* * diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/NetworkArchitecture.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/NetworkArchitecture.java new file mode 100644 index 000000000000..7ac94d16ebf0 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/NetworkArchitecture.java @@ -0,0 +1,157 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +/** Protobuf enum {@code google.cloud.clouddms.v1.NetworkArchitecture} */ +public enum NetworkArchitecture implements com.google.protobuf.ProtocolMessageEnum { + /** NETWORK_ARCHITECTURE_UNSPECIFIED = 0; */ + NETWORK_ARCHITECTURE_UNSPECIFIED(0), + /** + * + * + *
+   * Instance is in Cloud SQL's old producer network architecture.
+   * 
+ * + * NETWORK_ARCHITECTURE_OLD_CSQL_PRODUCER = 1; + */ + NETWORK_ARCHITECTURE_OLD_CSQL_PRODUCER(1), + /** + * + * + *
+   * Instance is in Cloud SQL's new producer network architecture.
+   * 
+ * + * NETWORK_ARCHITECTURE_NEW_CSQL_PRODUCER = 2; + */ + NETWORK_ARCHITECTURE_NEW_CSQL_PRODUCER(2), + UNRECOGNIZED(-1), + ; + + /** NETWORK_ARCHITECTURE_UNSPECIFIED = 0; */ + public static final int NETWORK_ARCHITECTURE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Instance is in Cloud SQL's old producer network architecture.
+   * 
+ * + * NETWORK_ARCHITECTURE_OLD_CSQL_PRODUCER = 1; + */ + public static final int NETWORK_ARCHITECTURE_OLD_CSQL_PRODUCER_VALUE = 1; + /** + * + * + *
+   * Instance is in Cloud SQL's new producer network architecture.
+   * 
+ * + * NETWORK_ARCHITECTURE_NEW_CSQL_PRODUCER = 2; + */ + public static final int NETWORK_ARCHITECTURE_NEW_CSQL_PRODUCER_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NetworkArchitecture valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static NetworkArchitecture forNumber(int value) { + switch (value) { + case 0: + return NETWORK_ARCHITECTURE_UNSPECIFIED; + case 1: + return NETWORK_ARCHITECTURE_OLD_CSQL_PRODUCER; + case 2: + return NETWORK_ARCHITECTURE_NEW_CSQL_PRODUCER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NetworkArchitecture findValueByNumber(int number) { + return NetworkArchitecture.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final NetworkArchitecture[] VALUES = values(); + + public static NetworkArchitecture valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NetworkArchitecture(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.NetworkArchitecture) +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java index 71770cb72687..ad2922e2fce1 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadata.java @@ -329,8 +329,9 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1604,8 +1605,9 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1622,8 +1624,9 @@ public boolean getRequestedCancellation() { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1644,8 +1647,9 @@ public Builder setRequestedCancellation(boolean value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java index 5e175b93703c..9f54392339f7 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OperationMetadataOrBuilder.java @@ -180,8 +180,9 @@ public interface OperationMetadataOrBuilder *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfile.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfile.java new file mode 100644 index 000000000000..b04122f11575 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfile.java @@ -0,0 +1,2437 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Specifies connection parameters required specifically for Oracle
+ * databases.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.OracleConnectionProfile} + */ +public final class OracleConnectionProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.OracleConnectionProfile) + OracleConnectionProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use OracleConnectionProfile.newBuilder() to construct. + private OracleConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OracleConnectionProfile() { + host_ = ""; + username_ = ""; + password_ = ""; + databaseService_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OracleConnectionProfile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_OracleConnectionProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_OracleConnectionProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.OracleConnectionProfile.class, + com.google.cloud.clouddms.v1.OracleConnectionProfile.Builder.class); + } + + private int connectivityCase_ = 0; + private java.lang.Object connectivity_; + + public enum ConnectivityCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STATIC_SERVICE_IP_CONNECTIVITY(100), + FORWARD_SSH_CONNECTIVITY(101), + PRIVATE_CONNECTIVITY(102), + CONNECTIVITY_NOT_SET(0); + private final int value; + + private ConnectivityCase(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 ConnectivityCase valueOf(int value) { + return forNumber(value); + } + + public static ConnectivityCase forNumber(int value) { + switch (value) { + case 100: + return STATIC_SERVICE_IP_CONNECTIVITY; + case 101: + return FORWARD_SSH_CONNECTIVITY; + case 102: + return PRIVATE_CONNECTIVITY; + case 0: + return CONNECTIVITY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConnectivityCase getConnectivityCase() { + return ConnectivityCase.forNumber(connectivityCase_); + } + + public static final int HOST_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + * + * + *
+   * Required. The IP or hostname of the source Oracle database.
+   * 
+ * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + 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(); + host_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The IP or hostname of the source Oracle database.
+   * 
+ * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 2; + private int port_ = 0; + /** + * + * + *
+   * Required. The network port of the source Oracle database.
+   * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int USERNAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + /** + * + * + *
+   * Required. The username that Database Migration Service will use to connect
+   * to the database. The value is encrypted when stored in Database Migration
+   * Service.
+   * 
+ * + * 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. The username that Database Migration Service will use to connect
+   * to the database. The value is encrypted when stored in Database Migration
+   * Service.
+   * 
+ * + * 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; + + @SuppressWarnings("serial") + private volatile java.lang.Object password_ = ""; + /** + * + * + *
+   * Required. Input only. The password for the user that Database Migration
+   * Service will be using to connect to the database. This field is not
+   * returned on request, and the value is encrypted when stored in Database
+   * Migration Service.
+   * 
+ * + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.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. Input only. The password for the user that Database Migration
+   * Service will be using to connect to the database. This field is not
+   * returned on request, and the value is encrypted when stored in Database
+   * Migration Service.
+   * 
+ * + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.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 PASSWORD_SET_FIELD_NUMBER = 5; + private boolean passwordSet_ = false; + /** + * + * + *
+   * Output only. Indicates whether a new password is included in the request.
+   * 
+ * + * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The passwordSet. + */ + @java.lang.Override + public boolean getPasswordSet() { + return passwordSet_; + } + + public static final int DATABASE_SERVICE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object databaseService_ = ""; + /** + * + * + *
+   * Required. Database service for the Oracle connection.
+   * 
+ * + * string database_service = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseService. + */ + @java.lang.Override + public java.lang.String getDatabaseService() { + java.lang.Object ref = databaseService_; + 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(); + databaseService_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Database service for the Oracle connection.
+   * 
+ * + * string database_service = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseServiceBytes() { + java.lang.Object ref = databaseService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER = 100; + /** + * + * + *
+   * Static Service IP connectivity.
+   * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + * + * @return Whether the staticServiceIpConnectivity field is set. + */ + @java.lang.Override + public boolean hasStaticServiceIpConnectivity() { + return connectivityCase_ == 100; + } + /** + * + * + *
+   * Static Service IP connectivity.
+   * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + * + * @return The staticServiceIpConnectivity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.StaticServiceIpConnectivity getStaticServiceIpConnectivity() { + if (connectivityCase_ == 100) { + return (com.google.cloud.clouddms.v1.StaticServiceIpConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.getDefaultInstance(); + } + /** + * + * + *
+   * Static Service IP connectivity.
+   * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.StaticServiceIpConnectivityOrBuilder + getStaticServiceIpConnectivityOrBuilder() { + if (connectivityCase_ == 100) { + return (com.google.cloud.clouddms.v1.StaticServiceIpConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.getDefaultInstance(); + } + + public static final int FORWARD_SSH_CONNECTIVITY_FIELD_NUMBER = 101; + /** + * + * + *
+   * Forward SSH tunnel connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + * + * @return Whether the forwardSshConnectivity field is set. + */ + @java.lang.Override + public boolean hasForwardSshConnectivity() { + return connectivityCase_ == 101; + } + /** + * + * + *
+   * Forward SSH tunnel connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + * + * @return The forwardSshConnectivity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity getForwardSshConnectivity() { + if (connectivityCase_ == 101) { + return (com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); + } + /** + * + * + *
+   * Forward SSH tunnel connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivityOrBuilder + getForwardSshConnectivityOrBuilder() { + if (connectivityCase_ == 101) { + return (com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); + } + + public static final int PRIVATE_CONNECTIVITY_FIELD_NUMBER = 102; + /** + * + * + *
+   * Private connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + * + * @return Whether the privateConnectivity field is set. + */ + @java.lang.Override + public boolean hasPrivateConnectivity() { + return connectivityCase_ == 102; + } + /** + * + * + *
+   * Private connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + * + * @return The privateConnectivity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnectivity getPrivateConnectivity() { + if (connectivityCase_ == 102) { + return (com.google.cloud.clouddms.v1.PrivateConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.PrivateConnectivity.getDefaultInstance(); + } + /** + * + * + *
+   * Private connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnectivityOrBuilder + getPrivateConnectivityOrBuilder() { + if (connectivityCase_ == 102) { + return (com.google.cloud.clouddms.v1.PrivateConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.PrivateConnectivity.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_); + } + 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 (passwordSet_ != false) { + output.writeBool(5, passwordSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, databaseService_); + } + if (connectivityCase_ == 100) { + output.writeMessage( + 100, (com.google.cloud.clouddms.v1.StaticServiceIpConnectivity) connectivity_); + } + if (connectivityCase_ == 101) { + output.writeMessage( + 101, (com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) connectivity_); + } + if (connectivityCase_ == 102) { + output.writeMessage(102, (com.google.cloud.clouddms.v1.PrivateConnectivity) connectivity_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_); + } + 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 (passwordSet_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, passwordSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, databaseService_); + } + if (connectivityCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.clouddms.v1.StaticServiceIpConnectivity) connectivity_); + } + if (connectivityCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) connectivity_); + } + if (connectivityCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.clouddms.v1.PrivateConnectivity) connectivity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.OracleConnectionProfile)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.OracleConnectionProfile other = + (com.google.cloud.clouddms.v1.OracleConnectionProfile) obj; + + if (!getHost().equals(other.getHost())) return false; + if (getPort() != other.getPort()) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (getPasswordSet() != other.getPasswordSet()) return false; + if (!getDatabaseService().equals(other.getDatabaseService())) return false; + if (!getConnectivityCase().equals(other.getConnectivityCase())) return false; + switch (connectivityCase_) { + case 100: + if (!getStaticServiceIpConnectivity().equals(other.getStaticServiceIpConnectivity())) + return false; + break; + case 101: + if (!getForwardSshConnectivity().equals(other.getForwardSshConnectivity())) return false; + break; + case 102: + if (!getPrivateConnectivity().equals(other.getPrivateConnectivity())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().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) + PASSWORD_SET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPasswordSet()); + hash = (37 * hash) + DATABASE_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseService().hashCode(); + switch (connectivityCase_) { + case 100: + hash = (37 * hash) + STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getStaticServiceIpConnectivity().hashCode(); + break; + case 101: + hash = (37 * hash) + FORWARD_SSH_CONNECTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getForwardSshConnectivity().hashCode(); + break; + case 102: + hash = (37 * hash) + PRIVATE_CONNECTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnectivity().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.OracleConnectionProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.OracleConnectionProfile 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.clouddms.v1.OracleConnectionProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.OracleConnectionProfile 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.clouddms.v1.OracleConnectionProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.OracleConnectionProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.OracleConnectionProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.OracleConnectionProfile 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.clouddms.v1.OracleConnectionProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.OracleConnectionProfile 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.clouddms.v1.OracleConnectionProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.OracleConnectionProfile 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.clouddms.v1.OracleConnectionProfile 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; + } + /** + * + * + *
+   * Specifies connection parameters required specifically for Oracle
+   * databases.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.OracleConnectionProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.OracleConnectionProfile) + com.google.cloud.clouddms.v1.OracleConnectionProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_OracleConnectionProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_OracleConnectionProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.OracleConnectionProfile.class, + com.google.cloud.clouddms.v1.OracleConnectionProfile.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.OracleConnectionProfile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + host_ = ""; + port_ = 0; + username_ = ""; + password_ = ""; + passwordSet_ = false; + databaseService_ = ""; + if (staticServiceIpConnectivityBuilder_ != null) { + staticServiceIpConnectivityBuilder_.clear(); + } + if (forwardSshConnectivityBuilder_ != null) { + forwardSshConnectivityBuilder_.clear(); + } + if (privateConnectivityBuilder_ != null) { + privateConnectivityBuilder_.clear(); + } + connectivityCase_ = 0; + connectivity_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_OracleConnectionProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.OracleConnectionProfile getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.OracleConnectionProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.OracleConnectionProfile build() { + com.google.cloud.clouddms.v1.OracleConnectionProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.OracleConnectionProfile buildPartial() { + com.google.cloud.clouddms.v1.OracleConnectionProfile result = + new com.google.cloud.clouddms.v1.OracleConnectionProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.OracleConnectionProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.host_ = host_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.port_ = port_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.password_ = password_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.passwordSet_ = passwordSet_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.databaseService_ = databaseService_; + } + } + + private void buildPartialOneofs(com.google.cloud.clouddms.v1.OracleConnectionProfile result) { + result.connectivityCase_ = connectivityCase_; + result.connectivity_ = this.connectivity_; + if (connectivityCase_ == 100 && staticServiceIpConnectivityBuilder_ != null) { + result.connectivity_ = staticServiceIpConnectivityBuilder_.build(); + } + if (connectivityCase_ == 101 && forwardSshConnectivityBuilder_ != null) { + result.connectivity_ = forwardSshConnectivityBuilder_.build(); + } + if (connectivityCase_ == 102 && privateConnectivityBuilder_ != null) { + result.connectivity_ = privateConnectivityBuilder_.build(); + } + } + + @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.clouddms.v1.OracleConnectionProfile) { + return mergeFrom((com.google.cloud.clouddms.v1.OracleConnectionProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.OracleConnectionProfile other) { + if (other == com.google.cloud.clouddms.v1.OracleConnectionProfile.getDefaultInstance()) + return this; + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getPasswordSet() != false) { + setPasswordSet(other.getPasswordSet()); + } + if (!other.getDatabaseService().isEmpty()) { + databaseService_ = other.databaseService_; + bitField0_ |= 0x00000020; + onChanged(); + } + switch (other.getConnectivityCase()) { + case STATIC_SERVICE_IP_CONNECTIVITY: + { + mergeStaticServiceIpConnectivity(other.getStaticServiceIpConnectivity()); + break; + } + case FORWARD_SSH_CONNECTIVITY: + { + mergeForwardSshConnectivity(other.getForwardSshConnectivity()); + break; + } + case PRIVATE_CONNECTIVITY: + { + mergePrivateConnectivity(other.getPrivateConnectivity()); + break; + } + case CONNECTIVITY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + passwordSet_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + databaseService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 802: + { + input.readMessage( + getStaticServiceIpConnectivityFieldBuilder().getBuilder(), extensionRegistry); + connectivityCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage( + getForwardSshConnectivityFieldBuilder().getBuilder(), extensionRegistry); + connectivityCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage( + getPrivateConnectivityFieldBuilder().getBuilder(), extensionRegistry); + connectivityCase_ = 102; + break; + } // case 818 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int connectivityCase_ = 0; + private java.lang.Object connectivity_; + + public ConnectivityCase getConnectivityCase() { + return ConnectivityCase.forNumber(connectivityCase_); + } + + public Builder clearConnectivity() { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object host_ = ""; + /** + * + * + *
+     * Required. The IP or hostname of the source Oracle database.
+     * 
+ * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The IP or hostname of the source Oracle database.
+     * 
+ * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for host. + */ + public com.google.protobuf.ByteString getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The IP or hostname of the source Oracle database.
+     * 
+ * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The IP or hostname of the source Oracle database.
+     * 
+ * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The IP or hostname of the source Oracle database.
+     * 
+ * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int port_; + /** + * + * + *
+     * Required. The network port of the source Oracle database.
+     * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * + * + *
+     * Required. The network port of the source Oracle database.
+     * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The network port of the source Oracle database.
+     * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000002); + port_ = 0; + onChanged(); + return this; + } + + private java.lang.Object username_ = ""; + /** + * + * + *
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
+     * 
+ * + * 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. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
+     * 
+ * + * 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. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
+     * 
+ * + * 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
+     * 
+ * + * 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * + * + *
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
+     * 
+ * + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.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. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
+     * 
+ * + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.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. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
+     * 
+ * + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
+     * 
+ * + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + password_ = getDefaultInstance().getPassword(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
+     * 
+ * + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean passwordSet_; + /** + * + * + *
+     * Output only. Indicates whether a new password is included in the request.
+     * 
+ * + * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The passwordSet. + */ + @java.lang.Override + public boolean getPasswordSet() { + return passwordSet_; + } + /** + * + * + *
+     * Output only. Indicates whether a new password is included in the request.
+     * 
+ * + * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The passwordSet to set. + * @return This builder for chaining. + */ + public Builder setPasswordSet(boolean value) { + + passwordSet_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates whether a new password is included in the request.
+     * 
+ * + * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPasswordSet() { + bitField0_ = (bitField0_ & ~0x00000010); + passwordSet_ = false; + onChanged(); + return this; + } + + private java.lang.Object databaseService_ = ""; + /** + * + * + *
+     * Required. Database service for the Oracle connection.
+     * 
+ * + * string database_service = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseService. + */ + public java.lang.String getDatabaseService() { + java.lang.Object ref = databaseService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Database service for the Oracle connection.
+     * 
+ * + * string database_service = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseService. + */ + public com.google.protobuf.ByteString getDatabaseServiceBytes() { + java.lang.Object ref = databaseService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Database service for the Oracle connection.
+     * 
+ * + * string database_service = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The databaseService to set. + * @return This builder for chaining. + */ + public Builder setDatabaseService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + databaseService_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Database service for the Oracle connection.
+     * 
+ * + * string database_service = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabaseService() { + databaseService_ = getDefaultInstance().getDatabaseService(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Database service for the Oracle connection.
+     * 
+ * + * string database_service = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for databaseService to set. + * @return This builder for chaining. + */ + public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseService_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity, + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.Builder, + com.google.cloud.clouddms.v1.StaticServiceIpConnectivityOrBuilder> + staticServiceIpConnectivityBuilder_; + /** + * + * + *
+     * Static Service IP connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + * + * @return Whether the staticServiceIpConnectivity field is set. + */ + @java.lang.Override + public boolean hasStaticServiceIpConnectivity() { + return connectivityCase_ == 100; + } + /** + * + * + *
+     * Static Service IP connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + * + * @return The staticServiceIpConnectivity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.StaticServiceIpConnectivity + getStaticServiceIpConnectivity() { + if (staticServiceIpConnectivityBuilder_ == null) { + if (connectivityCase_ == 100) { + return (com.google.cloud.clouddms.v1.StaticServiceIpConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.getDefaultInstance(); + } else { + if (connectivityCase_ == 100) { + return staticServiceIpConnectivityBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Static Service IP connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + */ + public Builder setStaticServiceIpConnectivity( + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity value) { + if (staticServiceIpConnectivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectivity_ = value; + onChanged(); + } else { + staticServiceIpConnectivityBuilder_.setMessage(value); + } + connectivityCase_ = 100; + return this; + } + /** + * + * + *
+     * Static Service IP connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + */ + public Builder setStaticServiceIpConnectivity( + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.Builder builderForValue) { + if (staticServiceIpConnectivityBuilder_ == null) { + connectivity_ = builderForValue.build(); + onChanged(); + } else { + staticServiceIpConnectivityBuilder_.setMessage(builderForValue.build()); + } + connectivityCase_ = 100; + return this; + } + /** + * + * + *
+     * Static Service IP connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + */ + public Builder mergeStaticServiceIpConnectivity( + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity value) { + if (staticServiceIpConnectivityBuilder_ == null) { + if (connectivityCase_ == 100 + && connectivity_ + != com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.getDefaultInstance()) { + connectivity_ = + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.newBuilder( + (com.google.cloud.clouddms.v1.StaticServiceIpConnectivity) connectivity_) + .mergeFrom(value) + .buildPartial(); + } else { + connectivity_ = value; + } + onChanged(); + } else { + if (connectivityCase_ == 100) { + staticServiceIpConnectivityBuilder_.mergeFrom(value); + } else { + staticServiceIpConnectivityBuilder_.setMessage(value); + } + } + connectivityCase_ = 100; + return this; + } + /** + * + * + *
+     * Static Service IP connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + */ + public Builder clearStaticServiceIpConnectivity() { + if (staticServiceIpConnectivityBuilder_ == null) { + if (connectivityCase_ == 100) { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + } + } else { + if (connectivityCase_ == 100) { + connectivityCase_ = 0; + connectivity_ = null; + } + staticServiceIpConnectivityBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Static Service IP connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + */ + public com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.Builder + getStaticServiceIpConnectivityBuilder() { + return getStaticServiceIpConnectivityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Static Service IP connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.StaticServiceIpConnectivityOrBuilder + getStaticServiceIpConnectivityOrBuilder() { + if ((connectivityCase_ == 100) && (staticServiceIpConnectivityBuilder_ != null)) { + return staticServiceIpConnectivityBuilder_.getMessageOrBuilder(); + } else { + if (connectivityCase_ == 100) { + return (com.google.cloud.clouddms.v1.StaticServiceIpConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Static Service IP connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity, + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.Builder, + com.google.cloud.clouddms.v1.StaticServiceIpConnectivityOrBuilder> + getStaticServiceIpConnectivityFieldBuilder() { + if (staticServiceIpConnectivityBuilder_ == null) { + if (!(connectivityCase_ == 100)) { + connectivity_ = + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.getDefaultInstance(); + } + staticServiceIpConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity, + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.Builder, + com.google.cloud.clouddms.v1.StaticServiceIpConnectivityOrBuilder>( + (com.google.cloud.clouddms.v1.StaticServiceIpConnectivity) connectivity_, + getParentForChildren(), + isClean()); + connectivity_ = null; + } + connectivityCase_ = 100; + onChanged(); + return staticServiceIpConnectivityBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity, + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.Builder, + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivityOrBuilder> + forwardSshConnectivityBuilder_; + /** + * + * + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + * + * @return Whether the forwardSshConnectivity field is set. + */ + @java.lang.Override + public boolean hasForwardSshConnectivity() { + return connectivityCase_ == 101; + } + /** + * + * + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + * + * @return The forwardSshConnectivity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity getForwardSshConnectivity() { + if (forwardSshConnectivityBuilder_ == null) { + if (connectivityCase_ == 101) { + return (com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); + } else { + if (connectivityCase_ == 101) { + return forwardSshConnectivityBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + */ + public Builder setForwardSshConnectivity( + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity value) { + if (forwardSshConnectivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectivity_ = value; + onChanged(); + } else { + forwardSshConnectivityBuilder_.setMessage(value); + } + connectivityCase_ = 101; + return this; + } + /** + * + * + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + */ + public Builder setForwardSshConnectivity( + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.Builder builderForValue) { + if (forwardSshConnectivityBuilder_ == null) { + connectivity_ = builderForValue.build(); + onChanged(); + } else { + forwardSshConnectivityBuilder_.setMessage(builderForValue.build()); + } + connectivityCase_ = 101; + return this; + } + /** + * + * + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + */ + public Builder mergeForwardSshConnectivity( + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity value) { + if (forwardSshConnectivityBuilder_ == null) { + if (connectivityCase_ == 101 + && connectivity_ + != com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.getDefaultInstance()) { + connectivity_ = + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.newBuilder( + (com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) connectivity_) + .mergeFrom(value) + .buildPartial(); + } else { + connectivity_ = value; + } + onChanged(); + } else { + if (connectivityCase_ == 101) { + forwardSshConnectivityBuilder_.mergeFrom(value); + } else { + forwardSshConnectivityBuilder_.setMessage(value); + } + } + connectivityCase_ = 101; + return this; + } + /** + * + * + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + */ + public Builder clearForwardSshConnectivity() { + if (forwardSshConnectivityBuilder_ == null) { + if (connectivityCase_ == 101) { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + } + } else { + if (connectivityCase_ == 101) { + connectivityCase_ = 0; + connectivity_ = null; + } + forwardSshConnectivityBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + */ + public com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.Builder + getForwardSshConnectivityBuilder() { + return getForwardSshConnectivityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivityOrBuilder + getForwardSshConnectivityOrBuilder() { + if ((connectivityCase_ == 101) && (forwardSshConnectivityBuilder_ != null)) { + return forwardSshConnectivityBuilder_.getMessageOrBuilder(); + } else { + if (connectivityCase_ == 101) { + return (com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity, + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.Builder, + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivityOrBuilder> + getForwardSshConnectivityFieldBuilder() { + if (forwardSshConnectivityBuilder_ == null) { + if (!(connectivityCase_ == 101)) { + connectivity_ = + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); + } + forwardSshConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity, + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity.Builder, + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivityOrBuilder>( + (com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity) connectivity_, + getParentForChildren(), + isClean()); + connectivity_ = null; + } + connectivityCase_ = 101; + onChanged(); + return forwardSshConnectivityBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PrivateConnectivity, + com.google.cloud.clouddms.v1.PrivateConnectivity.Builder, + com.google.cloud.clouddms.v1.PrivateConnectivityOrBuilder> + privateConnectivityBuilder_; + /** + * + * + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + * + * @return Whether the privateConnectivity field is set. + */ + @java.lang.Override + public boolean hasPrivateConnectivity() { + return connectivityCase_ == 102; + } + /** + * + * + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + * + * @return The privateConnectivity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnectivity getPrivateConnectivity() { + if (privateConnectivityBuilder_ == null) { + if (connectivityCase_ == 102) { + return (com.google.cloud.clouddms.v1.PrivateConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.PrivateConnectivity.getDefaultInstance(); + } else { + if (connectivityCase_ == 102) { + return privateConnectivityBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.PrivateConnectivity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + */ + public Builder setPrivateConnectivity(com.google.cloud.clouddms.v1.PrivateConnectivity value) { + if (privateConnectivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectivity_ = value; + onChanged(); + } else { + privateConnectivityBuilder_.setMessage(value); + } + connectivityCase_ = 102; + return this; + } + /** + * + * + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + */ + public Builder setPrivateConnectivity( + com.google.cloud.clouddms.v1.PrivateConnectivity.Builder builderForValue) { + if (privateConnectivityBuilder_ == null) { + connectivity_ = builderForValue.build(); + onChanged(); + } else { + privateConnectivityBuilder_.setMessage(builderForValue.build()); + } + connectivityCase_ = 102; + return this; + } + /** + * + * + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + */ + public Builder mergePrivateConnectivity( + com.google.cloud.clouddms.v1.PrivateConnectivity value) { + if (privateConnectivityBuilder_ == null) { + if (connectivityCase_ == 102 + && connectivity_ + != com.google.cloud.clouddms.v1.PrivateConnectivity.getDefaultInstance()) { + connectivity_ = + com.google.cloud.clouddms.v1.PrivateConnectivity.newBuilder( + (com.google.cloud.clouddms.v1.PrivateConnectivity) connectivity_) + .mergeFrom(value) + .buildPartial(); + } else { + connectivity_ = value; + } + onChanged(); + } else { + if (connectivityCase_ == 102) { + privateConnectivityBuilder_.mergeFrom(value); + } else { + privateConnectivityBuilder_.setMessage(value); + } + } + connectivityCase_ = 102; + return this; + } + /** + * + * + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + */ + public Builder clearPrivateConnectivity() { + if (privateConnectivityBuilder_ == null) { + if (connectivityCase_ == 102) { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + } + } else { + if (connectivityCase_ == 102) { + connectivityCase_ = 0; + connectivity_ = null; + } + privateConnectivityBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + */ + public com.google.cloud.clouddms.v1.PrivateConnectivity.Builder + getPrivateConnectivityBuilder() { + return getPrivateConnectivityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnectivityOrBuilder + getPrivateConnectivityOrBuilder() { + if ((connectivityCase_ == 102) && (privateConnectivityBuilder_ != null)) { + return privateConnectivityBuilder_.getMessageOrBuilder(); + } else { + if (connectivityCase_ == 102) { + return (com.google.cloud.clouddms.v1.PrivateConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.PrivateConnectivity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PrivateConnectivity, + com.google.cloud.clouddms.v1.PrivateConnectivity.Builder, + com.google.cloud.clouddms.v1.PrivateConnectivityOrBuilder> + getPrivateConnectivityFieldBuilder() { + if (privateConnectivityBuilder_ == null) { + if (!(connectivityCase_ == 102)) { + connectivity_ = com.google.cloud.clouddms.v1.PrivateConnectivity.getDefaultInstance(); + } + privateConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PrivateConnectivity, + com.google.cloud.clouddms.v1.PrivateConnectivity.Builder, + com.google.cloud.clouddms.v1.PrivateConnectivityOrBuilder>( + (com.google.cloud.clouddms.v1.PrivateConnectivity) connectivity_, + getParentForChildren(), + isClean()); + connectivity_ = null; + } + connectivityCase_ = 102; + onChanged(); + return privateConnectivityBuilder_; + } + + @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.clouddms.v1.OracleConnectionProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.OracleConnectionProfile) + private static final com.google.cloud.clouddms.v1.OracleConnectionProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.OracleConnectionProfile(); + } + + public static com.google.cloud.clouddms.v1.OracleConnectionProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.OracleConnectionProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfileOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfileOrBuilder.java new file mode 100644 index 000000000000..5b056841f922 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/OracleConnectionProfileOrBuilder.java @@ -0,0 +1,284 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface OracleConnectionProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.OracleConnectionProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The IP or hostname of the source Oracle database.
+   * 
+ * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The host. + */ + java.lang.String getHost(); + /** + * + * + *
+   * Required. The IP or hostname of the source Oracle database.
+   * 
+ * + * string host = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for host. + */ + com.google.protobuf.ByteString getHostBytes(); + + /** + * + * + *
+   * Required. The network port of the source Oracle database.
+   * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The port. + */ + int getPort(); + + /** + * + * + *
+   * Required. The username that Database Migration Service will use to connect
+   * to the database. The value is encrypted when stored in Database Migration
+   * Service.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
+   * Required. The username that Database Migration Service will use to connect
+   * to the database. The value is encrypted when stored in Database Migration
+   * Service.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
+   * Required. Input only. The password for the user that Database Migration
+   * Service will be using to connect to the database. This field is not
+   * returned on request, and the value is encrypted when stored in Database
+   * Migration Service.
+   * 
+ * + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The password. + */ + java.lang.String getPassword(); + /** + * + * + *
+   * Required. Input only. The password for the user that Database Migration
+   * Service will be using to connect to the database. This field is not
+   * returned on request, and the value is encrypted when stored in Database
+   * Migration Service.
+   * 
+ * + * + * string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); + + /** + * + * + *
+   * Output only. Indicates whether a new password is included in the request.
+   * 
+ * + * bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The passwordSet. + */ + boolean getPasswordSet(); + + /** + * + * + *
+   * Required. Database service for the Oracle connection.
+   * 
+ * + * string database_service = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseService. + */ + java.lang.String getDatabaseService(); + /** + * + * + *
+   * Required. Database service for the Oracle connection.
+   * 
+ * + * string database_service = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseService. + */ + com.google.protobuf.ByteString getDatabaseServiceBytes(); + + /** + * + * + *
+   * Static Service IP connectivity.
+   * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + * + * @return Whether the staticServiceIpConnectivity field is set. + */ + boolean hasStaticServiceIpConnectivity(); + /** + * + * + *
+   * Static Service IP connectivity.
+   * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + * + * @return The staticServiceIpConnectivity. + */ + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity getStaticServiceIpConnectivity(); + /** + * + * + *
+   * Static Service IP connectivity.
+   * 
+ * + * + * .google.cloud.clouddms.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 100; + * + */ + com.google.cloud.clouddms.v1.StaticServiceIpConnectivityOrBuilder + getStaticServiceIpConnectivityOrBuilder(); + + /** + * + * + *
+   * Forward SSH tunnel connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + * + * @return Whether the forwardSshConnectivity field is set. + */ + boolean hasForwardSshConnectivity(); + /** + * + * + *
+   * Forward SSH tunnel connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + * + * @return The forwardSshConnectivity. + */ + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity getForwardSshConnectivity(); + /** + * + * + *
+   * Forward SSH tunnel connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + * + */ + com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivityOrBuilder + getForwardSshConnectivityOrBuilder(); + + /** + * + * + *
+   * Private connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + * + * @return Whether the privateConnectivity field is set. + */ + boolean hasPrivateConnectivity(); + /** + * + * + *
+   * Private connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + * + * @return The privateConnectivity. + */ + com.google.cloud.clouddms.v1.PrivateConnectivity getPrivateConnectivity(); + /** + * + * + *
+   * Private connectivity.
+   * 
+ * + * .google.cloud.clouddms.v1.PrivateConnectivity private_connectivity = 102; + */ + com.google.cloud.clouddms.v1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder(); + + public com.google.cloud.clouddms.v1.OracleConnectionProfile.ConnectivityCase + getConnectivityCase(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PackageEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PackageEntity.java new file mode 100644 index 000000000000..54edf6d67fca --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PackageEntity.java @@ -0,0 +1,1082 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Package's parent is a schema.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.PackageEntity} + */ +public final class PackageEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.PackageEntity) + PackageEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use PackageEntity.newBuilder() to construct. + private PackageEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PackageEntity() { + packageSqlCode_ = ""; + packageBody_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PackageEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_PackageEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_PackageEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.PackageEntity.class, + com.google.cloud.clouddms.v1.PackageEntity.Builder.class); + } + + public static final int PACKAGE_SQL_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object packageSqlCode_ = ""; + /** + * + * + *
+   * The SQL code which creates the package.
+   * 
+ * + * string package_sql_code = 1; + * + * @return The packageSqlCode. + */ + @java.lang.Override + public java.lang.String getPackageSqlCode() { + java.lang.Object ref = packageSqlCode_; + 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(); + packageSqlCode_ = s; + return s; + } + } + /** + * + * + *
+   * The SQL code which creates the package.
+   * 
+ * + * string package_sql_code = 1; + * + * @return The bytes for packageSqlCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPackageSqlCodeBytes() { + java.lang.Object ref = packageSqlCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageSqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PACKAGE_BODY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object packageBody_ = ""; + /** + * + * + *
+   * The SQL code which creates the package body. If the package specification
+   * has cursors or subprograms, then the package body is mandatory.
+   * 
+ * + * string package_body = 2; + * + * @return The packageBody. + */ + @java.lang.Override + public java.lang.String getPackageBody() { + java.lang.Object ref = packageBody_; + 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(); + packageBody_ = s; + return s; + } + } + /** + * + * + *
+   * The SQL code which creates the package body. If the package specification
+   * has cursors or subprograms, then the package body is mandatory.
+   * 
+ * + * string package_body = 2; + * + * @return The bytes for packageBody. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPackageBodyBytes() { + java.lang.Object ref = packageBody_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageBody_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 3; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + 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(packageSqlCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageSqlCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageBody_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, packageBody_); + } + if (customFeatures_ != null) { + output.writeMessage(3, getCustomFeatures()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageSqlCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageSqlCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageBody_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, packageBody_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomFeatures()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.PackageEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.PackageEntity other = + (com.google.cloud.clouddms.v1.PackageEntity) obj; + + if (!getPackageSqlCode().equals(other.getPackageSqlCode())) return false; + if (!getPackageBody().equals(other.getPackageBody())) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PACKAGE_SQL_CODE_FIELD_NUMBER; + hash = (53 * hash) + getPackageSqlCode().hashCode(); + hash = (37 * hash) + PACKAGE_BODY_FIELD_NUMBER; + hash = (53 * hash) + getPackageBody().hashCode(); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.PackageEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.PackageEntity 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.clouddms.v1.PackageEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.PackageEntity 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.clouddms.v1.PackageEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.PackageEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.PackageEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.PackageEntity 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.clouddms.v1.PackageEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.PackageEntity 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.clouddms.v1.PackageEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.PackageEntity 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.clouddms.v1.PackageEntity 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; + } + /** + * + * + *
+   * Package's parent is a schema.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.PackageEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.PackageEntity) + com.google.cloud.clouddms.v1.PackageEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_PackageEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_PackageEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.PackageEntity.class, + com.google.cloud.clouddms.v1.PackageEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.PackageEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + packageSqlCode_ = ""; + packageBody_ = ""; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_PackageEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PackageEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PackageEntity build() { + com.google.cloud.clouddms.v1.PackageEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PackageEntity buildPartial() { + com.google.cloud.clouddms.v1.PackageEntity result = + new com.google.cloud.clouddms.v1.PackageEntity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.PackageEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.packageSqlCode_ = packageSqlCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.packageBody_ = packageBody_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + @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.clouddms.v1.PackageEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.PackageEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.PackageEntity other) { + if (other == com.google.cloud.clouddms.v1.PackageEntity.getDefaultInstance()) return this; + if (!other.getPackageSqlCode().isEmpty()) { + packageSqlCode_ = other.packageSqlCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPackageBody().isEmpty()) { + packageBody_ = other.packageBody_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + packageSqlCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + packageBody_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object packageSqlCode_ = ""; + /** + * + * + *
+     * The SQL code which creates the package.
+     * 
+ * + * string package_sql_code = 1; + * + * @return The packageSqlCode. + */ + public java.lang.String getPackageSqlCode() { + java.lang.Object ref = packageSqlCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageSqlCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the package.
+     * 
+ * + * string package_sql_code = 1; + * + * @return The bytes for packageSqlCode. + */ + public com.google.protobuf.ByteString getPackageSqlCodeBytes() { + java.lang.Object ref = packageSqlCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageSqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the package.
+     * 
+ * + * string package_sql_code = 1; + * + * @param value The packageSqlCode to set. + * @return This builder for chaining. + */ + public Builder setPackageSqlCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + packageSqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the package.
+     * 
+ * + * string package_sql_code = 1; + * + * @return This builder for chaining. + */ + public Builder clearPackageSqlCode() { + packageSqlCode_ = getDefaultInstance().getPackageSqlCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the package.
+     * 
+ * + * string package_sql_code = 1; + * + * @param value The bytes for packageSqlCode to set. + * @return This builder for chaining. + */ + public Builder setPackageSqlCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + packageSqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object packageBody_ = ""; + /** + * + * + *
+     * The SQL code which creates the package body. If the package specification
+     * has cursors or subprograms, then the package body is mandatory.
+     * 
+ * + * string package_body = 2; + * + * @return The packageBody. + */ + public java.lang.String getPackageBody() { + java.lang.Object ref = packageBody_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageBody_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the package body. If the package specification
+     * has cursors or subprograms, then the package body is mandatory.
+     * 
+ * + * string package_body = 2; + * + * @return The bytes for packageBody. + */ + public com.google.protobuf.ByteString getPackageBodyBytes() { + java.lang.Object ref = packageBody_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageBody_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the package body. If the package specification
+     * has cursors or subprograms, then the package body is mandatory.
+     * 
+ * + * string package_body = 2; + * + * @param value The packageBody to set. + * @return This builder for chaining. + */ + public Builder setPackageBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + packageBody_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the package body. If the package specification
+     * has cursors or subprograms, then the package body is mandatory.
+     * 
+ * + * string package_body = 2; + * + * @return This builder for chaining. + */ + public Builder clearPackageBody() { + packageBody_ = getDefaultInstance().getPackageBody(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the package body. If the package specification
+     * has cursors or subprograms, then the package body is mandatory.
+     * 
+ * + * string package_body = 2; + * + * @param value The bytes for packageBody to set. + * @return This builder for chaining. + */ + public Builder setPackageBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + packageBody_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000004); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @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.clouddms.v1.PackageEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.PackageEntity) + private static final com.google.cloud.clouddms.v1.PackageEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.PackageEntity(); + } + + public static com.google.cloud.clouddms.v1.PackageEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PackageEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PackageEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PackageEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PackageEntityOrBuilder.java new file mode 100644 index 000000000000..bc502b78fa46 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PackageEntityOrBuilder.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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface PackageEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.PackageEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The SQL code which creates the package.
+   * 
+ * + * string package_sql_code = 1; + * + * @return The packageSqlCode. + */ + java.lang.String getPackageSqlCode(); + /** + * + * + *
+   * The SQL code which creates the package.
+   * 
+ * + * string package_sql_code = 1; + * + * @return The bytes for packageSqlCode. + */ + com.google.protobuf.ByteString getPackageSqlCodeBytes(); + + /** + * + * + *
+   * The SQL code which creates the package body. If the package specification
+   * has cursors or subprograms, then the package body is mandatory.
+   * 
+ * + * string package_body = 2; + * + * @return The packageBody. + */ + java.lang.String getPackageBody(); + /** + * + * + *
+   * The SQL code which creates the package body. If the package specification
+   * has cursors or subprograms, then the package body is mandatory.
+   * 
+ * + * string package_body = 2; + * + * @return The bytes for packageBody. + */ + com.google.protobuf.ByteString getPackageBodyBytes(); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java index bf8731b5c7e7..4de54ff73bcb 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfile.java @@ -43,6 +43,7 @@ private PostgreSqlConnectionProfile() { username_ = ""; password_ = ""; cloudSqlId_ = ""; + networkArchitecture_ = 0; } @java.lang.Override @@ -71,6 +72,53 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.Builder.class); } + private int connectivityCase_ = 0; + private java.lang.Object connectivity_; + + public enum ConnectivityCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STATIC_IP_CONNECTIVITY(100), + PRIVATE_SERVICE_CONNECT_CONNECTIVITY(101), + CONNECTIVITY_NOT_SET(0); + private final int value; + + private ConnectivityCase(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 ConnectivityCase valueOf(int value) { + return forNumber(value); + } + + public static ConnectivityCase forNumber(int value) { + switch (value) { + case 100: + return STATIC_IP_CONNECTIVITY; + case 101: + return PRIVATE_SERVICE_CONNECT_CONNECTIVITY; + case 0: + return CONNECTIVITY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConnectivityCase getConnectivityCase() { + return ConnectivityCase.forNumber(connectivityCase_); + } + public static final int HOST_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -148,8 +196,9 @@ public int getPort() { * * *
-   * Required. The username that Database Migration Service will use to connect to the
-   * database. The value is encrypted when stored in Database Migration Service.
+   * Required. The username that Database Migration Service will use to connect
+   * to the database. The value is encrypted when stored in Database Migration
+   * Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -172,8 +221,9 @@ public java.lang.String getUsername() { * * *
-   * Required. The username that Database Migration Service will use to connect to the
-   * database. The value is encrypted when stored in Database Migration Service.
+   * Required. The username that Database Migration Service will use to connect
+   * to the database. The value is encrypted when stored in Database Migration
+   * Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -201,9 +251,10 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * *
-   * Required. Input only. The password for the user that Database Migration Service will be using to
-   * connect to the database. This field is not returned on request, and the
-   * value is encrypted when stored in Database Migration Service.
+   * Required. Input only. The password for the user that Database Migration
+   * Service will be using to connect to the database. This field is not
+   * returned on request, and the value is encrypted when stored in Database
+   * Migration Service.
    * 
* * @@ -228,9 +279,10 @@ public java.lang.String getPassword() { * * *
-   * Required. Input only. The password for the user that Database Migration Service will be using to
-   * connect to the database. This field is not returned on request, and the
-   * value is encrypted when stored in Database Migration Service.
+   * Required. Input only. The password for the user that Database Migration
+   * Service will be using to connect to the database. This field is not
+   * returned on request, and the value is encrypted when stored in Database
+   * Migration Service.
    * 
* * @@ -369,6 +421,158 @@ public com.google.protobuf.ByteString getCloudSqlIdBytes() { } } + public static final int NETWORK_ARCHITECTURE_FIELD_NUMBER = 8; + private int networkArchitecture_ = 0; + /** + * + * + *
+   * Output only. If the source is a Cloud SQL database, this field indicates
+   * the network architecture it's associated with.
+   * 
+ * + * + * .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for networkArchitecture. + */ + @java.lang.Override + public int getNetworkArchitectureValue() { + return networkArchitecture_; + } + /** + * + * + *
+   * Output only. If the source is a Cloud SQL database, this field indicates
+   * the network architecture it's associated with.
+   * 
+ * + * + * .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The networkArchitecture. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.NetworkArchitecture getNetworkArchitecture() { + com.google.cloud.clouddms.v1.NetworkArchitecture result = + com.google.cloud.clouddms.v1.NetworkArchitecture.forNumber(networkArchitecture_); + return result == null ? com.google.cloud.clouddms.v1.NetworkArchitecture.UNRECOGNIZED : result; + } + + public static final int STATIC_IP_CONNECTIVITY_FIELD_NUMBER = 100; + /** + * + * + *
+   * Static ip connectivity data (default, no additional details needed).
+   * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + * + * @return Whether the staticIpConnectivity field is set. + */ + @java.lang.Override + public boolean hasStaticIpConnectivity() { + return connectivityCase_ == 100; + } + /** + * + * + *
+   * Static ip connectivity data (default, no additional details needed).
+   * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + * + * @return The staticIpConnectivity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity() { + if (connectivityCase_ == 100) { + return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); + } + /** + * + * + *
+   * Static ip connectivity data (default, no additional details needed).
+   * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder + getStaticIpConnectivityOrBuilder() { + if (connectivityCase_ == 100) { + return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); + } + + public static final int PRIVATE_SERVICE_CONNECT_CONNECTIVITY_FIELD_NUMBER = 101; + /** + * + * + *
+   * Private service connect connectivity.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + * + * @return Whether the privateServiceConnectConnectivity field is set. + */ + @java.lang.Override + public boolean hasPrivateServiceConnectConnectivity() { + return connectivityCase_ == 101; + } + /** + * + * + *
+   * Private service connect connectivity.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + * + * @return The privateServiceConnectConnectivity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity + getPrivateServiceConnectConnectivity() { + if (connectivityCase_ == 101) { + return (com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.getDefaultInstance(); + } + /** + * + * + *
+   * Private service connect connectivity.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivityOrBuilder + getPrivateServiceConnectConnectivityOrBuilder() { + if (connectivityCase_ == 101) { + return (com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -404,6 +608,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudSqlId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, cloudSqlId_); } + if (networkArchitecture_ + != com.google.cloud.clouddms.v1.NetworkArchitecture.NETWORK_ARCHITECTURE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, networkArchitecture_); + } + if (connectivityCase_ == 100) { + output.writeMessage(100, (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_); + } + if (connectivityCase_ == 101) { + output.writeMessage( + 101, (com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) connectivity_); + } getUnknownFields().writeTo(output); } @@ -434,6 +650,21 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudSqlId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cloudSqlId_); } + if (networkArchitecture_ + != com.google.cloud.clouddms.v1.NetworkArchitecture.NETWORK_ARCHITECTURE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, networkArchitecture_); + } + if (connectivityCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_); + } + if (connectivityCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) connectivity_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -460,6 +691,19 @@ public boolean equals(final java.lang.Object obj) { if (!getSsl().equals(other.getSsl())) return false; } if (!getCloudSqlId().equals(other.getCloudSqlId())) return false; + if (networkArchitecture_ != other.networkArchitecture_) return false; + if (!getConnectivityCase().equals(other.getConnectivityCase())) return false; + switch (connectivityCase_) { + case 100: + if (!getStaticIpConnectivity().equals(other.getStaticIpConnectivity())) return false; + break; + case 101: + if (!getPrivateServiceConnectConnectivity() + .equals(other.getPrivateServiceConnectConnectivity())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -487,6 +731,20 @@ public int hashCode() { } hash = (37 * hash) + CLOUD_SQL_ID_FIELD_NUMBER; hash = (53 * hash) + getCloudSqlId().hashCode(); + hash = (37 * hash) + NETWORK_ARCHITECTURE_FIELD_NUMBER; + hash = (53 * hash) + networkArchitecture_; + switch (connectivityCase_) { + case 100: + hash = (37 * hash) + STATIC_IP_CONNECTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getStaticIpConnectivity().hashCode(); + break; + case 101: + hash = (37 * hash) + PRIVATE_SERVICE_CONNECT_CONNECTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateServiceConnectConnectivity().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -639,6 +897,15 @@ public Builder clear() { sslBuilder_ = null; } cloudSqlId_ = ""; + networkArchitecture_ = 0; + if (staticIpConnectivityBuilder_ != null) { + staticIpConnectivityBuilder_.clear(); + } + if (privateServiceConnectConnectivityBuilder_ != null) { + privateServiceConnectConnectivityBuilder_.clear(); + } + connectivityCase_ = 0; + connectivity_ = null; return this; } @@ -669,6 +936,7 @@ public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -696,6 +964,21 @@ private void buildPartial0(com.google.cloud.clouddms.v1.PostgreSqlConnectionProf if (((from_bitField0_ & 0x00000040) != 0)) { result.cloudSqlId_ = cloudSqlId_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.networkArchitecture_ = networkArchitecture_; + } + } + + private void buildPartialOneofs( + com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile result) { + result.connectivityCase_ = connectivityCase_; + result.connectivity_ = this.connectivity_; + if (connectivityCase_ == 100 && staticIpConnectivityBuilder_ != null) { + result.connectivity_ = staticIpConnectivityBuilder_.build(); + } + if (connectivityCase_ == 101 && privateServiceConnectConnectivityBuilder_ != null) { + result.connectivity_ = privateServiceConnectConnectivityBuilder_.build(); + } } @java.lang.Override @@ -773,6 +1056,25 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.PostgreSqlConnectionProfil bitField0_ |= 0x00000040; onChanged(); } + if (other.networkArchitecture_ != 0) { + setNetworkArchitectureValue(other.getNetworkArchitectureValue()); + } + switch (other.getConnectivityCase()) { + case STATIC_IP_CONNECTIVITY: + { + mergeStaticIpConnectivity(other.getStaticIpConnectivity()); + break; + } + case PRIVATE_SERVICE_CONNECT_CONNECTIVITY: + { + mergePrivateServiceConnectConnectivity(other.getPrivateServiceConnectConnectivity()); + break; + } + case CONNECTIVITY_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -841,6 +1143,27 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 64: + { + networkArchitecture_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 802: + { + input.readMessage( + getStaticIpConnectivityFieldBuilder().getBuilder(), extensionRegistry); + connectivityCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage( + getPrivateServiceConnectConnectivityFieldBuilder().getBuilder(), + extensionRegistry); + connectivityCase_ = 101; + break; + } // case 810 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -858,6 +1181,20 @@ public Builder mergeFrom( return this; } + private int connectivityCase_ = 0; + private java.lang.Object connectivity_; + + public ConnectivityCase getConnectivityCase() { + return ConnectivityCase.forNumber(connectivityCase_); + } + + public Builder clearConnectivity() { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object host_ = ""; @@ -1024,8 +1361,9 @@ public Builder clearPort() { * * *
-     * Required. The username that Database Migration Service will use to connect to the
-     * database. The value is encrypted when stored in Database Migration Service.
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1047,8 +1385,9 @@ public java.lang.String getUsername() { * * *
-     * Required. The username that Database Migration Service will use to connect to the
-     * database. The value is encrypted when stored in Database Migration Service.
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1070,8 +1409,9 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * *
-     * Required. The username that Database Migration Service will use to connect to the
-     * database. The value is encrypted when stored in Database Migration Service.
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1092,8 +1432,9 @@ public Builder setUsername(java.lang.String value) { * * *
-     * Required. The username that Database Migration Service will use to connect to the
-     * database. The value is encrypted when stored in Database Migration Service.
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1110,8 +1451,9 @@ public Builder clearUsername() { * * *
-     * Required. The username that Database Migration Service will use to connect to the
-     * database. The value is encrypted when stored in Database Migration Service.
+     * Required. The username that Database Migration Service will use to connect
+     * to the database. The value is encrypted when stored in Database Migration
+     * Service.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1135,9 +1477,10 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Input only. The password for the user that Database Migration Service will be using to
-     * connect to the database. This field is not returned on request, and the
-     * value is encrypted when stored in Database Migration Service.
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
      * 
* * @@ -1161,9 +1504,10 @@ public java.lang.String getPassword() { * * *
-     * Required. Input only. The password for the user that Database Migration Service will be using to
-     * connect to the database. This field is not returned on request, and the
-     * value is encrypted when stored in Database Migration Service.
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
      * 
* * @@ -1187,9 +1531,10 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * *
-     * Required. Input only. The password for the user that Database Migration Service will be using to
-     * connect to the database. This field is not returned on request, and the
-     * value is encrypted when stored in Database Migration Service.
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
      * 
* * @@ -1212,9 +1557,10 @@ public Builder setPassword(java.lang.String value) { * * *
-     * Required. Input only. The password for the user that Database Migration Service will be using to
-     * connect to the database. This field is not returned on request, and the
-     * value is encrypted when stored in Database Migration Service.
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
      * 
* * @@ -1233,9 +1579,10 @@ public Builder clearPassword() { * * *
-     * Required. Input only. The password for the user that Database Migration Service will be using to
-     * connect to the database. This field is not returned on request, and the
-     * value is encrypted when stored in Database Migration Service.
+     * Required. Input only. The password for the user that Database Migration
+     * Service will be using to connect to the database. This field is not
+     * returned on request, and the value is encrypted when stored in Database
+     * Migration Service.
      * 
* * @@ -1599,6 +1946,563 @@ public Builder setCloudSqlIdBytes(com.google.protobuf.ByteString value) { return this; } + private int networkArchitecture_ = 0; + /** + * + * + *
+     * Output only. If the source is a Cloud SQL database, this field indicates
+     * the network architecture it's associated with.
+     * 
+ * + * + * .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for networkArchitecture. + */ + @java.lang.Override + public int getNetworkArchitectureValue() { + return networkArchitecture_; + } + /** + * + * + *
+     * Output only. If the source is a Cloud SQL database, this field indicates
+     * the network architecture it's associated with.
+     * 
+ * + * + * .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for networkArchitecture to set. + * @return This builder for chaining. + */ + public Builder setNetworkArchitectureValue(int value) { + networkArchitecture_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If the source is a Cloud SQL database, this field indicates
+     * the network architecture it's associated with.
+     * 
+ * + * + * .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The networkArchitecture. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.NetworkArchitecture getNetworkArchitecture() { + com.google.cloud.clouddms.v1.NetworkArchitecture result = + com.google.cloud.clouddms.v1.NetworkArchitecture.forNumber(networkArchitecture_); + return result == null + ? com.google.cloud.clouddms.v1.NetworkArchitecture.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. If the source is a Cloud SQL database, this field indicates
+     * the network architecture it's associated with.
+     * 
+ * + * + * .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The networkArchitecture to set. + * @return This builder for chaining. + */ + public Builder setNetworkArchitecture(com.google.cloud.clouddms.v1.NetworkArchitecture value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + networkArchitecture_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If the source is a Cloud SQL database, this field indicates
+     * the network architecture it's associated with.
+     * 
+ * + * + * .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearNetworkArchitecture() { + bitField0_ = (bitField0_ & ~0x00000080); + networkArchitecture_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.StaticIpConnectivity, + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, + com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> + staticIpConnectivityBuilder_; + /** + * + * + *
+     * Static ip connectivity data (default, no additional details needed).
+     * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + * + * @return Whether the staticIpConnectivity field is set. + */ + @java.lang.Override + public boolean hasStaticIpConnectivity() { + return connectivityCase_ == 100; + } + /** + * + * + *
+     * Static ip connectivity data (default, no additional details needed).
+     * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + * + * @return The staticIpConnectivity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity() { + if (staticIpConnectivityBuilder_ == null) { + if (connectivityCase_ == 100) { + return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); + } else { + if (connectivityCase_ == 100) { + return staticIpConnectivityBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Static ip connectivity data (default, no additional details needed).
+     * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + */ + public Builder setStaticIpConnectivity( + com.google.cloud.clouddms.v1.StaticIpConnectivity value) { + if (staticIpConnectivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectivity_ = value; + onChanged(); + } else { + staticIpConnectivityBuilder_.setMessage(value); + } + connectivityCase_ = 100; + return this; + } + /** + * + * + *
+     * Static ip connectivity data (default, no additional details needed).
+     * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + */ + public Builder setStaticIpConnectivity( + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder builderForValue) { + if (staticIpConnectivityBuilder_ == null) { + connectivity_ = builderForValue.build(); + onChanged(); + } else { + staticIpConnectivityBuilder_.setMessage(builderForValue.build()); + } + connectivityCase_ = 100; + return this; + } + /** + * + * + *
+     * Static ip connectivity data (default, no additional details needed).
+     * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + */ + public Builder mergeStaticIpConnectivity( + com.google.cloud.clouddms.v1.StaticIpConnectivity value) { + if (staticIpConnectivityBuilder_ == null) { + if (connectivityCase_ == 100 + && connectivity_ + != com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance()) { + connectivity_ = + com.google.cloud.clouddms.v1.StaticIpConnectivity.newBuilder( + (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_) + .mergeFrom(value) + .buildPartial(); + } else { + connectivity_ = value; + } + onChanged(); + } else { + if (connectivityCase_ == 100) { + staticIpConnectivityBuilder_.mergeFrom(value); + } else { + staticIpConnectivityBuilder_.setMessage(value); + } + } + connectivityCase_ = 100; + return this; + } + /** + * + * + *
+     * Static ip connectivity data (default, no additional details needed).
+     * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + */ + public Builder clearStaticIpConnectivity() { + if (staticIpConnectivityBuilder_ == null) { + if (connectivityCase_ == 100) { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + } + } else { + if (connectivityCase_ == 100) { + connectivityCase_ = 0; + connectivity_ = null; + } + staticIpConnectivityBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Static ip connectivity data (default, no additional details needed).
+     * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + */ + public com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder + getStaticIpConnectivityBuilder() { + return getStaticIpConnectivityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Static ip connectivity data (default, no additional details needed).
+     * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder + getStaticIpConnectivityOrBuilder() { + if ((connectivityCase_ == 100) && (staticIpConnectivityBuilder_ != null)) { + return staticIpConnectivityBuilder_.getMessageOrBuilder(); + } else { + if (connectivityCase_ == 100) { + return (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Static ip connectivity data (default, no additional details needed).
+     * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.StaticIpConnectivity, + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, + com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder> + getStaticIpConnectivityFieldBuilder() { + if (staticIpConnectivityBuilder_ == null) { + if (!(connectivityCase_ == 100)) { + connectivity_ = com.google.cloud.clouddms.v1.StaticIpConnectivity.getDefaultInstance(); + } + staticIpConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.StaticIpConnectivity, + com.google.cloud.clouddms.v1.StaticIpConnectivity.Builder, + com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder>( + (com.google.cloud.clouddms.v1.StaticIpConnectivity) connectivity_, + getParentForChildren(), + isClean()); + connectivity_ = null; + } + connectivityCase_ = 100; + onChanged(); + return staticIpConnectivityBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity, + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.Builder, + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivityOrBuilder> + privateServiceConnectConnectivityBuilder_; + /** + * + * + *
+     * Private service connect connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + * + * @return Whether the privateServiceConnectConnectivity field is set. + */ + @java.lang.Override + public boolean hasPrivateServiceConnectConnectivity() { + return connectivityCase_ == 101; + } + /** + * + * + *
+     * Private service connect connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + * + * @return The privateServiceConnectConnectivity. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity + getPrivateServiceConnectConnectivity() { + if (privateServiceConnectConnectivityBuilder_ == null) { + if (connectivityCase_ == 101) { + return (com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.getDefaultInstance(); + } else { + if (connectivityCase_ == 101) { + return privateServiceConnectConnectivityBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Private service connect connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + */ + public Builder setPrivateServiceConnectConnectivity( + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity value) { + if (privateServiceConnectConnectivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectivity_ = value; + onChanged(); + } else { + privateServiceConnectConnectivityBuilder_.setMessage(value); + } + connectivityCase_ = 101; + return this; + } + /** + * + * + *
+     * Private service connect connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + */ + public Builder setPrivateServiceConnectConnectivity( + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.Builder builderForValue) { + if (privateServiceConnectConnectivityBuilder_ == null) { + connectivity_ = builderForValue.build(); + onChanged(); + } else { + privateServiceConnectConnectivityBuilder_.setMessage(builderForValue.build()); + } + connectivityCase_ = 101; + return this; + } + /** + * + * + *
+     * Private service connect connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + */ + public Builder mergePrivateServiceConnectConnectivity( + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity value) { + if (privateServiceConnectConnectivityBuilder_ == null) { + if (connectivityCase_ == 101 + && connectivity_ + != com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity + .getDefaultInstance()) { + connectivity_ = + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.newBuilder( + (com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) + connectivity_) + .mergeFrom(value) + .buildPartial(); + } else { + connectivity_ = value; + } + onChanged(); + } else { + if (connectivityCase_ == 101) { + privateServiceConnectConnectivityBuilder_.mergeFrom(value); + } else { + privateServiceConnectConnectivityBuilder_.setMessage(value); + } + } + connectivityCase_ = 101; + return this; + } + /** + * + * + *
+     * Private service connect connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + */ + public Builder clearPrivateServiceConnectConnectivity() { + if (privateServiceConnectConnectivityBuilder_ == null) { + if (connectivityCase_ == 101) { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + } + } else { + if (connectivityCase_ == 101) { + connectivityCase_ = 0; + connectivity_ = null; + } + privateServiceConnectConnectivityBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Private service connect connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + */ + public com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.Builder + getPrivateServiceConnectConnectivityBuilder() { + return getPrivateServiceConnectConnectivityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Private service connect connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivityOrBuilder + getPrivateServiceConnectConnectivityOrBuilder() { + if ((connectivityCase_ == 101) && (privateServiceConnectConnectivityBuilder_ != null)) { + return privateServiceConnectConnectivityBuilder_.getMessageOrBuilder(); + } else { + if (connectivityCase_ == 101) { + return (com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) connectivity_; + } + return com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.getDefaultInstance(); + } + } + /** + * + * + *
+     * Private service connect connectivity.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity, + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.Builder, + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivityOrBuilder> + getPrivateServiceConnectConnectivityFieldBuilder() { + if (privateServiceConnectConnectivityBuilder_ == null) { + if (!(connectivityCase_ == 101)) { + connectivity_ = + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.getDefaultInstance(); + } + privateServiceConnectConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity, + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.Builder, + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivityOrBuilder>( + (com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) connectivity_, + getParentForChildren(), + isClean()); + connectivity_ = null; + } + connectivityCase_ = 101; + onChanged(); + return privateServiceConnectConnectivityBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java index 2d7a74b62b45..854d8180d9bf 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PostgreSqlConnectionProfileOrBuilder.java @@ -65,8 +65,9 @@ public interface PostgreSqlConnectionProfileOrBuilder * * *
-   * Required. The username that Database Migration Service will use to connect to the
-   * database. The value is encrypted when stored in Database Migration Service.
+   * Required. The username that Database Migration Service will use to connect
+   * to the database. The value is encrypted when stored in Database Migration
+   * Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -78,8 +79,9 @@ public interface PostgreSqlConnectionProfileOrBuilder * * *
-   * Required. The username that Database Migration Service will use to connect to the
-   * database. The value is encrypted when stored in Database Migration Service.
+   * Required. The username that Database Migration Service will use to connect
+   * to the database. The value is encrypted when stored in Database Migration
+   * Service.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -92,9 +94,10 @@ public interface PostgreSqlConnectionProfileOrBuilder * * *
-   * Required. Input only. The password for the user that Database Migration Service will be using to
-   * connect to the database. This field is not returned on request, and the
-   * value is encrypted when stored in Database Migration Service.
+   * Required. Input only. The password for the user that Database Migration
+   * Service will be using to connect to the database. This field is not
+   * returned on request, and the value is encrypted when stored in Database
+   * Migration Service.
    * 
* * @@ -108,9 +111,10 @@ public interface PostgreSqlConnectionProfileOrBuilder * * *
-   * Required. Input only. The password for the user that Database Migration Service will be using to
-   * connect to the database. This field is not returned on request, and the
-   * value is encrypted when stored in Database Migration Service.
+   * Required. Input only. The password for the user that Database Migration
+   * Service will be using to connect to the database. This field is not
+   * returned on request, and the value is encrypted when stored in Database
+   * Migration Service.
    * 
* * @@ -195,4 +199,116 @@ public interface PostgreSqlConnectionProfileOrBuilder * @return The bytes for cloudSqlId. */ com.google.protobuf.ByteString getCloudSqlIdBytes(); + + /** + * + * + *
+   * Output only. If the source is a Cloud SQL database, this field indicates
+   * the network architecture it's associated with.
+   * 
+ * + * + * .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for networkArchitecture. + */ + int getNetworkArchitectureValue(); + /** + * + * + *
+   * Output only. If the source is a Cloud SQL database, this field indicates
+   * the network architecture it's associated with.
+   * 
+ * + * + * .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The networkArchitecture. + */ + com.google.cloud.clouddms.v1.NetworkArchitecture getNetworkArchitecture(); + + /** + * + * + *
+   * Static ip connectivity data (default, no additional details needed).
+   * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + * + * @return Whether the staticIpConnectivity field is set. + */ + boolean hasStaticIpConnectivity(); + /** + * + * + *
+   * Static ip connectivity data (default, no additional details needed).
+   * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + * + * @return The staticIpConnectivity. + */ + com.google.cloud.clouddms.v1.StaticIpConnectivity getStaticIpConnectivity(); + /** + * + * + *
+   * Static ip connectivity data (default, no additional details needed).
+   * 
+ * + * .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100; + */ + com.google.cloud.clouddms.v1.StaticIpConnectivityOrBuilder getStaticIpConnectivityOrBuilder(); + + /** + * + * + *
+   * Private service connect connectivity.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + * + * @return Whether the privateServiceConnectConnectivity field is set. + */ + boolean hasPrivateServiceConnectConnectivity(); + /** + * + * + *
+   * Private service connect connectivity.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + * + * @return The privateServiceConnectConnectivity. + */ + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity + getPrivateServiceConnectConnectivity(); + /** + * + * + *
+   * Private service connect connectivity.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101; + * + */ + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivityOrBuilder + getPrivateServiceConnectConnectivityOrBuilder(); + + public com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile.ConnectivityCase + getConnectivityCase(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnection.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnection.java new file mode 100644 index 000000000000..bfc465efda5d --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnection.java @@ -0,0 +1,2762 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * The PrivateConnection resource is used to establish private connectivity
+ * with the customer's network.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.PrivateConnection} + */ +public final class PrivateConnection extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.PrivateConnection) + PrivateConnectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateConnection.newBuilder() to construct. + private PrivateConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateConnection() { + name_ = ""; + displayName_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateConnection(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateConnection_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateConnection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.PrivateConnection.class, + com.google.cloud.clouddms.v1.PrivateConnection.Builder.class); + } + + /** + * + * + *
+   * Private Connection state.
+   * 
+ * + * Protobuf enum {@code google.cloud.clouddms.v1.PrivateConnection.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** STATE_UNSPECIFIED = 0; */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The private connection is in creation state - creating resources.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * The private connection has been created with all of its resources.
+     * 
+ * + * CREATED = 2; + */ + CREATED(2), + /** + * + * + *
+     * The private connection creation has failed.
+     * 
+ * + * FAILED = 3; + */ + FAILED(3), + /** + * + * + *
+     * The private connection is being deleted.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + /** + * + * + *
+     * Delete request has failed, resource is in invalid state.
+     * 
+ * + * FAILED_TO_DELETE = 5; + */ + FAILED_TO_DELETE(5), + /** + * + * + *
+     * The private connection has been deleted.
+     * 
+ * + * DELETED = 6; + */ + DELETED(6), + UNRECOGNIZED(-1), + ; + + /** STATE_UNSPECIFIED = 0; */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The private connection is in creation state - creating resources.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
+     * The private connection has been created with all of its resources.
+     * 
+ * + * CREATED = 2; + */ + public static final int CREATED_VALUE = 2; + /** + * + * + *
+     * The private connection creation has failed.
+     * 
+ * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + /** + * + * + *
+     * The private connection is being deleted.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + /** + * + * + *
+     * Delete request has failed, resource is in invalid state.
+     * 
+ * + * FAILED_TO_DELETE = 5; + */ + public static final int FAILED_TO_DELETE_VALUE = 5; + /** + * + * + *
+     * The private connection has been deleted.
+     * 
+ * + * DELETED = 6; + */ + public static final int DELETED_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return CREATED; + case 3: + return FAILED; + case 4: + return DELETING; + case 5: + return FAILED_TO_DELETE; + case 6: + return DELETED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.clouddms.v1.PrivateConnection.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.clouddms.v1.PrivateConnection.State) + } + + private int connectivityCase_ = 0; + private java.lang.Object connectivity_; + + public enum ConnectivityCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VPC_PEERING_CONFIG(100), + CONNECTIVITY_NOT_SET(0); + private final int value; + + private ConnectivityCase(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 ConnectivityCase valueOf(int value) { + return forNumber(value); + } + + public static ConnectivityCase forNumber(int value) { + switch (value) { + case 100: + return VPC_PEERING_CONFIG; + case 0: + return CONNECTIVITY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConnectivityCase getConnectivityCase() { + return ConnectivityCase.forNumber(connectivityCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the resource.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the resource.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The create time of the resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. The create time of the resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The create time of the resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The last update time of the resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The last update time of the resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. The last update time of the resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateConnection_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * The resource labels for private connections to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * The resource labels for private connections to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The resource labels for private connections to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The resource labels for private connections to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * The private connection display name.
+   * 
+ * + * string display_name = 5; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * The private connection display name.
+   * 
+ * + * string display_name = 5; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + /** + * + * + *
+   * Output only. The state of the private connection.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. The state of the private connection.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnection.State getState() { + com.google.cloud.clouddms.v1.PrivateConnection.State result = + com.google.cloud.clouddms.v1.PrivateConnection.State.forNumber(state_); + return result == null + ? com.google.cloud.clouddms.v1.PrivateConnection.State.UNRECOGNIZED + : result; + } + + public static final int ERROR_FIELD_NUMBER = 7; + private com.google.rpc.Status error_; + /** + * + * + *
+   * Output only. The error details in case of state FAILED.
+   * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return error_ != null; + } + /** + * + * + *
+   * Output only. The error details in case of state FAILED.
+   * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
+   * Output only. The error details in case of state FAILED.
+   * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + public static final int VPC_PEERING_CONFIG_FIELD_NUMBER = 100; + /** + * + * + *
+   * VPC peering configuration.
+   * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + * + * @return Whether the vpcPeeringConfig field is set. + */ + @java.lang.Override + public boolean hasVpcPeeringConfig() { + return connectivityCase_ == 100; + } + /** + * + * + *
+   * VPC peering configuration.
+   * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + * + * @return The vpcPeeringConfig. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.VpcPeeringConfig getVpcPeeringConfig() { + if (connectivityCase_ == 100) { + return (com.google.cloud.clouddms.v1.VpcPeeringConfig) connectivity_; + } + return com.google.cloud.clouddms.v1.VpcPeeringConfig.getDefaultInstance(); + } + /** + * + * + *
+   * VPC peering configuration.
+   * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder() { + if (connectivityCase_ == 100) { + return (com.google.cloud.clouddms.v1.VpcPeeringConfig) connectivity_; + } + return com.google.cloud.clouddms.v1.VpcPeeringConfig.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); + } + if (state_ + != com.google.cloud.clouddms.v1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (error_ != null) { + output.writeMessage(7, getError()); + } + if (connectivityCase_ == 100) { + output.writeMessage(100, (com.google.cloud.clouddms.v1.VpcPeeringConfig) connectivity_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); + } + if (state_ + != com.google.cloud.clouddms.v1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); + } + if (connectivityCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.clouddms.v1.VpcPeeringConfig) connectivity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.PrivateConnection)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.PrivateConnection other = + (com.google.cloud.clouddms.v1.PrivateConnection) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (state_ != other.state_) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (!getConnectivityCase().equals(other.getConnectivityCase())) return false; + switch (connectivityCase_) { + case 100: + if (!getVpcPeeringConfig().equals(other.getVpcPeeringConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + switch (connectivityCase_) { + case 100: + hash = (37 * hash) + VPC_PEERING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVpcPeeringConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.PrivateConnection parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.PrivateConnection 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.clouddms.v1.PrivateConnection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.PrivateConnection 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.clouddms.v1.PrivateConnection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.PrivateConnection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.PrivateConnection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.PrivateConnection 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.clouddms.v1.PrivateConnection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.PrivateConnection 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.clouddms.v1.PrivateConnection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.PrivateConnection 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.clouddms.v1.PrivateConnection 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; + } + /** + * + * + *
+   * The PrivateConnection resource is used to establish private connectivity
+   * with the customer's network.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.PrivateConnection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.PrivateConnection) + com.google.cloud.clouddms.v1.PrivateConnectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateConnection_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateConnection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.PrivateConnection.class, + com.google.cloud.clouddms.v1.PrivateConnection.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.PrivateConnection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + displayName_ = ""; + state_ = 0; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + if (vpcPeeringConfigBuilder_ != null) { + vpcPeeringConfigBuilder_.clear(); + } + connectivityCase_ = 0; + connectivity_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateConnection_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnection getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.PrivateConnection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnection build() { + com.google.cloud.clouddms.v1.PrivateConnection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnection buildPartial() { + com.google.cloud.clouddms.v1.PrivateConnection result = + new com.google.cloud.clouddms.v1.PrivateConnection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.PrivateConnection result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.clouddms.v1.PrivateConnection result) { + result.connectivityCase_ = connectivityCase_; + result.connectivity_ = this.connectivity_; + if (connectivityCase_ == 100 && vpcPeeringConfigBuilder_ != null) { + result.connectivity_ = vpcPeeringConfigBuilder_.build(); + } + } + + @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.clouddms.v1.PrivateConnection) { + return mergeFrom((com.google.cloud.clouddms.v1.PrivateConnection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.PrivateConnection other) { + if (other == com.google.cloud.clouddms.v1.PrivateConnection.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasError()) { + mergeError(other.getError()); + } + switch (other.getConnectivityCase()) { + case VPC_PEERING_CONFIG: + { + mergeVpcPeeringConfig(other.getVpcPeeringConfig()); + break; + } + case CONNECTIVITY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 802: + { + input.readMessage( + getVpcPeeringConfigFieldBuilder().getBuilder(), extensionRegistry); + connectivityCase_ = 100; + break; + } // case 802 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int connectivityCase_ = 0; + private java.lang.Object connectivity_; + + public ConnectivityCase getConnectivityCase() { + return ConnectivityCase.forNumber(connectivityCase_); + } + + public Builder clearConnectivity() { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the resource.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the resource.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the resource.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the resource.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the resource.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. The create time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. The create time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The create time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The create time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The create time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The create time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The create time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The create time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. The create time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. The last update time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. The last update time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The last update time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The last update time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The last update time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The last update time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The last update time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The last update time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. The last update time of the resource.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The resource labels for private connections to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * The resource labels for private connections to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The resource labels for private connections to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The resource labels for private connections to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The resource labels for private connections to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * The resource labels for private connections to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
+     * The resource labels for private connections to use to annotate any related
+     * underlying resources such as Compute Engine VMs. An object containing a
+     * list of "key": "value" pairs.
+     * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The private connection display name.
+     * 
+ * + * string display_name = 5; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The private connection display name.
+     * 
+ * + * string display_name = 5; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The private connection display name.
+     * 
+ * + * string display_name = 5; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The private connection display name.
+     * 
+ * + * string display_name = 5; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * The private connection display name.
+     * 
+ * + * string display_name = 5; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The state of the private connection.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. The state of the private connection.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the private connection.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnection.State getState() { + com.google.cloud.clouddms.v1.PrivateConnection.State result = + com.google.cloud.clouddms.v1.PrivateConnection.State.forNumber(state_); + return result == null + ? com.google.cloud.clouddms.v1.PrivateConnection.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The state of the private connection.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.clouddms.v1.PrivateConnection.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the private connection.
+     * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
+     * Output only. The error details in case of state FAILED.
+     * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Output only. The error details in case of state FAILED.
+     * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The error details in case of state FAILED.
+     * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The error details in case of state FAILED.
+     * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The error details in case of state FAILED.
+     * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The error details in case of state FAILED.
+     * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000040); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The error details in case of state FAILED.
+     * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The error details in case of state FAILED.
+     * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
+     * Output only. The error details in case of state FAILED.
+     * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.VpcPeeringConfig, + com.google.cloud.clouddms.v1.VpcPeeringConfig.Builder, + com.google.cloud.clouddms.v1.VpcPeeringConfigOrBuilder> + vpcPeeringConfigBuilder_; + /** + * + * + *
+     * VPC peering configuration.
+     * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + * + * @return Whether the vpcPeeringConfig field is set. + */ + @java.lang.Override + public boolean hasVpcPeeringConfig() { + return connectivityCase_ == 100; + } + /** + * + * + *
+     * VPC peering configuration.
+     * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + * + * @return The vpcPeeringConfig. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.VpcPeeringConfig getVpcPeeringConfig() { + if (vpcPeeringConfigBuilder_ == null) { + if (connectivityCase_ == 100) { + return (com.google.cloud.clouddms.v1.VpcPeeringConfig) connectivity_; + } + return com.google.cloud.clouddms.v1.VpcPeeringConfig.getDefaultInstance(); + } else { + if (connectivityCase_ == 100) { + return vpcPeeringConfigBuilder_.getMessage(); + } + return com.google.cloud.clouddms.v1.VpcPeeringConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * VPC peering configuration.
+     * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + public Builder setVpcPeeringConfig(com.google.cloud.clouddms.v1.VpcPeeringConfig value) { + if (vpcPeeringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectivity_ = value; + onChanged(); + } else { + vpcPeeringConfigBuilder_.setMessage(value); + } + connectivityCase_ = 100; + return this; + } + /** + * + * + *
+     * VPC peering configuration.
+     * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + public Builder setVpcPeeringConfig( + com.google.cloud.clouddms.v1.VpcPeeringConfig.Builder builderForValue) { + if (vpcPeeringConfigBuilder_ == null) { + connectivity_ = builderForValue.build(); + onChanged(); + } else { + vpcPeeringConfigBuilder_.setMessage(builderForValue.build()); + } + connectivityCase_ = 100; + return this; + } + /** + * + * + *
+     * VPC peering configuration.
+     * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + public Builder mergeVpcPeeringConfig(com.google.cloud.clouddms.v1.VpcPeeringConfig value) { + if (vpcPeeringConfigBuilder_ == null) { + if (connectivityCase_ == 100 + && connectivity_ + != com.google.cloud.clouddms.v1.VpcPeeringConfig.getDefaultInstance()) { + connectivity_ = + com.google.cloud.clouddms.v1.VpcPeeringConfig.newBuilder( + (com.google.cloud.clouddms.v1.VpcPeeringConfig) connectivity_) + .mergeFrom(value) + .buildPartial(); + } else { + connectivity_ = value; + } + onChanged(); + } else { + if (connectivityCase_ == 100) { + vpcPeeringConfigBuilder_.mergeFrom(value); + } else { + vpcPeeringConfigBuilder_.setMessage(value); + } + } + connectivityCase_ = 100; + return this; + } + /** + * + * + *
+     * VPC peering configuration.
+     * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + public Builder clearVpcPeeringConfig() { + if (vpcPeeringConfigBuilder_ == null) { + if (connectivityCase_ == 100) { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + } + } else { + if (connectivityCase_ == 100) { + connectivityCase_ = 0; + connectivity_ = null; + } + vpcPeeringConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * VPC peering configuration.
+     * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + public com.google.cloud.clouddms.v1.VpcPeeringConfig.Builder getVpcPeeringConfigBuilder() { + return getVpcPeeringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * VPC peering configuration.
+     * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder() { + if ((connectivityCase_ == 100) && (vpcPeeringConfigBuilder_ != null)) { + return vpcPeeringConfigBuilder_.getMessageOrBuilder(); + } else { + if (connectivityCase_ == 100) { + return (com.google.cloud.clouddms.v1.VpcPeeringConfig) connectivity_; + } + return com.google.cloud.clouddms.v1.VpcPeeringConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * VPC peering configuration.
+     * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.VpcPeeringConfig, + com.google.cloud.clouddms.v1.VpcPeeringConfig.Builder, + com.google.cloud.clouddms.v1.VpcPeeringConfigOrBuilder> + getVpcPeeringConfigFieldBuilder() { + if (vpcPeeringConfigBuilder_ == null) { + if (!(connectivityCase_ == 100)) { + connectivity_ = com.google.cloud.clouddms.v1.VpcPeeringConfig.getDefaultInstance(); + } + vpcPeeringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.VpcPeeringConfig, + com.google.cloud.clouddms.v1.VpcPeeringConfig.Builder, + com.google.cloud.clouddms.v1.VpcPeeringConfigOrBuilder>( + (com.google.cloud.clouddms.v1.VpcPeeringConfig) connectivity_, + getParentForChildren(), + isClean()); + connectivity_ = null; + } + connectivityCase_ = 100; + onChanged(); + return vpcPeeringConfigBuilder_; + } + + @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.clouddms.v1.PrivateConnection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.PrivateConnection) + private static final com.google.cloud.clouddms.v1.PrivateConnection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.PrivateConnection(); + } + + public static com.google.cloud.clouddms.v1.PrivateConnection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateConnection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectionName.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectionName.java new file mode 100644 index 000000000000..35a160caf1bd --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectionName.java @@ -0,0 +1,231 @@ +/* + * 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.clouddms.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class PrivateConnectionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CONNECTION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateConnections/{private_connection}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateConnection; + + @Deprecated + protected PrivateConnectionName() { + project = null; + location = null; + privateConnection = null; + } + + private PrivateConnectionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateConnection = Preconditions.checkNotNull(builder.getPrivateConnection()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateConnection() { + return privateConnection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PrivateConnectionName of( + String project, String location, String privateConnection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateConnection(privateConnection) + .build(); + } + + public static String format(String project, String location, String privateConnection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateConnection(privateConnection) + .build() + .toString(); + } + + public static PrivateConnectionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CONNECTION.validatedMatch( + formattedString, "PrivateConnectionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("private_connection")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (PrivateConnectionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PRIVATE_CONNECTION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (privateConnection != null) { + fieldMapBuilder.put("private_connection", privateConnection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CONNECTION.instantiate( + "project", project, "location", location, "private_connection", privateConnection); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + PrivateConnectionName that = ((PrivateConnectionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateConnection, that.privateConnection); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(privateConnection); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/privateConnections/{private_connection}. + */ + public static class Builder { + private String project; + private String location; + private String privateConnection; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateConnection() { + return privateConnection; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPrivateConnection(String privateConnection) { + this.privateConnection = privateConnection; + return this; + } + + private Builder(PrivateConnectionName privateConnectionName) { + this.project = privateConnectionName.project; + this.location = privateConnectionName.location; + this.privateConnection = privateConnectionName.privateConnection; + } + + public PrivateConnectionName build() { + return new PrivateConnectionName(this); + } + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectionOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectionOrBuilder.java new file mode 100644 index 000000000000..77e5984810c1 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectionOrBuilder.java @@ -0,0 +1,325 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface PrivateConnectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.PrivateConnection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the resource.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the resource.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The create time of the resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The create time of the resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The create time of the resource.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The last update time of the resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The last update time of the resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The last update time of the resource.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * The resource labels for private connections to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + * + * + *
+   * The resource labels for private connections to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * The resource labels for private connections to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The resource labels for private connections to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * The resource labels for private connections to use to annotate any related
+   * underlying resources such as Compute Engine VMs. An object containing a
+   * list of "key": "value" pairs.
+   * Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * The private connection display name.
+   * 
+ * + * string display_name = 5; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The private connection display name.
+   * 
+ * + * string display_name = 5; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The state of the private connection.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. The state of the private connection.
+   * 
+ * + * + * .google.cloud.clouddms.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.clouddms.v1.PrivateConnection.State getState(); + + /** + * + * + *
+   * Output only. The error details in case of state FAILED.
+   * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * + * + *
+   * Output only. The error details in case of state FAILED.
+   * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + com.google.rpc.Status getError(); + /** + * + * + *
+   * Output only. The error details in case of state FAILED.
+   * 
+ * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
+   * VPC peering configuration.
+   * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + * + * @return Whether the vpcPeeringConfig field is set. + */ + boolean hasVpcPeeringConfig(); + /** + * + * + *
+   * VPC peering configuration.
+   * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + * + * @return The vpcPeeringConfig. + */ + com.google.cloud.clouddms.v1.VpcPeeringConfig getVpcPeeringConfig(); + /** + * + * + *
+   * VPC peering configuration.
+   * 
+ * + * .google.cloud.clouddms.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + com.google.cloud.clouddms.v1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder(); + + public com.google.cloud.clouddms.v1.PrivateConnection.ConnectivityCase getConnectivityCase(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectivity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectivity.java new file mode 100644 index 000000000000..b2c2b0c7b7de --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectivity.java @@ -0,0 +1,629 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Private Connectivity.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.PrivateConnectivity} + */ +public final class PrivateConnectivity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.PrivateConnectivity) + PrivateConnectivityOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateConnectivity.newBuilder() to construct. + private PrivateConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateConnectivity() { + privateConnection_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateConnectivity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateConnectivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateConnectivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.PrivateConnectivity.class, + com.google.cloud.clouddms.v1.PrivateConnectivity.Builder.class); + } + + public static final int PRIVATE_CONNECTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateConnection_ = ""; + /** + * + * + *
+   * Required. The resource name (URI) of the private connection.
+   * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateConnection. + */ + @java.lang.Override + public java.lang.String getPrivateConnection() { + java.lang.Object ref = privateConnection_; + 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(); + privateConnection_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name (URI) of the private connection.
+   * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateConnection. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateConnectionBytes() { + java.lang.Object ref = privateConnection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateConnection_ = 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(privateConnection_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateConnection_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnection_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privateConnection_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.PrivateConnectivity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.PrivateConnectivity other = + (com.google.cloud.clouddms.v1.PrivateConnectivity) obj; + + if (!getPrivateConnection().equals(other.getPrivateConnection())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRIVATE_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnection().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.PrivateConnectivity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.PrivateConnectivity 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.clouddms.v1.PrivateConnectivity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.PrivateConnectivity 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.clouddms.v1.PrivateConnectivity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.PrivateConnectivity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.PrivateConnectivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.PrivateConnectivity 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.clouddms.v1.PrivateConnectivity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.PrivateConnectivity 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.clouddms.v1.PrivateConnectivity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.PrivateConnectivity 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.clouddms.v1.PrivateConnectivity 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; + } + /** + * + * + *
+   * Private Connectivity.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.PrivateConnectivity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.PrivateConnectivity) + com.google.cloud.clouddms.v1.PrivateConnectivityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateConnectivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateConnectivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.PrivateConnectivity.class, + com.google.cloud.clouddms.v1.PrivateConnectivity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.PrivateConnectivity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + privateConnection_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateConnectivity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnectivity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.PrivateConnectivity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnectivity build() { + com.google.cloud.clouddms.v1.PrivateConnectivity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnectivity buildPartial() { + com.google.cloud.clouddms.v1.PrivateConnectivity result = + new com.google.cloud.clouddms.v1.PrivateConnectivity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.PrivateConnectivity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.privateConnection_ = privateConnection_; + } + } + + @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.clouddms.v1.PrivateConnectivity) { + return mergeFrom((com.google.cloud.clouddms.v1.PrivateConnectivity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.PrivateConnectivity other) { + if (other == com.google.cloud.clouddms.v1.PrivateConnectivity.getDefaultInstance()) + return this; + if (!other.getPrivateConnection().isEmpty()) { + privateConnection_ = other.privateConnection_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + privateConnection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object privateConnection_ = ""; + /** + * + * + *
+     * Required. The resource name (URI) of the private connection.
+     * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateConnection. + */ + public java.lang.String getPrivateConnection() { + java.lang.Object ref = privateConnection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateConnection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name (URI) of the private connection.
+     * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateConnection. + */ + public com.google.protobuf.ByteString getPrivateConnectionBytes() { + java.lang.Object ref = privateConnection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateConnection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name (URI) of the private connection.
+     * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The privateConnection to set. + * @return This builder for chaining. + */ + public Builder setPrivateConnection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateConnection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name (URI) of the private connection.
+     * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrivateConnection() { + privateConnection_ = getDefaultInstance().getPrivateConnection(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name (URI) of the private connection.
+     * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for privateConnection to set. + * @return This builder for chaining. + */ + public Builder setPrivateConnectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateConnection_ = value; + bitField0_ |= 0x00000001; + 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.clouddms.v1.PrivateConnectivity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.PrivateConnectivity) + private static final com.google.cloud.clouddms.v1.PrivateConnectivity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.PrivateConnectivity(); + } + + public static com.google.cloud.clouddms.v1.PrivateConnectivity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateConnectivity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectivityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectivityOrBuilder.java new file mode 100644 index 000000000000..758f1d2811a0 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectivityOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface PrivateConnectivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.PrivateConnectivity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name (URI) of the private connection.
+   * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateConnection. + */ + java.lang.String getPrivateConnection(); + /** + * + * + *
+   * Required. The resource name (URI) of the private connection.
+   * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateConnection. + */ + com.google.protobuf.ByteString getPrivateConnectionBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateServiceConnectConnectivity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateServiceConnectConnectivity.java new file mode 100644 index 000000000000..425df4ebc1c1 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateServiceConnectConnectivity.java @@ -0,0 +1,653 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Private Service Connect connectivity
+ * (https://cloud.google.com/vpc/docs/private-service-connect#service-attachments)
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.PrivateServiceConnectConnectivity} + */ +public final class PrivateServiceConnectConnectivity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) + PrivateServiceConnectConnectivityOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateServiceConnectConnectivity.newBuilder() to construct. + private PrivateServiceConnectConnectivity( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateServiceConnectConnectivity() { + serviceAttachment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateServiceConnectConnectivity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateServiceConnectConnectivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateServiceConnectConnectivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.class, + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.Builder.class); + } + + public static final int SERVICE_ATTACHMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
+   * Required. A service attachment that exposes a database, and has the
+   * following format:
+   * projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name}
+   * 
+ * + * string service_attachment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceAttachment. + */ + @java.lang.Override + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + 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(); + serviceAttachment_ = s; + return s; + } + } + /** + * + * + *
+   * Required. A service attachment that exposes a database, and has the
+   * following format:
+   * projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name}
+   * 
+ * + * string service_attachment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = 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(serviceAttachment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAttachment_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAttachment_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity other = + (com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) obj; + + if (!getServiceAttachment().equals(other.getServiceAttachment())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVICE_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachment().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity 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.clouddms.v1.PrivateServiceConnectConnectivity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity 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.clouddms.v1.PrivateServiceConnectConnectivity parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity 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.clouddms.v1.PrivateServiceConnectConnectivity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity 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.clouddms.v1.PrivateServiceConnectConnectivity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity 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.clouddms.v1.PrivateServiceConnectConnectivity 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; + } + /** + * + * + *
+   * Private Service Connect connectivity
+   * (https://cloud.google.com/vpc/docs/private-service-connect#service-attachments)
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.PrivateServiceConnectConnectivity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateServiceConnectConnectivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateServiceConnectConnectivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.class, + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAttachment_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_PrivateServiceConnectConnectivity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity build() { + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity buildPartial() { + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity result = + new com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAttachment_ = serviceAttachment_; + } + } + + @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.clouddms.v1.PrivateServiceConnectConnectivity) { + return mergeFrom((com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity other) { + if (other + == com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity.getDefaultInstance()) + return this; + if (!other.getServiceAttachment().isEmpty()) { + serviceAttachment_ = other.serviceAttachment_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + serviceAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
+     * Required. A service attachment that exposes a database, and has the
+     * following format:
+     * projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name}
+     * 
+ * + * string service_attachment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceAttachment. + */ + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. A service attachment that exposes a database, and has the
+     * following format:
+     * projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name}
+     * 
+ * + * string service_attachment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceAttachment. + */ + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. A service attachment that exposes a database, and has the
+     * following format:
+     * projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name}
+     * 
+ * + * string service_attachment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAttachment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A service attachment that exposes a database, and has the
+     * following format:
+     * projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name}
+     * 
+ * + * string service_attachment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAttachment() { + serviceAttachment_ = getDefaultInstance().getServiceAttachment(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A service attachment that exposes a database, and has the
+     * following format:
+     * projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name}
+     * 
+ * + * string service_attachment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAttachment_ = value; + bitField0_ |= 0x00000001; + 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.clouddms.v1.PrivateServiceConnectConnectivity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) + private static final com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity(); + } + + public static com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateServiceConnectConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateServiceConnectConnectivityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateServiceConnectConnectivityOrBuilder.java new file mode 100644 index 000000000000..8762eaee8af3 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateServiceConnectConnectivityOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface PrivateServiceConnectConnectivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.PrivateServiceConnectConnectivity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A service attachment that exposes a database, and has the
+   * following format:
+   * projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name}
+   * 
+ * + * string service_attachment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceAttachment. + */ + java.lang.String getServiceAttachment(); + /** + * + * + *
+   * Required. A service attachment that exposes a database, and has the
+   * following format:
+   * projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name}
+   * 
+ * + * string service_attachment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceAttachment. + */ + com.google.protobuf.ByteString getServiceAttachmentBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java index bf3e2e6d5e19..08a814d4ed5d 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivity.java @@ -82,8 +82,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
-   * for the SSH tunnel.
+   * Required. The IP of the virtual machine (Compute Engine) used as the
+   * bastion server for the SSH tunnel.
    * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -106,8 +106,8 @@ public java.lang.String getVmIp() { * * *
-   * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
-   * for the SSH tunnel.
+   * Required. The IP of the virtual machine (Compute Engine) used as the
+   * bastion server for the SSH tunnel.
    * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -133,8 +133,8 @@ public com.google.protobuf.ByteString getVmIpBytes() { * * *
-   * Required. The forwarding port of the virtual machine (Compute Engine) used as the
-   * bastion server for the SSH tunnel.
+   * Required. The forwarding port of the virtual machine (Compute Engine) used
+   * as the bastion server for the SSH tunnel.
    * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -672,8 +672,8 @@ public Builder mergeFrom( * * *
-     * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
-     * for the SSH tunnel.
+     * Required. The IP of the virtual machine (Compute Engine) used as the
+     * bastion server for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -695,8 +695,8 @@ public java.lang.String getVmIp() { * * *
-     * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
-     * for the SSH tunnel.
+     * Required. The IP of the virtual machine (Compute Engine) used as the
+     * bastion server for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -718,8 +718,8 @@ public com.google.protobuf.ByteString getVmIpBytes() { * * *
-     * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
-     * for the SSH tunnel.
+     * Required. The IP of the virtual machine (Compute Engine) used as the
+     * bastion server for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -740,8 +740,8 @@ public Builder setVmIp(java.lang.String value) { * * *
-     * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
-     * for the SSH tunnel.
+     * Required. The IP of the virtual machine (Compute Engine) used as the
+     * bastion server for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -758,8 +758,8 @@ public Builder clearVmIp() { * * *
-     * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
-     * for the SSH tunnel.
+     * Required. The IP of the virtual machine (Compute Engine) used as the
+     * bastion server for the SSH tunnel.
      * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -783,8 +783,8 @@ public Builder setVmIpBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The forwarding port of the virtual machine (Compute Engine) used as the
-     * bastion server for the SSH tunnel.
+     * Required. The forwarding port of the virtual machine (Compute Engine) used
+     * as the bastion server for the SSH tunnel.
      * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -799,8 +799,8 @@ public int getVmPort() { * * *
-     * Required. The forwarding port of the virtual machine (Compute Engine) used as the
-     * bastion server for the SSH tunnel.
+     * Required. The forwarding port of the virtual machine (Compute Engine) used
+     * as the bastion server for the SSH tunnel.
      * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -819,8 +819,8 @@ public Builder setVmPort(int value) { * * *
-     * Required. The forwarding port of the virtual machine (Compute Engine) used as the
-     * bastion server for the SSH tunnel.
+     * Required. The forwarding port of the virtual machine (Compute Engine) used
+     * as the bastion server for the SSH tunnel.
      * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java index e018c513b4e9..2dbb5b1da510 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ReverseSshConnectivityOrBuilder.java @@ -27,8 +27,8 @@ public interface ReverseSshConnectivityOrBuilder * * *
-   * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
-   * for the SSH tunnel.
+   * Required. The IP of the virtual machine (Compute Engine) used as the
+   * bastion server for the SSH tunnel.
    * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -40,8 +40,8 @@ public interface ReverseSshConnectivityOrBuilder * * *
-   * Required. The IP of the virtual machine (Compute Engine) used as the bastion server
-   * for the SSH tunnel.
+   * Required. The IP of the virtual machine (Compute Engine) used as the
+   * bastion server for the SSH tunnel.
    * 
* * string vm_ip = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -54,8 +54,8 @@ public interface ReverseSshConnectivityOrBuilder * * *
-   * Required. The forwarding port of the virtual machine (Compute Engine) used as the
-   * bastion server for the SSH tunnel.
+   * Required. The forwarding port of the virtual machine (Compute Engine) used
+   * as the bastion server for the SSH tunnel.
    * 
* * int32 vm_port = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RollbackConversionWorkspaceRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RollbackConversionWorkspaceRequest.java new file mode 100644 index 000000000000..37a97fd5b660 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RollbackConversionWorkspaceRequest.java @@ -0,0 +1,652 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'RollbackConversionWorkspace' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest} + */ +public final class RollbackConversionWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest) + RollbackConversionWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RollbackConversionWorkspaceRequest.newBuilder() to construct. + private RollbackConversionWorkspaceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RollbackConversionWorkspaceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RollbackConversionWorkspaceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the conversion workspace resource to roll back to.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the conversion workspace resource to roll back to.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest other = + (com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest 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.clouddms.v1.RollbackConversionWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest 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.clouddms.v1.RollbackConversionWorkspaceRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest 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.clouddms.v1.RollbackConversionWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest 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.clouddms.v1.RollbackConversionWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest 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.clouddms.v1.RollbackConversionWorkspaceRequest 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; + } + /** + * + * + *
+   * Request message for 'RollbackConversionWorkspace' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest) + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_RollbackConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest build() { + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest buildPartial() { + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest result = + new com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.clouddms.v1.RollbackConversionWorkspaceRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest other) { + if (other + == com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Name of the conversion workspace resource to roll back to.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to roll back to.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to roll back to.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to roll back to.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource to roll back to.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @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.clouddms.v1.RollbackConversionWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest) + private static final com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest(); + } + + public static com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollbackConversionWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RollbackConversionWorkspaceRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RollbackConversionWorkspaceRequestOrBuilder.java new file mode 100644 index 000000000000..adb94dec0f22 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/RollbackConversionWorkspaceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface RollbackConversionWorkspaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the conversion workspace resource to roll back to.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the conversion workspace resource to roll back to.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SchemaEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SchemaEntity.java new file mode 100644 index 000000000000..9806550ce5ac --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SchemaEntity.java @@ -0,0 +1,718 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Schema typically has no parent entity, but can have a parent entity
+ * DatabaseInstance (for database engines which support it).  For some database
+ * engines, the terms  schema and user can be used interchangeably when they
+ * refer to a namespace or a collection of other database entities. Can store
+ * additional information which is schema specific.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SchemaEntity} + */ +public final class SchemaEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SchemaEntity) + SchemaEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use SchemaEntity.newBuilder() to construct. + private SchemaEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SchemaEntity() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SchemaEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SchemaEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SchemaEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SchemaEntity.class, + com.google.cloud.clouddms.v1.SchemaEntity.Builder.class); + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 1; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 1; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 1; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + 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 (customFeatures_ != null) { + output.writeMessage(1, getCustomFeatures()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomFeatures()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.SchemaEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SchemaEntity other = + (com.google.cloud.clouddms.v1.SchemaEntity) obj; + + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SchemaEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SchemaEntity 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.clouddms.v1.SchemaEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SchemaEntity 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.clouddms.v1.SchemaEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SchemaEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.SchemaEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SchemaEntity 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.clouddms.v1.SchemaEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SchemaEntity 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.clouddms.v1.SchemaEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SchemaEntity 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.clouddms.v1.SchemaEntity 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; + } + /** + * + * + *
+   * Schema typically has no parent entity, but can have a parent entity
+   * DatabaseInstance (for database engines which support it).  For some database
+   * engines, the terms  schema and user can be used interchangeably when they
+   * refer to a namespace or a collection of other database entities. Can store
+   * additional information which is schema specific.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SchemaEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SchemaEntity) + com.google.cloud.clouddms.v1.SchemaEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SchemaEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SchemaEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SchemaEntity.class, + com.google.cloud.clouddms.v1.SchemaEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SchemaEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SchemaEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SchemaEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SchemaEntity build() { + com.google.cloud.clouddms.v1.SchemaEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SchemaEntity buildPartial() { + com.google.cloud.clouddms.v1.SchemaEntity result = + new com.google.cloud.clouddms.v1.SchemaEntity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SchemaEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + @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.clouddms.v1.SchemaEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.SchemaEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SchemaEntity other) { + if (other == com.google.cloud.clouddms.v1.SchemaEntity.getDefaultInstance()) return this; + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000001); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @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.clouddms.v1.SchemaEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SchemaEntity) + private static final com.google.cloud.clouddms.v1.SchemaEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SchemaEntity(); + } + + public static com.google.cloud.clouddms.v1.SchemaEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SchemaEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SchemaEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SchemaEntityOrBuilder.java new file mode 100644 index 000000000000..08d643616033 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SchemaEntityOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface SchemaEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SchemaEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 1; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 1; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 1; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SearchBackgroundJobsRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SearchBackgroundJobsRequest.java new file mode 100644 index 000000000000..e686652e6cb8 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SearchBackgroundJobsRequest.java @@ -0,0 +1,1164 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'SearchBackgroundJobs' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SearchBackgroundJobsRequest} + */ +public final class SearchBackgroundJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SearchBackgroundJobsRequest) + SearchBackgroundJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchBackgroundJobsRequest.newBuilder() to construct. + private SearchBackgroundJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchBackgroundJobsRequest() { + conversionWorkspace_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchBackgroundJobsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest.class, + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest.Builder.class); + } + + public static final int CONVERSION_WORKSPACE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversionWorkspace_ = ""; + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose jobs are listed,
+   * in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The conversionWorkspace. + */ + @java.lang.Override + public java.lang.String getConversionWorkspace() { + java.lang.Object ref = conversionWorkspace_; + 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(); + conversionWorkspace_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose jobs are listed,
+   * in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for conversionWorkspace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversionWorkspaceBytes() { + java.lang.Object ref = conversionWorkspace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversionWorkspace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_MOST_RECENT_PER_JOB_TYPE_FIELD_NUMBER = 2; + private boolean returnMostRecentPerJobType_ = false; + /** + * + * + *
+   * Optional. Whether or not to return just the most recent job per job type,
+   * 
+ * + * bool return_most_recent_per_job_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The returnMostRecentPerJobType. + */ + @java.lang.Override + public boolean getReturnMostRecentPerJobType() { + return returnMostRecentPerJobType_; + } + + public static final int MAX_SIZE_FIELD_NUMBER = 3; + private int maxSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of jobs to return. The service may return
+   * fewer than this value. If unspecified, at most 100 jobs are
+   * returned. The maximum value is 100; values above 100 are coerced to
+   * 100.
+   * 
+ * + * int32 max_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSize. + */ + @java.lang.Override + public int getMaxSize() { + return maxSize_; + } + + public static final int COMPLETED_UNTIL_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp completedUntilTime_; + /** + * + * + *
+   * Optional. If provided, only returns jobs that completed until (not
+   * including) the given timestamp.
+   * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the completedUntilTime field is set. + */ + @java.lang.Override + public boolean hasCompletedUntilTime() { + return completedUntilTime_ != null; + } + /** + * + * + *
+   * Optional. If provided, only returns jobs that completed until (not
+   * including) the given timestamp.
+   * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The completedUntilTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompletedUntilTime() { + return completedUntilTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completedUntilTime_; + } + /** + * + * + *
+   * Optional. If provided, only returns jobs that completed until (not
+   * including) the given timestamp.
+   * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompletedUntilTimeOrBuilder() { + return completedUntilTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completedUntilTime_; + } + + 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(conversionWorkspace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, conversionWorkspace_); + } + if (returnMostRecentPerJobType_ != false) { + output.writeBool(2, returnMostRecentPerJobType_); + } + if (maxSize_ != 0) { + output.writeInt32(3, maxSize_); + } + if (completedUntilTime_ != null) { + output.writeMessage(4, getCompletedUntilTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversionWorkspace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, conversionWorkspace_); + } + if (returnMostRecentPerJobType_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, returnMostRecentPerJobType_); + } + if (maxSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxSize_); + } + if (completedUntilTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompletedUntilTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest other = + (com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest) obj; + + if (!getConversionWorkspace().equals(other.getConversionWorkspace())) return false; + if (getReturnMostRecentPerJobType() != other.getReturnMostRecentPerJobType()) return false; + if (getMaxSize() != other.getMaxSize()) return false; + if (hasCompletedUntilTime() != other.hasCompletedUntilTime()) return false; + if (hasCompletedUntilTime()) { + if (!getCompletedUntilTime().equals(other.getCompletedUntilTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONVERSION_WORKSPACE_FIELD_NUMBER; + hash = (53 * hash) + getConversionWorkspace().hashCode(); + hash = (37 * hash) + RETURN_MOST_RECENT_PER_JOB_TYPE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnMostRecentPerJobType()); + hash = (37 * hash) + MAX_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getMaxSize(); + if (hasCompletedUntilTime()) { + hash = (37 * hash) + COMPLETED_UNTIL_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompletedUntilTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest 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.clouddms.v1.SearchBackgroundJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest 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.clouddms.v1.SearchBackgroundJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest 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.clouddms.v1.SearchBackgroundJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest 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.clouddms.v1.SearchBackgroundJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest 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.clouddms.v1.SearchBackgroundJobsRequest 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; + } + /** + * + * + *
+   * Request message for 'SearchBackgroundJobs' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SearchBackgroundJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SearchBackgroundJobsRequest) + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest.class, + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conversionWorkspace_ = ""; + returnMostRecentPerJobType_ = false; + maxSize_ = 0; + completedUntilTime_ = null; + if (completedUntilTimeBuilder_ != null) { + completedUntilTimeBuilder_.dispose(); + completedUntilTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest build() { + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest buildPartial() { + com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest result = + new com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.conversionWorkspace_ = conversionWorkspace_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.returnMostRecentPerJobType_ = returnMostRecentPerJobType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxSize_ = maxSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.completedUntilTime_ = + completedUntilTimeBuilder_ == null + ? completedUntilTime_ + : completedUntilTimeBuilder_.build(); + } + } + + @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.clouddms.v1.SearchBackgroundJobsRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest other) { + if (other == com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest.getDefaultInstance()) + return this; + if (!other.getConversionWorkspace().isEmpty()) { + conversionWorkspace_ = other.conversionWorkspace_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getReturnMostRecentPerJobType() != false) { + setReturnMostRecentPerJobType(other.getReturnMostRecentPerJobType()); + } + if (other.getMaxSize() != 0) { + setMaxSize(other.getMaxSize()); + } + if (other.hasCompletedUntilTime()) { + mergeCompletedUntilTime(other.getCompletedUntilTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + conversionWorkspace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + returnMostRecentPerJobType_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + maxSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getCompletedUntilTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object conversionWorkspace_ = ""; + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose jobs are listed,
+     * in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The conversionWorkspace. + */ + public java.lang.String getConversionWorkspace() { + java.lang.Object ref = conversionWorkspace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversionWorkspace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose jobs are listed,
+     * in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for conversionWorkspace. + */ + public com.google.protobuf.ByteString getConversionWorkspaceBytes() { + java.lang.Object ref = conversionWorkspace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversionWorkspace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose jobs are listed,
+     * in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The conversionWorkspace to set. + * @return This builder for chaining. + */ + public Builder setConversionWorkspace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversionWorkspace_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose jobs are listed,
+     * in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearConversionWorkspace() { + conversionWorkspace_ = getDefaultInstance().getConversionWorkspace(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the conversion workspace resource whose jobs are listed,
+     * in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for conversionWorkspace to set. + * @return This builder for chaining. + */ + public Builder setConversionWorkspaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversionWorkspace_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean returnMostRecentPerJobType_; + /** + * + * + *
+     * Optional. Whether or not to return just the most recent job per job type,
+     * 
+ * + * bool return_most_recent_per_job_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The returnMostRecentPerJobType. + */ + @java.lang.Override + public boolean getReturnMostRecentPerJobType() { + return returnMostRecentPerJobType_; + } + /** + * + * + *
+     * Optional. Whether or not to return just the most recent job per job type,
+     * 
+ * + * bool return_most_recent_per_job_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The returnMostRecentPerJobType to set. + * @return This builder for chaining. + */ + public Builder setReturnMostRecentPerJobType(boolean value) { + + returnMostRecentPerJobType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Whether or not to return just the most recent job per job type,
+     * 
+ * + * bool return_most_recent_per_job_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearReturnMostRecentPerJobType() { + bitField0_ = (bitField0_ & ~0x00000002); + returnMostRecentPerJobType_ = false; + onChanged(); + return this; + } + + private int maxSize_; + /** + * + * + *
+     * Optional. The maximum number of jobs to return. The service may return
+     * fewer than this value. If unspecified, at most 100 jobs are
+     * returned. The maximum value is 100; values above 100 are coerced to
+     * 100.
+     * 
+ * + * int32 max_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSize. + */ + @java.lang.Override + public int getMaxSize() { + return maxSize_; + } + /** + * + * + *
+     * Optional. The maximum number of jobs to return. The service may return
+     * fewer than this value. If unspecified, at most 100 jobs are
+     * returned. The maximum value is 100; values above 100 are coerced to
+     * 100.
+     * 
+ * + * int32 max_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxSize to set. + * @return This builder for chaining. + */ + public Builder setMaxSize(int value) { + + maxSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of jobs to return. The service may return
+     * fewer than this value. If unspecified, at most 100 jobs are
+     * returned. The maximum value is 100; values above 100 are coerced to
+     * 100.
+     * 
+ * + * int32 max_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxSize() { + bitField0_ = (bitField0_ & ~0x00000004); + maxSize_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp completedUntilTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completedUntilTimeBuilder_; + /** + * + * + *
+     * Optional. If provided, only returns jobs that completed until (not
+     * including) the given timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the completedUntilTime field is set. + */ + public boolean hasCompletedUntilTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. If provided, only returns jobs that completed until (not
+     * including) the given timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The completedUntilTime. + */ + public com.google.protobuf.Timestamp getCompletedUntilTime() { + if (completedUntilTimeBuilder_ == null) { + return completedUntilTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completedUntilTime_; + } else { + return completedUntilTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If provided, only returns jobs that completed until (not
+     * including) the given timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCompletedUntilTime(com.google.protobuf.Timestamp value) { + if (completedUntilTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completedUntilTime_ = value; + } else { + completedUntilTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If provided, only returns jobs that completed until (not
+     * including) the given timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCompletedUntilTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (completedUntilTimeBuilder_ == null) { + completedUntilTime_ = builderForValue.build(); + } else { + completedUntilTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If provided, only returns jobs that completed until (not
+     * including) the given timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCompletedUntilTime(com.google.protobuf.Timestamp value) { + if (completedUntilTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && completedUntilTime_ != null + && completedUntilTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompletedUntilTimeBuilder().mergeFrom(value); + } else { + completedUntilTime_ = value; + } + } else { + completedUntilTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If provided, only returns jobs that completed until (not
+     * including) the given timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCompletedUntilTime() { + bitField0_ = (bitField0_ & ~0x00000008); + completedUntilTime_ = null; + if (completedUntilTimeBuilder_ != null) { + completedUntilTimeBuilder_.dispose(); + completedUntilTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If provided, only returns jobs that completed until (not
+     * including) the given timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getCompletedUntilTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCompletedUntilTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If provided, only returns jobs that completed until (not
+     * including) the given timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCompletedUntilTimeOrBuilder() { + if (completedUntilTimeBuilder_ != null) { + return completedUntilTimeBuilder_.getMessageOrBuilder(); + } else { + return completedUntilTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completedUntilTime_; + } + } + /** + * + * + *
+     * Optional. If provided, only returns jobs that completed until (not
+     * including) the given timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCompletedUntilTimeFieldBuilder() { + if (completedUntilTimeBuilder_ == null) { + completedUntilTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompletedUntilTime(), getParentForChildren(), isClean()); + completedUntilTime_ = null; + } + return completedUntilTimeBuilder_; + } + + @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.clouddms.v1.SearchBackgroundJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SearchBackgroundJobsRequest) + private static final com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest(); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchBackgroundJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SearchBackgroundJobsRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SearchBackgroundJobsRequestOrBuilder.java new file mode 100644 index 000000000000..a387f600a59e --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SearchBackgroundJobsRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface SearchBackgroundJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SearchBackgroundJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose jobs are listed,
+   * in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The conversionWorkspace. + */ + java.lang.String getConversionWorkspace(); + /** + * + * + *
+   * Required. Name of the conversion workspace resource whose jobs are listed,
+   * in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * + * string conversion_workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for conversionWorkspace. + */ + com.google.protobuf.ByteString getConversionWorkspaceBytes(); + + /** + * + * + *
+   * Optional. Whether or not to return just the most recent job per job type,
+   * 
+ * + * bool return_most_recent_per_job_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The returnMostRecentPerJobType. + */ + boolean getReturnMostRecentPerJobType(); + + /** + * + * + *
+   * Optional. The maximum number of jobs to return. The service may return
+   * fewer than this value. If unspecified, at most 100 jobs are
+   * returned. The maximum value is 100; values above 100 are coerced to
+   * 100.
+   * 
+ * + * int32 max_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSize. + */ + int getMaxSize(); + + /** + * + * + *
+   * Optional. If provided, only returns jobs that completed until (not
+   * including) the given timestamp.
+   * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the completedUntilTime field is set. + */ + boolean hasCompletedUntilTime(); + /** + * + * + *
+   * Optional. If provided, only returns jobs that completed until (not
+   * including) the given timestamp.
+   * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The completedUntilTime. + */ + com.google.protobuf.Timestamp getCompletedUntilTime(); + /** + * + * + *
+   * Optional. If provided, only returns jobs that completed until (not
+   * including) the given timestamp.
+   * 
+ * + * + * .google.protobuf.Timestamp completed_until_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getCompletedUntilTimeOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SearchBackgroundJobsResponse.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SearchBackgroundJobsResponse.java new file mode 100644 index 000000000000..8d431475bb11 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SearchBackgroundJobsResponse.java @@ -0,0 +1,944 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Response message for 'SearchBackgroundJobs' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SearchBackgroundJobsResponse} + */ +public final class SearchBackgroundJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SearchBackgroundJobsResponse) + SearchBackgroundJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchBackgroundJobsResponse.newBuilder() to construct. + private SearchBackgroundJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchBackgroundJobsResponse() { + jobs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchBackgroundJobsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse.class, + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse.Builder.class); + } + + public static final int JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List jobs_; + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + @java.lang.Override + public java.util.List getJobsList() { + return jobs_; + } + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + @java.lang.Override + public java.util.List + getJobsOrBuilderList() { + return jobs_; + } + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + @java.lang.Override + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.BackgroundJobLogEntryOrBuilder getJobsOrBuilder(int index) { + return jobs_.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 < jobs_.size(); i++) { + output.writeMessage(1, jobs_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < jobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobs_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse other = + (com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse) obj; + + if (!getJobsList().equals(other.getJobsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getJobsCount() > 0) { + hash = (37 * hash) + JOBS_FIELD_NUMBER; + hash = (53 * hash) + getJobsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse 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.clouddms.v1.SearchBackgroundJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse 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.clouddms.v1.SearchBackgroundJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse 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.clouddms.v1.SearchBackgroundJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse 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.clouddms.v1.SearchBackgroundJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse 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.clouddms.v1.SearchBackgroundJobsResponse 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; + } + /** + * + * + *
+   * Response message for 'SearchBackgroundJobs' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SearchBackgroundJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SearchBackgroundJobsResponse) + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse.class, + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + } else { + jobs_ = null; + jobsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SearchBackgroundJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse build() { + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse buildPartial() { + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse result = + new com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse result) { + if (jobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + jobs_ = java.util.Collections.unmodifiableList(jobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.jobs_ = jobs_; + } else { + result.jobs_ = jobsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse result) { + int from_bitField0_ = bitField0_; + } + + @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.clouddms.v1.SearchBackgroundJobsResponse) { + return mergeFrom((com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse other) { + if (other == com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse.getDefaultInstance()) + return this; + if (jobsBuilder_ == null) { + if (!other.jobs_.isEmpty()) { + if (jobs_.isEmpty()) { + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureJobsIsMutable(); + jobs_.addAll(other.jobs_); + } + onChanged(); + } + } else { + if (!other.jobs_.isEmpty()) { + if (jobsBuilder_.isEmpty()) { + jobsBuilder_.dispose(); + jobsBuilder_ = null; + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + jobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobsFieldBuilder() + : null; + } else { + jobsBuilder_.addAllMessages(other.jobs_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.clouddms.v1.BackgroundJobLogEntry m = + input.readMessage( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.parser(), + extensionRegistry); + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(m); + } else { + jobsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List jobs_ = + java.util.Collections.emptyList(); + + private void ensureJobsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + jobs_ = new java.util.ArrayList(jobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntryOrBuilder> + jobsBuilder_; + + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public java.util.List getJobsList() { + if (jobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobs_); + } else { + return jobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public int getJobsCount() { + if (jobsBuilder_ == null) { + return jobs_.size(); + } else { + return jobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry getJobs(int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); + } else { + return jobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public Builder setJobs(int index, com.google.cloud.clouddms.v1.BackgroundJobLogEntry value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.set(index, value); + onChanged(); + } else { + jobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public Builder setJobs( + int index, com.google.cloud.clouddms.v1.BackgroundJobLogEntry.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.set(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public Builder addJobs(com.google.cloud.clouddms.v1.BackgroundJobLogEntry value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + } else { + jobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public Builder addJobs(int index, com.google.cloud.clouddms.v1.BackgroundJobLogEntry value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(index, value); + onChanged(); + } else { + jobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public Builder addJobs( + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public Builder addJobs( + int index, com.google.cloud.clouddms.v1.BackgroundJobLogEntry.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public Builder addAllJobs( + java.lang.Iterable values) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); + onChanged(); + } else { + jobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public Builder clearJobs() { + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + jobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public Builder removeJobs(int index) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.remove(index); + onChanged(); + } else { + jobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.Builder getJobsBuilder(int index) { + return getJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public com.google.cloud.clouddms.v1.BackgroundJobLogEntryOrBuilder getJobsOrBuilder(int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); + } else { + return jobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public java.util.List + getJobsOrBuilderList() { + if (jobsBuilder_ != null) { + return jobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobs_); + } + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.Builder addJobsBuilder() { + return getJobsFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.BackgroundJobLogEntry.getDefaultInstance()); + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public com.google.cloud.clouddms.v1.BackgroundJobLogEntry.Builder addJobsBuilder(int index) { + return getJobsFieldBuilder() + .addBuilder( + index, com.google.cloud.clouddms.v1.BackgroundJobLogEntry.getDefaultInstance()); + } + /** + * + * + *
+     * The list of conversion workspace mapping rules.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + public java.util.List + getJobsBuilderList() { + return getJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntryOrBuilder> + getJobsFieldBuilder() { + if (jobsBuilder_ == null) { + jobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.BackgroundJobLogEntry, + com.google.cloud.clouddms.v1.BackgroundJobLogEntry.Builder, + com.google.cloud.clouddms.v1.BackgroundJobLogEntryOrBuilder>( + jobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + jobs_ = null; + } + return jobsBuilder_; + } + + @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.clouddms.v1.SearchBackgroundJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SearchBackgroundJobsResponse) + private static final com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse(); + } + + public static com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchBackgroundJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SearchBackgroundJobsResponseOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SearchBackgroundJobsResponseOrBuilder.java new file mode 100644 index 000000000000..a6de32f7a65b --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SearchBackgroundJobsResponseOrBuilder.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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface SearchBackgroundJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SearchBackgroundJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + java.util.List getJobsList(); + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + com.google.cloud.clouddms.v1.BackgroundJobLogEntry getJobs(int index); + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + int getJobsCount(); + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + java.util.List + getJobsOrBuilderList(); + /** + * + * + *
+   * The list of conversion workspace mapping rules.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.BackgroundJobLogEntry jobs = 1; + */ + com.google.cloud.clouddms.v1.BackgroundJobLogEntryOrBuilder getJobsOrBuilder(int index); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequest.java new file mode 100644 index 000000000000..2eaa0739ca64 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequest.java @@ -0,0 +1,1290 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'SeedConversionWorkspace' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SeedConversionWorkspaceRequest} + */ +public final class SeedConversionWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SeedConversionWorkspaceRequest) + SeedConversionWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SeedConversionWorkspaceRequest.newBuilder() to construct. + private SeedConversionWorkspaceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SeedConversionWorkspaceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SeedConversionWorkspaceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest.Builder.class); + } + + private int seedFromCase_ = 0; + private java.lang.Object seedFrom_; + + public enum SeedFromCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SOURCE_CONNECTION_PROFILE(100), + DESTINATION_CONNECTION_PROFILE(101), + SEEDFROM_NOT_SET(0); + private final int value; + + private SeedFromCase(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 SeedFromCase valueOf(int value) { + return forNumber(value); + } + + public static SeedFromCase forNumber(int value) { + switch (value) { + case 100: + return SOURCE_CONNECTION_PROFILE; + case 101: + return DESTINATION_CONNECTION_PROFILE; + case 0: + return SEEDFROM_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SeedFromCase getSeedFromCase() { + return SeedFromCase.forNumber(seedFromCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Name of the conversion workspace resource to seed with new database
+   * structure, in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the conversion workspace resource to seed with new database
+   * structure, in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTO_COMMIT_FIELD_NUMBER = 2; + private boolean autoCommit_ = false; + /** + * + * + *
+   * Should the conversion workspace be committed automatically after the
+   * seed operation.
+   * 
+ * + * bool auto_commit = 2; + * + * @return The autoCommit. + */ + @java.lang.Override + public boolean getAutoCommit() { + return autoCommit_; + } + + public static final int SOURCE_CONNECTION_PROFILE_FIELD_NUMBER = 100; + /** + * + * + *
+   * Fully qualified (Uri) name of the source connection profile.
+   * 
+ * + * string source_connection_profile = 100; + * + * @return Whether the sourceConnectionProfile field is set. + */ + public boolean hasSourceConnectionProfile() { + return seedFromCase_ == 100; + } + /** + * + * + *
+   * Fully qualified (Uri) name of the source connection profile.
+   * 
+ * + * string source_connection_profile = 100; + * + * @return The sourceConnectionProfile. + */ + public java.lang.String getSourceConnectionProfile() { + java.lang.Object ref = ""; + if (seedFromCase_ == 100) { + ref = seedFrom_; + } + 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(); + if (seedFromCase_ == 100) { + seedFrom_ = s; + } + return s; + } + } + /** + * + * + *
+   * Fully qualified (Uri) name of the source connection profile.
+   * 
+ * + * string source_connection_profile = 100; + * + * @return The bytes for sourceConnectionProfile. + */ + public com.google.protobuf.ByteString getSourceConnectionProfileBytes() { + java.lang.Object ref = ""; + if (seedFromCase_ == 100) { + ref = seedFrom_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (seedFromCase_ == 100) { + seedFrom_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_CONNECTION_PROFILE_FIELD_NUMBER = 101; + /** + * + * + *
+   * Fully qualified (Uri) name of the destination connection profile.
+   * 
+ * + * string destination_connection_profile = 101; + * + * @return Whether the destinationConnectionProfile field is set. + */ + public boolean hasDestinationConnectionProfile() { + return seedFromCase_ == 101; + } + /** + * + * + *
+   * Fully qualified (Uri) name of the destination connection profile.
+   * 
+ * + * string destination_connection_profile = 101; + * + * @return The destinationConnectionProfile. + */ + public java.lang.String getDestinationConnectionProfile() { + java.lang.Object ref = ""; + if (seedFromCase_ == 101) { + ref = seedFrom_; + } + 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(); + if (seedFromCase_ == 101) { + seedFrom_ = s; + } + return s; + } + } + /** + * + * + *
+   * Fully qualified (Uri) name of the destination connection profile.
+   * 
+ * + * string destination_connection_profile = 101; + * + * @return The bytes for destinationConnectionProfile. + */ + public com.google.protobuf.ByteString getDestinationConnectionProfileBytes() { + java.lang.Object ref = ""; + if (seedFromCase_ == 101) { + ref = seedFrom_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (seedFromCase_ == 101) { + seedFrom_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (autoCommit_ != false) { + output.writeBool(2, autoCommit_); + } + if (seedFromCase_ == 100) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, seedFrom_); + } + if (seedFromCase_ == 101) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, seedFrom_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (autoCommit_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, autoCommit_); + } + if (seedFromCase_ == 100) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, seedFrom_); + } + if (seedFromCase_ == 101) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, seedFrom_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest other = + (com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getAutoCommit() != other.getAutoCommit()) return false; + if (!getSeedFromCase().equals(other.getSeedFromCase())) return false; + switch (seedFromCase_) { + case 100: + if (!getSourceConnectionProfile().equals(other.getSourceConnectionProfile())) return false; + break; + case 101: + if (!getDestinationConnectionProfile().equals(other.getDestinationConnectionProfile())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + AUTO_COMMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoCommit()); + switch (seedFromCase_) { + case 100: + hash = (37 * hash) + SOURCE_CONNECTION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getSourceConnectionProfile().hashCode(); + break; + case 101: + hash = (37 * hash) + DESTINATION_CONNECTION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getDestinationConnectionProfile().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest 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.clouddms.v1.SeedConversionWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest 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.clouddms.v1.SeedConversionWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest 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.clouddms.v1.SeedConversionWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest 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.clouddms.v1.SeedConversionWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest 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.clouddms.v1.SeedConversionWorkspaceRequest 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; + } + /** + * + * + *
+   * Request message for 'SeedConversionWorkspace' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SeedConversionWorkspaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SeedConversionWorkspaceRequest) + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + autoCommit_ = false; + seedFromCase_ = 0; + seedFrom_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_SeedConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest build() { + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest buildPartial() { + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest result = + new com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.autoCommit_ = autoCommit_; + } + } + + private void buildPartialOneofs( + com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest result) { + result.seedFromCase_ = seedFromCase_; + result.seedFrom_ = this.seedFrom_; + } + + @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.clouddms.v1.SeedConversionWorkspaceRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest other) { + if (other == com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getAutoCommit() != false) { + setAutoCommit(other.getAutoCommit()); + } + switch (other.getSeedFromCase()) { + case SOURCE_CONNECTION_PROFILE: + { + seedFromCase_ = 100; + seedFrom_ = other.seedFrom_; + onChanged(); + break; + } + case DESTINATION_CONNECTION_PROFILE: + { + seedFromCase_ = 101; + seedFrom_ = other.seedFrom_; + onChanged(); + break; + } + case SEEDFROM_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + autoCommit_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + seedFromCase_ = 100; + seedFrom_ = s; + break; + } // case 802 + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + seedFromCase_ = 101; + seedFrom_ = s; + break; + } // case 810 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int seedFromCase_ = 0; + private java.lang.Object seedFrom_; + + public SeedFromCase getSeedFromCase() { + return SeedFromCase.forNumber(seedFromCase_); + } + + public Builder clearSeedFrom() { + seedFromCase_ = 0; + seedFrom_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Name of the conversion workspace resource to seed with new database
+     * structure, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the conversion workspace resource to seed with new database
+     * structure, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the conversion workspace resource to seed with new database
+     * structure, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the conversion workspace resource to seed with new database
+     * structure, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the conversion workspace resource to seed with new database
+     * structure, in the form of:
+     * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean autoCommit_; + /** + * + * + *
+     * Should the conversion workspace be committed automatically after the
+     * seed operation.
+     * 
+ * + * bool auto_commit = 2; + * + * @return The autoCommit. + */ + @java.lang.Override + public boolean getAutoCommit() { + return autoCommit_; + } + /** + * + * + *
+     * Should the conversion workspace be committed automatically after the
+     * seed operation.
+     * 
+ * + * bool auto_commit = 2; + * + * @param value The autoCommit to set. + * @return This builder for chaining. + */ + public Builder setAutoCommit(boolean value) { + + autoCommit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Should the conversion workspace be committed automatically after the
+     * seed operation.
+     * 
+ * + * bool auto_commit = 2; + * + * @return This builder for chaining. + */ + public Builder clearAutoCommit() { + bitField0_ = (bitField0_ & ~0x00000002); + autoCommit_ = false; + onChanged(); + return this; + } + + /** + * + * + *
+     * Fully qualified (Uri) name of the source connection profile.
+     * 
+ * + * string source_connection_profile = 100; + * + * @return Whether the sourceConnectionProfile field is set. + */ + @java.lang.Override + public boolean hasSourceConnectionProfile() { + return seedFromCase_ == 100; + } + /** + * + * + *
+     * Fully qualified (Uri) name of the source connection profile.
+     * 
+ * + * string source_connection_profile = 100; + * + * @return The sourceConnectionProfile. + */ + @java.lang.Override + public java.lang.String getSourceConnectionProfile() { + java.lang.Object ref = ""; + if (seedFromCase_ == 100) { + ref = seedFrom_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (seedFromCase_ == 100) { + seedFrom_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Fully qualified (Uri) name of the source connection profile.
+     * 
+ * + * string source_connection_profile = 100; + * + * @return The bytes for sourceConnectionProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceConnectionProfileBytes() { + java.lang.Object ref = ""; + if (seedFromCase_ == 100) { + ref = seedFrom_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (seedFromCase_ == 100) { + seedFrom_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Fully qualified (Uri) name of the source connection profile.
+     * 
+ * + * string source_connection_profile = 100; + * + * @param value The sourceConnectionProfile to set. + * @return This builder for chaining. + */ + public Builder setSourceConnectionProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + seedFromCase_ = 100; + seedFrom_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Fully qualified (Uri) name of the source connection profile.
+     * 
+ * + * string source_connection_profile = 100; + * + * @return This builder for chaining. + */ + public Builder clearSourceConnectionProfile() { + if (seedFromCase_ == 100) { + seedFromCase_ = 0; + seedFrom_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Fully qualified (Uri) name of the source connection profile.
+     * 
+ * + * string source_connection_profile = 100; + * + * @param value The bytes for sourceConnectionProfile to set. + * @return This builder for chaining. + */ + public Builder setSourceConnectionProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + seedFromCase_ = 100; + seedFrom_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Fully qualified (Uri) name of the destination connection profile.
+     * 
+ * + * string destination_connection_profile = 101; + * + * @return Whether the destinationConnectionProfile field is set. + */ + @java.lang.Override + public boolean hasDestinationConnectionProfile() { + return seedFromCase_ == 101; + } + /** + * + * + *
+     * Fully qualified (Uri) name of the destination connection profile.
+     * 
+ * + * string destination_connection_profile = 101; + * + * @return The destinationConnectionProfile. + */ + @java.lang.Override + public java.lang.String getDestinationConnectionProfile() { + java.lang.Object ref = ""; + if (seedFromCase_ == 101) { + ref = seedFrom_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (seedFromCase_ == 101) { + seedFrom_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Fully qualified (Uri) name of the destination connection profile.
+     * 
+ * + * string destination_connection_profile = 101; + * + * @return The bytes for destinationConnectionProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationConnectionProfileBytes() { + java.lang.Object ref = ""; + if (seedFromCase_ == 101) { + ref = seedFrom_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (seedFromCase_ == 101) { + seedFrom_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Fully qualified (Uri) name of the destination connection profile.
+     * 
+ * + * string destination_connection_profile = 101; + * + * @param value The destinationConnectionProfile to set. + * @return This builder for chaining. + */ + public Builder setDestinationConnectionProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + seedFromCase_ = 101; + seedFrom_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Fully qualified (Uri) name of the destination connection profile.
+     * 
+ * + * string destination_connection_profile = 101; + * + * @return This builder for chaining. + */ + public Builder clearDestinationConnectionProfile() { + if (seedFromCase_ == 101) { + seedFromCase_ = 0; + seedFrom_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Fully qualified (Uri) name of the destination connection profile.
+     * 
+ * + * string destination_connection_profile = 101; + * + * @param value The bytes for destinationConnectionProfile to set. + * @return This builder for chaining. + */ + public Builder setDestinationConnectionProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + seedFromCase_ = 101; + seedFrom_ = 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.clouddms.v1.SeedConversionWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SeedConversionWorkspaceRequest) + private static final com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest(); + } + + public static com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SeedConversionWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequestOrBuilder.java new file mode 100644 index 000000000000..f8e67f789e23 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SeedConversionWorkspaceRequestOrBuilder.java @@ -0,0 +1,144 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface SeedConversionWorkspaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SeedConversionWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the conversion workspace resource to seed with new database
+   * structure, in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the conversion workspace resource to seed with new database
+   * structure, in the form of:
+   * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Should the conversion workspace be committed automatically after the
+   * seed operation.
+   * 
+ * + * bool auto_commit = 2; + * + * @return The autoCommit. + */ + boolean getAutoCommit(); + + /** + * + * + *
+   * Fully qualified (Uri) name of the source connection profile.
+   * 
+ * + * string source_connection_profile = 100; + * + * @return Whether the sourceConnectionProfile field is set. + */ + boolean hasSourceConnectionProfile(); + /** + * + * + *
+   * Fully qualified (Uri) name of the source connection profile.
+   * 
+ * + * string source_connection_profile = 100; + * + * @return The sourceConnectionProfile. + */ + java.lang.String getSourceConnectionProfile(); + /** + * + * + *
+   * Fully qualified (Uri) name of the source connection profile.
+   * 
+ * + * string source_connection_profile = 100; + * + * @return The bytes for sourceConnectionProfile. + */ + com.google.protobuf.ByteString getSourceConnectionProfileBytes(); + + /** + * + * + *
+   * Fully qualified (Uri) name of the destination connection profile.
+   * 
+ * + * string destination_connection_profile = 101; + * + * @return Whether the destinationConnectionProfile field is set. + */ + boolean hasDestinationConnectionProfile(); + /** + * + * + *
+   * Fully qualified (Uri) name of the destination connection profile.
+   * 
+ * + * string destination_connection_profile = 101; + * + * @return The destinationConnectionProfile. + */ + java.lang.String getDestinationConnectionProfile(); + /** + * + * + *
+   * Fully qualified (Uri) name of the destination connection profile.
+   * 
+ * + * string destination_connection_profile = 101; + * + * @return The bytes for destinationConnectionProfile. + */ + com.google.protobuf.ByteString getDestinationConnectionProfileBytes(); + + public com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest.SeedFromCase getSeedFromCase(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SequenceEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SequenceEntity.java new file mode 100644 index 000000000000..7a980297619d --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SequenceEntity.java @@ -0,0 +1,1290 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Sequence's parent is a schema.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SequenceEntity} + */ +public final class SequenceEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SequenceEntity) + SequenceEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use SequenceEntity.newBuilder() to construct. + private SequenceEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SequenceEntity() { + startValue_ = com.google.protobuf.ByteString.EMPTY; + maxValue_ = com.google.protobuf.ByteString.EMPTY; + minValue_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SequenceEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SequenceEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SequenceEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SequenceEntity.class, + com.google.cloud.clouddms.v1.SequenceEntity.Builder.class); + } + + public static final int INCREMENT_FIELD_NUMBER = 1; + private long increment_ = 0L; + /** + * + * + *
+   * Increment value for the sequence.
+   * 
+ * + * int64 increment = 1; + * + * @return The increment. + */ + @java.lang.Override + public long getIncrement() { + return increment_; + } + + public static final int START_VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString startValue_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+   * Start number for the sequence represented as bytes to accommodate large.
+   * numbers
+   * 
+ * + * bytes start_value = 2; + * + * @return The startValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartValue() { + return startValue_; + } + + public static final int MAX_VALUE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString maxValue_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+   * Maximum number for the sequence represented as bytes to accommodate large.
+   * numbers
+   * 
+ * + * bytes max_value = 3; + * + * @return The maxValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMaxValue() { + return maxValue_; + } + + public static final int MIN_VALUE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString minValue_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+   * Minimum number for the sequence represented as bytes to accommodate large.
+   * numbers
+   * 
+ * + * bytes min_value = 4; + * + * @return The minValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMinValue() { + return minValue_; + } + + public static final int CYCLE_FIELD_NUMBER = 5; + private boolean cycle_ = false; + /** + * + * + *
+   * Indicates whether the sequence value should cycle through.
+   * 
+ * + * bool cycle = 5; + * + * @return The cycle. + */ + @java.lang.Override + public boolean getCycle() { + return cycle_; + } + + public static final int CACHE_FIELD_NUMBER = 6; + private long cache_ = 0L; + /** + * + * + *
+   * Indicates number of entries to cache / precreate.
+   * 
+ * + * int64 cache = 6; + * + * @return The cache. + */ + @java.lang.Override + public long getCache() { + return cache_; + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 7; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 7; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 7; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 7; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + 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 (increment_ != 0L) { + output.writeInt64(1, increment_); + } + if (!startValue_.isEmpty()) { + output.writeBytes(2, startValue_); + } + if (!maxValue_.isEmpty()) { + output.writeBytes(3, maxValue_); + } + if (!minValue_.isEmpty()) { + output.writeBytes(4, minValue_); + } + if (cycle_ != false) { + output.writeBool(5, cycle_); + } + if (cache_ != 0L) { + output.writeInt64(6, cache_); + } + if (customFeatures_ != null) { + output.writeMessage(7, getCustomFeatures()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (increment_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, increment_); + } + if (!startValue_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, startValue_); + } + if (!maxValue_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, maxValue_); + } + if (!minValue_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, minValue_); + } + if (cycle_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, cycle_); + } + if (cache_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, cache_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCustomFeatures()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.SequenceEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SequenceEntity other = + (com.google.cloud.clouddms.v1.SequenceEntity) obj; + + if (getIncrement() != other.getIncrement()) return false; + if (!getStartValue().equals(other.getStartValue())) return false; + if (!getMaxValue().equals(other.getMaxValue())) return false; + if (!getMinValue().equals(other.getMinValue())) return false; + if (getCycle() != other.getCycle()) return false; + if (getCache() != other.getCache()) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INCREMENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIncrement()); + hash = (37 * hash) + START_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStartValue().hashCode(); + hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getMaxValue().hashCode(); + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getMinValue().hashCode(); + hash = (37 * hash) + CYCLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCycle()); + hash = (37 * hash) + CACHE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCache()); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SequenceEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SequenceEntity 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.clouddms.v1.SequenceEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SequenceEntity 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.clouddms.v1.SequenceEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SequenceEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.SequenceEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SequenceEntity 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.clouddms.v1.SequenceEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SequenceEntity 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.clouddms.v1.SequenceEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SequenceEntity 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.clouddms.v1.SequenceEntity 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; + } + /** + * + * + *
+   * Sequence's parent is a schema.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SequenceEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SequenceEntity) + com.google.cloud.clouddms.v1.SequenceEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SequenceEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SequenceEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SequenceEntity.class, + com.google.cloud.clouddms.v1.SequenceEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SequenceEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + increment_ = 0L; + startValue_ = com.google.protobuf.ByteString.EMPTY; + maxValue_ = com.google.protobuf.ByteString.EMPTY; + minValue_ = com.google.protobuf.ByteString.EMPTY; + cycle_ = false; + cache_ = 0L; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SequenceEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SequenceEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SequenceEntity build() { + com.google.cloud.clouddms.v1.SequenceEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SequenceEntity buildPartial() { + com.google.cloud.clouddms.v1.SequenceEntity result = + new com.google.cloud.clouddms.v1.SequenceEntity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SequenceEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.increment_ = increment_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startValue_ = startValue_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxValue_ = maxValue_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.minValue_ = minValue_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.cycle_ = cycle_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.cache_ = cache_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + @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.clouddms.v1.SequenceEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.SequenceEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SequenceEntity other) { + if (other == com.google.cloud.clouddms.v1.SequenceEntity.getDefaultInstance()) return this; + if (other.getIncrement() != 0L) { + setIncrement(other.getIncrement()); + } + if (other.getStartValue() != com.google.protobuf.ByteString.EMPTY) { + setStartValue(other.getStartValue()); + } + if (other.getMaxValue() != com.google.protobuf.ByteString.EMPTY) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != com.google.protobuf.ByteString.EMPTY) { + setMinValue(other.getMinValue()); + } + if (other.getCycle() != false) { + setCycle(other.getCycle()); + } + if (other.getCache() != 0L) { + setCache(other.getCache()); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + increment_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + startValue_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + maxValue_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + minValue_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + cycle_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + cache_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long increment_; + /** + * + * + *
+     * Increment value for the sequence.
+     * 
+ * + * int64 increment = 1; + * + * @return The increment. + */ + @java.lang.Override + public long getIncrement() { + return increment_; + } + /** + * + * + *
+     * Increment value for the sequence.
+     * 
+ * + * int64 increment = 1; + * + * @param value The increment to set. + * @return This builder for chaining. + */ + public Builder setIncrement(long value) { + + increment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Increment value for the sequence.
+     * 
+ * + * int64 increment = 1; + * + * @return This builder for chaining. + */ + public Builder clearIncrement() { + bitField0_ = (bitField0_ & ~0x00000001); + increment_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString startValue_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Start number for the sequence represented as bytes to accommodate large.
+     * numbers
+     * 
+ * + * bytes start_value = 2; + * + * @return The startValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartValue() { + return startValue_; + } + /** + * + * + *
+     * Start number for the sequence represented as bytes to accommodate large.
+     * numbers
+     * 
+ * + * bytes start_value = 2; + * + * @param value The startValue to set. + * @return This builder for chaining. + */ + public Builder setStartValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + startValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Start number for the sequence represented as bytes to accommodate large.
+     * numbers
+     * 
+ * + * bytes start_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearStartValue() { + bitField0_ = (bitField0_ & ~0x00000002); + startValue_ = getDefaultInstance().getStartValue(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString maxValue_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Maximum number for the sequence represented as bytes to accommodate large.
+     * numbers
+     * 
+ * + * bytes max_value = 3; + * + * @return The maxValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMaxValue() { + return maxValue_; + } + /** + * + * + *
+     * Maximum number for the sequence represented as bytes to accommodate large.
+     * numbers
+     * 
+ * + * bytes max_value = 3; + * + * @param value The maxValue to set. + * @return This builder for chaining. + */ + public Builder setMaxValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + maxValue_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum number for the sequence represented as bytes to accommodate large.
+     * numbers
+     * 
+ * + * bytes max_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxValue() { + bitField0_ = (bitField0_ & ~0x00000004); + maxValue_ = getDefaultInstance().getMaxValue(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString minValue_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Minimum number for the sequence represented as bytes to accommodate large.
+     * numbers
+     * 
+ * + * bytes min_value = 4; + * + * @return The minValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMinValue() { + return minValue_; + } + /** + * + * + *
+     * Minimum number for the sequence represented as bytes to accommodate large.
+     * numbers
+     * 
+ * + * bytes min_value = 4; + * + * @param value The minValue to set. + * @return This builder for chaining. + */ + public Builder setMinValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + minValue_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum number for the sequence represented as bytes to accommodate large.
+     * numbers
+     * 
+ * + * bytes min_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearMinValue() { + bitField0_ = (bitField0_ & ~0x00000008); + minValue_ = getDefaultInstance().getMinValue(); + onChanged(); + return this; + } + + private boolean cycle_; + /** + * + * + *
+     * Indicates whether the sequence value should cycle through.
+     * 
+ * + * bool cycle = 5; + * + * @return The cycle. + */ + @java.lang.Override + public boolean getCycle() { + return cycle_; + } + /** + * + * + *
+     * Indicates whether the sequence value should cycle through.
+     * 
+ * + * bool cycle = 5; + * + * @param value The cycle to set. + * @return This builder for chaining. + */ + public Builder setCycle(boolean value) { + + cycle_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates whether the sequence value should cycle through.
+     * 
+ * + * bool cycle = 5; + * + * @return This builder for chaining. + */ + public Builder clearCycle() { + bitField0_ = (bitField0_ & ~0x00000010); + cycle_ = false; + onChanged(); + return this; + } + + private long cache_; + /** + * + * + *
+     * Indicates number of entries to cache / precreate.
+     * 
+ * + * int64 cache = 6; + * + * @return The cache. + */ + @java.lang.Override + public long getCache() { + return cache_; + } + /** + * + * + *
+     * Indicates number of entries to cache / precreate.
+     * 
+ * + * int64 cache = 6; + * + * @param value The cache to set. + * @return This builder for chaining. + */ + public Builder setCache(long value) { + + cache_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates number of entries to cache / precreate.
+     * 
+ * + * int64 cache = 6; + * + * @return This builder for chaining. + */ + public Builder clearCache() { + bitField0_ = (bitField0_ & ~0x00000020); + cache_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000040); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @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.clouddms.v1.SequenceEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SequenceEntity) + private static final com.google.cloud.clouddms.v1.SequenceEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SequenceEntity(); + } + + public static com.google.cloud.clouddms.v1.SequenceEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequenceEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SequenceEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SequenceEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SequenceEntityOrBuilder.java new file mode 100644 index 000000000000..02ac5178b751 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SequenceEntityOrBuilder.java @@ -0,0 +1,141 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface SequenceEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SequenceEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Increment value for the sequence.
+   * 
+ * + * int64 increment = 1; + * + * @return The increment. + */ + long getIncrement(); + + /** + * + * + *
+   * Start number for the sequence represented as bytes to accommodate large.
+   * numbers
+   * 
+ * + * bytes start_value = 2; + * + * @return The startValue. + */ + com.google.protobuf.ByteString getStartValue(); + + /** + * + * + *
+   * Maximum number for the sequence represented as bytes to accommodate large.
+   * numbers
+   * 
+ * + * bytes max_value = 3; + * + * @return The maxValue. + */ + com.google.protobuf.ByteString getMaxValue(); + + /** + * + * + *
+   * Minimum number for the sequence represented as bytes to accommodate large.
+   * numbers
+   * 
+ * + * bytes min_value = 4; + * + * @return The minValue. + */ + com.google.protobuf.ByteString getMinValue(); + + /** + * + * + *
+   * Indicates whether the sequence value should cycle through.
+   * 
+ * + * bool cycle = 5; + * + * @return The cycle. + */ + boolean getCycle(); + + /** + * + * + *
+   * Indicates number of entries to cache / precreate.
+   * 
+ * + * int64 cache = 6; + * + * @return The cache. + */ + long getCache(); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 7; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 7; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 7; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java index 5c4d1d9490be..4914d1134d79 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfig.java @@ -39,6 +39,7 @@ private SqlIpConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { private SqlIpConfig() { privateNetwork_ = ""; + allocatedIpRange_ = ""; authorizedNetworks_ = java.util.Collections.emptyList(); } @@ -171,6 +172,67 @@ public com.google.protobuf.ByteString getPrivateNetworkBytes() { } } + public static final int ALLOCATED_IP_RANGE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object allocatedIpRange_ = ""; + /** + * + * + *
+   * Optional. The name of the allocated IP address range for the private IP
+   * Cloud SQL instance. This name refers to an already allocated IP range
+   * address. If set, the instance IP address will be created in the allocated
+   * range. Note that this IP address range can't be modified after the instance
+   * is created. If you change the VPC when configuring connectivity settings
+   * for the migration job, this field is not relevant.
+   * 
+ * + * string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allocatedIpRange. + */ + @java.lang.Override + public java.lang.String getAllocatedIpRange() { + java.lang.Object ref = allocatedIpRange_; + 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(); + allocatedIpRange_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the allocated IP address range for the private IP
+   * Cloud SQL instance. This name refers to an already allocated IP range
+   * address. If set, the instance IP address will be created in the allocated
+   * range. Note that this IP address range can't be modified after the instance
+   * is created. If you change the VPC when configuring connectivity settings
+   * for the migration job, this field is not relevant.
+   * 
+ * + * string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for allocatedIpRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAllocatedIpRangeBytes() { + java.lang.Object ref = allocatedIpRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allocatedIpRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int REQUIRE_SSL_FIELD_NUMBER = 3; private com.google.protobuf.BoolValue requireSsl_; /** @@ -330,6 +392,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < authorizedNetworks_.size(); i++) { output.writeMessage(4, authorizedNetworks_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatedIpRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, allocatedIpRange_); + } getUnknownFields().writeTo(output); } @@ -352,6 +417,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, authorizedNetworks_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatedIpRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, allocatedIpRange_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -372,6 +440,7 @@ public boolean equals(final java.lang.Object obj) { if (!getEnableIpv4().equals(other.getEnableIpv4())) return false; } if (!getPrivateNetwork().equals(other.getPrivateNetwork())) return false; + if (!getAllocatedIpRange().equals(other.getAllocatedIpRange())) return false; if (hasRequireSsl() != other.hasRequireSsl()) return false; if (hasRequireSsl()) { if (!getRequireSsl().equals(other.getRequireSsl())) return false; @@ -394,6 +463,8 @@ public int hashCode() { } hash = (37 * hash) + PRIVATE_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getPrivateNetwork().hashCode(); + hash = (37 * hash) + ALLOCATED_IP_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getAllocatedIpRange().hashCode(); if (hasRequireSsl()) { hash = (37 * hash) + REQUIRE_SSL_FIELD_NUMBER; hash = (53 * hash) + getRequireSsl().hashCode(); @@ -547,6 +618,7 @@ public Builder clear() { enableIpv4Builder_ = null; } privateNetwork_ = ""; + allocatedIpRange_ = ""; requireSsl_ = null; if (requireSslBuilder_ != null) { requireSslBuilder_.dispose(); @@ -558,7 +630,7 @@ public Builder clear() { authorizedNetworks_ = null; authorizedNetworksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -596,9 +668,9 @@ public com.google.cloud.clouddms.v1.SqlIpConfig buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.clouddms.v1.SqlIpConfig result) { if (authorizedNetworksBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { authorizedNetworks_ = java.util.Collections.unmodifiableList(authorizedNetworks_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } result.authorizedNetworks_ = authorizedNetworks_; } else { @@ -615,6 +687,9 @@ private void buildPartial0(com.google.cloud.clouddms.v1.SqlIpConfig result) { result.privateNetwork_ = privateNetwork_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.allocatedIpRange_ = allocatedIpRange_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.requireSsl_ = requireSslBuilder_ == null ? requireSsl_ : requireSslBuilder_.build(); } } @@ -672,6 +747,11 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.SqlIpConfig other) { bitField0_ |= 0x00000002; onChanged(); } + if (!other.getAllocatedIpRange().isEmpty()) { + allocatedIpRange_ = other.allocatedIpRange_; + bitField0_ |= 0x00000004; + onChanged(); + } if (other.hasRequireSsl()) { mergeRequireSsl(other.getRequireSsl()); } @@ -679,7 +759,7 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.SqlIpConfig other) { if (!other.authorizedNetworks_.isEmpty()) { if (authorizedNetworks_.isEmpty()) { authorizedNetworks_ = other.authorizedNetworks_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAuthorizedNetworksIsMutable(); authorizedNetworks_.addAll(other.authorizedNetworks_); @@ -692,7 +772,7 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.SqlIpConfig other) { authorizedNetworksBuilder_.dispose(); authorizedNetworksBuilder_ = null; authorizedNetworks_ = other.authorizedNetworks_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); authorizedNetworksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAuthorizedNetworksFieldBuilder() @@ -743,7 +823,7 @@ public Builder mergeFrom( case 26: { input.readMessage(getRequireSslFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: @@ -759,6 +839,12 @@ public Builder mergeFrom( } break; } // case 34 + case 42: + { + allocatedIpRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1082,6 +1168,137 @@ public Builder setPrivateNetworkBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object allocatedIpRange_ = ""; + /** + * + * + *
+     * Optional. The name of the allocated IP address range for the private IP
+     * Cloud SQL instance. This name refers to an already allocated IP range
+     * address. If set, the instance IP address will be created in the allocated
+     * range. Note that this IP address range can't be modified after the instance
+     * is created. If you change the VPC when configuring connectivity settings
+     * for the migration job, this field is not relevant.
+     * 
+ * + * string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allocatedIpRange. + */ + public java.lang.String getAllocatedIpRange() { + java.lang.Object ref = allocatedIpRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allocatedIpRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the allocated IP address range for the private IP
+     * Cloud SQL instance. This name refers to an already allocated IP range
+     * address. If set, the instance IP address will be created in the allocated
+     * range. Note that this IP address range can't be modified after the instance
+     * is created. If you change the VPC when configuring connectivity settings
+     * for the migration job, this field is not relevant.
+     * 
+ * + * string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for allocatedIpRange. + */ + public com.google.protobuf.ByteString getAllocatedIpRangeBytes() { + java.lang.Object ref = allocatedIpRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + allocatedIpRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the allocated IP address range for the private IP
+     * Cloud SQL instance. This name refers to an already allocated IP range
+     * address. If set, the instance IP address will be created in the allocated
+     * range. Note that this IP address range can't be modified after the instance
+     * is created. If you change the VPC when configuring connectivity settings
+     * for the migration job, this field is not relevant.
+     * 
+ * + * string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allocatedIpRange to set. + * @return This builder for chaining. + */ + public Builder setAllocatedIpRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + allocatedIpRange_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the allocated IP address range for the private IP
+     * Cloud SQL instance. This name refers to an already allocated IP range
+     * address. If set, the instance IP address will be created in the allocated
+     * range. Note that this IP address range can't be modified after the instance
+     * is created. If you change the VPC when configuring connectivity settings
+     * for the migration job, this field is not relevant.
+     * 
+ * + * string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllocatedIpRange() { + allocatedIpRange_ = getDefaultInstance().getAllocatedIpRange(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the allocated IP address range for the private IP
+     * Cloud SQL instance. This name refers to an already allocated IP range
+     * address. If set, the instance IP address will be created in the allocated
+     * range. Note that this IP address range can't be modified after the instance
+     * is created. If you change the VPC when configuring connectivity settings
+     * for the migration job, this field is not relevant.
+     * 
+ * + * string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for allocatedIpRange to set. + * @return This builder for chaining. + */ + public Builder setAllocatedIpRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + allocatedIpRange_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private com.google.protobuf.BoolValue requireSsl_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, @@ -1100,7 +1317,7 @@ public Builder setPrivateNetworkBytes(com.google.protobuf.ByteString value) { * @return Whether the requireSsl field is set. */ public boolean hasRequireSsl() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1140,7 +1357,7 @@ public Builder setRequireSsl(com.google.protobuf.BoolValue value) { } else { requireSslBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1159,7 +1376,7 @@ public Builder setRequireSsl(com.google.protobuf.BoolValue.Builder builderForVal } else { requireSslBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1174,7 +1391,7 @@ public Builder setRequireSsl(com.google.protobuf.BoolValue.Builder builderForVal */ public Builder mergeRequireSsl(com.google.protobuf.BoolValue value) { if (requireSslBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && requireSsl_ != null && requireSsl_ != com.google.protobuf.BoolValue.getDefaultInstance()) { getRequireSslBuilder().mergeFrom(value); @@ -1184,7 +1401,7 @@ public Builder mergeRequireSsl(com.google.protobuf.BoolValue value) { } else { requireSslBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1198,7 +1415,7 @@ public Builder mergeRequireSsl(com.google.protobuf.BoolValue value) { * .google.protobuf.BoolValue require_ssl = 3; */ public Builder clearRequireSsl() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); requireSsl_ = null; if (requireSslBuilder_ != null) { requireSslBuilder_.dispose(); @@ -1217,7 +1434,7 @@ public Builder clearRequireSsl() { * .google.protobuf.BoolValue require_ssl = 3; */ public com.google.protobuf.BoolValue.Builder getRequireSslBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getRequireSslFieldBuilder().getBuilder(); } @@ -1269,10 +1486,10 @@ public com.google.protobuf.BoolValueOrBuilder getRequireSslOrBuilder() { java.util.Collections.emptyList(); private void ensureAuthorizedNetworksIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { authorizedNetworks_ = new java.util.ArrayList(authorizedNetworks_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } @@ -1523,7 +1740,7 @@ public Builder addAllAuthorizedNetworks( public Builder clearAuthorizedNetworks() { if (authorizedNetworksBuilder_ == null) { authorizedNetworks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { authorizedNetworksBuilder_.clear(); @@ -1670,7 +1887,7 @@ public com.google.cloud.clouddms.v1.SqlAclEntry.Builder addAuthorizedNetworksBui com.google.cloud.clouddms.v1.SqlAclEntry.Builder, com.google.cloud.clouddms.v1.SqlAclEntryOrBuilder>( authorizedNetworks_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); authorizedNetworks_ = null; diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java index 60926fe5525b..be4b9af1470f 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SqlIpConfigOrBuilder.java @@ -89,6 +89,41 @@ public interface SqlIpConfigOrBuilder */ com.google.protobuf.ByteString getPrivateNetworkBytes(); + /** + * + * + *
+   * Optional. The name of the allocated IP address range for the private IP
+   * Cloud SQL instance. This name refers to an already allocated IP range
+   * address. If set, the instance IP address will be created in the allocated
+   * range. Note that this IP address range can't be modified after the instance
+   * is created. If you change the VPC when configuring connectivity settings
+   * for the migration job, this field is not relevant.
+   * 
+ * + * string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allocatedIpRange. + */ + java.lang.String getAllocatedIpRange(); + /** + * + * + *
+   * Optional. The name of the allocated IP address range for the private IP
+   * Cloud SQL instance. This name refers to an already allocated IP range
+   * address. If set, the instance IP address will be created in the allocated
+   * range. Note that this IP address range can't be modified after the instance
+   * is created. If you change the VPC when configuring connectivity settings
+   * for the migration job, this field is not relevant.
+   * 
+ * + * string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for allocatedIpRange. + */ + com.google.protobuf.ByteString getAllocatedIpRangeBytes(); + /** * * diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java index 464586080b3e..14ffe4f05a0b 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfig.java @@ -235,8 +235,8 @@ private SslType(int value) { * * *
-   * Output only. The ssl config type according to 'client_key', 'client_certificate' and
-   * 'ca_certificate'.
+   * Output only. The ssl config type according to 'client_key',
+   * 'client_certificate' and 'ca_certificate'.
    * 
* * @@ -253,8 +253,8 @@ public int getTypeValue() { * * *
-   * Output only. The ssl config type according to 'client_key', 'client_certificate' and
-   * 'ca_certificate'.
+   * Output only. The ssl config type according to 'client_key',
+   * 'client_certificate' and 'ca_certificate'.
    * 
* * @@ -278,9 +278,9 @@ public com.google.cloud.clouddms.v1.SslConfig.SslType getType() { * * *
-   * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
-   * the Client Certificate. If this field is used then the 'client_certificate'
-   * field is mandatory.
+   * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
+   * associated with the Client Certificate. If this field is used then the
+   * 'client_certificate' field is mandatory.
    * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -303,9 +303,9 @@ public java.lang.String getClientKey() { * * *
-   * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
-   * the Client Certificate. If this field is used then the 'client_certificate'
-   * field is mandatory.
+   * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
+   * associated with the Client Certificate. If this field is used then the
+   * 'client_certificate' field is mandatory.
    * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -333,9 +333,9 @@ public com.google.protobuf.ByteString getClientKeyBytes() { * * *
-   * Input only. The x509 PEM-encoded certificate that will be used by the replica to
-   * authenticate against the source database server.If this field is used then
-   * the 'client_key' field is mandatory.
+   * Input only. The x509 PEM-encoded certificate that will be used by the
+   * replica to authenticate against the source database server.If this field is
+   * used then the 'client_key' field is mandatory.
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -358,9 +358,9 @@ public java.lang.String getClientCertificate() { * * *
-   * Input only. The x509 PEM-encoded certificate that will be used by the replica to
-   * authenticate against the source database server.If this field is used then
-   * the 'client_key' field is mandatory.
+   * Input only. The x509 PEM-encoded certificate that will be used by the
+   * replica to authenticate against the source database server.If this field is
+   * used then the 'client_key' field is mandatory.
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -388,9 +388,9 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { * * *
-   * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
-   * server's certificate. The replica will use this certificate to verify
-   * it's connecting to the right host.
+   * Required. Input only. The x509 PEM-encoded certificate of the CA that
+   * signed the source database server's certificate. The replica will use this
+   * certificate to verify it's connecting to the right host.
    * 
* * @@ -415,9 +415,9 @@ public java.lang.String getCaCertificate() { * * *
-   * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
-   * server's certificate. The replica will use this certificate to verify
-   * it's connecting to the right host.
+   * Required. Input only. The x509 PEM-encoded certificate of the CA that
+   * signed the source database server's certificate. The replica will use this
+   * certificate to verify it's connecting to the right host.
    * 
* * @@ -854,8 +854,8 @@ public Builder mergeFrom( * * *
-     * Output only. The ssl config type according to 'client_key', 'client_certificate' and
-     * 'ca_certificate'.
+     * Output only. The ssl config type according to 'client_key',
+     * 'client_certificate' and 'ca_certificate'.
      * 
* * @@ -872,8 +872,8 @@ public int getTypeValue() { * * *
-     * Output only. The ssl config type according to 'client_key', 'client_certificate' and
-     * 'ca_certificate'.
+     * Output only. The ssl config type according to 'client_key',
+     * 'client_certificate' and 'ca_certificate'.
      * 
* * @@ -893,8 +893,8 @@ public Builder setTypeValue(int value) { * * *
-     * Output only. The ssl config type according to 'client_key', 'client_certificate' and
-     * 'ca_certificate'.
+     * Output only. The ssl config type according to 'client_key',
+     * 'client_certificate' and 'ca_certificate'.
      * 
* * @@ -913,8 +913,8 @@ public com.google.cloud.clouddms.v1.SslConfig.SslType getType() { * * *
-     * Output only. The ssl config type according to 'client_key', 'client_certificate' and
-     * 'ca_certificate'.
+     * Output only. The ssl config type according to 'client_key',
+     * 'client_certificate' and 'ca_certificate'.
      * 
* * @@ -937,8 +937,8 @@ public Builder setType(com.google.cloud.clouddms.v1.SslConfig.SslType value) { * * *
-     * Output only. The ssl config type according to 'client_key', 'client_certificate' and
-     * 'ca_certificate'.
+     * Output only. The ssl config type according to 'client_key',
+     * 'client_certificate' and 'ca_certificate'.
      * 
* * @@ -959,9 +959,9 @@ public Builder clearType() { * * *
-     * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
-     * the Client Certificate. If this field is used then the 'client_certificate'
-     * field is mandatory.
+     * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
+     * associated with the Client Certificate. If this field is used then the
+     * 'client_certificate' field is mandatory.
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -983,9 +983,9 @@ public java.lang.String getClientKey() { * * *
-     * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
-     * the Client Certificate. If this field is used then the 'client_certificate'
-     * field is mandatory.
+     * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
+     * associated with the Client Certificate. If this field is used then the
+     * 'client_certificate' field is mandatory.
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1007,9 +1007,9 @@ public com.google.protobuf.ByteString getClientKeyBytes() { * * *
-     * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
-     * the Client Certificate. If this field is used then the 'client_certificate'
-     * field is mandatory.
+     * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
+     * associated with the Client Certificate. If this field is used then the
+     * 'client_certificate' field is mandatory.
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1030,9 +1030,9 @@ public Builder setClientKey(java.lang.String value) { * * *
-     * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
-     * the Client Certificate. If this field is used then the 'client_certificate'
-     * field is mandatory.
+     * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
+     * associated with the Client Certificate. If this field is used then the
+     * 'client_certificate' field is mandatory.
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1049,9 +1049,9 @@ public Builder clearClientKey() { * * *
-     * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
-     * the Client Certificate. If this field is used then the 'client_certificate'
-     * field is mandatory.
+     * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
+     * associated with the Client Certificate. If this field is used then the
+     * 'client_certificate' field is mandatory.
      * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1075,9 +1075,9 @@ public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { * * *
-     * Input only. The x509 PEM-encoded certificate that will be used by the replica to
-     * authenticate against the source database server.If this field is used then
-     * the 'client_key' field is mandatory.
+     * Input only. The x509 PEM-encoded certificate that will be used by the
+     * replica to authenticate against the source database server.If this field is
+     * used then the 'client_key' field is mandatory.
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1099,9 +1099,9 @@ public java.lang.String getClientCertificate() { * * *
-     * Input only. The x509 PEM-encoded certificate that will be used by the replica to
-     * authenticate against the source database server.If this field is used then
-     * the 'client_key' field is mandatory.
+     * Input only. The x509 PEM-encoded certificate that will be used by the
+     * replica to authenticate against the source database server.If this field is
+     * used then the 'client_key' field is mandatory.
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1123,9 +1123,9 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { * * *
-     * Input only. The x509 PEM-encoded certificate that will be used by the replica to
-     * authenticate against the source database server.If this field is used then
-     * the 'client_key' field is mandatory.
+     * Input only. The x509 PEM-encoded certificate that will be used by the
+     * replica to authenticate against the source database server.If this field is
+     * used then the 'client_key' field is mandatory.
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1146,9 +1146,9 @@ public Builder setClientCertificate(java.lang.String value) { * * *
-     * Input only. The x509 PEM-encoded certificate that will be used by the replica to
-     * authenticate against the source database server.If this field is used then
-     * the 'client_key' field is mandatory.
+     * Input only. The x509 PEM-encoded certificate that will be used by the
+     * replica to authenticate against the source database server.If this field is
+     * used then the 'client_key' field is mandatory.
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1165,9 +1165,9 @@ public Builder clearClientCertificate() { * * *
-     * Input only. The x509 PEM-encoded certificate that will be used by the replica to
-     * authenticate against the source database server.If this field is used then
-     * the 'client_key' field is mandatory.
+     * Input only. The x509 PEM-encoded certificate that will be used by the
+     * replica to authenticate against the source database server.If this field is
+     * used then the 'client_key' field is mandatory.
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1191,9 +1191,9 @@ public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
-     * server's certificate. The replica will use this certificate to verify
-     * it's connecting to the right host.
+     * Required. Input only. The x509 PEM-encoded certificate of the CA that
+     * signed the source database server's certificate. The replica will use this
+     * certificate to verify it's connecting to the right host.
      * 
* * @@ -1217,9 +1217,9 @@ public java.lang.String getCaCertificate() { * * *
-     * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
-     * server's certificate. The replica will use this certificate to verify
-     * it's connecting to the right host.
+     * Required. Input only. The x509 PEM-encoded certificate of the CA that
+     * signed the source database server's certificate. The replica will use this
+     * certificate to verify it's connecting to the right host.
      * 
* * @@ -1243,9 +1243,9 @@ public com.google.protobuf.ByteString getCaCertificateBytes() { * * *
-     * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
-     * server's certificate. The replica will use this certificate to verify
-     * it's connecting to the right host.
+     * Required. Input only. The x509 PEM-encoded certificate of the CA that
+     * signed the source database server's certificate. The replica will use this
+     * certificate to verify it's connecting to the right host.
      * 
* * @@ -1268,9 +1268,9 @@ public Builder setCaCertificate(java.lang.String value) { * * *
-     * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
-     * server's certificate. The replica will use this certificate to verify
-     * it's connecting to the right host.
+     * Required. Input only. The x509 PEM-encoded certificate of the CA that
+     * signed the source database server's certificate. The replica will use this
+     * certificate to verify it's connecting to the right host.
      * 
* * @@ -1289,9 +1289,9 @@ public Builder clearCaCertificate() { * * *
-     * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
-     * server's certificate. The replica will use this certificate to verify
-     * it's connecting to the right host.
+     * Required. Input only. The x509 PEM-encoded certificate of the CA that
+     * signed the source database server's certificate. The replica will use this
+     * certificate to verify it's connecting to the right host.
      * 
* * diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java index c6ff81221d75..99658fe4055c 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SslConfigOrBuilder.java @@ -27,8 +27,8 @@ public interface SslConfigOrBuilder * * *
-   * Output only. The ssl config type according to 'client_key', 'client_certificate' and
-   * 'ca_certificate'.
+   * Output only. The ssl config type according to 'client_key',
+   * 'client_certificate' and 'ca_certificate'.
    * 
* * @@ -42,8 +42,8 @@ public interface SslConfigOrBuilder * * *
-   * Output only. The ssl config type according to 'client_key', 'client_certificate' and
-   * 'ca_certificate'.
+   * Output only. The ssl config type according to 'client_key',
+   * 'client_certificate' and 'ca_certificate'.
    * 
* * @@ -58,9 +58,9 @@ public interface SslConfigOrBuilder * * *
-   * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
-   * the Client Certificate. If this field is used then the 'client_certificate'
-   * field is mandatory.
+   * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
+   * associated with the Client Certificate. If this field is used then the
+   * 'client_certificate' field is mandatory.
    * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -72,9 +72,9 @@ public interface SslConfigOrBuilder * * *
-   * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with
-   * the Client Certificate. If this field is used then the 'client_certificate'
-   * field is mandatory.
+   * Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
+   * associated with the Client Certificate. If this field is used then the
+   * 'client_certificate' field is mandatory.
    * 
* * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -87,9 +87,9 @@ public interface SslConfigOrBuilder * * *
-   * Input only. The x509 PEM-encoded certificate that will be used by the replica to
-   * authenticate against the source database server.If this field is used then
-   * the 'client_key' field is mandatory.
+   * Input only. The x509 PEM-encoded certificate that will be used by the
+   * replica to authenticate against the source database server.If this field is
+   * used then the 'client_key' field is mandatory.
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -101,9 +101,9 @@ public interface SslConfigOrBuilder * * *
-   * Input only. The x509 PEM-encoded certificate that will be used by the replica to
-   * authenticate against the source database server.If this field is used then
-   * the 'client_key' field is mandatory.
+   * Input only. The x509 PEM-encoded certificate that will be used by the
+   * replica to authenticate against the source database server.If this field is
+   * used then the 'client_key' field is mandatory.
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -116,9 +116,9 @@ public interface SslConfigOrBuilder * * *
-   * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
-   * server's certificate. The replica will use this certificate to verify
-   * it's connecting to the right host.
+   * Required. Input only. The x509 PEM-encoded certificate of the CA that
+   * signed the source database server's certificate. The replica will use this
+   * certificate to verify it's connecting to the right host.
    * 
* * @@ -132,9 +132,9 @@ public interface SslConfigOrBuilder * * *
-   * Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database
-   * server's certificate. The replica will use this certificate to verify
-   * it's connecting to the right host.
+   * Required. Input only. The x509 PEM-encoded certificate of the CA that
+   * signed the source database server's certificate. The replica will use this
+   * certificate to verify it's connecting to the right host.
    * 
* * diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java index a50705275f5b..aab8b2b88cec 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticIpConnectivity.java @@ -22,9 +22,9 @@ * * *
- * The source database will allow incoming connections from the destination
- * database's public IP. You can retrieve the Cloud SQL instance's public IP
- * from the Cloud SQL console or using Cloud SQL APIs. No additional
+ * The source database will allow incoming connections from the public IP of the
+ * destination database. You can retrieve the public IP of the Cloud SQL
+ * instance from the Cloud SQL console or using Cloud SQL APIs. No additional
  * configuration is required.
  * 
* @@ -222,9 +222,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The source database will allow incoming connections from the destination
-   * database's public IP. You can retrieve the Cloud SQL instance's public IP
-   * from the Cloud SQL console or using Cloud SQL APIs. No additional
+   * The source database will allow incoming connections from the public IP of the
+   * destination database. You can retrieve the public IP of the Cloud SQL
+   * instance from the Cloud SQL console or using Cloud SQL APIs. No additional
    * configuration is required.
    * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticServiceIpConnectivity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticServiceIpConnectivity.java new file mode 100644 index 000000000000..82cf343881e2 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticServiceIpConnectivity.java @@ -0,0 +1,437 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Static IP address connectivity configured on service project.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.StaticServiceIpConnectivity} + */ +public final class StaticServiceIpConnectivity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.StaticServiceIpConnectivity) + StaticServiceIpConnectivityOrBuilder { + private static final long serialVersionUID = 0L; + // Use StaticServiceIpConnectivity.newBuilder() to construct. + private StaticServiceIpConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StaticServiceIpConnectivity() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StaticServiceIpConnectivity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_StaticServiceIpConnectivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_StaticServiceIpConnectivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.class, + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.StaticServiceIpConnectivity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity other = + (com.google.cloud.clouddms.v1.StaticServiceIpConnectivity) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.StaticServiceIpConnectivity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.StaticServiceIpConnectivity 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.clouddms.v1.StaticServiceIpConnectivity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.StaticServiceIpConnectivity 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.clouddms.v1.StaticServiceIpConnectivity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.StaticServiceIpConnectivity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.StaticServiceIpConnectivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.StaticServiceIpConnectivity 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.clouddms.v1.StaticServiceIpConnectivity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.StaticServiceIpConnectivity 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.clouddms.v1.StaticServiceIpConnectivity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.StaticServiceIpConnectivity 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.clouddms.v1.StaticServiceIpConnectivity 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; + } + /** + * + * + *
+   * Static IP address connectivity configured on service project.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.StaticServiceIpConnectivity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.StaticServiceIpConnectivity) + com.google.cloud.clouddms.v1.StaticServiceIpConnectivityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_StaticServiceIpConnectivity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_StaticServiceIpConnectivity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.class, + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_StaticServiceIpConnectivity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.StaticServiceIpConnectivity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.StaticServiceIpConnectivity build() { + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.StaticServiceIpConnectivity buildPartial() { + com.google.cloud.clouddms.v1.StaticServiceIpConnectivity result = + new com.google.cloud.clouddms.v1.StaticServiceIpConnectivity(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.clouddms.v1.StaticServiceIpConnectivity) { + return mergeFrom((com.google.cloud.clouddms.v1.StaticServiceIpConnectivity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.StaticServiceIpConnectivity other) { + if (other == com.google.cloud.clouddms.v1.StaticServiceIpConnectivity.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @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.clouddms.v1.StaticServiceIpConnectivity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.StaticServiceIpConnectivity) + private static final com.google.cloud.clouddms.v1.StaticServiceIpConnectivity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.StaticServiceIpConnectivity(); + } + + public static com.google.cloud.clouddms.v1.StaticServiceIpConnectivity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StaticServiceIpConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.StaticServiceIpConnectivity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticServiceIpConnectivityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticServiceIpConnectivityOrBuilder.java new file mode 100644 index 000000000000..ad58ae4d17c5 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StaticServiceIpConnectivityOrBuilder.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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface StaticServiceIpConnectivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StaticServiceIpConnectivity) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StoredProcedureEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StoredProcedureEntity.java new file mode 100644 index 000000000000..fb8fc744b447 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StoredProcedureEntity.java @@ -0,0 +1,894 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Stored procedure's parent is a schema.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.StoredProcedureEntity} + */ +public final class StoredProcedureEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.StoredProcedureEntity) + StoredProcedureEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use StoredProcedureEntity.newBuilder() to construct. + private StoredProcedureEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StoredProcedureEntity() { + sqlCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StoredProcedureEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.StoredProcedureEntity.class, + com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder.class); + } + + public static final int SQL_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sqlCode_ = ""; + /** + * + * + *
+   * The SQL code which creates the stored procedure.
+   * 
+ * + * string sql_code = 1; + * + * @return The sqlCode. + */ + @java.lang.Override + public java.lang.String getSqlCode() { + java.lang.Object ref = sqlCode_; + 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(); + sqlCode_ = s; + return s; + } + } + /** + * + * + *
+   * The SQL code which creates the stored procedure.
+   * 
+ * + * string sql_code = 1; + * + * @return The bytes for sqlCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlCodeBytes() { + java.lang.Object ref = sqlCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 2; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + 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(sqlCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlCode_); + } + if (customFeatures_ != null) { + output.writeMessage(2, getCustomFeatures()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlCode_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomFeatures()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.StoredProcedureEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.StoredProcedureEntity other = + (com.google.cloud.clouddms.v1.StoredProcedureEntity) obj; + + if (!getSqlCode().equals(other.getSqlCode())) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SQL_CODE_FIELD_NUMBER; + hash = (53 * hash) + getSqlCode().hashCode(); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.StoredProcedureEntity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.StoredProcedureEntity 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.clouddms.v1.StoredProcedureEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.StoredProcedureEntity 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.clouddms.v1.StoredProcedureEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.StoredProcedureEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.StoredProcedureEntity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.StoredProcedureEntity 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.clouddms.v1.StoredProcedureEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.StoredProcedureEntity 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.clouddms.v1.StoredProcedureEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.StoredProcedureEntity 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.clouddms.v1.StoredProcedureEntity 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; + } + /** + * + * + *
+   * Stored procedure's parent is a schema.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.StoredProcedureEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.StoredProcedureEntity) + com.google.cloud.clouddms.v1.StoredProcedureEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.StoredProcedureEntity.class, + com.google.cloud.clouddms.v1.StoredProcedureEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.StoredProcedureEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sqlCode_ = ""; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_StoredProcedureEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.StoredProcedureEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.StoredProcedureEntity build() { + com.google.cloud.clouddms.v1.StoredProcedureEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.StoredProcedureEntity buildPartial() { + com.google.cloud.clouddms.v1.StoredProcedureEntity result = + new com.google.cloud.clouddms.v1.StoredProcedureEntity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.StoredProcedureEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sqlCode_ = sqlCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + @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.clouddms.v1.StoredProcedureEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.StoredProcedureEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.StoredProcedureEntity other) { + if (other == com.google.cloud.clouddms.v1.StoredProcedureEntity.getDefaultInstance()) + return this; + if (!other.getSqlCode().isEmpty()) { + sqlCode_ = other.sqlCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sqlCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sqlCode_ = ""; + /** + * + * + *
+     * The SQL code which creates the stored procedure.
+     * 
+ * + * string sql_code = 1; + * + * @return The sqlCode. + */ + public java.lang.String getSqlCode() { + java.lang.Object ref = sqlCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the stored procedure.
+     * 
+ * + * string sql_code = 1; + * + * @return The bytes for sqlCode. + */ + public com.google.protobuf.ByteString getSqlCodeBytes() { + java.lang.Object ref = sqlCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the stored procedure.
+     * 
+ * + * string sql_code = 1; + * + * @param value The sqlCode to set. + * @return This builder for chaining. + */ + public Builder setSqlCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the stored procedure.
+     * 
+ * + * string sql_code = 1; + * + * @return This builder for chaining. + */ + public Builder clearSqlCode() { + sqlCode_ = getDefaultInstance().getSqlCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the stored procedure.
+     * 
+ * + * string sql_code = 1; + * + * @param value The bytes for sqlCode to set. + * @return This builder for chaining. + */ + public Builder setSqlCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000002); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @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.clouddms.v1.StoredProcedureEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.StoredProcedureEntity) + private static final com.google.cloud.clouddms.v1.StoredProcedureEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.StoredProcedureEntity(); + } + + public static com.google.cloud.clouddms.v1.StoredProcedureEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoredProcedureEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.StoredProcedureEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StoredProcedureEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StoredProcedureEntityOrBuilder.java new file mode 100644 index 000000000000..06eb09bbd669 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/StoredProcedureEntityOrBuilder.java @@ -0,0 +1,85 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface StoredProcedureEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.StoredProcedureEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The SQL code which creates the stored procedure.
+   * 
+ * + * string sql_code = 1; + * + * @return The sqlCode. + */ + java.lang.String getSqlCode(); + /** + * + * + *
+   * The SQL code which creates the stored procedure.
+   * 
+ * + * string sql_code = 1; + * + * @return The bytes for sqlCode. + */ + com.google.protobuf.ByteString getSqlCodeBytes(); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SynonymEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SynonymEntity.java new file mode 100644 index 000000000000..31c4792b50dd --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SynonymEntity.java @@ -0,0 +1,1052 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Synonym's parent is a schema.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SynonymEntity} + */ +public final class SynonymEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.SynonymEntity) + SynonymEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use SynonymEntity.newBuilder() to construct. + private SynonymEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SynonymEntity() { + sourceEntity_ = ""; + sourceType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SynonymEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SynonymEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SynonymEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SynonymEntity.class, + com.google.cloud.clouddms.v1.SynonymEntity.Builder.class); + } + + public static final int SOURCE_ENTITY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceEntity_ = ""; + /** + * + * + *
+   * The name of the entity for which the synonym is being created (the source).
+   * 
+ * + * string source_entity = 1; + * + * @return The sourceEntity. + */ + @java.lang.Override + public java.lang.String getSourceEntity() { + java.lang.Object ref = sourceEntity_; + 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(); + sourceEntity_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the entity for which the synonym is being created (the source).
+   * 
+ * + * string source_entity = 1; + * + * @return The bytes for sourceEntity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceEntityBytes() { + java.lang.Object ref = sourceEntity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceEntity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_TYPE_FIELD_NUMBER = 2; + private int sourceType_ = 0; + /** + * + * + *
+   * The type of the entity for which the synonym is being created
+   * (usually a table or a sequence).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 2; + * + * @return The enum numeric value on the wire for sourceType. + */ + @java.lang.Override + public int getSourceTypeValue() { + return sourceType_; + } + /** + * + * + *
+   * The type of the entity for which the synonym is being created
+   * (usually a table or a sequence).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 2; + * + * @return The sourceType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getSourceType() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(sourceType_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 3; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + 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(sourceEntity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceEntity_); + } + if (sourceType_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, sourceType_); + } + if (customFeatures_ != null) { + output.writeMessage(3, getCustomFeatures()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceEntity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceEntity_); + } + if (sourceType_ + != com.google.cloud.clouddms.v1.DatabaseEntityType.DATABASE_ENTITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, sourceType_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomFeatures()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.SynonymEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.SynonymEntity other = + (com.google.cloud.clouddms.v1.SynonymEntity) obj; + + if (!getSourceEntity().equals(other.getSourceEntity())) return false; + if (sourceType_ != other.sourceType_) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getSourceEntity().hashCode(); + hash = (37 * hash) + SOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + sourceType_; + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.SynonymEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SynonymEntity 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.clouddms.v1.SynonymEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SynonymEntity 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.clouddms.v1.SynonymEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.SynonymEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.SynonymEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SynonymEntity 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.clouddms.v1.SynonymEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SynonymEntity 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.clouddms.v1.SynonymEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.SynonymEntity 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.clouddms.v1.SynonymEntity 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; + } + /** + * + * + *
+   * Synonym's parent is a schema.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.SynonymEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.SynonymEntity) + com.google.cloud.clouddms.v1.SynonymEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SynonymEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SynonymEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.SynonymEntity.class, + com.google.cloud.clouddms.v1.SynonymEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.SynonymEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceEntity_ = ""; + sourceType_ = 0; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_SynonymEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SynonymEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SynonymEntity build() { + com.google.cloud.clouddms.v1.SynonymEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SynonymEntity buildPartial() { + com.google.cloud.clouddms.v1.SynonymEntity result = + new com.google.cloud.clouddms.v1.SynonymEntity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.SynonymEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceEntity_ = sourceEntity_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceType_ = sourceType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + @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.clouddms.v1.SynonymEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.SynonymEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.SynonymEntity other) { + if (other == com.google.cloud.clouddms.v1.SynonymEntity.getDefaultInstance()) return this; + if (!other.getSourceEntity().isEmpty()) { + sourceEntity_ = other.sourceEntity_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.sourceType_ != 0) { + setSourceTypeValue(other.getSourceTypeValue()); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sourceEntity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + sourceType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sourceEntity_ = ""; + /** + * + * + *
+     * The name of the entity for which the synonym is being created (the source).
+     * 
+ * + * string source_entity = 1; + * + * @return The sourceEntity. + */ + public java.lang.String getSourceEntity() { + java.lang.Object ref = sourceEntity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceEntity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the entity for which the synonym is being created (the source).
+     * 
+ * + * string source_entity = 1; + * + * @return The bytes for sourceEntity. + */ + public com.google.protobuf.ByteString getSourceEntityBytes() { + java.lang.Object ref = sourceEntity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceEntity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the entity for which the synonym is being created (the source).
+     * 
+ * + * string source_entity = 1; + * + * @param value The sourceEntity to set. + * @return This builder for chaining. + */ + public Builder setSourceEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceEntity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the entity for which the synonym is being created (the source).
+     * 
+ * + * string source_entity = 1; + * + * @return This builder for chaining. + */ + public Builder clearSourceEntity() { + sourceEntity_ = getDefaultInstance().getSourceEntity(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the entity for which the synonym is being created (the source).
+     * 
+ * + * string source_entity = 1; + * + * @param value The bytes for sourceEntity to set. + * @return This builder for chaining. + */ + public Builder setSourceEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceEntity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int sourceType_ = 0; + /** + * + * + *
+     * The type of the entity for which the synonym is being created
+     * (usually a table or a sequence).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 2; + * + * @return The enum numeric value on the wire for sourceType. + */ + @java.lang.Override + public int getSourceTypeValue() { + return sourceType_; + } + /** + * + * + *
+     * The type of the entity for which the synonym is being created
+     * (usually a table or a sequence).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 2; + * + * @param value The enum numeric value on the wire for sourceType to set. + * @return This builder for chaining. + */ + public Builder setSourceTypeValue(int value) { + sourceType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of the entity for which the synonym is being created
+     * (usually a table or a sequence).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 2; + * + * @return The sourceType. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.DatabaseEntityType getSourceType() { + com.google.cloud.clouddms.v1.DatabaseEntityType result = + com.google.cloud.clouddms.v1.DatabaseEntityType.forNumber(sourceType_); + return result == null ? com.google.cloud.clouddms.v1.DatabaseEntityType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The type of the entity for which the synonym is being created
+     * (usually a table or a sequence).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 2; + * + * @param value The sourceType to set. + * @return This builder for chaining. + */ + public Builder setSourceType(com.google.cloud.clouddms.v1.DatabaseEntityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + sourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of the entity for which the synonym is being created
+     * (usually a table or a sequence).
+     * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearSourceType() { + bitField0_ = (bitField0_ & ~0x00000002); + sourceType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000004); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @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.clouddms.v1.SynonymEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.SynonymEntity) + private static final com.google.cloud.clouddms.v1.SynonymEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.SynonymEntity(); + } + + public static com.google.cloud.clouddms.v1.SynonymEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynonymEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.SynonymEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SynonymEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SynonymEntityOrBuilder.java new file mode 100644 index 000000000000..997c06719232 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/SynonymEntityOrBuilder.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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface SynonymEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.SynonymEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the entity for which the synonym is being created (the source).
+   * 
+ * + * string source_entity = 1; + * + * @return The sourceEntity. + */ + java.lang.String getSourceEntity(); + /** + * + * + *
+   * The name of the entity for which the synonym is being created (the source).
+   * 
+ * + * string source_entity = 1; + * + * @return The bytes for sourceEntity. + */ + com.google.protobuf.ByteString getSourceEntityBytes(); + + /** + * + * + *
+   * The type of the entity for which the synonym is being created
+   * (usually a table or a sequence).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 2; + * + * @return The enum numeric value on the wire for sourceType. + */ + int getSourceTypeValue(); + /** + * + * + *
+   * The type of the entity for which the synonym is being created
+   * (usually a table or a sequence).
+   * 
+ * + * .google.cloud.clouddms.v1.DatabaseEntityType source_type = 2; + * + * @return The sourceType. + */ + com.google.cloud.clouddms.v1.DatabaseEntityType getSourceType(); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 3; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TableEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TableEntity.java new file mode 100644 index 000000000000..dad49d4ac24e --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TableEntity.java @@ -0,0 +1,2851 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Table's parent is a schema.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.TableEntity} + */ +public final class TableEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.TableEntity) + TableEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableEntity.newBuilder() to construct. + private TableEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TableEntity() { + columns_ = java.util.Collections.emptyList(); + constraints_ = java.util.Collections.emptyList(); + indices_ = java.util.Collections.emptyList(); + triggers_ = java.util.Collections.emptyList(); + comment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TableEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_TableEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_TableEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.TableEntity.class, + com.google.cloud.clouddms.v1.TableEntity.Builder.class); + } + + public static final int COLUMNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List columns_; + /** + * + * + *
+   * Table columns.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + @java.lang.Override + public java.util.List getColumnsList() { + return columns_; + } + /** + * + * + *
+   * Table columns.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + @java.lang.Override + public java.util.List + getColumnsOrBuilderList() { + return columns_; + } + /** + * + * + *
+   * Table columns.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + @java.lang.Override + public int getColumnsCount() { + return columns_.size(); + } + /** + * + * + *
+   * Table columns.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ColumnEntity getColumns(int index) { + return columns_.get(index); + } + /** + * + * + *
+   * Table columns.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ColumnEntityOrBuilder getColumnsOrBuilder(int index) { + return columns_.get(index); + } + + public static final int CONSTRAINTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List constraints_; + /** + * + * + *
+   * Table constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + @java.lang.Override + public java.util.List getConstraintsList() { + return constraints_; + } + /** + * + * + *
+   * Table constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + @java.lang.Override + public java.util.List + getConstraintsOrBuilderList() { + return constraints_; + } + /** + * + * + *
+   * Table constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + @java.lang.Override + public int getConstraintsCount() { + return constraints_.size(); + } + /** + * + * + *
+   * Table constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConstraintEntity getConstraints(int index) { + return constraints_.get(index); + } + /** + * + * + *
+   * Table constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder getConstraintsOrBuilder(int index) { + return constraints_.get(index); + } + + public static final int INDICES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List indices_; + /** + * + * + *
+   * Table indices.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + @java.lang.Override + public java.util.List getIndicesList() { + return indices_; + } + /** + * + * + *
+   * Table indices.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + @java.lang.Override + public java.util.List + getIndicesOrBuilderList() { + return indices_; + } + /** + * + * + *
+   * Table indices.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + @java.lang.Override + public int getIndicesCount() { + return indices_.size(); + } + /** + * + * + *
+   * Table indices.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.IndexEntity getIndices(int index) { + return indices_.get(index); + } + /** + * + * + *
+   * Table indices.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.IndexEntityOrBuilder getIndicesOrBuilder(int index) { + return indices_.get(index); + } + + public static final int TRIGGERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List triggers_; + /** + * + * + *
+   * Table triggers.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + @java.lang.Override + public java.util.List getTriggersList() { + return triggers_; + } + /** + * + * + *
+   * Table triggers.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + @java.lang.Override + public java.util.List + getTriggersOrBuilderList() { + return triggers_; + } + /** + * + * + *
+   * Table triggers.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + @java.lang.Override + public int getTriggersCount() { + return triggers_.size(); + } + /** + * + * + *
+   * Table triggers.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.TriggerEntity getTriggers(int index) { + return triggers_.get(index); + } + /** + * + * + *
+   * Table triggers.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.TriggerEntityOrBuilder getTriggersOrBuilder(int index) { + return triggers_.get(index); + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 5; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + public static final int COMMENT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object comment_ = ""; + /** + * + * + *
+   * Comment associated with the table.
+   * 
+ * + * string comment = 6; + * + * @return The comment. + */ + @java.lang.Override + public java.lang.String getComment() { + java.lang.Object ref = comment_; + 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(); + comment_ = s; + return s; + } + } + /** + * + * + *
+   * Comment associated with the table.
+   * 
+ * + * string comment = 6; + * + * @return The bytes for comment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + comment_ = 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 { + for (int i = 0; i < columns_.size(); i++) { + output.writeMessage(1, columns_.get(i)); + } + for (int i = 0; i < constraints_.size(); i++) { + output.writeMessage(2, constraints_.get(i)); + } + for (int i = 0; i < indices_.size(); i++) { + output.writeMessage(3, indices_.get(i)); + } + for (int i = 0; i < triggers_.size(); i++) { + output.writeMessage(4, triggers_.get(i)); + } + if (customFeatures_ != null) { + output.writeMessage(5, getCustomFeatures()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, comment_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < columns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, columns_.get(i)); + } + for (int i = 0; i < constraints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, constraints_.get(i)); + } + for (int i = 0; i < indices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, indices_.get(i)); + } + for (int i = 0; i < triggers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, triggers_.get(i)); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCustomFeatures()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, comment_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.TableEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.TableEntity other = (com.google.cloud.clouddms.v1.TableEntity) obj; + + if (!getColumnsList().equals(other.getColumnsList())) return false; + if (!getConstraintsList().equals(other.getConstraintsList())) return false; + if (!getIndicesList().equals(other.getIndicesList())) return false; + if (!getTriggersList().equals(other.getTriggersList())) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getComment().equals(other.getComment())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + if (getConstraintsCount() > 0) { + hash = (37 * hash) + CONSTRAINTS_FIELD_NUMBER; + hash = (53 * hash) + getConstraintsList().hashCode(); + } + if (getIndicesCount() > 0) { + hash = (37 * hash) + INDICES_FIELD_NUMBER; + hash = (53 * hash) + getIndicesList().hashCode(); + } + if (getTriggersCount() > 0) { + hash = (37 * hash) + TRIGGERS_FIELD_NUMBER; + hash = (53 * hash) + getTriggersList().hashCode(); + } + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.TableEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.TableEntity 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.clouddms.v1.TableEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.TableEntity 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.clouddms.v1.TableEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.TableEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.TableEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.TableEntity 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.clouddms.v1.TableEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.TableEntity 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.clouddms.v1.TableEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.TableEntity 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.clouddms.v1.TableEntity 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; + } + /** + * + * + *
+   * Table's parent is a schema.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.TableEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.TableEntity) + com.google.cloud.clouddms.v1.TableEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_TableEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_TableEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.TableEntity.class, + com.google.cloud.clouddms.v1.TableEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.TableEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + } else { + columns_ = null; + columnsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (constraintsBuilder_ == null) { + constraints_ = java.util.Collections.emptyList(); + } else { + constraints_ = null; + constraintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (indicesBuilder_ == null) { + indices_ = java.util.Collections.emptyList(); + } else { + indices_ = null; + indicesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (triggersBuilder_ == null) { + triggers_ = java.util.Collections.emptyList(); + } else { + triggers_ = null; + triggersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + comment_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_TableEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.TableEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.TableEntity build() { + com.google.cloud.clouddms.v1.TableEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.TableEntity buildPartial() { + com.google.cloud.clouddms.v1.TableEntity result = + new com.google.cloud.clouddms.v1.TableEntity(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.clouddms.v1.TableEntity result) { + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.build(); + } + if (constraintsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + constraints_ = java.util.Collections.unmodifiableList(constraints_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.constraints_ = constraints_; + } else { + result.constraints_ = constraintsBuilder_.build(); + } + if (indicesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + indices_ = java.util.Collections.unmodifiableList(indices_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.indices_ = indices_; + } else { + result.indices_ = indicesBuilder_.build(); + } + if (triggersBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + triggers_ = java.util.Collections.unmodifiableList(triggers_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.triggers_ = triggers_; + } else { + result.triggers_ = triggersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.clouddms.v1.TableEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.comment_ = comment_; + } + } + + @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.clouddms.v1.TableEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.TableEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.TableEntity other) { + if (other == com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance()) return this; + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + columnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnsFieldBuilder() + : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + if (constraintsBuilder_ == null) { + if (!other.constraints_.isEmpty()) { + if (constraints_.isEmpty()) { + constraints_ = other.constraints_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureConstraintsIsMutable(); + constraints_.addAll(other.constraints_); + } + onChanged(); + } + } else { + if (!other.constraints_.isEmpty()) { + if (constraintsBuilder_.isEmpty()) { + constraintsBuilder_.dispose(); + constraintsBuilder_ = null; + constraints_ = other.constraints_; + bitField0_ = (bitField0_ & ~0x00000002); + constraintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConstraintsFieldBuilder() + : null; + } else { + constraintsBuilder_.addAllMessages(other.constraints_); + } + } + } + if (indicesBuilder_ == null) { + if (!other.indices_.isEmpty()) { + if (indices_.isEmpty()) { + indices_ = other.indices_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureIndicesIsMutable(); + indices_.addAll(other.indices_); + } + onChanged(); + } + } else { + if (!other.indices_.isEmpty()) { + if (indicesBuilder_.isEmpty()) { + indicesBuilder_.dispose(); + indicesBuilder_ = null; + indices_ = other.indices_; + bitField0_ = (bitField0_ & ~0x00000004); + indicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIndicesFieldBuilder() + : null; + } else { + indicesBuilder_.addAllMessages(other.indices_); + } + } + } + if (triggersBuilder_ == null) { + if (!other.triggers_.isEmpty()) { + if (triggers_.isEmpty()) { + triggers_ = other.triggers_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTriggersIsMutable(); + triggers_.addAll(other.triggers_); + } + onChanged(); + } + } else { + if (!other.triggers_.isEmpty()) { + if (triggersBuilder_.isEmpty()) { + triggersBuilder_.dispose(); + triggersBuilder_ = null; + triggers_ = other.triggers_; + bitField0_ = (bitField0_ & ~0x00000008); + triggersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTriggersFieldBuilder() + : null; + } else { + triggersBuilder_.addAllMessages(other.triggers_); + } + } + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + if (!other.getComment().isEmpty()) { + comment_ = other.comment_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.clouddms.v1.ColumnEntity m = + input.readMessage( + com.google.cloud.clouddms.v1.ColumnEntity.parser(), extensionRegistry); + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(m); + } else { + columnsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.clouddms.v1.ConstraintEntity m = + input.readMessage( + com.google.cloud.clouddms.v1.ConstraintEntity.parser(), extensionRegistry); + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.add(m); + } else { + constraintsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.clouddms.v1.IndexEntity m = + input.readMessage( + com.google.cloud.clouddms.v1.IndexEntity.parser(), extensionRegistry); + if (indicesBuilder_ == null) { + ensureIndicesIsMutable(); + indices_.add(m); + } else { + indicesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.cloud.clouddms.v1.TriggerEntity m = + input.readMessage( + com.google.cloud.clouddms.v1.TriggerEntity.parser(), extensionRegistry); + if (triggersBuilder_ == null) { + ensureTriggersIsMutable(); + triggers_.add(m); + } else { + triggersBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + comment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List columns_ = + java.util.Collections.emptyList(); + + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columns_ = new java.util.ArrayList(columns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ColumnEntity, + com.google.cloud.clouddms.v1.ColumnEntity.Builder, + com.google.cloud.clouddms.v1.ColumnEntityOrBuilder> + columnsBuilder_; + + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public java.util.List getColumnsList() { + if (columnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columns_); + } else { + return columnsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public int getColumnsCount() { + if (columnsBuilder_ == null) { + return columns_.size(); + } else { + return columnsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public com.google.cloud.clouddms.v1.ColumnEntity getColumns(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public Builder setColumns(int index, com.google.cloud.clouddms.v1.ColumnEntity value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + } else { + columnsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public Builder setColumns( + int index, com.google.cloud.clouddms.v1.ColumnEntity.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.set(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public Builder addColumns(com.google.cloud.clouddms.v1.ColumnEntity value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + } else { + columnsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public Builder addColumns(int index, com.google.cloud.clouddms.v1.ColumnEntity value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(index, value); + onChanged(); + } else { + columnsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public Builder addColumns(com.google.cloud.clouddms.v1.ColumnEntity.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public Builder addColumns( + int index, com.google.cloud.clouddms.v1.ColumnEntity.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public Builder addAllColumns( + java.lang.Iterable values) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); + onChanged(); + } else { + columnsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public Builder removeColumns(int index) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.remove(index); + onChanged(); + } else { + columnsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public com.google.cloud.clouddms.v1.ColumnEntity.Builder getColumnsBuilder(int index) { + return getColumnsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public com.google.cloud.clouddms.v1.ColumnEntityOrBuilder getColumnsOrBuilder(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public java.util.List + getColumnsOrBuilderList() { + if (columnsBuilder_ != null) { + return columnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columns_); + } + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public com.google.cloud.clouddms.v1.ColumnEntity.Builder addColumnsBuilder() { + return getColumnsFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.ColumnEntity.getDefaultInstance()); + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public com.google.cloud.clouddms.v1.ColumnEntity.Builder addColumnsBuilder(int index) { + return getColumnsFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.ColumnEntity.getDefaultInstance()); + } + /** + * + * + *
+     * Table columns.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + public java.util.List + getColumnsBuilderList() { + return getColumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ColumnEntity, + com.google.cloud.clouddms.v1.ColumnEntity.Builder, + com.google.cloud.clouddms.v1.ColumnEntityOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ColumnEntity, + com.google.cloud.clouddms.v1.ColumnEntity.Builder, + com.google.cloud.clouddms.v1.ColumnEntityOrBuilder>( + columns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + columns_ = null; + } + return columnsBuilder_; + } + + private java.util.List constraints_ = + java.util.Collections.emptyList(); + + private void ensureConstraintsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + constraints_ = + new java.util.ArrayList(constraints_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConstraintEntity, + com.google.cloud.clouddms.v1.ConstraintEntity.Builder, + com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder> + constraintsBuilder_; + + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public java.util.List getConstraintsList() { + if (constraintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(constraints_); + } else { + return constraintsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public int getConstraintsCount() { + if (constraintsBuilder_ == null) { + return constraints_.size(); + } else { + return constraintsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public com.google.cloud.clouddms.v1.ConstraintEntity getConstraints(int index) { + if (constraintsBuilder_ == null) { + return constraints_.get(index); + } else { + return constraintsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public Builder setConstraints(int index, com.google.cloud.clouddms.v1.ConstraintEntity value) { + if (constraintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstraintsIsMutable(); + constraints_.set(index, value); + onChanged(); + } else { + constraintsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public Builder setConstraints( + int index, com.google.cloud.clouddms.v1.ConstraintEntity.Builder builderForValue) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.set(index, builderForValue.build()); + onChanged(); + } else { + constraintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public Builder addConstraints(com.google.cloud.clouddms.v1.ConstraintEntity value) { + if (constraintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstraintsIsMutable(); + constraints_.add(value); + onChanged(); + } else { + constraintsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public Builder addConstraints(int index, com.google.cloud.clouddms.v1.ConstraintEntity value) { + if (constraintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstraintsIsMutable(); + constraints_.add(index, value); + onChanged(); + } else { + constraintsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public Builder addConstraints( + com.google.cloud.clouddms.v1.ConstraintEntity.Builder builderForValue) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.add(builderForValue.build()); + onChanged(); + } else { + constraintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public Builder addConstraints( + int index, com.google.cloud.clouddms.v1.ConstraintEntity.Builder builderForValue) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.add(index, builderForValue.build()); + onChanged(); + } else { + constraintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public Builder addAllConstraints( + java.lang.Iterable values) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, constraints_); + onChanged(); + } else { + constraintsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public Builder clearConstraints() { + if (constraintsBuilder_ == null) { + constraints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + constraintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public Builder removeConstraints(int index) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.remove(index); + onChanged(); + } else { + constraintsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public com.google.cloud.clouddms.v1.ConstraintEntity.Builder getConstraintsBuilder(int index) { + return getConstraintsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder getConstraintsOrBuilder( + int index) { + if (constraintsBuilder_ == null) { + return constraints_.get(index); + } else { + return constraintsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public java.util.List + getConstraintsOrBuilderList() { + if (constraintsBuilder_ != null) { + return constraintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(constraints_); + } + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public com.google.cloud.clouddms.v1.ConstraintEntity.Builder addConstraintsBuilder() { + return getConstraintsFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.ConstraintEntity.getDefaultInstance()); + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public com.google.cloud.clouddms.v1.ConstraintEntity.Builder addConstraintsBuilder(int index) { + return getConstraintsFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.ConstraintEntity.getDefaultInstance()); + } + /** + * + * + *
+     * Table constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + public java.util.List + getConstraintsBuilderList() { + return getConstraintsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConstraintEntity, + com.google.cloud.clouddms.v1.ConstraintEntity.Builder, + com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder> + getConstraintsFieldBuilder() { + if (constraintsBuilder_ == null) { + constraintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConstraintEntity, + com.google.cloud.clouddms.v1.ConstraintEntity.Builder, + com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>( + constraints_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + constraints_ = null; + } + return constraintsBuilder_; + } + + private java.util.List indices_ = + java.util.Collections.emptyList(); + + private void ensureIndicesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + indices_ = new java.util.ArrayList(indices_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.IndexEntity, + com.google.cloud.clouddms.v1.IndexEntity.Builder, + com.google.cloud.clouddms.v1.IndexEntityOrBuilder> + indicesBuilder_; + + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public java.util.List getIndicesList() { + if (indicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(indices_); + } else { + return indicesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public int getIndicesCount() { + if (indicesBuilder_ == null) { + return indices_.size(); + } else { + return indicesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public com.google.cloud.clouddms.v1.IndexEntity getIndices(int index) { + if (indicesBuilder_ == null) { + return indices_.get(index); + } else { + return indicesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public Builder setIndices(int index, com.google.cloud.clouddms.v1.IndexEntity value) { + if (indicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndicesIsMutable(); + indices_.set(index, value); + onChanged(); + } else { + indicesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public Builder setIndices( + int index, com.google.cloud.clouddms.v1.IndexEntity.Builder builderForValue) { + if (indicesBuilder_ == null) { + ensureIndicesIsMutable(); + indices_.set(index, builderForValue.build()); + onChanged(); + } else { + indicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public Builder addIndices(com.google.cloud.clouddms.v1.IndexEntity value) { + if (indicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndicesIsMutable(); + indices_.add(value); + onChanged(); + } else { + indicesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public Builder addIndices(int index, com.google.cloud.clouddms.v1.IndexEntity value) { + if (indicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndicesIsMutable(); + indices_.add(index, value); + onChanged(); + } else { + indicesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public Builder addIndices(com.google.cloud.clouddms.v1.IndexEntity.Builder builderForValue) { + if (indicesBuilder_ == null) { + ensureIndicesIsMutable(); + indices_.add(builderForValue.build()); + onChanged(); + } else { + indicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public Builder addIndices( + int index, com.google.cloud.clouddms.v1.IndexEntity.Builder builderForValue) { + if (indicesBuilder_ == null) { + ensureIndicesIsMutable(); + indices_.add(index, builderForValue.build()); + onChanged(); + } else { + indicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public Builder addAllIndices( + java.lang.Iterable values) { + if (indicesBuilder_ == null) { + ensureIndicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indices_); + onChanged(); + } else { + indicesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public Builder clearIndices() { + if (indicesBuilder_ == null) { + indices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + indicesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public Builder removeIndices(int index) { + if (indicesBuilder_ == null) { + ensureIndicesIsMutable(); + indices_.remove(index); + onChanged(); + } else { + indicesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public com.google.cloud.clouddms.v1.IndexEntity.Builder getIndicesBuilder(int index) { + return getIndicesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public com.google.cloud.clouddms.v1.IndexEntityOrBuilder getIndicesOrBuilder(int index) { + if (indicesBuilder_ == null) { + return indices_.get(index); + } else { + return indicesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public java.util.List + getIndicesOrBuilderList() { + if (indicesBuilder_ != null) { + return indicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(indices_); + } + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public com.google.cloud.clouddms.v1.IndexEntity.Builder addIndicesBuilder() { + return getIndicesFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.IndexEntity.getDefaultInstance()); + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public com.google.cloud.clouddms.v1.IndexEntity.Builder addIndicesBuilder(int index) { + return getIndicesFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.IndexEntity.getDefaultInstance()); + } + /** + * + * + *
+     * Table indices.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + public java.util.List + getIndicesBuilderList() { + return getIndicesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.IndexEntity, + com.google.cloud.clouddms.v1.IndexEntity.Builder, + com.google.cloud.clouddms.v1.IndexEntityOrBuilder> + getIndicesFieldBuilder() { + if (indicesBuilder_ == null) { + indicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.IndexEntity, + com.google.cloud.clouddms.v1.IndexEntity.Builder, + com.google.cloud.clouddms.v1.IndexEntityOrBuilder>( + indices_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + indices_ = null; + } + return indicesBuilder_; + } + + private java.util.List triggers_ = + java.util.Collections.emptyList(); + + private void ensureTriggersIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + triggers_ = new java.util.ArrayList(triggers_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.TriggerEntity, + com.google.cloud.clouddms.v1.TriggerEntity.Builder, + com.google.cloud.clouddms.v1.TriggerEntityOrBuilder> + triggersBuilder_; + + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public java.util.List getTriggersList() { + if (triggersBuilder_ == null) { + return java.util.Collections.unmodifiableList(triggers_); + } else { + return triggersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public int getTriggersCount() { + if (triggersBuilder_ == null) { + return triggers_.size(); + } else { + return triggersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public com.google.cloud.clouddms.v1.TriggerEntity getTriggers(int index) { + if (triggersBuilder_ == null) { + return triggers_.get(index); + } else { + return triggersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public Builder setTriggers(int index, com.google.cloud.clouddms.v1.TriggerEntity value) { + if (triggersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTriggersIsMutable(); + triggers_.set(index, value); + onChanged(); + } else { + triggersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public Builder setTriggers( + int index, com.google.cloud.clouddms.v1.TriggerEntity.Builder builderForValue) { + if (triggersBuilder_ == null) { + ensureTriggersIsMutable(); + triggers_.set(index, builderForValue.build()); + onChanged(); + } else { + triggersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public Builder addTriggers(com.google.cloud.clouddms.v1.TriggerEntity value) { + if (triggersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTriggersIsMutable(); + triggers_.add(value); + onChanged(); + } else { + triggersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public Builder addTriggers(int index, com.google.cloud.clouddms.v1.TriggerEntity value) { + if (triggersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTriggersIsMutable(); + triggers_.add(index, value); + onChanged(); + } else { + triggersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public Builder addTriggers(com.google.cloud.clouddms.v1.TriggerEntity.Builder builderForValue) { + if (triggersBuilder_ == null) { + ensureTriggersIsMutable(); + triggers_.add(builderForValue.build()); + onChanged(); + } else { + triggersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public Builder addTriggers( + int index, com.google.cloud.clouddms.v1.TriggerEntity.Builder builderForValue) { + if (triggersBuilder_ == null) { + ensureTriggersIsMutable(); + triggers_.add(index, builderForValue.build()); + onChanged(); + } else { + triggersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public Builder addAllTriggers( + java.lang.Iterable values) { + if (triggersBuilder_ == null) { + ensureTriggersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, triggers_); + onChanged(); + } else { + triggersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public Builder clearTriggers() { + if (triggersBuilder_ == null) { + triggers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + triggersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public Builder removeTriggers(int index) { + if (triggersBuilder_ == null) { + ensureTriggersIsMutable(); + triggers_.remove(index); + onChanged(); + } else { + triggersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public com.google.cloud.clouddms.v1.TriggerEntity.Builder getTriggersBuilder(int index) { + return getTriggersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public com.google.cloud.clouddms.v1.TriggerEntityOrBuilder getTriggersOrBuilder(int index) { + if (triggersBuilder_ == null) { + return triggers_.get(index); + } else { + return triggersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public java.util.List + getTriggersOrBuilderList() { + if (triggersBuilder_ != null) { + return triggersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(triggers_); + } + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public com.google.cloud.clouddms.v1.TriggerEntity.Builder addTriggersBuilder() { + return getTriggersFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.TriggerEntity.getDefaultInstance()); + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public com.google.cloud.clouddms.v1.TriggerEntity.Builder addTriggersBuilder(int index) { + return getTriggersFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.TriggerEntity.getDefaultInstance()); + } + /** + * + * + *
+     * Table triggers.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + public java.util.List + getTriggersBuilderList() { + return getTriggersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.TriggerEntity, + com.google.cloud.clouddms.v1.TriggerEntity.Builder, + com.google.cloud.clouddms.v1.TriggerEntityOrBuilder> + getTriggersFieldBuilder() { + if (triggersBuilder_ == null) { + triggersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.TriggerEntity, + com.google.cloud.clouddms.v1.TriggerEntity.Builder, + com.google.cloud.clouddms.v1.TriggerEntityOrBuilder>( + triggers_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + triggers_ = null; + } + return triggersBuilder_; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000010); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + private java.lang.Object comment_ = ""; + /** + * + * + *
+     * Comment associated with the table.
+     * 
+ * + * string comment = 6; + * + * @return The comment. + */ + public java.lang.String getComment() { + java.lang.Object ref = comment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Comment associated with the table.
+     * 
+ * + * string comment = 6; + * + * @return The bytes for comment. + */ + public com.google.protobuf.ByteString getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Comment associated with the table.
+     * 
+ * + * string comment = 6; + * + * @param value The comment to set. + * @return This builder for chaining. + */ + public Builder setComment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + comment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Comment associated with the table.
+     * 
+ * + * string comment = 6; + * + * @return This builder for chaining. + */ + public Builder clearComment() { + comment_ = getDefaultInstance().getComment(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Comment associated with the table.
+     * 
+ * + * string comment = 6; + * + * @param value The bytes for comment to set. + * @return This builder for chaining. + */ + public Builder setCommentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + comment_ = value; + bitField0_ |= 0x00000020; + 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.clouddms.v1.TableEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.TableEntity) + private static final com.google.cloud.clouddms.v1.TableEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.TableEntity(); + } + + public static com.google.cloud.clouddms.v1.TableEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.TableEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TableEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TableEntityOrBuilder.java new file mode 100644 index 000000000000..7d59f9dd4da1 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TableEntityOrBuilder.java @@ -0,0 +1,293 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface TableEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.TableEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Table columns.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + java.util.List getColumnsList(); + /** + * + * + *
+   * Table columns.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + com.google.cloud.clouddms.v1.ColumnEntity getColumns(int index); + /** + * + * + *
+   * Table columns.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + int getColumnsCount(); + /** + * + * + *
+   * Table columns.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + java.util.List + getColumnsOrBuilderList(); + /** + * + * + *
+   * Table columns.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1; + */ + com.google.cloud.clouddms.v1.ColumnEntityOrBuilder getColumnsOrBuilder(int index); + + /** + * + * + *
+   * Table constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + java.util.List getConstraintsList(); + /** + * + * + *
+   * Table constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + com.google.cloud.clouddms.v1.ConstraintEntity getConstraints(int index); + /** + * + * + *
+   * Table constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + int getConstraintsCount(); + /** + * + * + *
+   * Table constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + java.util.List + getConstraintsOrBuilderList(); + /** + * + * + *
+   * Table constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2; + */ + com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder getConstraintsOrBuilder(int index); + + /** + * + * + *
+   * Table indices.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + java.util.List getIndicesList(); + /** + * + * + *
+   * Table indices.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + com.google.cloud.clouddms.v1.IndexEntity getIndices(int index); + /** + * + * + *
+   * Table indices.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + int getIndicesCount(); + /** + * + * + *
+   * Table indices.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + java.util.List + getIndicesOrBuilderList(); + /** + * + * + *
+   * Table indices.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.IndexEntity indices = 3; + */ + com.google.cloud.clouddms.v1.IndexEntityOrBuilder getIndicesOrBuilder(int index); + + /** + * + * + *
+   * Table triggers.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + java.util.List getTriggersList(); + /** + * + * + *
+   * Table triggers.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + com.google.cloud.clouddms.v1.TriggerEntity getTriggers(int index); + /** + * + * + *
+   * Table triggers.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + int getTriggersCount(); + /** + * + * + *
+   * Table triggers.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + java.util.List + getTriggersOrBuilderList(); + /** + * + * + *
+   * Table triggers.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4; + */ + com.google.cloud.clouddms.v1.TriggerEntityOrBuilder getTriggersOrBuilder(int index); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); + + /** + * + * + *
+   * Comment associated with the table.
+   * 
+ * + * string comment = 6; + * + * @return The comment. + */ + java.lang.String getComment(); + /** + * + * + *
+   * Comment associated with the table.
+   * 
+ * + * string comment = 6; + * + * @return The bytes for comment. + */ + com.google.protobuf.ByteString getCommentBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TriggerEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TriggerEntity.java new file mode 100644 index 000000000000..65f148fb2754 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TriggerEntity.java @@ -0,0 +1,1555 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Trigger is not used as an independent entity, it is retrieved as part of a
+ * Table entity.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.TriggerEntity} + */ +public final class TriggerEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.TriggerEntity) + TriggerEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use TriggerEntity.newBuilder() to construct. + private TriggerEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TriggerEntity() { + name_ = ""; + triggeringEvents_ = com.google.protobuf.LazyStringArrayList.EMPTY; + triggerType_ = ""; + sqlCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TriggerEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_TriggerEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_TriggerEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.TriggerEntity.class, + com.google.cloud.clouddms.v1.TriggerEntity.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the trigger.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the trigger.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRIGGERING_EVENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList triggeringEvents_; + /** + * + * + *
+   * The DML, DDL, or database events that fire the trigger, for example
+   * INSERT, UPDATE.
+   * 
+ * + * repeated string triggering_events = 2; + * + * @return A list containing the triggeringEvents. + */ + public com.google.protobuf.ProtocolStringList getTriggeringEventsList() { + return triggeringEvents_; + } + /** + * + * + *
+   * The DML, DDL, or database events that fire the trigger, for example
+   * INSERT, UPDATE.
+   * 
+ * + * repeated string triggering_events = 2; + * + * @return The count of triggeringEvents. + */ + public int getTriggeringEventsCount() { + return triggeringEvents_.size(); + } + /** + * + * + *
+   * The DML, DDL, or database events that fire the trigger, for example
+   * INSERT, UPDATE.
+   * 
+ * + * repeated string triggering_events = 2; + * + * @param index The index of the element to return. + * @return The triggeringEvents at the given index. + */ + public java.lang.String getTriggeringEvents(int index) { + return triggeringEvents_.get(index); + } + /** + * + * + *
+   * The DML, DDL, or database events that fire the trigger, for example
+   * INSERT, UPDATE.
+   * 
+ * + * repeated string triggering_events = 2; + * + * @param index The index of the value to return. + * @return The bytes of the triggeringEvents at the given index. + */ + public com.google.protobuf.ByteString getTriggeringEventsBytes(int index) { + return triggeringEvents_.getByteString(index); + } + + public static final int TRIGGER_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object triggerType_ = ""; + /** + * + * + *
+   * Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH
+   * ROW.
+   * 
+ * + * string trigger_type = 3; + * + * @return The triggerType. + */ + @java.lang.Override + public java.lang.String getTriggerType() { + java.lang.Object ref = triggerType_; + 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(); + triggerType_ = s; + return s; + } + } + /** + * + * + *
+   * Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH
+   * ROW.
+   * 
+ * + * string trigger_type = 3; + * + * @return The bytes for triggerType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTriggerTypeBytes() { + java.lang.Object ref = triggerType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + triggerType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SQL_CODE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object sqlCode_ = ""; + /** + * + * + *
+   * The SQL code which creates the trigger.
+   * 
+ * + * string sql_code = 4; + * + * @return The sqlCode. + */ + @java.lang.Override + public java.lang.String getSqlCode() { + java.lang.Object ref = sqlCode_; + 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(); + sqlCode_ = s; + return s; + } + } + /** + * + * + *
+   * The SQL code which creates the trigger.
+   * 
+ * + * string sql_code = 4; + * + * @return The bytes for sqlCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlCodeBytes() { + java.lang.Object ref = sqlCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 5; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < triggeringEvents_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, triggeringEvents_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(triggerType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, triggerType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sqlCode_); + } + if (customFeatures_ != null) { + output.writeMessage(5, getCustomFeatures()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < triggeringEvents_.size(); i++) { + dataSize += computeStringSizeNoTag(triggeringEvents_.getRaw(i)); + } + size += dataSize; + size += 1 * getTriggeringEventsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(triggerType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, triggerType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sqlCode_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCustomFeatures()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.TriggerEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.TriggerEntity other = + (com.google.cloud.clouddms.v1.TriggerEntity) obj; + + if (!getName().equals(other.getName())) return false; + if (!getTriggeringEventsList().equals(other.getTriggeringEventsList())) return false; + if (!getTriggerType().equals(other.getTriggerType())) return false; + if (!getSqlCode().equals(other.getSqlCode())) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getTriggeringEventsCount() > 0) { + hash = (37 * hash) + TRIGGERING_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getTriggeringEventsList().hashCode(); + } + hash = (37 * hash) + TRIGGER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTriggerType().hashCode(); + hash = (37 * hash) + SQL_CODE_FIELD_NUMBER; + hash = (53 * hash) + getSqlCode().hashCode(); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.TriggerEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.TriggerEntity 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.clouddms.v1.TriggerEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.TriggerEntity 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.clouddms.v1.TriggerEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.TriggerEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.TriggerEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.TriggerEntity 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.clouddms.v1.TriggerEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.TriggerEntity 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.clouddms.v1.TriggerEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.TriggerEntity 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.clouddms.v1.TriggerEntity 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; + } + /** + * + * + *
+   * Trigger is not used as an independent entity, it is retrieved as part of a
+   * Table entity.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.TriggerEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.TriggerEntity) + com.google.cloud.clouddms.v1.TriggerEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_TriggerEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_TriggerEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.TriggerEntity.class, + com.google.cloud.clouddms.v1.TriggerEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.TriggerEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + triggeringEvents_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + triggerType_ = ""; + sqlCode_ = ""; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_TriggerEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.TriggerEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.TriggerEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.TriggerEntity build() { + com.google.cloud.clouddms.v1.TriggerEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.TriggerEntity buildPartial() { + com.google.cloud.clouddms.v1.TriggerEntity result = + new com.google.cloud.clouddms.v1.TriggerEntity(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.clouddms.v1.TriggerEntity result) { + if (((bitField0_ & 0x00000002) != 0)) { + triggeringEvents_ = triggeringEvents_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.triggeringEvents_ = triggeringEvents_; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.TriggerEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.triggerType_ = triggerType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sqlCode_ = sqlCode_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + @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.clouddms.v1.TriggerEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.TriggerEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.TriggerEntity other) { + if (other == com.google.cloud.clouddms.v1.TriggerEntity.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.triggeringEvents_.isEmpty()) { + if (triggeringEvents_.isEmpty()) { + triggeringEvents_ = other.triggeringEvents_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTriggeringEventsIsMutable(); + triggeringEvents_.addAll(other.triggeringEvents_); + } + onChanged(); + } + if (!other.getTriggerType().isEmpty()) { + triggerType_ = other.triggerType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getSqlCode().isEmpty()) { + sqlCode_ = other.sqlCode_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTriggeringEventsIsMutable(); + triggeringEvents_.add(s); + break; + } // case 18 + case 26: + { + triggerType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + sqlCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the trigger.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the trigger.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the trigger.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the trigger.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the trigger.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList triggeringEvents_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTriggeringEventsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + triggeringEvents_ = new com.google.protobuf.LazyStringArrayList(triggeringEvents_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The DML, DDL, or database events that fire the trigger, for example
+     * INSERT, UPDATE.
+     * 
+ * + * repeated string triggering_events = 2; + * + * @return A list containing the triggeringEvents. + */ + public com.google.protobuf.ProtocolStringList getTriggeringEventsList() { + return triggeringEvents_.getUnmodifiableView(); + } + /** + * + * + *
+     * The DML, DDL, or database events that fire the trigger, for example
+     * INSERT, UPDATE.
+     * 
+ * + * repeated string triggering_events = 2; + * + * @return The count of triggeringEvents. + */ + public int getTriggeringEventsCount() { + return triggeringEvents_.size(); + } + /** + * + * + *
+     * The DML, DDL, or database events that fire the trigger, for example
+     * INSERT, UPDATE.
+     * 
+ * + * repeated string triggering_events = 2; + * + * @param index The index of the element to return. + * @return The triggeringEvents at the given index. + */ + public java.lang.String getTriggeringEvents(int index) { + return triggeringEvents_.get(index); + } + /** + * + * + *
+     * The DML, DDL, or database events that fire the trigger, for example
+     * INSERT, UPDATE.
+     * 
+ * + * repeated string triggering_events = 2; + * + * @param index The index of the value to return. + * @return The bytes of the triggeringEvents at the given index. + */ + public com.google.protobuf.ByteString getTriggeringEventsBytes(int index) { + return triggeringEvents_.getByteString(index); + } + /** + * + * + *
+     * The DML, DDL, or database events that fire the trigger, for example
+     * INSERT, UPDATE.
+     * 
+ * + * repeated string triggering_events = 2; + * + * @param index The index to set the value at. + * @param value The triggeringEvents to set. + * @return This builder for chaining. + */ + public Builder setTriggeringEvents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTriggeringEventsIsMutable(); + triggeringEvents_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The DML, DDL, or database events that fire the trigger, for example
+     * INSERT, UPDATE.
+     * 
+ * + * repeated string triggering_events = 2; + * + * @param value The triggeringEvents to add. + * @return This builder for chaining. + */ + public Builder addTriggeringEvents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTriggeringEventsIsMutable(); + triggeringEvents_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The DML, DDL, or database events that fire the trigger, for example
+     * INSERT, UPDATE.
+     * 
+ * + * repeated string triggering_events = 2; + * + * @param values The triggeringEvents to add. + * @return This builder for chaining. + */ + public Builder addAllTriggeringEvents(java.lang.Iterable values) { + ensureTriggeringEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, triggeringEvents_); + onChanged(); + return this; + } + /** + * + * + *
+     * The DML, DDL, or database events that fire the trigger, for example
+     * INSERT, UPDATE.
+     * 
+ * + * repeated string triggering_events = 2; + * + * @return This builder for chaining. + */ + public Builder clearTriggeringEvents() { + triggeringEvents_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The DML, DDL, or database events that fire the trigger, for example
+     * INSERT, UPDATE.
+     * 
+ * + * repeated string triggering_events = 2; + * + * @param value The bytes of the triggeringEvents to add. + * @return This builder for chaining. + */ + public Builder addTriggeringEventsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTriggeringEventsIsMutable(); + triggeringEvents_.add(value); + onChanged(); + return this; + } + + private java.lang.Object triggerType_ = ""; + /** + * + * + *
+     * Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH
+     * ROW.
+     * 
+ * + * string trigger_type = 3; + * + * @return The triggerType. + */ + public java.lang.String getTriggerType() { + java.lang.Object ref = triggerType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + triggerType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH
+     * ROW.
+     * 
+ * + * string trigger_type = 3; + * + * @return The bytes for triggerType. + */ + public com.google.protobuf.ByteString getTriggerTypeBytes() { + java.lang.Object ref = triggerType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + triggerType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH
+     * ROW.
+     * 
+ * + * string trigger_type = 3; + * + * @param value The triggerType to set. + * @return This builder for chaining. + */ + public Builder setTriggerType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + triggerType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH
+     * ROW.
+     * 
+ * + * string trigger_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearTriggerType() { + triggerType_ = getDefaultInstance().getTriggerType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH
+     * ROW.
+     * 
+ * + * string trigger_type = 3; + * + * @param value The bytes for triggerType to set. + * @return This builder for chaining. + */ + public Builder setTriggerTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + triggerType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object sqlCode_ = ""; + /** + * + * + *
+     * The SQL code which creates the trigger.
+     * 
+ * + * string sql_code = 4; + * + * @return The sqlCode. + */ + public java.lang.String getSqlCode() { + java.lang.Object ref = sqlCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the trigger.
+     * 
+ * + * string sql_code = 4; + * + * @return The bytes for sqlCode. + */ + public com.google.protobuf.ByteString getSqlCodeBytes() { + java.lang.Object ref = sqlCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the trigger.
+     * 
+ * + * string sql_code = 4; + * + * @param value The sqlCode to set. + * @return This builder for chaining. + */ + public Builder setSqlCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sqlCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the trigger.
+     * 
+ * + * string sql_code = 4; + * + * @return This builder for chaining. + */ + public Builder clearSqlCode() { + sqlCode_ = getDefaultInstance().getSqlCode(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the trigger.
+     * 
+ * + * string sql_code = 4; + * + * @param value The bytes for sqlCode to set. + * @return This builder for chaining. + */ + public Builder setSqlCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sqlCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000010); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + @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.clouddms.v1.TriggerEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.TriggerEntity) + private static final com.google.cloud.clouddms.v1.TriggerEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.TriggerEntity(); + } + + public static com.google.cloud.clouddms.v1.TriggerEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TriggerEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.TriggerEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TriggerEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TriggerEntityOrBuilder.java new file mode 100644 index 000000000000..d4366cf0f954 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/TriggerEntityOrBuilder.java @@ -0,0 +1,192 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface TriggerEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.TriggerEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the trigger.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the trigger.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The DML, DDL, or database events that fire the trigger, for example
+   * INSERT, UPDATE.
+   * 
+ * + * repeated string triggering_events = 2; + * + * @return A list containing the triggeringEvents. + */ + java.util.List getTriggeringEventsList(); + /** + * + * + *
+   * The DML, DDL, or database events that fire the trigger, for example
+   * INSERT, UPDATE.
+   * 
+ * + * repeated string triggering_events = 2; + * + * @return The count of triggeringEvents. + */ + int getTriggeringEventsCount(); + /** + * + * + *
+   * The DML, DDL, or database events that fire the trigger, for example
+   * INSERT, UPDATE.
+   * 
+ * + * repeated string triggering_events = 2; + * + * @param index The index of the element to return. + * @return The triggeringEvents at the given index. + */ + java.lang.String getTriggeringEvents(int index); + /** + * + * + *
+   * The DML, DDL, or database events that fire the trigger, for example
+   * INSERT, UPDATE.
+   * 
+ * + * repeated string triggering_events = 2; + * + * @param index The index of the value to return. + * @return The bytes of the triggeringEvents at the given index. + */ + com.google.protobuf.ByteString getTriggeringEventsBytes(int index); + + /** + * + * + *
+   * Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH
+   * ROW.
+   * 
+ * + * string trigger_type = 3; + * + * @return The triggerType. + */ + java.lang.String getTriggerType(); + /** + * + * + *
+   * Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH
+   * ROW.
+   * 
+ * + * string trigger_type = 3; + * + * @return The bytes for triggerType. + */ + com.google.protobuf.ByteString getTriggerTypeBytes(); + + /** + * + * + *
+   * The SQL code which creates the trigger.
+   * 
+ * + * string sql_code = 4; + * + * @return The sqlCode. + */ + java.lang.String getSqlCode(); + /** + * + * + *
+   * The SQL code which creates the trigger.
+   * 
+ * + * string sql_code = 4; + * + * @return The bytes for sqlCode. + */ + com.google.protobuf.ByteString getSqlCodeBytes(); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 5; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java index 4d268785a3aa..d7e1afe2016c 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequest.java @@ -74,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * connection profile resource by the update.
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -91,8 +91,8 @@ public boolean hasUpdateMask() { * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * connection profile resource by the update.
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -108,8 +108,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * connection profile resource by the update.
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -184,14 +184,14 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* - * string request_id = 3; + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The requestId. */ @@ -211,14 +211,14 @@ public java.lang.String getRequestId() { * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* - * string request_id = 3; + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for requestId. */ @@ -235,6 +235,46 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_ = false; + /** + * + * + *
+   * Optional. Only validate the connection profile, but don't update any
+   * resources. The default is false. Only supported for Oracle connection
+   * profiles.
+   * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int SKIP_VALIDATION_FIELD_NUMBER = 5; + private boolean skipValidation_ = false; + /** + * + * + *
+   * Optional. Update the connection profile without validating it.
+   * The default is false.
+   * Only supported for Oracle connection profiles.
+   * 
+ * + * bool skip_validation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + @java.lang.Override + public boolean getSkipValidation() { + return skipValidation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -258,6 +298,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + if (skipValidation_ != false) { + output.writeBool(5, skipValidation_); + } getUnknownFields().writeTo(output); } @@ -276,6 +322,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + } + if (skipValidation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, skipValidation_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -301,6 +353,8 @@ public boolean equals(final java.lang.Object obj) { if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; } if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getSkipValidation() != other.getSkipValidation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,6 +376,10 @@ public int hashCode() { } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + SKIP_VALIDATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipValidation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -473,6 +531,8 @@ public Builder clear() { connectionProfileBuilder_ = null; } requestId_ = ""; + validateOnly_ = false; + skipValidation_ = false; return this; } @@ -521,6 +581,12 @@ private void buildPartial0(com.google.cloud.clouddms.v1.UpdateConnectionProfileR if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.skipValidation_ = skipValidation_; + } } @java.lang.Override @@ -580,6 +646,12 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.UpdateConnectionProfileReq bitField0_ |= 0x00000004; onChanged(); } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getSkipValidation() != false) { + setSkipValidation(other.getSkipValidation()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -625,6 +697,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + skipValidation_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -654,8 +738,8 @@ public Builder mergeFrom( * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * connection profile resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -670,8 +754,8 @@ public boolean hasUpdateMask() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * connection profile resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -692,8 +776,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * connection profile resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -716,8 +800,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * connection profile resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -737,8 +821,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * connection profile resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -764,8 +848,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * connection profile resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -785,8 +869,8 @@ public Builder clearUpdateMask() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * connection profile resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -801,8 +885,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * connection profile resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -821,8 +905,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * connection profile resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1053,14 +1137,14 @@ public com.google.cloud.clouddms.v1.ConnectionProfileOrBuilder getConnectionProf * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 3; + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The requestId. */ @@ -1079,14 +1163,14 @@ public java.lang.String getRequestId() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 3; + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for requestId. */ @@ -1105,14 +1189,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 3; + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The requestId to set. * @return This builder for chaining. @@ -1130,14 +1214,14 @@ public Builder setRequestId(java.lang.String value) { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 3; + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1151,14 +1235,14 @@ public Builder clearRequestId() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * Optional. A unique ID used to identify the request. If the server receives
+     * two requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* - * string request_id = 3; + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for requestId to set. * @return This builder for chaining. @@ -1174,6 +1258,124 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private boolean validateOnly_; + /** + * + * + *
+     * Optional. Only validate the connection profile, but don't update any
+     * resources. The default is false. Only supported for Oracle connection
+     * profiles.
+     * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * Optional. Only validate the connection profile, but don't update any
+     * resources. The default is false. Only supported for Oracle connection
+     * profiles.
+     * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Only validate the connection profile, but don't update any
+     * resources. The default is false. Only supported for Oracle connection
+     * profiles.
+     * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + private boolean skipValidation_; + /** + * + * + *
+     * Optional. Update the connection profile without validating it.
+     * The default is false.
+     * Only supported for Oracle connection profiles.
+     * 
+ * + * bool skip_validation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + @java.lang.Override + public boolean getSkipValidation() { + return skipValidation_; + } + /** + * + * + *
+     * Optional. Update the connection profile without validating it.
+     * The default is false.
+     * Only supported for Oracle connection profiles.
+     * 
+ * + * bool skip_validation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skipValidation to set. + * @return This builder for chaining. + */ + public Builder setSkipValidation(boolean value) { + + skipValidation_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Update the connection profile without validating it.
+     * The default is false.
+     * Only supported for Oracle connection profiles.
+     * 
+ * + * bool skip_validation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkipValidation() { + bitField0_ = (bitField0_ & ~0x00000010); + skipValidation_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java index 03ca5e59aae8..c99c027b1dea 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConnectionProfileRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface UpdateConnectionProfileRequestOrBuilder * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * connection profile resource by the update.
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -41,8 +41,8 @@ public interface UpdateConnectionProfileRequestOrBuilder * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * connection profile resource by the update.
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -55,8 +55,8 @@ public interface UpdateConnectionProfileRequestOrBuilder * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * connection profile resource by the update.
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -109,14 +109,14 @@ public interface UpdateConnectionProfileRequestOrBuilder * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* - * string request_id = 3; + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The requestId. */ @@ -125,16 +125,46 @@ public interface UpdateConnectionProfileRequestOrBuilder * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * Optional. A unique ID used to identify the request. If the server receives
+   * two requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* - * string request_id = 3; + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. Only validate the connection profile, but don't update any
+   * resources. The default is false. Only supported for Oracle connection
+   * profiles.
+   * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * Optional. Update the connection profile without validating it.
+   * The default is false.
+   * Only supported for Oracle connection profiles.
+   * 
+ * + * bool skip_validation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipValidation. + */ + boolean getSkipValidation(); } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConversionWorkspaceRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConversionWorkspaceRequest.java new file mode 100644 index 000000000000..1410c647b456 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConversionWorkspaceRequest.java @@ -0,0 +1,1245 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * Request message for 'UpdateConversionWorkspace' request.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest} + */ +public final class UpdateConversionWorkspaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest) + UpdateConversionWorkspaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateConversionWorkspaceRequest.newBuilder() to construct. + private UpdateConversionWorkspaceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateConversionWorkspaceRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateConversionWorkspaceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int CONVERSION_WORKSPACE_FIELD_NUMBER = 2; + private com.google.cloud.clouddms.v1.ConversionWorkspace conversionWorkspace_; + /** + * + * + *
+   * Required. The conversion workspace parameters to update.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionWorkspace field is set. + */ + @java.lang.Override + public boolean hasConversionWorkspace() { + return conversionWorkspace_ != null; + } + /** + * + * + *
+   * Required. The conversion workspace parameters to update.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionWorkspace. + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspace getConversionWorkspace() { + return conversionWorkspace_ == null + ? com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance() + : conversionWorkspace_; + } + /** + * + * + *
+   * Required. The conversion workspace parameters to update.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder + getConversionWorkspaceOrBuilder() { + return conversionWorkspace_ == null + ? com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance() + : conversionWorkspace_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 3; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 3; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (conversionWorkspace_ != null) { + output.writeMessage(2, getConversionWorkspace()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (conversionWorkspace_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConversionWorkspace()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest other = + (com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasConversionWorkspace() != other.hasConversionWorkspace()) return false; + if (hasConversionWorkspace()) { + if (!getConversionWorkspace().equals(other.getConversionWorkspace())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasConversionWorkspace()) { + hash = (37 * hash) + CONVERSION_WORKSPACE_FIELD_NUMBER; + hash = (53 * hash) + getConversionWorkspace().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest 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.clouddms.v1.UpdateConversionWorkspaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest 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.clouddms.v1.UpdateConversionWorkspaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest 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.clouddms.v1.UpdateConversionWorkspaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest 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.clouddms.v1.UpdateConversionWorkspaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest 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.clouddms.v1.UpdateConversionWorkspaceRequest 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; + } + /** + * + * + *
+   * Request message for 'UpdateConversionWorkspace' request.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest) + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest.class, + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + conversionWorkspace_ = null; + if (conversionWorkspaceBuilder_ != null) { + conversionWorkspaceBuilder_.dispose(); + conversionWorkspaceBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsProto + .internal_static_google_cloud_clouddms_v1_UpdateConversionWorkspaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest + getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest build() { + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest buildPartial() { + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest result = + new com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.conversionWorkspace_ = + conversionWorkspaceBuilder_ == null + ? conversionWorkspace_ + : conversionWorkspaceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.clouddms.v1.UpdateConversionWorkspaceRequest) { + return mergeFrom((com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest other) { + if (other + == com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasConversionWorkspace()) { + mergeConversionWorkspace(other.getConversionWorkspace()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getConversionWorkspaceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.clouddms.v1.ConversionWorkspace conversionWorkspace_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConversionWorkspace, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder> + conversionWorkspaceBuilder_; + /** + * + * + *
+     * Required. The conversion workspace parameters to update.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionWorkspace field is set. + */ + public boolean hasConversionWorkspace() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The conversion workspace parameters to update.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionWorkspace. + */ + public com.google.cloud.clouddms.v1.ConversionWorkspace getConversionWorkspace() { + if (conversionWorkspaceBuilder_ == null) { + return conversionWorkspace_ == null + ? com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance() + : conversionWorkspace_; + } else { + return conversionWorkspaceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The conversion workspace parameters to update.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionWorkspace(com.google.cloud.clouddms.v1.ConversionWorkspace value) { + if (conversionWorkspaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionWorkspace_ = value; + } else { + conversionWorkspaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion workspace parameters to update.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionWorkspace( + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder builderForValue) { + if (conversionWorkspaceBuilder_ == null) { + conversionWorkspace_ = builderForValue.build(); + } else { + conversionWorkspaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion workspace parameters to update.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConversionWorkspace( + com.google.cloud.clouddms.v1.ConversionWorkspace value) { + if (conversionWorkspaceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && conversionWorkspace_ != null + && conversionWorkspace_ + != com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance()) { + getConversionWorkspaceBuilder().mergeFrom(value); + } else { + conversionWorkspace_ = value; + } + } else { + conversionWorkspaceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion workspace parameters to update.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConversionWorkspace() { + bitField0_ = (bitField0_ & ~0x00000002); + conversionWorkspace_ = null; + if (conversionWorkspaceBuilder_ != null) { + conversionWorkspaceBuilder_.dispose(); + conversionWorkspaceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion workspace parameters to update.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.ConversionWorkspace.Builder + getConversionWorkspaceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConversionWorkspaceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The conversion workspace parameters to update.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder + getConversionWorkspaceOrBuilder() { + if (conversionWorkspaceBuilder_ != null) { + return conversionWorkspaceBuilder_.getMessageOrBuilder(); + } else { + return conversionWorkspace_ == null + ? com.google.cloud.clouddms.v1.ConversionWorkspace.getDefaultInstance() + : conversionWorkspace_; + } + } + /** + * + * + *
+     * Required. The conversion workspace parameters to update.
+     * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConversionWorkspace, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder> + getConversionWorkspaceFieldBuilder() { + if (conversionWorkspaceBuilder_ == null) { + conversionWorkspaceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.clouddms.v1.ConversionWorkspace, + com.google.cloud.clouddms.v1.ConversionWorkspace.Builder, + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder>( + getConversionWorkspace(), getParentForChildren(), isClean()); + conversionWorkspace_ = null; + } + return conversionWorkspaceBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
+     * It is recommended to always set this value to a UUID.
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 3; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + 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.clouddms.v1.UpdateConversionWorkspaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest) + private static final com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest(); + } + + public static com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConversionWorkspaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConversionWorkspaceRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConversionWorkspaceRequestOrBuilder.java new file mode 100644 index 000000000000..bf4ac82d1680 --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateConversionWorkspaceRequestOrBuilder.java @@ -0,0 +1,140 @@ +/* + * 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/clouddms/v1/clouddms.proto + +package com.google.cloud.clouddms.v1; + +public interface UpdateConversionWorkspaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The conversion workspace parameters to update.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionWorkspace field is set. + */ + boolean hasConversionWorkspace(); + /** + * + * + *
+   * Required. The conversion workspace parameters to update.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionWorkspace. + */ + com.google.cloud.clouddms.v1.ConversionWorkspace getConversionWorkspace(); + /** + * + * + *
+   * Required. The conversion workspace parameters to update.
+   * 
+ * + * + * .google.cloud.clouddms.v1.ConversionWorkspace conversion_workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.clouddms.v1.ConversionWorkspaceOrBuilder getConversionWorkspaceOrBuilder(); + + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 3; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
+   * It is recommended to always set this value to a UUID.
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 3; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java index 7219604e1f61..4b01a70315b9 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequest.java @@ -73,8 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * migration job resource by the update.
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -90,8 +90,8 @@ public boolean hasUpdateMask() { * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * migration job resource by the update.
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -107,8 +107,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * migration job resource by the update.
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -183,10 +183,10 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -210,10 +210,10 @@ public java.lang.String getRequestId() { * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -650,8 +650,8 @@ public Builder mergeFrom( * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * migration job resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -666,8 +666,8 @@ public boolean hasUpdateMask() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * migration job resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -688,8 +688,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * migration job resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -712,8 +712,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * migration job resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -733,8 +733,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * migration job resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -760,8 +760,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * migration job resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -781,8 +781,8 @@ public Builder clearUpdateMask() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * migration job resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -797,8 +797,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * migration job resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -817,8 +817,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * migration job resource by the update.
+     * Required. Field mask is used to specify the fields to be overwritten by the
+     * update in the conversion workspace resource.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1048,10 +1048,10 @@ public com.google.cloud.clouddms.v1.MigrationJobOrBuilder getMigrationJobOrBuild * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1074,10 +1074,10 @@ public java.lang.String getRequestId() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1100,10 +1100,10 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1125,10 +1125,10 @@ public Builder setRequestId(java.lang.String value) { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1146,10 +1146,10 @@ public Builder clearRequestId() { * * *
-     * A unique id used to identify the request. If the server receives two
-     * requests with the same id, then the second request will be ignored.
+     * A unique ID used to identify the request. If the server receives two
+     * requests with the same ID, then the second request is ignored.
      * It is recommended to always set this value to a UUID.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
      * (_), and hyphens (-). The maximum length is 40 characters.
      * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java index 59e76896860b..db51697c85f2 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/UpdateMigrationJobRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface UpdateMigrationJobRequestOrBuilder * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * migration job resource by the update.
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -41,8 +41,8 @@ public interface UpdateMigrationJobRequestOrBuilder * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * migration job resource by the update.
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -55,8 +55,8 @@ public interface UpdateMigrationJobRequestOrBuilder * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * migration job resource by the update.
+   * Required. Field mask is used to specify the fields to be overwritten by the
+   * update in the conversion workspace resource.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -109,10 +109,10 @@ public interface UpdateMigrationJobRequestOrBuilder * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -125,10 +125,10 @@ public interface UpdateMigrationJobRequestOrBuilder * * *
-   * A unique id used to identify the request. If the server receives two
-   * requests with the same id, then the second request will be ignored.
+   * A unique ID used to identify the request. If the server receives two
+   * requests with the same ID, then the second request is ignored.
    * It is recommended to always set this value to a UUID.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
    * (_), and hyphens (-). The maximum length is 40 characters.
    * 
* diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ViewEntity.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ViewEntity.java new file mode 100644 index 000000000000..f7869be0fdfc --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ViewEntity.java @@ -0,0 +1,1387 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * View's parent is a schema.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ViewEntity} + */ +public final class ViewEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ViewEntity) + ViewEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use ViewEntity.newBuilder() to construct. + private ViewEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ViewEntity() { + sqlCode_ = ""; + constraints_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ViewEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ViewEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ViewEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ViewEntity.class, + com.google.cloud.clouddms.v1.ViewEntity.Builder.class); + } + + public static final int SQL_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sqlCode_ = ""; + /** + * + * + *
+   * The SQL code which creates the view.
+   * 
+ * + * string sql_code = 1; + * + * @return The sqlCode. + */ + @java.lang.Override + public java.lang.String getSqlCode() { + java.lang.Object ref = sqlCode_; + 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(); + sqlCode_ = s; + return s; + } + } + /** + * + * + *
+   * The SQL code which creates the view.
+   * 
+ * + * string sql_code = 1; + * + * @return The bytes for sqlCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlCodeBytes() { + java.lang.Object ref = sqlCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_FEATURES_FIELD_NUMBER = 2; + private com.google.protobuf.Struct customFeatures_; + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return Whether the customFeatures field is set. + */ + @java.lang.Override + public boolean hasCustomFeatures() { + return customFeatures_ != null; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return The customFeatures. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomFeatures() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + + public static final int CONSTRAINTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List constraints_; + /** + * + * + *
+   * View constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + @java.lang.Override + public java.util.List getConstraintsList() { + return constraints_; + } + /** + * + * + *
+   * View constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + @java.lang.Override + public java.util.List + getConstraintsOrBuilderList() { + return constraints_; + } + /** + * + * + *
+   * View constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + @java.lang.Override + public int getConstraintsCount() { + return constraints_.size(); + } + /** + * + * + *
+   * View constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConstraintEntity getConstraints(int index) { + return constraints_.get(index); + } + /** + * + * + *
+   * View constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + @java.lang.Override + public com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder getConstraintsOrBuilder(int index) { + return constraints_.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(sqlCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlCode_); + } + if (customFeatures_ != null) { + output.writeMessage(2, getCustomFeatures()); + } + for (int i = 0; i < constraints_.size(); i++) { + output.writeMessage(3, constraints_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlCode_); + } + if (customFeatures_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomFeatures()); + } + for (int i = 0; i < constraints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, constraints_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.ViewEntity)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.ViewEntity other = (com.google.cloud.clouddms.v1.ViewEntity) obj; + + if (!getSqlCode().equals(other.getSqlCode())) return false; + if (hasCustomFeatures() != other.hasCustomFeatures()) return false; + if (hasCustomFeatures()) { + if (!getCustomFeatures().equals(other.getCustomFeatures())) return false; + } + if (!getConstraintsList().equals(other.getConstraintsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SQL_CODE_FIELD_NUMBER; + hash = (53 * hash) + getSqlCode().hashCode(); + if (hasCustomFeatures()) { + hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFeatures().hashCode(); + } + if (getConstraintsCount() > 0) { + hash = (37 * hash) + CONSTRAINTS_FIELD_NUMBER; + hash = (53 * hash) + getConstraintsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.ViewEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ViewEntity 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.clouddms.v1.ViewEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ViewEntity 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.clouddms.v1.ViewEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.ViewEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.ViewEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ViewEntity 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.clouddms.v1.ViewEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ViewEntity 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.clouddms.v1.ViewEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.ViewEntity 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.clouddms.v1.ViewEntity 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; + } + /** + * + * + *
+   * View's parent is a schema.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.ViewEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ViewEntity) + com.google.cloud.clouddms.v1.ViewEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ViewEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ViewEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.ViewEntity.class, + com.google.cloud.clouddms.v1.ViewEntity.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.ViewEntity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sqlCode_ = ""; + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + if (constraintsBuilder_ == null) { + constraints_ = java.util.Collections.emptyList(); + } else { + constraints_ = null; + constraintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto + .internal_static_google_cloud_clouddms_v1_ViewEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ViewEntity getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ViewEntity build() { + com.google.cloud.clouddms.v1.ViewEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ViewEntity buildPartial() { + com.google.cloud.clouddms.v1.ViewEntity result = + new com.google.cloud.clouddms.v1.ViewEntity(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.clouddms.v1.ViewEntity result) { + if (constraintsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + constraints_ = java.util.Collections.unmodifiableList(constraints_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.constraints_ = constraints_; + } else { + result.constraints_ = constraintsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.clouddms.v1.ViewEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sqlCode_ = sqlCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customFeatures_ = + customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build(); + } + } + + @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.clouddms.v1.ViewEntity) { + return mergeFrom((com.google.cloud.clouddms.v1.ViewEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.ViewEntity other) { + if (other == com.google.cloud.clouddms.v1.ViewEntity.getDefaultInstance()) return this; + if (!other.getSqlCode().isEmpty()) { + sqlCode_ = other.sqlCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomFeatures()) { + mergeCustomFeatures(other.getCustomFeatures()); + } + if (constraintsBuilder_ == null) { + if (!other.constraints_.isEmpty()) { + if (constraints_.isEmpty()) { + constraints_ = other.constraints_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConstraintsIsMutable(); + constraints_.addAll(other.constraints_); + } + onChanged(); + } + } else { + if (!other.constraints_.isEmpty()) { + if (constraintsBuilder_.isEmpty()) { + constraintsBuilder_.dispose(); + constraintsBuilder_ = null; + constraints_ = other.constraints_; + bitField0_ = (bitField0_ & ~0x00000004); + constraintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConstraintsFieldBuilder() + : null; + } else { + constraintsBuilder_.addAllMessages(other.constraints_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sqlCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.clouddms.v1.ConstraintEntity m = + input.readMessage( + com.google.cloud.clouddms.v1.ConstraintEntity.parser(), extensionRegistry); + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.add(m); + } else { + constraintsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sqlCode_ = ""; + /** + * + * + *
+     * The SQL code which creates the view.
+     * 
+ * + * string sql_code = 1; + * + * @return The sqlCode. + */ + public java.lang.String getSqlCode() { + java.lang.Object ref = sqlCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the view.
+     * 
+ * + * string sql_code = 1; + * + * @return The bytes for sqlCode. + */ + public com.google.protobuf.ByteString getSqlCodeBytes() { + java.lang.Object ref = sqlCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The SQL code which creates the view.
+     * 
+ * + * string sql_code = 1; + * + * @param value The sqlCode to set. + * @return This builder for chaining. + */ + public Builder setSqlCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the view.
+     * 
+ * + * string sql_code = 1; + * + * @return This builder for chaining. + */ + public Builder clearSqlCode() { + sqlCode_ = getDefaultInstance().getSqlCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The SQL code which creates the view.
+     * 
+ * + * string sql_code = 1; + * + * @param value The bytes for sqlCode to set. + * @return This builder for chaining. + */ + public Builder setSqlCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sqlCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + customFeaturesBuilder_; + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return Whether the customFeatures field is set. + */ + public boolean hasCustomFeatures() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return The customFeatures. + */ + public com.google.protobuf.Struct getCustomFeatures() { + if (customFeaturesBuilder_ == null) { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } else { + return customFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFeatures_ = value; + } else { + customFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) { + if (customFeaturesBuilder_ == null) { + customFeatures_ = builderForValue.build(); + } else { + customFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder mergeCustomFeatures(com.google.protobuf.Struct value) { + if (customFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customFeatures_ != null + && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomFeaturesBuilder().mergeFrom(value); + } else { + customFeatures_ = value; + } + } else { + customFeaturesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public Builder clearCustomFeatures() { + bitField0_ = (bitField0_ & ~0x00000002); + customFeatures_ = null; + if (customFeaturesBuilder_ != null) { + customFeaturesBuilder_.dispose(); + customFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() { + if (customFeaturesBuilder_ != null) { + return customFeaturesBuilder_.getMessageOrBuilder(); + } else { + return customFeatures_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : customFeatures_; + } + } + /** + * + * + *
+     * Custom engine specific features.
+     * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getCustomFeaturesFieldBuilder() { + if (customFeaturesBuilder_ == null) { + customFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCustomFeatures(), getParentForChildren(), isClean()); + customFeatures_ = null; + } + return customFeaturesBuilder_; + } + + private java.util.List constraints_ = + java.util.Collections.emptyList(); + + private void ensureConstraintsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + constraints_ = + new java.util.ArrayList(constraints_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConstraintEntity, + com.google.cloud.clouddms.v1.ConstraintEntity.Builder, + com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder> + constraintsBuilder_; + + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public java.util.List getConstraintsList() { + if (constraintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(constraints_); + } else { + return constraintsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public int getConstraintsCount() { + if (constraintsBuilder_ == null) { + return constraints_.size(); + } else { + return constraintsBuilder_.getCount(); + } + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public com.google.cloud.clouddms.v1.ConstraintEntity getConstraints(int index) { + if (constraintsBuilder_ == null) { + return constraints_.get(index); + } else { + return constraintsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public Builder setConstraints(int index, com.google.cloud.clouddms.v1.ConstraintEntity value) { + if (constraintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstraintsIsMutable(); + constraints_.set(index, value); + onChanged(); + } else { + constraintsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public Builder setConstraints( + int index, com.google.cloud.clouddms.v1.ConstraintEntity.Builder builderForValue) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.set(index, builderForValue.build()); + onChanged(); + } else { + constraintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public Builder addConstraints(com.google.cloud.clouddms.v1.ConstraintEntity value) { + if (constraintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstraintsIsMutable(); + constraints_.add(value); + onChanged(); + } else { + constraintsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public Builder addConstraints(int index, com.google.cloud.clouddms.v1.ConstraintEntity value) { + if (constraintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstraintsIsMutable(); + constraints_.add(index, value); + onChanged(); + } else { + constraintsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public Builder addConstraints( + com.google.cloud.clouddms.v1.ConstraintEntity.Builder builderForValue) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.add(builderForValue.build()); + onChanged(); + } else { + constraintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public Builder addConstraints( + int index, com.google.cloud.clouddms.v1.ConstraintEntity.Builder builderForValue) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.add(index, builderForValue.build()); + onChanged(); + } else { + constraintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public Builder addAllConstraints( + java.lang.Iterable values) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, constraints_); + onChanged(); + } else { + constraintsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public Builder clearConstraints() { + if (constraintsBuilder_ == null) { + constraints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + constraintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public Builder removeConstraints(int index) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.remove(index); + onChanged(); + } else { + constraintsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public com.google.cloud.clouddms.v1.ConstraintEntity.Builder getConstraintsBuilder(int index) { + return getConstraintsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder getConstraintsOrBuilder( + int index) { + if (constraintsBuilder_ == null) { + return constraints_.get(index); + } else { + return constraintsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public java.util.List + getConstraintsOrBuilderList() { + if (constraintsBuilder_ != null) { + return constraintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(constraints_); + } + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public com.google.cloud.clouddms.v1.ConstraintEntity.Builder addConstraintsBuilder() { + return getConstraintsFieldBuilder() + .addBuilder(com.google.cloud.clouddms.v1.ConstraintEntity.getDefaultInstance()); + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public com.google.cloud.clouddms.v1.ConstraintEntity.Builder addConstraintsBuilder(int index) { + return getConstraintsFieldBuilder() + .addBuilder(index, com.google.cloud.clouddms.v1.ConstraintEntity.getDefaultInstance()); + } + /** + * + * + *
+     * View constraints.
+     * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + public java.util.List + getConstraintsBuilderList() { + return getConstraintsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConstraintEntity, + com.google.cloud.clouddms.v1.ConstraintEntity.Builder, + com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder> + getConstraintsFieldBuilder() { + if (constraintsBuilder_ == null) { + constraintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.clouddms.v1.ConstraintEntity, + com.google.cloud.clouddms.v1.ConstraintEntity.Builder, + com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>( + constraints_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + constraints_ = null; + } + return constraintsBuilder_; + } + + @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.clouddms.v1.ViewEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ViewEntity) + private static final com.google.cloud.clouddms.v1.ViewEntity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ViewEntity(); + } + + public static com.google.cloud.clouddms.v1.ViewEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViewEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.ViewEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ViewEntityOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ViewEntityOrBuilder.java new file mode 100644 index 000000000000..c59755a5971f --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ViewEntityOrBuilder.java @@ -0,0 +1,137 @@ +/* + * 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/clouddms/v1/conversionworkspace_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface ViewEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ViewEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The SQL code which creates the view.
+   * 
+ * + * string sql_code = 1; + * + * @return The sqlCode. + */ + java.lang.String getSqlCode(); + /** + * + * + *
+   * The SQL code which creates the view.
+   * 
+ * + * string sql_code = 1; + * + * @return The bytes for sqlCode. + */ + com.google.protobuf.ByteString getSqlCodeBytes(); + + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return Whether the customFeatures field is set. + */ + boolean hasCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + * + * @return The customFeatures. + */ + com.google.protobuf.Struct getCustomFeatures(); + /** + * + * + *
+   * Custom engine specific features.
+   * 
+ * + * .google.protobuf.Struct custom_features = 2; + */ + com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder(); + + /** + * + * + *
+   * View constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + java.util.List getConstraintsList(); + /** + * + * + *
+   * View constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + com.google.cloud.clouddms.v1.ConstraintEntity getConstraints(int index); + /** + * + * + *
+   * View constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + int getConstraintsCount(); + /** + * + * + *
+   * View constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + java.util.List + getConstraintsOrBuilderList(); + /** + * + * + *
+   * View constraints.
+   * 
+ * + * repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 3; + */ + com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder getConstraintsOrBuilder(int index); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConfig.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConfig.java new file mode 100644 index 000000000000..9dadb513a17b --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConfig.java @@ -0,0 +1,833 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +/** + * + * + *
+ * The VPC peering configuration is used to create VPC peering with the
+ * consumer's VPC.
+ * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.VpcPeeringConfig} + */ +public final class VpcPeeringConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.VpcPeeringConfig) + VpcPeeringConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use VpcPeeringConfig.newBuilder() to construct. + private VpcPeeringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VpcPeeringConfig() { + vpcName_ = ""; + subnet_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VpcPeeringConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_VpcPeeringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_VpcPeeringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.VpcPeeringConfig.class, + com.google.cloud.clouddms.v1.VpcPeeringConfig.Builder.class); + } + + public static final int VPC_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object vpcName_ = ""; + /** + * + * + *
+   * Required. Fully qualified name of the VPC that Database Migration Service
+   * will peer to.
+   * 
+ * + * + * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The vpcName. + */ + @java.lang.Override + public java.lang.String getVpcName() { + java.lang.Object ref = vpcName_; + 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(); + vpcName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Fully qualified name of the VPC that Database Migration Service
+   * will peer to.
+   * 
+ * + * + * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vpcName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVpcNameBytes() { + java.lang.Object ref = vpcName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBNET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object subnet_ = ""; + /** + * + * + *
+   * Required. A free subnet for peering. (CIDR of /29)
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The subnet. + */ + @java.lang.Override + public java.lang.String getSubnet() { + java.lang.Object ref = subnet_; + 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(); + subnet_ = s; + return s; + } + } + /** + * + * + *
+   * Required. A free subnet for peering. (CIDR of /29)
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for subnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = subnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnet_ = 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(vpcName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vpcName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnet_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vpcName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnet_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.clouddms.v1.VpcPeeringConfig)) { + return super.equals(obj); + } + com.google.cloud.clouddms.v1.VpcPeeringConfig other = + (com.google.cloud.clouddms.v1.VpcPeeringConfig) obj; + + if (!getVpcName().equals(other.getVpcName())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VPC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getVpcName().hashCode(); + hash = (37 * hash) + SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getSubnet().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.clouddms.v1.VpcPeeringConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.VpcPeeringConfig 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.clouddms.v1.VpcPeeringConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.VpcPeeringConfig 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.clouddms.v1.VpcPeeringConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.clouddms.v1.VpcPeeringConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.clouddms.v1.VpcPeeringConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.VpcPeeringConfig 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.clouddms.v1.VpcPeeringConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.VpcPeeringConfig 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.clouddms.v1.VpcPeeringConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.clouddms.v1.VpcPeeringConfig 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.clouddms.v1.VpcPeeringConfig 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; + } + /** + * + * + *
+   * The VPC peering configuration is used to create VPC peering with the
+   * consumer's VPC.
+   * 
+ * + * Protobuf type {@code google.cloud.clouddms.v1.VpcPeeringConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.VpcPeeringConfig) + com.google.cloud.clouddms.v1.VpcPeeringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_VpcPeeringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_VpcPeeringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.clouddms.v1.VpcPeeringConfig.class, + com.google.cloud.clouddms.v1.VpcPeeringConfig.Builder.class); + } + + // Construct using com.google.cloud.clouddms.v1.VpcPeeringConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + vpcName_ = ""; + subnet_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.clouddms.v1.ClouddmsResourcesProto + .internal_static_google_cloud_clouddms_v1_VpcPeeringConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.VpcPeeringConfig getDefaultInstanceForType() { + return com.google.cloud.clouddms.v1.VpcPeeringConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.VpcPeeringConfig build() { + com.google.cloud.clouddms.v1.VpcPeeringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.VpcPeeringConfig buildPartial() { + com.google.cloud.clouddms.v1.VpcPeeringConfig result = + new com.google.cloud.clouddms.v1.VpcPeeringConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.clouddms.v1.VpcPeeringConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.vpcName_ = vpcName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subnet_ = subnet_; + } + } + + @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.clouddms.v1.VpcPeeringConfig) { + return mergeFrom((com.google.cloud.clouddms.v1.VpcPeeringConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.clouddms.v1.VpcPeeringConfig other) { + if (other == com.google.cloud.clouddms.v1.VpcPeeringConfig.getDefaultInstance()) return this; + if (!other.getVpcName().isEmpty()) { + vpcName_ = other.vpcName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubnet().isEmpty()) { + subnet_ = other.subnet_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + vpcName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + subnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object vpcName_ = ""; + /** + * + * + *
+     * Required. Fully qualified name of the VPC that Database Migration Service
+     * will peer to.
+     * 
+ * + * + * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The vpcName. + */ + public java.lang.String getVpcName() { + java.lang.Object ref = vpcName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Fully qualified name of the VPC that Database Migration Service
+     * will peer to.
+     * 
+ * + * + * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vpcName. + */ + public com.google.protobuf.ByteString getVpcNameBytes() { + java.lang.Object ref = vpcName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Fully qualified name of the VPC that Database Migration Service
+     * will peer to.
+     * 
+ * + * + * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The vpcName to set. + * @return This builder for chaining. + */ + public Builder setVpcName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vpcName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Fully qualified name of the VPC that Database Migration Service
+     * will peer to.
+     * 
+ * + * + * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVpcName() { + vpcName_ = getDefaultInstance().getVpcName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Fully qualified name of the VPC that Database Migration Service
+     * will peer to.
+     * 
+ * + * + * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vpcName to set. + * @return This builder for chaining. + */ + public Builder setVpcNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object subnet_ = ""; + /** + * + * + *
+     * Required. A free subnet for peering. (CIDR of /29)
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The subnet. + */ + public java.lang.String getSubnet() { + java.lang.Object ref = subnet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. A free subnet for peering. (CIDR of /29)
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for subnet. + */ + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = subnet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. A free subnet for peering. (CIDR of /29)
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subnet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A free subnet for peering. (CIDR of /29)
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSubnet() { + subnet_ = getDefaultInstance().getSubnet(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A free subnet for peering. (CIDR of /29)
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.VpcPeeringConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.VpcPeeringConfig) + private static final com.google.cloud.clouddms.v1.VpcPeeringConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.VpcPeeringConfig(); + } + + public static com.google.cloud.clouddms.v1.VpcPeeringConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcPeeringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.clouddms.v1.VpcPeeringConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConfigOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConfigOrBuilder.java new file mode 100644 index 000000000000..c2a06c37ca8f --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/VpcPeeringConfigOrBuilder.java @@ -0,0 +1,81 @@ +/* + * 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/clouddms/v1/clouddms_resources.proto + +package com.google.cloud.clouddms.v1; + +public interface VpcPeeringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.VpcPeeringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Fully qualified name of the VPC that Database Migration Service
+   * will peer to.
+   * 
+ * + * + * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The vpcName. + */ + java.lang.String getVpcName(); + /** + * + * + *
+   * Required. Fully qualified name of the VPC that Database Migration Service
+   * will peer to.
+   * 
+ * + * + * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vpcName. + */ + com.google.protobuf.ByteString getVpcNameBytes(); + + /** + * + * + *
+   * Required. A free subnet for peering. (CIDR of /29)
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The subnet. + */ + java.lang.String getSubnet(); + /** + * + * + *
+   * Required. A free subnet for peering. (CIDR of /29)
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for subnet. + */ + com.google.protobuf.ByteString getSubnetBytes(); +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto b/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto index 0126c9c3a20b..69d7d93d0162 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto +++ b/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/clouddms/v1/clouddms_resources.proto"; +import "google/cloud/clouddms/v1/conversionworkspace_resources.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -36,10 +37,12 @@ option ruby_package = "Google::Cloud::CloudDMS::V1"; // Database Migration service service DataMigrationService { option (google.api.default_host) = "datamigration.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Lists migration jobs in a given project and location. - rpc ListMigrationJobs(ListMigrationJobsRequest) returns (ListMigrationJobsResponse) { + rpc ListMigrationJobs(ListMigrationJobsRequest) + returns (ListMigrationJobsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/migrationJobs" }; @@ -55,12 +58,14 @@ service DataMigrationService { } // Creates a new migration job in a given project and location. - rpc CreateMigrationJob(CreateMigrationJobRequest) returns (google.longrunning.Operation) { + rpc CreateMigrationJob(CreateMigrationJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/migrationJobs" body: "migration_job" }; - option (google.api.method_signature) = "parent,migration_job,migration_job_id"; + option (google.api.method_signature) = + "parent,migration_job,migration_job_id"; option (google.longrunning.operation_info) = { response_type: "MigrationJob" metadata_type: "OperationMetadata" @@ -68,7 +73,8 @@ service DataMigrationService { } // Updates the parameters of a single migration job. - rpc UpdateMigrationJob(UpdateMigrationJobRequest) returns (google.longrunning.Operation) { + rpc UpdateMigrationJob(UpdateMigrationJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{migration_job.name=projects/*/locations/*/migrationJobs/*}" body: "migration_job" @@ -81,7 +87,8 @@ service DataMigrationService { } // Deletes a single migration job. - rpc DeleteMigrationJob(DeleteMigrationJobRequest) returns (google.longrunning.Operation) { + rpc DeleteMigrationJob(DeleteMigrationJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/migrationJobs/*}" }; @@ -93,7 +100,8 @@ service DataMigrationService { } // Start an already created migration job. - rpc StartMigrationJob(StartMigrationJobRequest) returns (google.longrunning.Operation) { + rpc StartMigrationJob(StartMigrationJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/migrationJobs/*}:start" body: "*" @@ -105,7 +113,8 @@ service DataMigrationService { } // Stops a running migration job. - rpc StopMigrationJob(StopMigrationJobRequest) returns (google.longrunning.Operation) { + rpc StopMigrationJob(StopMigrationJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/migrationJobs/*}:stop" body: "*" @@ -118,7 +127,8 @@ service DataMigrationService { // Resume a migration job that is currently stopped and is resumable (was // stopped during CDC phase). - rpc ResumeMigrationJob(ResumeMigrationJobRequest) returns (google.longrunning.Operation) { + rpc ResumeMigrationJob(ResumeMigrationJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/migrationJobs/*}:resume" body: "*" @@ -131,7 +141,8 @@ service DataMigrationService { // Promote a migration job, stopping replication to the destination and // promoting the destination to be a standalone database. - rpc PromoteMigrationJob(PromoteMigrationJobRequest) returns (google.longrunning.Operation) { + rpc PromoteMigrationJob(PromoteMigrationJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/migrationJobs/*}:promote" body: "*" @@ -144,7 +155,8 @@ service DataMigrationService { // Verify a migration job, making sure the destination can reach the source // and that all configuration and prerequisites are met. - rpc VerifyMigrationJob(VerifyMigrationJobRequest) returns (google.longrunning.Operation) { + rpc VerifyMigrationJob(VerifyMigrationJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/migrationJobs/*}:verify" body: "*" @@ -158,7 +170,8 @@ service DataMigrationService { // Restart a stopped or failed migration job, resetting the destination // instance to its original state and starting the migration process from // scratch. - rpc RestartMigrationJob(RestartMigrationJobRequest) returns (google.longrunning.Operation) { + rpc RestartMigrationJob(RestartMigrationJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/migrationJobs/*}:restart" body: "*" @@ -178,8 +191,10 @@ service DataMigrationService { }; } - // Retrieve a list of all connection profiles in a given project and location. - rpc ListConnectionProfiles(ListConnectionProfilesRequest) returns (ListConnectionProfilesResponse) { + // Retrieves a list of all connection profiles in a given project and + // location. + rpc ListConnectionProfiles(ListConnectionProfilesRequest) + returns (ListConnectionProfilesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/connectionProfiles" }; @@ -187,7 +202,8 @@ service DataMigrationService { } // Gets details of a single connection profile. - rpc GetConnectionProfile(GetConnectionProfileRequest) returns (ConnectionProfile) { + rpc GetConnectionProfile(GetConnectionProfileRequest) + returns (ConnectionProfile) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/connectionProfiles/*}" }; @@ -195,12 +211,14 @@ service DataMigrationService { } // Creates a new connection profile in a given project and location. - rpc CreateConnectionProfile(CreateConnectionProfileRequest) returns (google.longrunning.Operation) { + rpc CreateConnectionProfile(CreateConnectionProfileRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/connectionProfiles" body: "connection_profile" }; - option (google.api.method_signature) = "parent,connection_profile,connection_profile_id"; + option (google.api.method_signature) = + "parent,connection_profile,connection_profile_id"; option (google.longrunning.operation_info) = { response_type: "ConnectionProfile" metadata_type: "OperationMetadata" @@ -208,7 +226,8 @@ service DataMigrationService { } // Update the configuration of a single connection profile. - rpc UpdateConnectionProfile(UpdateConnectionProfileRequest) returns (google.longrunning.Operation) { + rpc UpdateConnectionProfile(UpdateConnectionProfileRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{connection_profile.name=projects/*/locations/*/connectionProfiles/*}" body: "connection_profile" @@ -223,7 +242,8 @@ service DataMigrationService { // Deletes a single Database Migration Service connection profile. // A connection profile can only be deleted if it is not in use by any // active migration jobs. - rpc DeleteConnectionProfile(DeleteConnectionProfileRequest) returns (google.longrunning.Operation) { + rpc DeleteConnectionProfile(DeleteConnectionProfileRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/connectionProfiles/*}" }; @@ -233,11 +253,242 @@ service DataMigrationService { metadata_type: "OperationMetadata" }; } + + // Creates a new private connection in a given project and location. + rpc CreatePrivateConnection(CreatePrivateConnectionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/privateConnections" + body: "private_connection" + }; + option (google.api.method_signature) = + "parent,private_connection,private_connection_id"; + option (google.longrunning.operation_info) = { + response_type: "PrivateConnection" + metadata_type: "OperationMetadata" + }; + } + + // Gets details of a single private connection. + rpc GetPrivateConnection(GetPrivateConnectionRequest) + returns (PrivateConnection) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateConnections/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Retrieves a list of private connections in a given project and location. + rpc ListPrivateConnections(ListPrivateConnectionsRequest) + returns (ListPrivateConnectionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/privateConnections" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a single Database Migration Service private connection. + rpc DeletePrivateConnection(DeletePrivateConnectionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/privateConnections/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Gets details of a single conversion workspace. + rpc GetConversionWorkspace(GetConversionWorkspaceRequest) + returns (ConversionWorkspace) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/conversionWorkspaces/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists conversion workspaces in a given project and location. + rpc ListConversionWorkspaces(ListConversionWorkspacesRequest) + returns (ListConversionWorkspacesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/conversionWorkspaces" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a new conversion workspace in a given project and location. + rpc CreateConversionWorkspace(CreateConversionWorkspaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/conversionWorkspaces" + body: "conversion_workspace" + }; + option (google.api.method_signature) = + "parent,conversion_workspace,conversion_workspace_id"; + option (google.longrunning.operation_info) = { + response_type: "ConversionWorkspace" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single conversion workspace. + rpc UpdateConversionWorkspace(UpdateConversionWorkspaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{conversion_workspace.name=projects/*/locations/*/conversionWorkspaces/*}" + body: "conversion_workspace" + }; + option (google.api.method_signature) = "conversion_workspace,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "ConversionWorkspace" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single conversion workspace. + rpc DeleteConversionWorkspace(DeleteConversionWorkspaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/conversionWorkspaces/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Imports a snapshot of the source database into the + // conversion workspace. + rpc SeedConversionWorkspace(SeedConversionWorkspaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/conversionWorkspaces/*}:seed" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ConversionWorkspace" + metadata_type: "OperationMetadata" + }; + } + + // Imports the mapping rules for a given conversion workspace. + // Supports various formats of external rules files. + rpc ImportMappingRules(ImportMappingRulesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/conversionWorkspaces/*}/mappingRules:import" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ConversionWorkspace" + metadata_type: "OperationMetadata" + }; + } + + // Creates a draft tree schema for the destination database. + rpc ConvertConversionWorkspace(ConvertConversionWorkspaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/conversionWorkspaces/*}:convert" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ConversionWorkspace" + metadata_type: "OperationMetadata" + }; + } + + // Marks all the data in the conversion workspace as committed. + rpc CommitConversionWorkspace(CommitConversionWorkspaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/conversionWorkspaces/*}:commit" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ConversionWorkspace" + metadata_type: "OperationMetadata" + }; + } + + // Rolls back a conversion workspace to the last committed snapshot. + rpc RollbackConversionWorkspace(RollbackConversionWorkspaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/conversionWorkspaces/*}:rollback" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ConversionWorkspace" + metadata_type: "OperationMetadata" + }; + } + + // Applies draft tree onto a specific destination database. + rpc ApplyConversionWorkspace(ApplyConversionWorkspaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/conversionWorkspaces/*}:apply" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ConversionWorkspace" + metadata_type: "OperationMetadata" + }; + } + + // Describes the database entities tree for a specific conversion workspace + // and a specific tree type. + // + // Database entities are not resources like conversion workspaces or mapping + // rules, and they can't be created, updated or deleted. Instead, they are + // simple data objects describing the structure of the client database. + rpc DescribeDatabaseEntities(DescribeDatabaseEntitiesRequest) + returns (DescribeDatabaseEntitiesResponse) { + option (google.api.http) = { + get: "/v1/{conversion_workspace=projects/*/locations/*/conversionWorkspaces/*}:describeDatabaseEntities" + }; + } + + // Searches/lists the background jobs for a specific + // conversion workspace. + // + // The background jobs are not resources like conversion workspaces or + // mapping rules, and they can't be created, updated or deleted. + // Instead, they are a way to expose the data plane jobs log. + rpc SearchBackgroundJobs(SearchBackgroundJobsRequest) + returns (SearchBackgroundJobsResponse) { + option (google.api.http) = { + get: "/v1/{conversion_workspace=projects/*/locations/*/conversionWorkspaces/*}:searchBackgroundJobs" + }; + } + + // Retrieves a list of committed revisions of a specific conversion + // workspace. + rpc DescribeConversionWorkspaceRevisions( + DescribeConversionWorkspaceRevisionsRequest) + returns (DescribeConversionWorkspaceRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{conversion_workspace=projects/*/locations/*/conversionWorkspaces/*}:describeConversionWorkspaceRevisions" + }; + } + + // Fetches a set of static IP addresses that need to be allowlisted by the + // customer when using the static-IP connectivity method. + rpc FetchStaticIps(FetchStaticIpsRequest) returns (FetchStaticIpsResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*}:fetchStaticIps" + }; + option (google.api.method_signature) = "name"; + } } -// Retrieve a list of all migration jobs in a given project and location. +// Retrieves a list of all migration jobs in a given project and location. message ListMigrationJobsRequest { - // Required. The parent, which owns this collection of migrationJobs. + // Required. The parent which owns this collection of migrationJobs. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -247,7 +498,7 @@ message ListMigrationJobsRequest { // The maximum number of migration jobs to return. The service may return // fewer than this value. If unspecified, at most 50 migration jobs will be - // returned. The maximum value is 1000; values above 1000 will be coerced to + // returned. The maximum value is 1000; values above 1000 are coerced to // 1000. int32 page_size = 2; @@ -279,7 +530,7 @@ message ListMigrationJobsResponse { // The list of migration jobs objects. repeated MigrationJob migration_jobs = 1; - // A token, which can be sent as `page_token` to retrieve the next page. + // A token which can be sent as `page_token` to retrieve the next page. // If this field is omitted, there are no subsequent pages. string next_page_token = 2; @@ -301,7 +552,7 @@ message GetMigrationJobRequest { // Request message to create a new Database Migration Service migration job // in the specified project and region. message CreateMigrationJobRequest { - // Required. The parent, which owns this collection of migration jobs. + // Required. The parent which owns this collection of migration jobs. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -317,31 +568,32 @@ message CreateMigrationJobRequest { // object. MigrationJob migration_job = 3 [(google.api.field_behavior) = REQUIRED]; - // A unique id used to identify the request. If the server receives two - // requests with the same id, then the second request will be ignored. + // A unique ID used to identify the request. If the server receives two + // requests with the same ID, then the second request is ignored. // // It is recommended to always set this value to a UUID. // - // The id must contain only letters (a-z, A-Z), numbers (0-9), underscores + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores // (_), and hyphens (-). The maximum length is 40 characters. string request_id = 4; } // Request message for 'UpdateMigrationJob' request. message UpdateMigrationJobRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // migration job resource by the update. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + // Required. Field mask is used to specify the fields to be overwritten by the + // update in the conversion workspace resource. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; // Required. The migration job parameters to update. MigrationJob migration_job = 2 [(google.api.field_behavior) = REQUIRED]; - // A unique id used to identify the request. If the server receives two - // requests with the same id, then the second request will be ignored. + // A unique ID used to identify the request. If the server receives two + // requests with the same ID, then the second request is ignored. // // It is recommended to always set this value to a UUID. // - // The id must contain only letters (a-z, A-Z), numbers (0-9), underscores + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores // (_), and hyphens (-). The maximum length is 40 characters. string request_id = 3; } @@ -356,12 +608,12 @@ message DeleteMigrationJobRequest { } ]; - // A unique id used to identify the request. If the server receives two - // requests with the same id, then the second request will be ignored. + // A unique ID used to identify the request. If the server receives two + // requests with the same ID, then the second request is ignored. // // It is recommended to always set this value to a UUID. // - // The id must contain only letters (a-z, A-Z), numbers (0-9), underscores + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores // (_), and hyphens (-). The maximum length is 40 characters. string request_id = 2; @@ -375,56 +627,56 @@ message DeleteMigrationJobRequest { message StartMigrationJobRequest { // Name of the migration job resource to start. string name = 1 [(google.api.resource_reference) = { - type: "datamigration.googleapis.com/MigrationJob" - }]; + type: "datamigration.googleapis.com/MigrationJob" + }]; } // Request message for 'StopMigrationJob' request. message StopMigrationJobRequest { // Name of the migration job resource to stop. string name = 1 [(google.api.resource_reference) = { - type: "datamigration.googleapis.com/MigrationJob" - }]; + type: "datamigration.googleapis.com/MigrationJob" + }]; } // Request message for 'ResumeMigrationJob' request. message ResumeMigrationJobRequest { // Name of the migration job resource to resume. string name = 1 [(google.api.resource_reference) = { - type: "datamigration.googleapis.com/MigrationJob" - }]; + type: "datamigration.googleapis.com/MigrationJob" + }]; } // Request message for 'PromoteMigrationJob' request. message PromoteMigrationJobRequest { // Name of the migration job resource to promote. string name = 1 [(google.api.resource_reference) = { - type: "datamigration.googleapis.com/MigrationJob" - }]; + type: "datamigration.googleapis.com/MigrationJob" + }]; } // Request message for 'VerifyMigrationJob' request. message VerifyMigrationJobRequest { // Name of the migration job resource to verify. string name = 1 [(google.api.resource_reference) = { - type: "datamigration.googleapis.com/MigrationJob" - }]; + type: "datamigration.googleapis.com/MigrationJob" + }]; } // Request message for 'RestartMigrationJob' request. message RestartMigrationJobRequest { // Name of the migration job resource to restart. string name = 1 [(google.api.resource_reference) = { - type: "datamigration.googleapis.com/MigrationJob" - }]; + type: "datamigration.googleapis.com/MigrationJob" + }]; } // Request message for 'GenerateSshScript' request. message GenerateSshScriptRequest { // Name of the migration job resource to generate the SSH script. string migration_job = 1 [(google.api.resource_reference) = { - type: "datamigration.googleapis.com/MigrationJob" - }]; + type: "datamigration.googleapis.com/MigrationJob" + }]; // Required. Bastion VM Instance name to use or to create. string vm = 2 [(google.api.field_behavior) = REQUIRED]; @@ -438,7 +690,7 @@ message GenerateSshScriptRequest { VmSelectionConfig vm_selection_config = 101; } - // The port that will be open on the bastion host + // The port that will be open on the bastion host. int32 vm_port = 3; } @@ -468,7 +720,7 @@ message SshScript { // Request message for 'ListConnectionProfiles' request. message ListConnectionProfilesRequest { - // Required. The parent, which owns this collection of connection profiles. + // Required. The parent which owns this collection of connection profiles. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -478,7 +730,7 @@ message ListConnectionProfilesRequest { // The maximum number of connection profiles to return. The service may return // fewer than this value. If unspecified, at most 50 connection profiles will - // be returned. The maximum value is 1000; values above 1000 will be coerced + // be returned. The maximum value is 1000; values above 1000 are coerced // to 1000. int32 page_size = 2; @@ -500,7 +752,7 @@ message ListConnectionProfilesRequest { // connect with a specific username. string filter = 4; - // the order by fields for the result. + // A comma-separated list of fields to order results according to. string order_by = 5; } @@ -509,7 +761,7 @@ message ListConnectionProfilesResponse { // The response list of connection profiles. repeated ConnectionProfile connection_profiles = 1; - // A token, which can be sent as `page_token` to retrieve the next page. + // A token which can be sent as `page_token` to retrieve the next page. // If this field is omitted, there are no subsequent pages. string next_page_token = 2; @@ -530,7 +782,7 @@ message GetConnectionProfileRequest { // Request message for 'CreateConnectionProfile' request. message CreateConnectionProfileRequest { - // Required. The parent, which owns this collection of connection profiles. + // Required. The parent which owns this collection of connection profiles. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -542,35 +794,58 @@ message CreateConnectionProfileRequest { string connection_profile_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The create request body including the connection profile data - ConnectionProfile connection_profile = 3 [(google.api.field_behavior) = REQUIRED]; + ConnectionProfile connection_profile = 3 + [(google.api.field_behavior) = REQUIRED]; - // A unique id used to identify the request. If the server receives two - // requests with the same id, then the second request will be ignored. + // Optional. A unique ID used to identify the request. If the server receives + // two requests with the same ID, then the second request is ignored. // // It is recommended to always set this value to a UUID. // - // The id must contain only letters (a-z, A-Z), numbers (0-9), underscores + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores // (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 4; + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only validate the connection profile, but don't create any + // resources. The default is false. Only supported for Oracle connection + // profiles. + bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Create the connection profile without validating it. + // The default is false. + // Only supported for Oracle connection profiles. + bool skip_validation = 6 [(google.api.field_behavior) = OPTIONAL]; } // Request message for 'UpdateConnectionProfile' request. message UpdateConnectionProfileRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // connection profile resource by the update. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + // Required. Field mask is used to specify the fields to be overwritten by the + // update in the conversion workspace resource. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; // Required. The connection profile parameters to update. - ConnectionProfile connection_profile = 2 [(google.api.field_behavior) = REQUIRED]; + ConnectionProfile connection_profile = 2 + [(google.api.field_behavior) = REQUIRED]; - // A unique id used to identify the request. If the server receives two - // requests with the same id, then the second request will be ignored. + // Optional. A unique ID used to identify the request. If the server receives + // two requests with the same ID, then the second request is ignored. // // It is recommended to always set this value to a UUID. // - // The id must contain only letters (a-z, A-Z), numbers (0-9), underscores + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores // (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 3; + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only validate the connection profile, but don't update any + // resources. The default is false. Only supported for Oracle connection + // profiles. + bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Update the connection profile without validating it. + // The default is false. + // Only supported for Oracle connection profiles. + bool skip_validation = 5 [(google.api.field_behavior) = OPTIONAL]; } // Request message for 'DeleteConnectionProfile' request. @@ -583,12 +858,12 @@ message DeleteConnectionProfileRequest { } ]; - // A unique id used to identify the request. If the server receives two - // requests with the same id, then the second request will be ignored. + // A unique ID used to identify the request. If the server receives two + // requests with the same ID, then the second request is ignored. // // It is recommended to always set this value to a UUID. // - // The id must contain only letters (a-z, A-Z), numbers (0-9), underscores + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores // (_), and hyphens (-). The maximum length is 40 characters. string request_id = 2; @@ -597,13 +872,126 @@ message DeleteConnectionProfileRequest { bool force = 3; } +// Request message to create a new private connection in the specified project +// and region. +message CreatePrivateConnectionRequest { + // Required. The parent that owns the collection of PrivateConnections. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datamigration.googleapis.com/PrivateConnection" + } + ]; + + // Required. The private connection identifier. + string private_connection_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The private connection resource to create. + PrivateConnection private_connection = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique ID used to identify the request. If the server receives + // two requests with the same ID, then the second request is ignored. + // + // It is recommended to always set this value to a UUID. + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores + // (_), and hyphens (-). The maximum length is 40 characters. + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, will skip validations. + bool skip_validation = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message to retrieve a list of private connections in a given project +// and location. +message ListPrivateConnectionsRequest { + // Required. The parent that owns the collection of private connections. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datamigration.googleapis.com/PrivateConnection" + } + ]; + + // Maximum number of private connections to return. + // If unspecified, at most 50 private connections that are returned. + // The maximum value is 1000; values above 1000 are coerced to 1000. + int32 page_size = 2; + + // Page token received from a previous `ListPrivateConnections` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListPrivateConnections` must match the call that provided the page + // token. + string page_token = 3; + + // A filter expression that filters private connections listed in the + // response. The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. The value must + // be a string, a number, or a boolean. The comparison operator must be either + // =, !=, >, or <. For example, list private connections created this year by + // specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**. + string filter = 4; + + // Order by fields for the result. + string order_by = 5; +} + +// Response message for 'ListPrivateConnections' request. +message ListPrivateConnectionsResponse { + // List of private connections. + repeated PrivateConnection private_connections = 1; + + // A token which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message to delete a private connection. +message DeletePrivateConnectionRequest { + // Required. The name of the private connection to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/PrivateConnection" + } + ]; + + // Optional. A unique ID used to identify the request. If the server receives + // two requests with the same ID, then the second request is ignored. + // + // It is recommended to always set this value to a UUID. + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores + // (_), and hyphens (-). The maximum length is 40 characters. + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message to get a private connection resource. +message GetPrivateConnectionRequest { + // Required. The name of the private connection to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/PrivateConnection" + } + ]; +} + // Represents the metadata of the long-running operation. message OperationMetadata { // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Server-defined resource path for the target of the operation. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -616,10 +1004,409 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Retrieve a list of all conversion workspaces in a given project and location. +message ListConversionWorkspacesRequest { + // Required. The parent which owns this collection of conversion workspaces. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datamigration.googleapis.com/ConversionWorkspace" + } + ]; + + // The maximum number of conversion workspaces to return. The service may + // return fewer than this value. If unspecified, at most 50 sets are returned. + int32 page_size = 2; + + // The nextPageToken value received in the previous call to + // conversionWorkspaces.list, used in the subsequent request to retrieve the + // next page of results. On first call this should be left blank. When + // paginating, all other parameters provided to conversionWorkspaces.list must + // match the call that provided the page token. + string page_token = 3; + + // A filter expression that filters conversion workspaces listed in the + // response. The expression must specify the field name, a comparison + // operator, and the value that you want to use for filtering. The value must + // be a string, a number, or a boolean. The comparison operator must be either + // =, !=, >, or <. For example, list conversion workspaces created this year + // by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can + // also filter nested fields. For example, you could specify + // **source.version = "12.c.1"** to select all conversion workspaces with + // source database version equal to 12.c.1. + string filter = 4; +} + +// Response message for 'ListConversionWorkspaces' request. +message ListConversionWorkspacesResponse { + // The list of conversion workspace objects. + repeated ConversionWorkspace conversion_workspaces = 1; + + // A token which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for 'GetConversionWorkspace' request. +message GetConversionWorkspaceRequest { + // Required. Name of the conversion workspace resource to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + } + ]; +} + +// Request message to create a new Conversion Workspace +// in the specified project and region. +message CreateConversionWorkspaceRequest { + // Required. The parent which owns this collection of conversion workspaces. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datamigration.googleapis.com/ConversionWorkspace" + } + ]; + + // Required. The ID of the conversion workspace to create. + string conversion_workspace_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Represents a conversion workspace object. + ConversionWorkspace conversion_workspace = 3 + [(google.api.field_behavior) = REQUIRED]; + + // A unique ID used to identify the request. If the server receives two + // requests with the same ID, then the second request is ignored. + // + // It is recommended to always set this value to a UUID. + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores + // (_), and hyphens (-). The maximum length is 40 characters. + string request_id = 4; +} + +// Request message for 'UpdateConversionWorkspace' request. +message UpdateConversionWorkspaceRequest { + // Required. Field mask is used to specify the fields to be overwritten by the + // update in the conversion workspace resource. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The conversion workspace parameters to update. + ConversionWorkspace conversion_workspace = 2 + [(google.api.field_behavior) = REQUIRED]; + + // A unique ID used to identify the request. If the server receives two + // requests with the same ID, then the second request is ignored. + // + // It is recommended to always set this value to a UUID. + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores + // (_), and hyphens (-). The maximum length is 40 characters. + string request_id = 3; +} + +// Request message for 'DeleteConversionWorkspace' request. +message DeleteConversionWorkspaceRequest { + // Required. Name of the conversion workspace resource to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + } + ]; + + // A unique ID used to identify the request. If the server receives two + // requests with the same ID, then the second request is ignored. + // + // It is recommended to always set this value to a UUID. + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores + // (_), and hyphens (-). The maximum length is 40 characters. + string request_id = 2; +} + +// Request message for 'CommitConversionWorkspace' request. +message CommitConversionWorkspaceRequest { + // Required. Name of the conversion workspace resource to commit. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + } + ]; + + // Optional. Optional name of the commit. + string commit_name = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for 'RollbackConversionWorkspace' request. +message RollbackConversionWorkspaceRequest { + // Required. Name of the conversion workspace resource to roll back to. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + } + ]; +} + +// Request message for 'ApplyConversionWorkspace' request. +message ApplyConversionWorkspaceRequest { + // Required. The name of the conversion workspace resource for which to apply + // the draft tree. Must be in the form of: + // projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + } + ]; + + // Filter which entities to apply. Leaving this field empty will apply all of + // the entities. Supports Google AIP 160 based filtering. + string filter = 2; + + // Which destination to use when applying the conversion workspace. + oneof destination { + // Fully qualified (Uri) name of the destination connection profile. + string connection_profile = 100; + } +} + +// Request message for 'SeedConversionWorkspace' request. +message SeedConversionWorkspaceRequest { + // Name of the conversion workspace resource to seed with new database + // structure, in the form of: + // projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. + string name = 1 [(google.api.resource_reference) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + }]; + + // Should the conversion workspace be committed automatically after the + // seed operation. + bool auto_commit = 2; + + // The input to be used for seeding the conversion workspace. The input can + // either be from the source or destination databases and it can be provided + // through a connection profile or a DDL file. + oneof seed_from { + // Fully qualified (Uri) name of the source connection profile. + string source_connection_profile = 100; + + // Fully qualified (Uri) name of the destination connection profile. + string destination_connection_profile = 101; + } +} + +// Request message for 'ConvertConversionWorkspace' request. +message ConvertConversionWorkspaceRequest { + // Name of the conversion workspace resource to convert in the form of: + // projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. + string name = 1 [(google.api.resource_reference) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + }]; + + // Specifies whether the conversion workspace is to be committed automatically + // after the conversion. + bool auto_commit = 4; + + // Filter the entities to convert. Leaving this field empty will convert all + // of the entities. Supports Google AIP-160 style filtering. + string filter = 5; +} + +// Request message for 'ImportMappingRules' request. +message ImportMappingRulesRequest { + // Details of a single rules file. + message RulesFile { + // The filename of the rules that needs to be converted. The filename is + // used mainly so that future logs of the import rules job contain it, and + // can therefore be searched by it. + string rules_source_filename = 1; + + // The text content of the rules that needs to be converted. + string rules_content = 2; + } + + // Required. Name of the conversion workspace resource to import the rules to + // in the form of: + // projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + } + ]; + + // The format of the rules content file. + ImportRulesFileFormat rules_format = 2; + + // One or more rules files. + repeated RulesFile rules_files = 3; + + // Should the conversion workspace be committed automatically after the + // import operation. + bool auto_commit = 6; +} + +// Request message for 'DescribeDatabaseEntities' request. +message DescribeDatabaseEntitiesRequest { + // The type of a tree to return + enum DBTreeType { + // Unspecified tree type. + DB_TREE_TYPE_UNSPECIFIED = 0; + + // The source database tree. + SOURCE_TREE = 1; + + // The draft database tree. + DRAFT_TREE = 2; + + // The destination database tree. + DESTINATION_TREE = 3; + } + + // Required. Name of the conversion workspace resource whose database entities + // are described. Must be in the form of: + // projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. + string conversion_workspace = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + } + ]; + + // The maximum number of entities to return. The service may return + // fewer entities than the value specifies. + int32 page_size = 3; + + // The nextPageToken value received in the previous call to + // conversionWorkspace.describeDatabaseEntities, used in the subsequent + // request to retrieve the next page of results. On first call this should be + // left blank. When paginating, all other parameters provided to + // conversionWorkspace.describeDatabaseEntities must match the call that + // provided the page token. + string page_token = 4; + + // The tree to fetch. + DBTreeType tree = 6; + + // Whether to retrieve the latest committed version of the entities or the + // latest version. This field is ignored if a specific commit_id is specified. + bool uncommitted = 11; + + // Request a specific commit ID. If not specified, the entities from the + // latest commit are returned. + string commit_id = 12; + + // Filter the returned entities based on AIP-160 standard. + string filter = 13; +} + +// Response message for 'DescribeDatabaseEntities' request. +message DescribeDatabaseEntitiesResponse { + // The list of database entities for the conversion workspace. + repeated DatabaseEntity database_entities = 1; + + // A token which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for 'SearchBackgroundJobs' request. +message SearchBackgroundJobsRequest { + // Required. Name of the conversion workspace resource whose jobs are listed, + // in the form of: + // projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. + string conversion_workspace = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + } + ]; + + // Optional. Whether or not to return just the most recent job per job type, + bool return_most_recent_per_job_type = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of jobs to return. The service may return + // fewer than this value. If unspecified, at most 100 jobs are + // returned. The maximum value is 100; values above 100 are coerced to + // 100. + int32 max_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If provided, only returns jobs that completed until (not + // including) the given timestamp. + google.protobuf.Timestamp completed_until_time = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for 'SearchBackgroundJobs' request. +message SearchBackgroundJobsResponse { + // The list of conversion workspace mapping rules. + repeated BackgroundJobLogEntry jobs = 1; +} + +// Request message for 'DescribeConversionWorkspaceRevisions' request. +message DescribeConversionWorkspaceRevisionsRequest { + // Required. Name of the conversion workspace resource whose revisions are + // listed. Must be in the form of: + // projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. + string conversion_workspace = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + } + ]; + + // Optional. Optional filter to request a specific commit ID. + string commit_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for 'DescribeConversionWorkspaceRevisions' request. +message DescribeConversionWorkspaceRevisionsResponse { + // The list of conversion workspace revisions. + repeated ConversionWorkspace revisions = 1; +} + +// Request message for 'FetchStaticIps' request. +message FetchStaticIpsRequest { + // Required. The resource name for the location for which static IPs should be + // returned. Must be in the format `projects/*/locations/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Maximum number of IPs to return. + int32 page_size = 2; + + // A page token, received from a previous `FetchStaticIps` call. + string page_token = 3; +} + +// Response message for a 'FetchStaticIps' request. +message FetchStaticIpsResponse { + // List of static IPs. + repeated string static_ips = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto b/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto index 67a6356d2104..0b66a82de58f 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto +++ b/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -30,6 +30,10 @@ option java_outer_classname = "ClouddmsResourcesProto"; option java_package = "com.google.cloud.clouddms.v1"; option php_namespace = "Google\\Cloud\\CloudDms\\V1"; option ruby_package = "Google::Cloud::CloudDMS::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Networks" + pattern: "projects/{project}/global/networks/{network}" +}; // SSL configuration information. message SslConfig { @@ -46,23 +50,23 @@ message SslConfig { SERVER_CLIENT = 2; } - // Output only. The ssl config type according to 'client_key', 'client_certificate' and - // 'ca_certificate'. + // Output only. The ssl config type according to 'client_key', + // 'client_certificate' and 'ca_certificate'. SslType type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with - // the Client Certificate. If this field is used then the 'client_certificate' - // field is mandatory. + // Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key + // associated with the Client Certificate. If this field is used then the + // 'client_certificate' field is mandatory. string client_key = 2 [(google.api.field_behavior) = INPUT_ONLY]; - // Input only. The x509 PEM-encoded certificate that will be used by the replica to - // authenticate against the source database server.If this field is used then - // the 'client_key' field is mandatory. + // Input only. The x509 PEM-encoded certificate that will be used by the + // replica to authenticate against the source database server.If this field is + // used then the 'client_key' field is mandatory. string client_certificate = 3 [(google.api.field_behavior) = INPUT_ONLY]; - // Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database - // server's certificate. The replica will use this certificate to verify - // it's connecting to the right host. + // Required. Input only. The x509 PEM-encoded certificate of the CA that + // signed the source database server's certificate. The replica will use this + // certificate to verify it's connecting to the right host. string ca_certificate = 4 [ (google.api.field_behavior) = INPUT_ONLY, (google.api.field_behavior) = REQUIRED @@ -77,13 +81,15 @@ message MySqlConnectionProfile { // Required. The network port of the source MySQL database. int32 port = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The username that Database Migration Service will use to connect to the - // database. The value is encrypted when stored in Database Migration Service. + // Required. The username that Database Migration Service will use to connect + // to the database. The value is encrypted when stored in Database Migration + // Service. string username = 3 [(google.api.field_behavior) = REQUIRED]; - // Required. Input only. The password for the user that Database Migration Service will be using to - // connect to the database. This field is not returned on request, and the - // value is encrypted when stored in Database Migration Service. + // Required. Input only. The password for the user that Database Migration + // Service will be using to connect to the database. This field is not + // returned on request, and the value is encrypted when stored in Database + // Migration Service. string password = 4 [ (google.api.field_behavior) = INPUT_ONLY, (google.api.field_behavior) = REQUIRED @@ -100,6 +106,16 @@ message MySqlConnectionProfile { string cloud_sql_id = 7; } +enum NetworkArchitecture { + NETWORK_ARCHITECTURE_UNSPECIFIED = 0; + + // Instance is in Cloud SQL's old producer network architecture. + NETWORK_ARCHITECTURE_OLD_CSQL_PRODUCER = 1; + + // Instance is in Cloud SQL's new producer network architecture. + NETWORK_ARCHITECTURE_NEW_CSQL_PRODUCER = 2; +} + // Specifies connection parameters required specifically for PostgreSQL // databases. message PostgreSqlConnectionProfile { @@ -109,13 +125,15 @@ message PostgreSqlConnectionProfile { // Required. The network port of the source PostgreSQL database. int32 port = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The username that Database Migration Service will use to connect to the - // database. The value is encrypted when stored in Database Migration Service. + // Required. The username that Database Migration Service will use to connect + // to the database. The value is encrypted when stored in Database Migration + // Service. string username = 3 [(google.api.field_behavior) = REQUIRED]; - // Required. Input only. The password for the user that Database Migration Service will be using to - // connect to the database. This field is not returned on request, and the - // value is encrypted when stored in Database Migration Service. + // Required. Input only. The password for the user that Database Migration + // Service will be using to connect to the database. This field is not + // returned on request, and the value is encrypted when stored in Database + // Migration Service. string password = 4 [ (google.api.field_behavior) = INPUT_ONLY, (google.api.field_behavior) = REQUIRED @@ -130,12 +148,70 @@ message PostgreSqlConnectionProfile { // If the source is a Cloud SQL database, use this field to // provide the Cloud SQL instance ID of the source. string cloud_sql_id = 7; + + // Output only. If the source is a Cloud SQL database, this field indicates + // the network architecture it's associated with. + NetworkArchitecture network_architecture = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Connectivity options used to establish a connection to the database server. + oneof connectivity { + // Static ip connectivity data (default, no additional details needed). + StaticIpConnectivity static_ip_connectivity = 100; + + // Private service connect connectivity. + PrivateServiceConnectConnectivity private_service_connect_connectivity = + 101; + } +} + +// Specifies connection parameters required specifically for Oracle +// databases. +message OracleConnectionProfile { + // Required. The IP or hostname of the source Oracle database. + string host = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The network port of the source Oracle database. + int32 port = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The username that Database Migration Service will use to connect + // to the database. The value is encrypted when stored in Database Migration + // Service. + string username = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Input only. The password for the user that Database Migration + // Service will be using to connect to the database. This field is not + // returned on request, and the value is encrypted when stored in Database + // Migration Service. + string password = 4 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = REQUIRED + ]; + + // Output only. Indicates whether a new password is included in the request. + bool password_set = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Database service for the Oracle connection. + string database_service = 6 [(google.api.field_behavior) = REQUIRED]; + + // Connectivity options used to establish a connection to the database server. + oneof connectivity { + // Static Service IP connectivity. + StaticServiceIpConnectivity static_service_ip_connectivity = 100; + + // Forward SSH tunnel connectivity. + ForwardSshTunnelConnectivity forward_ssh_connectivity = 101; + + // Private connectivity. + PrivateConnectivity private_connectivity = 102; + } } // Specifies required connection parameters, and, optionally, the parameters // required to create a Cloud SQL destination database instance. message CloudSqlConnectionProfile { - // Output only. The Cloud SQL instance ID that this connection profile is associated with. + // Output only. The Cloud SQL instance ID that this connection profile is + // associated with. string cloud_sql_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. Metadata used to create the destination Cloud SQL database. @@ -146,6 +222,22 @@ message CloudSqlConnectionProfile { // Output only. The Cloud SQL database instance's public IP. string public_ip = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Cloud SQL database instance's additional (outgoing) public + // IP. Used when the Cloud SQL database availability type is REGIONAL (i.e. + // multiple zones / highly available). + string additional_public_ip = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Specifies required connection parameters, and the parameters +// required to create an AlloyDB destination cluster. +message AlloyDbConnectionProfile { + // Required. The AlloyDB cluster ID that this connection profile is associated + // with. + string cluster_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Immutable. Metadata used to create the destination AlloyDB cluster. + AlloyDbSettings settings = 2 [(google.api.field_behavior) = IMMUTABLE]; } // An entry for an Access Control list. @@ -161,7 +253,8 @@ message SqlAclEntry { google.protobuf.Timestamp expire_time = 10; // Input only. The time-to-leave of this access control entry. - google.protobuf.Duration ttl = 11 [(google.api.field_behavior) = INPUT_ONLY]; + google.protobuf.Duration ttl = 11 + [(google.api.field_behavior) = INPUT_ONLY]; } // A label to identify this entry. @@ -179,6 +272,14 @@ message SqlIpConfig { // be updated, but it cannot be removed after it is set. string private_network = 2; + // Optional. The name of the allocated IP address range for the private IP + // Cloud SQL instance. This name refers to an already allocated IP range + // address. If set, the instance IP address will be created in the allocated + // range. Note that this IP address range can't be modified after the instance + // is created. If you change the VPC when configuring connectivity settings + // for the migration job, this field is not relevant. + string allocated_ip_range = 5 [(google.api.field_behavior) = OPTIONAL]; + // Whether SSL connections over IP should be enforced or not. google.protobuf.BoolValue require_ssl = 3; @@ -243,6 +344,21 @@ message CloudSqlSettings { // PostgreSQL 13. POSTGRES_13 = 8; + + // PostgreSQL 14. + POSTGRES_14 = 17; + } + + // The availability type of the given Cloud SQL instance. + enum SqlAvailabilityType { + // This is an unknown Availability type. + SQL_AVAILABILITY_TYPE_UNSPECIFIED = 0; + + // Zonal availablility instance. + ZONAL = 1; + + // Regional availability instance. + REGIONAL = 2; } // The database engine type and version. @@ -301,10 +417,15 @@ message CloudSqlSettings { // The minimum (and default) size is 10GB. google.protobuf.Int64Value data_disk_size_gb = 10; - // The Google Cloud Platform zone where your Cloud SQL datdabse instance is + // The Google Cloud Platform zone where your Cloud SQL database instance is // located. string zone = 11; + // Optional. The Google Cloud Platform zone where the failover Cloud SQL + // database instance is located. Used when the Cloud SQL database availability + // type is REGIONAL (i.e. multiple zones / highly available). + string secondary_zone = 18 [(google.api.field_behavior) = OPTIONAL]; + // The Database Migration Service source connection profile ID, // in the format: // `projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID` @@ -318,14 +439,115 @@ message CloudSqlSettings { // The Cloud SQL default instance level collation. string collation = 15; + + // The KMS key name used for the csql instance. + string cmek_key_name = 16; + + // Optional. Availability type. Potential values: + // * `ZONAL`: The instance serves data from only one zone. Outages in that + // zone affect data availability. + // * `REGIONAL`: The instance can serve data from more than one zone in a + // region (it is highly available). + SqlAvailabilityType availability_type = 17 + [(google.api.field_behavior) = OPTIONAL]; } -// The source database will allow incoming connections from the destination -// database's public IP. You can retrieve the Cloud SQL instance's public IP -// from the Cloud SQL console or using Cloud SQL APIs. No additional -// configuration is required. -message StaticIpConnectivity { +// Settings for creating an AlloyDB cluster. +message AlloyDbSettings { + // The username/password for a database user. Used for specifying initial + // users at cluster creation time. + message UserPassword { + // The database username. + string user = 1; + + // The initial password for the user. + string password = 2; + + // Output only. Indicates if the initial_user.password field has been set. + bool password_set = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Settings for the cluster's primary instance + message PrimaryInstanceSettings { + // MachineConfig describes the configuration of a machine. + message MachineConfig { + // The number of CPU's in the VM instance. + int32 cpu_count = 1; + } + + // Required. The ID of the AlloyDB primary instance. The ID must satisfy the + // regex expression "[a-z0-9-]+". + string id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Configuration for the machines that host the underlying + // database engine. + MachineConfig machine_config = 2; + + // Database flags to pass to AlloyDB when DMS is creating the AlloyDB + // cluster and instances. See the AlloyDB documentation for how these can be + // used. + map database_flags = 6; + + // Labels for the AlloyDB primary instance created by DMS. An object + // containing a list of 'key', 'value' pairs. + map labels = 7; + + // Output only. The private IP address for the Instance. + // This is the connection endpoint for an end-user application. + string private_ip = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // EncryptionConfig describes the encryption config of a cluster that is + // encrypted with a CMEK (customer-managed encryption key). + message EncryptionConfig { + // The fully-qualified resource name of the KMS key. + // Each Cloud KMS key is regionalized and has the following format: + // projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME] + string kms_key_name = 1; + } + + // Required. Input only. Initial user to setup during cluster creation. + // Required. + UserPassword initial_user = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Required. The resource link for the VPC network in which cluster resources + // are created and from which they are accessible via Private IP. The network + // must belong to the same project as the cluster. It is specified in the + // form: "projects/{project_number}/global/networks/{network_id}". This is + // required to create a cluster. + string vpc_network = 2 [(google.api.field_behavior) = REQUIRED]; + + // Labels for the AlloyDB cluster created by DMS. An object containing a list + // of 'key', 'value' pairs. + map labels = 3; + + PrimaryInstanceSettings primary_instance_settings = 4; + + // Optional. The encryption config can be specified to encrypt the data disks + // and other persistent data resources of a cluster with a + // customer-managed encryption key (CMEK). When this field is not + // specified, the cluster will then use default encryption scheme to + // protect the user data. + EncryptionConfig encryption_config = 5 + [(google.api.field_behavior) = OPTIONAL]; +} +// The source database will allow incoming connections from the public IP of the +// destination database. You can retrieve the public IP of the Cloud SQL +// instance from the Cloud SQL console or using Cloud SQL APIs. No additional +// configuration is required. +message StaticIpConnectivity {} + +// Private Service Connect connectivity +// (https://cloud.google.com/vpc/docs/private-service-connect#service-attachments) +message PrivateServiceConnectConnectivity { + // Required. A service attachment that exposes a database, and has the + // following format: + // projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name} + string service_attachment = 1 [(google.api.field_behavior) = REQUIRED]; } // The details needed to configure a reverse SSH tunnel between the source and @@ -335,12 +557,12 @@ message StaticIpConnectivity { // to produce the script that will help set up the reverse SSH tunnel, and to // set up the VPC peering between the Cloud SQL private network and the VPC. message ReverseSshConnectivity { - // Required. The IP of the virtual machine (Compute Engine) used as the bastion server - // for the SSH tunnel. + // Required. The IP of the virtual machine (Compute Engine) used as the + // bastion server for the SSH tunnel. string vm_ip = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The forwarding port of the virtual machine (Compute Engine) used as the - // bastion server for the SSH tunnel. + // Required. The forwarding port of the virtual machine (Compute Engine) used + // as the bastion server for the SSH tunnel. int32 vm_port = 2 [(google.api.field_behavior) = REQUIRED]; // The name of the virtual machine (Compute Engine) used as the bastion server @@ -359,6 +581,35 @@ message VpcPeeringConnectivity { string vpc = 1; } +// Forward SSH Tunnel connectivity. +message ForwardSshTunnelConnectivity { + // Required. Hostname for the SSH tunnel. + string hostname = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Username for the SSH tunnel. + string username = 2 [(google.api.field_behavior) = REQUIRED]; + + // Port for the SSH tunnel, default value is 22. + int32 port = 3; + + oneof authentication_method { + // Input only. SSH password. + string password = 100 [(google.api.field_behavior) = INPUT_ONLY]; + + // Input only. SSH private key. + string private_key = 101 [(google.api.field_behavior) = INPUT_ONLY]; + } +} + +// Static IP address connectivity configured on service project. +message StaticServiceIpConnectivity {} + +// Private Connectivity. +message PrivateConnectivity { + // Required. The resource name (URI) of the private connection. + string private_connection = 1 [(google.api.field_behavior) = REQUIRED]; +} + // A message defining the database engine and provider. message DatabaseType { // The database provider. @@ -459,19 +710,36 @@ message MigrationJob { CONTINUOUS = 2; } + // Dump flag definition. + message DumpFlag { + // The name of the flag + string name = 1; + + // The value of the flag. + string value = 2; + } + + // Dump flags definition. + message DumpFlags { + // The flags for the initial dump. + repeated DumpFlag dump_flags = 1; + } + // The name (URI) of this migration job resource, in the form of: - // projects/{project}/locations/{location}/instances/{instance}. + // projects/{project}/locations/{location}/migrationJobs/{migrationJob}. string name = 1; // Output only. The timestamp when the migration job resource was created. // A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. // Example: "2014-10-02T15:01:23.045123456Z". - 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 timestamp when the migration job resource was last updated. - // A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. + // Output only. The timestamp when the migration job resource was last + // updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. // Example: "2014-10-02T15:01:23.045123456Z". - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The resource labels for migration job to use to annotate any related // underlying resources such as Compute Engine VMs. An object containing a @@ -494,8 +762,13 @@ message MigrationJob { // The path to the dump file in Google Cloud Storage, // in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). + // This field and the "dump_flags" field are mutually exclusive. string dump_path = 9; + // The initial dump flags. + // This field and the "dump_path" field are mutually exclusive. + DumpFlags dump_flags = 17; + // Required. The resource name (URI) of the source connection profile. string source = 10 [(google.api.field_behavior) = REQUIRED]; @@ -515,9 +788,11 @@ message MigrationJob { StaticIpConnectivity static_ip_connectivity = 103; } - // Output only. The duration of the migration job (in seconds). A duration in seconds - // with up to nine fractional digits, terminated by 's'. Example: "3.5s". - google.protobuf.Duration duration = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The duration of the migration job (in seconds). A duration in + // seconds with up to nine fractional digits, terminated by 's'. Example: + // "3.5s". + google.protobuf.Duration duration = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The error details in case of state FAILED. google.rpc.Status error = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -528,8 +803,42 @@ message MigrationJob { // The database engine type and provider of the destination. DatabaseType destination_database = 15; - // Output only. If the migration job is completed, the time when it was completed. - google.protobuf.Timestamp end_time = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. If the migration job is completed, the time when it was + // completed. + google.protobuf.Timestamp end_time = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The conversion workspace used by the migration. + ConversionWorkspaceInfo conversion_workspace = 18; + + // This field can be used to select the entities to migrate as part of + // the migration job. It uses AIP-160 notation to select a subset of the + // entities configured on the associated conversion-workspace. This field + // should not be set on migration-jobs that are not associated with a + // conversion workspace. + string filter = 20; + + // The CMEK (customer-managed encryption key) fully qualified key name used + // for the migration job. + // This field supports all migration jobs types except for: + // * Mysql to Mysql (use the cmek field in the cloudsql connection profile + // instead). + // * PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql + // connection profile instead). + // * PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb + // connection profile instead). + // Each Cloud CMEK key has the following format: + // projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME] + string cmek_key_name = 21; +} + +// A conversion workspace's version. +message ConversionWorkspaceInfo { + // The resource name (URI) of the conversion workspace. + string name = 1; + + // The commit ID of the conversion workspace. + string commit_id = 2; } // A connection profile definition. @@ -567,18 +876,20 @@ message ConnectionProfile { } // The name of this connection profile resource in the form of - // projects/{project}/locations/{location}/instances/{instance}. + // projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}. string name = 1; // Output only. The timestamp when the resource was created. // A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. // Example: "2014-10-02T15:01:23.045123456Z". - 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 timestamp when the resource was last updated. // A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. // Example: "2014-10-02T15:01:23.045123456Z". - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The resource labels for connection profile to use to annotate any related // underlying resources such as Compute Engine VMs. An object containing a @@ -601,8 +912,14 @@ message ConnectionProfile { // A PostgreSQL database connection profile. PostgreSqlConnectionProfile postgresql = 101; + // An Oracle database connection profile. + OracleConnectionProfile oracle = 104; + // A CloudSQL database connection profile. CloudSqlConnectionProfile cloudsql = 102; + + // An AlloyDB cluster connection profile. + AlloyDbConnectionProfile alloydb = 105; } // Output only. The error details in case of state FAILED. @@ -678,12 +995,30 @@ message MigrationJobVerificationError { // Migration is already running at the time of restart request. CANT_RESTART_RUNNING_MIGRATION = 21; + + // The source has tables with limited support. + // E.g. PostgreSQL tables without primary keys. + TABLES_WITH_LIMITED_SUPPORT = 24; + + // The source uses an unsupported locale. + UNSUPPORTED_DATABASE_LOCALE = 25; + + // The source uses an unsupported Foreign Data Wrapper configuration. + UNSUPPORTED_DATABASE_FDW_CONFIG = 26; + + // There was an underlying RDBMS error. + ERROR_RDBMS = 27; + + // The source DB size in Bytes exceeds a certain threshold. The migration + // might require an increase of quota, or might not be supported. + SOURCE_SIZE_EXCEEDS_THRESHOLD = 28; } // Output only. An instance of ErrorCode specifying the error that occurred. ErrorCode error_code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A formatted message with further details about the error and a CTA. + // Output only. A formatted message with further details about the error and a + // CTA. string error_message = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. A specific detailed error message, if supplied by the engine. @@ -700,6 +1035,9 @@ enum DatabaseEngine { // The source engine is PostgreSQL. POSTGRESQL = 2; + + // The source engine is Oracle. + ORACLE = 4; } // The database providers. @@ -712,4 +1050,90 @@ enum DatabaseProvider { // RDS runs the database. RDS = 2; + + // Amazon Aurora. + AURORA = 3; + + // AlloyDB. + ALLOYDB = 4; +} + +// The PrivateConnection resource is used to establish private connectivity +// with the customer's network. +message PrivateConnection { + option (google.api.resource) = { + type: "datamigration.googleapis.com/PrivateConnection" + pattern: "projects/{project}/locations/{location}/privateConnections/{private_connection}" + }; + + // Private Connection state. + enum State { + STATE_UNSPECIFIED = 0; + + // The private connection is in creation state - creating resources. + CREATING = 1; + + // The private connection has been created with all of its resources. + CREATED = 2; + + // The private connection creation has failed. + FAILED = 3; + + // The private connection is being deleted. + DELETING = 4; + + // Delete request has failed, resource is in invalid state. + FAILED_TO_DELETE = 5; + + // The private connection has been deleted. + DELETED = 6; + } + + // The name of the resource. + string name = 1; + + // Output only. The create time of the resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last update time of the resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The resource labels for private connections to use to annotate any related + // underlying resources such as Compute Engine VMs. An object containing a + // list of "key": "value" pairs. + // + // Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. + map labels = 4; + + // The private connection display name. + string display_name = 5; + + // Output only. The state of the private connection. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error details in case of state FAILED. + google.rpc.Status error = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + oneof connectivity { + // VPC peering configuration. + VpcPeeringConfig vpc_peering_config = 100; + } +} + +// The VPC peering configuration is used to create VPC peering with the +// consumer's VPC. +message VpcPeeringConfig { + // Required. Fully qualified name of the VPC that Database Migration Service + // will peer to. + string vpc_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Networks" + } + ]; + + // Required. A free subnet for peering. (CIDR of /29) + string subnet = 2 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/conversionworkspace_resources.proto b/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/conversionworkspace_resources.proto new file mode 100644 index 000000000000..332fd2c6d31a --- /dev/null +++ b/java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/conversionworkspace_resources.proto @@ -0,0 +1,606 @@ +// Copyright 2023 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.clouddms.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/clouddms/v1/clouddms_resources.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.CloudDms.V1"; +option go_package = "cloud.google.com/go/clouddms/apiv1/clouddmspb;clouddmspb"; +option java_multiple_files = true; +option java_outer_classname = "ConversionWorkspaceResourcesProto"; +option java_package = "com.google.cloud.clouddms.v1"; +option php_namespace = "Google\\Cloud\\CloudDms\\V1"; +option ruby_package = "Google::Cloud::CloudDMS::V1"; + +// The type and version of a source or destination database. +message DatabaseEngineInfo { + // Required. Engine type. + DatabaseEngine engine = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Engine named version, for example 12.c.1. + string version = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The main conversion workspace resource entity. +message ConversionWorkspace { + option (google.api.resource) = { + type: "datamigration.googleapis.com/ConversionWorkspace" + pattern: "projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}" + }; + + // Full name of the workspace resource, in the form of: + // projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. + string name = 1; + + // Required. The source engine details. + DatabaseEngineInfo source = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The destination engine details. + DatabaseEngineInfo destination = 3 [(google.api.field_behavior) = REQUIRED]; + + // A generic list of settings for the workspace. + // The settings are database pair dependant and can indicate default behavior + // for the mapping rules engine or turn on or off specific features. + // Such examples can be: convert_foreign_key_to_interleave=true, + // skip_triggers=false, ignore_non_table_synonyms=true + map global_settings = 4; + + // Output only. Whether the workspace has uncommitted changes (changes which + // were made after the workspace was committed). + bool has_uncommitted_changes = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The latest commit ID. + string latest_commit_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the workspace was committed. + google.protobuf.Timestamp latest_commit_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the workspace resource was created. + google.protobuf.Timestamp create_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the workspace resource was last updated. + google.protobuf.Timestamp update_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The display name for the workspace. + string display_name = 11; +} + +// Execution log of a background job. +message BackgroundJobLogEntry { + // Final state after a job completes. + enum JobCompletionState { + // The status is not specified. This state is used when job is not yet + // finished. + JOB_COMPLETION_STATE_UNSPECIFIED = 0; + + // Success. + SUCCEEDED = 1; + + // Error. + FAILED = 2; + } + + // Details regarding a Seed background job. + message SeedJobDetails { + // The connection profile which was used for the seed job. + string connection_profile = 1; + } + + // Details regarding an Import Rules background job. + message ImportRulesJobDetails { + // File names used for the import rules job. + repeated string files = 1; + + // The requested file format. + ImportRulesFileFormat file_format = 2; + } + + // Details regarding a Convert background job. + message ConvertJobDetails { + // AIP-160 based filter used to specify the entities to convert + string filter = 1; + } + + // Details regarding an Apply background job. + message ApplyJobDetails { + // The connection profile which was used for the apply job. + string connection_profile = 1; + + // AIP-160 based filter used to specify the entities to apply + string filter = 2; + } + + // The background job log entry ID. + string id = 1; + + // The type of job that was executed. + BackgroundJobType job_type = 2; + + // The timestamp when the background job was started. + google.protobuf.Timestamp start_time = 3; + + // The timestamp when the background job was finished. + google.protobuf.Timestamp finish_time = 4; + + // Job completion state, i.e. the final state after the job completed. + JobCompletionState completion_state = 5; + + // Job completion comment, such as how many entities were seeded, + // how many warnings were found during conversion, and similar information. + string completion_comment = 6; + + // Whether the client requested the conversion workspace to be committed after + // a successful completion of the job. + bool request_autocommit = 7; + + oneof job_details { + // Seed job details. + SeedJobDetails seed_job_details = 100; + + // Import rules job details. + ImportRulesJobDetails import_rules_job_details = 101; + + // Convert job details. + ConvertJobDetails convert_job_details = 102; + + // Apply job details. + ApplyJobDetails apply_job_details = 103; + } +} + +// The base entity type for all the database related entities. +// The message contains the entity name, the name of its parent, the entity +// type, and the specific details per entity type. +message DatabaseEntity { + // The type of database entities tree. + enum TreeType { + // Tree type unspecified. + TREE_TYPE_UNSPECIFIED = 0; + + // Tree of entities loaded from a source database. + SOURCE = 1; + + // Tree of entities converted from the source tree using the mapping rules. + DRAFT = 2; + + // Tree of entities observed on the destination database. + DESTINATION = 3; + } + + // The short name (e.g. table name) of the entity. + string short_name = 1; + + // The full name of the parent entity (e.g. schema name). + string parent_entity = 2; + + // The type of tree the entity belongs to. + TreeType tree = 3; + + // The type of the database entity (table, view, index, ...). + DatabaseEntityType entity_type = 4; + + // Details about entity mappings. + // For source tree entities, this holds the draft entities which were + // generated by the mapping rules. + // For draft tree entities, this holds the source entities which were + // converted to form the draft entity. + // Destination entities will have no mapping details. + repeated EntityMapping mappings = 5; + + // The specific body for each entity type. + oneof entity_body { + // Schema. + SchemaEntity schema = 102; + + // Table. + TableEntity table = 103; + + // View. + ViewEntity view = 104; + + // Sequence. + SequenceEntity sequence = 105; + + // Stored procedure. + StoredProcedureEntity stored_procedure = 106; + + // Function. + FunctionEntity database_function = 107; + + // Synonym. + SynonymEntity synonym = 108; + + // Package. + PackageEntity database_package = 109; + } +} + +// Schema typically has no parent entity, but can have a parent entity +// DatabaseInstance (for database engines which support it). For some database +// engines, the terms schema and user can be used interchangeably when they +// refer to a namespace or a collection of other database entities. Can store +// additional information which is schema specific. +message SchemaEntity { + // Custom engine specific features. + google.protobuf.Struct custom_features = 1; +} + +// Table's parent is a schema. +message TableEntity { + // Table columns. + repeated ColumnEntity columns = 1; + + // Table constraints. + repeated ConstraintEntity constraints = 2; + + // Table indices. + repeated IndexEntity indices = 3; + + // Table triggers. + repeated TriggerEntity triggers = 4; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 5; + + // Comment associated with the table. + string comment = 6; +} + +// Column is not used as an independent entity, it is retrieved as part of a +// Table entity. +message ColumnEntity { + // Column name. + string name = 1; + + // Column data type. + string data_type = 2; + + // Charset override - instead of table level charset. + string charset = 3; + + // Collation override - instead of table level collation. + string collation = 4; + + // Column length - e.g. varchar (50). + int64 length = 5; + + // Column precision - when relevant. + int32 precision = 6; + + // Column scale - when relevant. + int32 scale = 7; + + // Column fractional second precision - used for timestamp based datatypes. + int32 fractional_seconds_precision = 8; + + // Is the column of array type. + bool array = 9; + + // If the column is array, of which length. + int32 array_length = 10; + + // Is the column nullable. + bool nullable = 11; + + // Is the column auto-generated/identity. + bool auto_generated = 12; + + // Is the column a UDT. + bool udt = 13; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 14; + + // Specifies the list of values allowed in the column. + // Only used for set data type. + repeated string set_values = 15; + + // Comment associated with the column. + string comment = 16; + + // Column order in the table. + int32 ordinal_position = 17; + + // Default value of the column. + string default_value = 18; +} + +// Constraint is not used as an independent entity, it is retrieved +// as part of another entity such as Table or View. +message ConstraintEntity { + // The name of the table constraint. + string name = 1; + + // Type of constraint, for example unique, primary key, foreign key (currently + // only primary key is supported). + string type = 2; + + // Table columns used as part of the Constraint, for example primary key + // constraint should list the columns which constitutes the key. + repeated string table_columns = 3; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 4; + + // Reference columns which may be associated with the constraint. For example, + // if the constraint is a FOREIGN_KEY, this represents the list of full names + // of referenced columns by the foreign key. + repeated string reference_columns = 5; + + // Reference table which may be associated with the constraint. For example, + // if the constraint is a FOREIGN_KEY, this represents the list of full name + // of the referenced table by the foreign key. + string reference_table = 6; + + // Table which is associated with the constraint. In case the constraint + // is defined on a table, this field is left empty as this information is + // stored in parent_name. However, if constraint is defined on a view, this + // field stores the table name on which the view is defined. + string table_name = 7; +} + +// Index is not used as an independent entity, it is retrieved as part of a +// Table entity. +message IndexEntity { + // The name of the index. + string name = 1; + + // Type of index, for example B-TREE. + string type = 2; + + // Table columns used as part of the Index, for example B-TREE index should + // list the columns which constitutes the index. + repeated string table_columns = 3; + + // Boolean value indicating whether the index is unique. + bool unique = 4; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 5; +} + +// Trigger is not used as an independent entity, it is retrieved as part of a +// Table entity. +message TriggerEntity { + // The name of the trigger. + string name = 1; + + // The DML, DDL, or database events that fire the trigger, for example + // INSERT, UPDATE. + repeated string triggering_events = 2; + + // Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH + // ROW. + string trigger_type = 3; + + // The SQL code which creates the trigger. + string sql_code = 4; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 5; +} + +// View's parent is a schema. +message ViewEntity { + // The SQL code which creates the view. + string sql_code = 1; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 2; + + // View constraints. + repeated ConstraintEntity constraints = 3; +} + +// Sequence's parent is a schema. +message SequenceEntity { + // Increment value for the sequence. + int64 increment = 1; + + // Start number for the sequence represented as bytes to accommodate large. + // numbers + bytes start_value = 2; + + // Maximum number for the sequence represented as bytes to accommodate large. + // numbers + bytes max_value = 3; + + // Minimum number for the sequence represented as bytes to accommodate large. + // numbers + bytes min_value = 4; + + // Indicates whether the sequence value should cycle through. + bool cycle = 5; + + // Indicates number of entries to cache / precreate. + int64 cache = 6; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 7; +} + +// Stored procedure's parent is a schema. +message StoredProcedureEntity { + // The SQL code which creates the stored procedure. + string sql_code = 1; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 2; +} + +// Function's parent is a schema. +message FunctionEntity { + // The SQL code which creates the function. + string sql_code = 1; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 2; +} + +// Synonym's parent is a schema. +message SynonymEntity { + // The name of the entity for which the synonym is being created (the source). + string source_entity = 1; + + // The type of the entity for which the synonym is being created + // (usually a table or a sequence). + DatabaseEntityType source_type = 2; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 3; +} + +// Package's parent is a schema. +message PackageEntity { + // The SQL code which creates the package. + string package_sql_code = 1; + + // The SQL code which creates the package body. If the package specification + // has cursors or subprograms, then the package body is mandatory. + string package_body = 2; + + // Custom engine specific features. + google.protobuf.Struct custom_features = 3; +} + +// Details of the mappings of a database entity. +message EntityMapping { + // Source entity full name. + // The source entity can also be a column, index or constraint using the + // same naming notation schema.table.column. + string source_entity = 1; + + // Target entity full name. + // The draft entity can also include a column, index or constraint using the + // same naming notation schema.table.column. + string draft_entity = 2; + + // Type of source entity. + DatabaseEntityType source_type = 4; + + // Type of draft entity. + DatabaseEntityType draft_type = 5; + + // Entity mapping log entries. + // Multiple rules can be effective and contribute changes to a converted + // entity, such as a rule can handle the entity name, another rule can handle + // an entity type. In addition, rules which did not change the entity are also + // logged along with the reason preventing them to do so. + repeated EntityMappingLogEntry mapping_log = 3; +} + +// A single record of a rule which was used for a mapping. +message EntityMappingLogEntry { + // Which rule caused this log entry. + string rule_id = 1; + + // Rule revision ID. + string rule_revision_id = 2; + + // Comment. + string mapping_comment = 3; +} + +// The type of database entities supported, +enum DatabaseEntityType { + // Unspecified database entity type. + DATABASE_ENTITY_TYPE_UNSPECIFIED = 0; + + // Schema. + DATABASE_ENTITY_TYPE_SCHEMA = 1; + + // Table. + DATABASE_ENTITY_TYPE_TABLE = 2; + + // Column. + DATABASE_ENTITY_TYPE_COLUMN = 3; + + // Constraint. + DATABASE_ENTITY_TYPE_CONSTRAINT = 4; + + // Index. + DATABASE_ENTITY_TYPE_INDEX = 5; + + // Trigger. + DATABASE_ENTITY_TYPE_TRIGGER = 6; + + // View. + DATABASE_ENTITY_TYPE_VIEW = 7; + + // Sequence. + DATABASE_ENTITY_TYPE_SEQUENCE = 8; + + // Stored Procedure. + DATABASE_ENTITY_TYPE_STORED_PROCEDURE = 9; + + // Function. + DATABASE_ENTITY_TYPE_FUNCTION = 10; + + // Synonym. + DATABASE_ENTITY_TYPE_SYNONYM = 11; + + // Package. + DATABASE_ENTITY_TYPE_DATABASE_PACKAGE = 12; + + // UDT. + DATABASE_ENTITY_TYPE_UDT = 13; + + // Materialized View. + DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW = 14; + + // Database. + DATABASE_ENTITY_TYPE_DATABASE = 15; +} + +// The types of jobs that can be executed in the background. +enum BackgroundJobType { + // Unspecified background job type. + BACKGROUND_JOB_TYPE_UNSPECIFIED = 0; + + // Job to seed from the source database. + BACKGROUND_JOB_TYPE_SOURCE_SEED = 1; + + // Job to convert the source database into a draft of the destination + // database. + BACKGROUND_JOB_TYPE_CONVERT = 2; + + // Job to apply the draft tree onto the destination. + BACKGROUND_JOB_TYPE_APPLY_DESTINATION = 3; + + // Job to import and convert mapping rules from an external source such as an + // ora2pg config file. + BACKGROUND_JOB_TYPE_IMPORT_RULES_FILE = 5; +} + +// The format for the import rules file. +enum ImportRulesFileFormat { + // Unspecified rules format. + IMPORT_RULES_FILE_FORMAT_UNSPECIFIED = 0; + + // HarbourBridge session file. + IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE = 1; + + // Ora2Pg configuration file. + IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE = 2; +} diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspace.java new file mode 100644 index 000000000000..857102b69b93 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspace.java @@ -0,0 +1,54 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ApplyConversionWorkspace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.longrunning.Operation; + +public class AsyncApplyConversionWorkspace { + + public static void main(String[] args) throws Exception { + asyncApplyConversionWorkspace(); + } + + public static void asyncApplyConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ApplyConversionWorkspaceRequest request = + ApplyConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataMigrationServiceClient.applyConversionWorkspaceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ApplyConversionWorkspace_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspaceLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspaceLRO.java new file mode 100644 index 000000000000..2108ac4e5292 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/AsyncApplyConversionWorkspaceLRO.java @@ -0,0 +1,57 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ApplyConversionWorkspace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.OperationMetadata; + +public class AsyncApplyConversionWorkspaceLRO { + + public static void main(String[] args) throws Exception { + asyncApplyConversionWorkspaceLRO(); + } + + public static void asyncApplyConversionWorkspaceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ApplyConversionWorkspaceRequest request = + ApplyConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setFilter("filter-1274492040") + .build(); + OperationFuture future = + dataMigrationServiceClient + .applyConversionWorkspaceOperationCallable() + .futureCall(request); + // Do something. + ConversionWorkspace response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ApplyConversionWorkspace_LRO_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/SyncApplyConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/SyncApplyConversionWorkspace.java new file mode 100644 index 000000000000..dcefa057f24c --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/applyconversionworkspace/SyncApplyConversionWorkspace.java @@ -0,0 +1,51 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ApplyConversionWorkspace_sync] +import com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; + +public class SyncApplyConversionWorkspace { + + public static void main(String[] args) throws Exception { + syncApplyConversionWorkspace(); + } + + public static void syncApplyConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ApplyConversionWorkspaceRequest request = + ApplyConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setFilter("filter-1274492040") + .build(); + ConversionWorkspace response = + dataMigrationServiceClient.applyConversionWorkspaceAsync(request).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ApplyConversionWorkspace_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/commitconversionworkspace/AsyncCommitConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/commitconversionworkspace/AsyncCommitConversionWorkspace.java new file mode 100644 index 000000000000..ae5abecc4114 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/commitconversionworkspace/AsyncCommitConversionWorkspace.java @@ -0,0 +1,54 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CommitConversionWorkspace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCommitConversionWorkspace { + + public static void main(String[] args) throws Exception { + asyncCommitConversionWorkspace(); + } + + public static void asyncCommitConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CommitConversionWorkspaceRequest request = + CommitConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setCommitName("commitName1018078306") + .build(); + ApiFuture future = + dataMigrationServiceClient.commitConversionWorkspaceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CommitConversionWorkspace_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/commitconversionworkspace/AsyncCommitConversionWorkspaceLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/commitconversionworkspace/AsyncCommitConversionWorkspaceLRO.java new file mode 100644 index 000000000000..bff29541d55a --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/commitconversionworkspace/AsyncCommitConversionWorkspaceLRO.java @@ -0,0 +1,57 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CommitConversionWorkspace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.OperationMetadata; + +public class AsyncCommitConversionWorkspaceLRO { + + public static void main(String[] args) throws Exception { + asyncCommitConversionWorkspaceLRO(); + } + + public static void asyncCommitConversionWorkspaceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CommitConversionWorkspaceRequest request = + CommitConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setCommitName("commitName1018078306") + .build(); + OperationFuture future = + dataMigrationServiceClient + .commitConversionWorkspaceOperationCallable() + .futureCall(request); + // Do something. + ConversionWorkspace response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CommitConversionWorkspace_LRO_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/commitconversionworkspace/SyncCommitConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/commitconversionworkspace/SyncCommitConversionWorkspace.java new file mode 100644 index 000000000000..a479ec62ac88 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/commitconversionworkspace/SyncCommitConversionWorkspace.java @@ -0,0 +1,51 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CommitConversionWorkspace_sync] +import com.google.cloud.clouddms.v1.CommitConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; + +public class SyncCommitConversionWorkspace { + + public static void main(String[] args) throws Exception { + syncCommitConversionWorkspace(); + } + + public static void syncCommitConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CommitConversionWorkspaceRequest request = + CommitConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setCommitName("commitName1018078306") + .build(); + ConversionWorkspace response = + dataMigrationServiceClient.commitConversionWorkspaceAsync(request).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CommitConversionWorkspace_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspace.java new file mode 100644 index 000000000000..653e05df73ef --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspace.java @@ -0,0 +1,55 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ConvertConversionWorkspace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.longrunning.Operation; + +public class AsyncConvertConversionWorkspace { + + public static void main(String[] args) throws Exception { + asyncConvertConversionWorkspace(); + } + + public static void asyncConvertConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConvertConversionWorkspaceRequest request = + ConvertConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setAutoCommit(true) + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataMigrationServiceClient.convertConversionWorkspaceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ConvertConversionWorkspace_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspaceLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspaceLRO.java new file mode 100644 index 000000000000..c98f655ff061 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/AsyncConvertConversionWorkspaceLRO.java @@ -0,0 +1,58 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ConvertConversionWorkspace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.OperationMetadata; + +public class AsyncConvertConversionWorkspaceLRO { + + public static void main(String[] args) throws Exception { + asyncConvertConversionWorkspaceLRO(); + } + + public static void asyncConvertConversionWorkspaceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConvertConversionWorkspaceRequest request = + ConvertConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setAutoCommit(true) + .setFilter("filter-1274492040") + .build(); + OperationFuture future = + dataMigrationServiceClient + .convertConversionWorkspaceOperationCallable() + .futureCall(request); + // Do something. + ConversionWorkspace response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ConvertConversionWorkspace_LRO_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/SyncConvertConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/SyncConvertConversionWorkspace.java new file mode 100644 index 000000000000..3066c4791ef0 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/convertconversionworkspace/SyncConvertConversionWorkspace.java @@ -0,0 +1,52 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ConvertConversionWorkspace_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; + +public class SyncConvertConversionWorkspace { + + public static void main(String[] args) throws Exception { + syncConvertConversionWorkspace(); + } + + public static void syncConvertConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConvertConversionWorkspaceRequest request = + ConvertConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setAutoCommit(true) + .setFilter("filter-1274492040") + .build(); + ConversionWorkspace response = + dataMigrationServiceClient.convertConversionWorkspaceAsync(request).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ConvertConversionWorkspace_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfile.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfile.java index 8c033c822775..f79810d31104 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfile.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfile.java @@ -46,6 +46,8 @@ public static void asyncCreateConnectionProfile() throws Exception { .setConnectionProfileId("connectionProfileId597575526") .setConnectionProfile(ConnectionProfile.newBuilder().build()) .setRequestId("requestId693933066") + .setValidateOnly(true) + .setSkipValidation(true) .build(); ApiFuture future = dataMigrationServiceClient.createConnectionProfileCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfileLRO.java index 98c5447d370a..24f6dea32ee2 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfileLRO.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/AsyncCreateConnectionProfileLRO.java @@ -46,6 +46,8 @@ public static void asyncCreateConnectionProfileLRO() throws Exception { .setConnectionProfileId("connectionProfileId597575526") .setConnectionProfile(ConnectionProfile.newBuilder().build()) .setRequestId("requestId693933066") + .setValidateOnly(true) + .setSkipValidation(true) .build(); OperationFuture future = dataMigrationServiceClient.createConnectionProfileOperationCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfile.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfile.java index fcebd5c03601..3f70957d25a1 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfile.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconnectionprofile/SyncCreateConnectionProfile.java @@ -44,6 +44,8 @@ public static void syncCreateConnectionProfile() throws Exception { .setConnectionProfileId("connectionProfileId597575526") .setConnectionProfile(ConnectionProfile.newBuilder().build()) .setRequestId("requestId693933066") + .setValidateOnly(true) + .setSkipValidation(true) .build(); ConnectionProfile response = dataMigrationServiceClient.createConnectionProfileAsync(request).get(); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/AsyncCreateConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/AsyncCreateConversionWorkspace.java new file mode 100644 index 000000000000..2bb694293dea --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/AsyncCreateConversionWorkspace.java @@ -0,0 +1,55 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateConversionWorkspace { + + public static void main(String[] args) throws Exception { + asyncCreateConversionWorkspace(); + } + + public static void asyncCreateConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreateConversionWorkspaceRequest request = + CreateConversionWorkspaceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversionWorkspaceId("conversionWorkspaceId-928604774") + .setConversionWorkspace(ConversionWorkspace.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataMigrationServiceClient.createConversionWorkspaceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/AsyncCreateConversionWorkspaceLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/AsyncCreateConversionWorkspaceLRO.java new file mode 100644 index 000000000000..56d303b9d3fd --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/AsyncCreateConversionWorkspaceLRO.java @@ -0,0 +1,57 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.OperationMetadata; + +public class AsyncCreateConversionWorkspaceLRO { + + public static void main(String[] args) throws Exception { + asyncCreateConversionWorkspaceLRO(); + } + + public static void asyncCreateConversionWorkspaceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreateConversionWorkspaceRequest request = + CreateConversionWorkspaceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversionWorkspaceId("conversionWorkspaceId-928604774") + .setConversionWorkspace(ConversionWorkspace.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + dataMigrationServiceClient + .createConversionWorkspaceOperationCallable() + .futureCall(request); + // Do something. + ConversionWorkspace response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_LRO_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/SyncCreateConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/SyncCreateConversionWorkspace.java new file mode 100644 index 000000000000..88c680421f22 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/SyncCreateConversionWorkspace.java @@ -0,0 +1,51 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; + +public class SyncCreateConversionWorkspace { + + public static void main(String[] args) throws Exception { + syncCreateConversionWorkspace(); + } + + public static void syncCreateConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreateConversionWorkspaceRequest request = + CreateConversionWorkspaceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversionWorkspaceId("conversionWorkspaceId-928604774") + .setConversionWorkspace(ConversionWorkspace.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ConversionWorkspace response = + dataMigrationServiceClient.createConversionWorkspaceAsync(request).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/SyncCreateConversionWorkspaceLocationnameConversionworkspaceString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/SyncCreateConversionWorkspaceLocationnameConversionworkspaceString.java new file mode 100644 index 000000000000..6f33294ef88f --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/SyncCreateConversionWorkspaceLocationnameConversionworkspaceString.java @@ -0,0 +1,49 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_LocationnameConversionworkspaceString_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; + +public class SyncCreateConversionWorkspaceLocationnameConversionworkspaceString { + + public static void main(String[] args) throws Exception { + syncCreateConversionWorkspaceLocationnameConversionworkspaceString(); + } + + public static void syncCreateConversionWorkspaceLocationnameConversionworkspaceString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ConversionWorkspace conversionWorkspace = ConversionWorkspace.newBuilder().build(); + String conversionWorkspaceId = "conversionWorkspaceId-928604774"; + ConversionWorkspace response = + dataMigrationServiceClient + .createConversionWorkspaceAsync(parent, conversionWorkspace, conversionWorkspaceId) + .get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_LocationnameConversionworkspaceString_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/SyncCreateConversionWorkspaceStringConversionworkspaceString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/SyncCreateConversionWorkspaceStringConversionworkspaceString.java new file mode 100644 index 000000000000..219bed5bebb6 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createconversionworkspace/SyncCreateConversionWorkspaceStringConversionworkspaceString.java @@ -0,0 +1,49 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_StringConversionworkspaceString_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; + +public class SyncCreateConversionWorkspaceStringConversionworkspaceString { + + public static void main(String[] args) throws Exception { + syncCreateConversionWorkspaceStringConversionworkspaceString(); + } + + public static void syncCreateConversionWorkspaceStringConversionworkspaceString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + ConversionWorkspace conversionWorkspace = ConversionWorkspace.newBuilder().build(); + String conversionWorkspaceId = "conversionWorkspaceId-928604774"; + ConversionWorkspace response = + dataMigrationServiceClient + .createConversionWorkspaceAsync(parent, conversionWorkspace, conversionWorkspaceId) + .get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_StringConversionworkspaceString_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/AsyncCreatePrivateConnection.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/AsyncCreatePrivateConnection.java new file mode 100644 index 000000000000..a91afba0eb71 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/AsyncCreatePrivateConnection.java @@ -0,0 +1,56 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.PrivateConnection; +import com.google.longrunning.Operation; + +public class AsyncCreatePrivateConnection { + + public static void main(String[] args) throws Exception { + asyncCreatePrivateConnection(); + } + + public static void asyncCreatePrivateConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreatePrivateConnectionRequest request = + CreatePrivateConnectionRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrivateConnectionId("privateConnectionId-1926654532") + .setPrivateConnection(PrivateConnection.newBuilder().build()) + .setRequestId("requestId693933066") + .setSkipValidation(true) + .build(); + ApiFuture future = + dataMigrationServiceClient.createPrivateConnectionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/AsyncCreatePrivateConnectionLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/AsyncCreatePrivateConnectionLRO.java new file mode 100644 index 000000000000..82b8b9ed2947 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/AsyncCreatePrivateConnectionLRO.java @@ -0,0 +1,56 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.PrivateConnection; + +public class AsyncCreatePrivateConnectionLRO { + + public static void main(String[] args) throws Exception { + asyncCreatePrivateConnectionLRO(); + } + + public static void asyncCreatePrivateConnectionLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreatePrivateConnectionRequest request = + CreatePrivateConnectionRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrivateConnectionId("privateConnectionId-1926654532") + .setPrivateConnection(PrivateConnection.newBuilder().build()) + .setRequestId("requestId693933066") + .setSkipValidation(true) + .build(); + OperationFuture future = + dataMigrationServiceClient.createPrivateConnectionOperationCallable().futureCall(request); + // Do something. + PrivateConnection response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_LRO_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/SyncCreatePrivateConnection.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/SyncCreatePrivateConnection.java new file mode 100644 index 000000000000..37b6bba319a5 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/SyncCreatePrivateConnection.java @@ -0,0 +1,52 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_sync] +import com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.PrivateConnection; + +public class SyncCreatePrivateConnection { + + public static void main(String[] args) throws Exception { + syncCreatePrivateConnection(); + } + + public static void syncCreatePrivateConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + CreatePrivateConnectionRequest request = + CreatePrivateConnectionRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrivateConnectionId("privateConnectionId-1926654532") + .setPrivateConnection(PrivateConnection.newBuilder().build()) + .setRequestId("requestId693933066") + .setSkipValidation(true) + .build(); + PrivateConnection response = + dataMigrationServiceClient.createPrivateConnectionAsync(request).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java new file mode 100644 index 000000000000..57602aa117e9 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java @@ -0,0 +1,49 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_LocationnamePrivateconnectionString_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.PrivateConnection; + +public class SyncCreatePrivateConnectionLocationnamePrivateconnectionString { + + public static void main(String[] args) throws Exception { + syncCreatePrivateConnectionLocationnamePrivateconnectionString(); + } + + public static void syncCreatePrivateConnectionLocationnamePrivateconnectionString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + String privateConnectionId = "privateConnectionId-1926654532"; + PrivateConnection response = + dataMigrationServiceClient + .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId) + .get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_LocationnamePrivateconnectionString_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java new file mode 100644 index 000000000000..dd8bcee40a2c --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java @@ -0,0 +1,48 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_StringPrivateconnectionString_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.PrivateConnection; + +public class SyncCreatePrivateConnectionStringPrivateconnectionString { + + public static void main(String[] args) throws Exception { + syncCreatePrivateConnectionStringPrivateconnectionString(); + } + + public static void syncCreatePrivateConnectionStringPrivateconnectionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + String privateConnectionId = "privateConnectionId-1926654532"; + PrivateConnection response = + dataMigrationServiceClient + .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId) + .get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_StringPrivateconnectionString_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspace.java new file mode 100644 index 000000000000..9c65f44c2dde --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspace.java @@ -0,0 +1,54 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteConversionWorkspace { + + public static void main(String[] args) throws Exception { + asyncDeleteConversionWorkspace(); + } + + public static void asyncDeleteConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeleteConversionWorkspaceRequest request = + DeleteConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataMigrationServiceClient.deleteConversionWorkspaceCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspaceLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspaceLRO.java new file mode 100644 index 000000000000..8cb87b2fe35f --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/AsyncDeleteConversionWorkspaceLRO.java @@ -0,0 +1,57 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteConversionWorkspaceLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteConversionWorkspaceLRO(); + } + + public static void asyncDeleteConversionWorkspaceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeleteConversionWorkspaceRequest request = + DeleteConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + dataMigrationServiceClient + .deleteConversionWorkspaceOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_LRO_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspace.java new file mode 100644 index 000000000000..bd7724af7de2 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspace.java @@ -0,0 +1,50 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteConversionWorkspace { + + public static void main(String[] args) throws Exception { + syncDeleteConversionWorkspace(); + } + + public static void syncDeleteConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeleteConversionWorkspaceRequest request = + DeleteConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + dataMigrationServiceClient.deleteConversionWorkspaceAsync(request).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspaceConversionworkspacename.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspaceConversionworkspacename.java new file mode 100644 index 000000000000..93974123554f --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspaceConversionworkspacename.java @@ -0,0 +1,44 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_Conversionworkspacename_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConversionWorkspaceConversionworkspacename { + + public static void main(String[] args) throws Exception { + syncDeleteConversionWorkspaceConversionworkspacename(); + } + + public static void syncDeleteConversionWorkspaceConversionworkspacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConversionWorkspaceName name = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"); + dataMigrationServiceClient.deleteConversionWorkspaceAsync(name).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_Conversionworkspacename_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspaceString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspaceString.java new file mode 100644 index 000000000000..2ef86f125230 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteconversionworkspace/SyncDeleteConversionWorkspaceString.java @@ -0,0 +1,45 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_String_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteConversionWorkspaceString { + + public static void main(String[] args) throws Exception { + syncDeleteConversionWorkspaceString(); + } + + public static void syncDeleteConversionWorkspaceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String name = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString(); + dataMigrationServiceClient.deleteConversionWorkspaceAsync(name).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_String_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/AsyncDeletePrivateConnection.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/AsyncDeletePrivateConnection.java new file mode 100644 index 000000000000..d9fb511c2f84 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/AsyncDeletePrivateConnection.java @@ -0,0 +1,54 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest; +import com.google.cloud.clouddms.v1.PrivateConnectionName; +import com.google.longrunning.Operation; + +public class AsyncDeletePrivateConnection { + + public static void main(String[] args) throws Exception { + asyncDeletePrivateConnection(); + } + + public static void asyncDeletePrivateConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataMigrationServiceClient.deletePrivateConnectionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java new file mode 100644 index 000000000000..44ef9130b1c8 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java @@ -0,0 +1,55 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.PrivateConnectionName; +import com.google.protobuf.Empty; + +public class AsyncDeletePrivateConnectionLRO { + + public static void main(String[] args) throws Exception { + asyncDeletePrivateConnectionLRO(); + } + + public static void asyncDeletePrivateConnectionLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + dataMigrationServiceClient.deletePrivateConnectionOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_LRO_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/SyncDeletePrivateConnection.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/SyncDeletePrivateConnection.java new file mode 100644 index 000000000000..827e87c64f0e --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/SyncDeletePrivateConnection.java @@ -0,0 +1,50 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest; +import com.google.cloud.clouddms.v1.PrivateConnectionName; +import com.google.protobuf.Empty; + +public class SyncDeletePrivateConnection { + + public static void main(String[] args) throws Exception { + syncDeletePrivateConnection(); + } + + public static void syncDeletePrivateConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + dataMigrationServiceClient.deletePrivateConnectionAsync(request).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java new file mode 100644 index 000000000000..a5f31c61e716 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java @@ -0,0 +1,44 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_Privateconnectionname_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.PrivateConnectionName; +import com.google.protobuf.Empty; + +public class SyncDeletePrivateConnectionPrivateconnectionname { + + public static void main(String[] args) throws Exception { + syncDeletePrivateConnectionPrivateconnectionname(); + } + + public static void syncDeletePrivateConnectionPrivateconnectionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + PrivateConnectionName name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + dataMigrationServiceClient.deletePrivateConnectionAsync(name).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_Privateconnectionname_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/SyncDeletePrivateConnectionString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/SyncDeletePrivateConnectionString.java new file mode 100644 index 000000000000..ef44ef9d8b6c --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/deleteprivateconnection/SyncDeletePrivateConnectionString.java @@ -0,0 +1,44 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_String_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.PrivateConnectionName; +import com.google.protobuf.Empty; + +public class SyncDeletePrivateConnectionString { + + public static void main(String[] args) throws Exception { + syncDeletePrivateConnectionString(); + } + + public static void syncDeletePrivateConnectionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); + dataMigrationServiceClient.deletePrivateConnectionAsync(name).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_String_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describeconversionworkspacerevisions/AsyncDescribeConversionWorkspaceRevisions.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describeconversionworkspacerevisions/AsyncDescribeConversionWorkspaceRevisions.java new file mode 100644 index 000000000000..cd4664d84708 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describeconversionworkspacerevisions/AsyncDescribeConversionWorkspaceRevisions.java @@ -0,0 +1,56 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DescribeConversionWorkspaceRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest; +import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse; + +public class AsyncDescribeConversionWorkspaceRevisions { + + public static void main(String[] args) throws Exception { + asyncDescribeConversionWorkspaceRevisions(); + } + + public static void asyncDescribeConversionWorkspaceRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DescribeConversionWorkspaceRevisionsRequest request = + DescribeConversionWorkspaceRevisionsRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setCommitId("commitId-602292046") + .build(); + ApiFuture future = + dataMigrationServiceClient + .describeConversionWorkspaceRevisionsCallable() + .futureCall(request); + // Do something. + DescribeConversionWorkspaceRevisionsResponse response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DescribeConversionWorkspaceRevisions_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describeconversionworkspacerevisions/SyncDescribeConversionWorkspaceRevisions.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describeconversionworkspacerevisions/SyncDescribeConversionWorkspaceRevisions.java new file mode 100644 index 000000000000..f7dfa258dbe0 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describeconversionworkspacerevisions/SyncDescribeConversionWorkspaceRevisions.java @@ -0,0 +1,51 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DescribeConversionWorkspaceRevisions_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest; +import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse; + +public class SyncDescribeConversionWorkspaceRevisions { + + public static void main(String[] args) throws Exception { + syncDescribeConversionWorkspaceRevisions(); + } + + public static void syncDescribeConversionWorkspaceRevisions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DescribeConversionWorkspaceRevisionsRequest request = + DescribeConversionWorkspaceRevisionsRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setCommitId("commitId-602292046") + .build(); + DescribeConversionWorkspaceRevisionsResponse response = + dataMigrationServiceClient.describeConversionWorkspaceRevisions(request); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DescribeConversionWorkspaceRevisions_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntities.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntities.java new file mode 100644 index 000000000000..d5c10958d9b5 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntities.java @@ -0,0 +1,60 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DescribeDatabaseEntities_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DatabaseEntity; +import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest; + +public class AsyncDescribeDatabaseEntities { + + public static void main(String[] args) throws Exception { + asyncDescribeDatabaseEntities(); + } + + public static void asyncDescribeDatabaseEntities() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DescribeDatabaseEntitiesRequest request = + DescribeDatabaseEntitiesRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setUncommitted(true) + .setCommitId("commitId-602292046") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataMigrationServiceClient.describeDatabaseEntitiesPagedCallable().futureCall(request); + // Do something. + for (DatabaseEntity element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DescribeDatabaseEntities_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntitiesPaged.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntitiesPaged.java new file mode 100644 index 000000000000..b8d3bf99cbcc --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/AsyncDescribeDatabaseEntitiesPaged.java @@ -0,0 +1,68 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DescribeDatabaseEntities_Paged_async] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DatabaseEntity; +import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest; +import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse; +import com.google.common.base.Strings; + +public class AsyncDescribeDatabaseEntitiesPaged { + + public static void main(String[] args) throws Exception { + asyncDescribeDatabaseEntitiesPaged(); + } + + public static void asyncDescribeDatabaseEntitiesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DescribeDatabaseEntitiesRequest request = + DescribeDatabaseEntitiesRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setUncommitted(true) + .setCommitId("commitId-602292046") + .setFilter("filter-1274492040") + .build(); + while (true) { + DescribeDatabaseEntitiesResponse response = + dataMigrationServiceClient.describeDatabaseEntitiesCallable().call(request); + for (DatabaseEntity element : response.getDatabaseEntitiesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DescribeDatabaseEntities_Paged_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/SyncDescribeDatabaseEntities.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/SyncDescribeDatabaseEntities.java new file mode 100644 index 000000000000..1f534700577b --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/describedatabaseentities/SyncDescribeDatabaseEntities.java @@ -0,0 +1,57 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_DescribeDatabaseEntities_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.DatabaseEntity; +import com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest; + +public class SyncDescribeDatabaseEntities { + + public static void main(String[] args) throws Exception { + syncDescribeDatabaseEntities(); + } + + public static void syncDescribeDatabaseEntities() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + DescribeDatabaseEntitiesRequest request = + DescribeDatabaseEntitiesRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setUncommitted(true) + .setCommitId("commitId-602292046") + .setFilter("filter-1274492040") + .build(); + for (DatabaseEntity element : + dataMigrationServiceClient.describeDatabaseEntities(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_DescribeDatabaseEntities_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/AsyncFetchStaticIps.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/AsyncFetchStaticIps.java new file mode 100644 index 000000000000..1e3d57fb68d3 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/AsyncFetchStaticIps.java @@ -0,0 +1,54 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_FetchStaticIps_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.FetchStaticIpsRequest; +import com.google.cloud.clouddms.v1.LocationName; + +public class AsyncFetchStaticIps { + + public static void main(String[] args) throws Exception { + asyncFetchStaticIps(); + } + + public static void asyncFetchStaticIps() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + FetchStaticIpsRequest request = + FetchStaticIpsRequest.newBuilder() + .setName(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dataMigrationServiceClient.fetchStaticIpsPagedCallable().futureCall(request); + // Do something. + for (String element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_FetchStaticIps_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/AsyncFetchStaticIpsPaged.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/AsyncFetchStaticIpsPaged.java new file mode 100644 index 000000000000..29417cc286c6 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/AsyncFetchStaticIpsPaged.java @@ -0,0 +1,62 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_FetchStaticIps_Paged_async] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.FetchStaticIpsRequest; +import com.google.cloud.clouddms.v1.FetchStaticIpsResponse; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncFetchStaticIpsPaged { + + public static void main(String[] args) throws Exception { + asyncFetchStaticIpsPaged(); + } + + public static void asyncFetchStaticIpsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + FetchStaticIpsRequest request = + FetchStaticIpsRequest.newBuilder() + .setName(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + FetchStaticIpsResponse response = + dataMigrationServiceClient.fetchStaticIpsCallable().call(request); + for (String element : response.getStaticIpsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_FetchStaticIps_Paged_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/SyncFetchStaticIps.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/SyncFetchStaticIps.java new file mode 100644 index 000000000000..29434e398844 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/SyncFetchStaticIps.java @@ -0,0 +1,50 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_FetchStaticIps_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.FetchStaticIpsRequest; +import com.google.cloud.clouddms.v1.LocationName; + +public class SyncFetchStaticIps { + + public static void main(String[] args) throws Exception { + syncFetchStaticIps(); + } + + public static void syncFetchStaticIps() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + FetchStaticIpsRequest request = + FetchStaticIpsRequest.newBuilder() + .setName(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (String element : dataMigrationServiceClient.fetchStaticIps(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_FetchStaticIps_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/SyncFetchStaticIpsLocationname.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/SyncFetchStaticIpsLocationname.java new file mode 100644 index 000000000000..d73a8551ee0b --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/SyncFetchStaticIpsLocationname.java @@ -0,0 +1,44 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_FetchStaticIps_Locationname_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; + +public class SyncFetchStaticIpsLocationname { + + public static void main(String[] args) throws Exception { + syncFetchStaticIpsLocationname(); + } + + public static void syncFetchStaticIpsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + LocationName name = LocationName.of("[PROJECT]", "[LOCATION]"); + for (String element : dataMigrationServiceClient.fetchStaticIps(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_FetchStaticIps_Locationname_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/SyncFetchStaticIpsString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/SyncFetchStaticIpsString.java new file mode 100644 index 000000000000..580c0768686f --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/fetchstaticips/SyncFetchStaticIpsString.java @@ -0,0 +1,44 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_FetchStaticIps_String_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; + +public class SyncFetchStaticIpsString { + + public static void main(String[] args) throws Exception { + syncFetchStaticIpsString(); + } + + public static void syncFetchStaticIpsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String name = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (String element : dataMigrationServiceClient.fetchStaticIps(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_FetchStaticIps_String_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getconversionworkspace/AsyncGetConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getconversionworkspace/AsyncGetConversionWorkspace.java new file mode 100644 index 000000000000..e7278be2664f --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getconversionworkspace/AsyncGetConversionWorkspace.java @@ -0,0 +1,53 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GetConversionWorkspace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest; + +public class AsyncGetConversionWorkspace { + + public static void main(String[] args) throws Exception { + asyncGetConversionWorkspace(); + } + + public static void asyncGetConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + GetConversionWorkspaceRequest request = + GetConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .build(); + ApiFuture future = + dataMigrationServiceClient.getConversionWorkspaceCallable().futureCall(request); + // Do something. + ConversionWorkspace response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GetConversionWorkspace_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getconversionworkspace/SyncGetConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getconversionworkspace/SyncGetConversionWorkspace.java new file mode 100644 index 000000000000..f1ea0313d684 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getconversionworkspace/SyncGetConversionWorkspace.java @@ -0,0 +1,49 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GetConversionWorkspace_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest; + +public class SyncGetConversionWorkspace { + + public static void main(String[] args) throws Exception { + syncGetConversionWorkspace(); + } + + public static void syncGetConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + GetConversionWorkspaceRequest request = + GetConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .build(); + ConversionWorkspace response = dataMigrationServiceClient.getConversionWorkspace(request); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GetConversionWorkspace_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getconversionworkspace/SyncGetConversionWorkspaceConversionworkspacename.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getconversionworkspace/SyncGetConversionWorkspaceConversionworkspacename.java new file mode 100644 index 000000000000..f8dac9701058 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getconversionworkspace/SyncGetConversionWorkspaceConversionworkspacename.java @@ -0,0 +1,44 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GetConversionWorkspace_Conversionworkspacename_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; + +public class SyncGetConversionWorkspaceConversionworkspacename { + + public static void main(String[] args) throws Exception { + syncGetConversionWorkspaceConversionworkspacename(); + } + + public static void syncGetConversionWorkspaceConversionworkspacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConversionWorkspaceName name = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]"); + ConversionWorkspace response = dataMigrationServiceClient.getConversionWorkspace(name); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GetConversionWorkspace_Conversionworkspacename_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getconversionworkspace/SyncGetConversionWorkspaceString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getconversionworkspace/SyncGetConversionWorkspaceString.java new file mode 100644 index 000000000000..966e7a90aa00 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getconversionworkspace/SyncGetConversionWorkspaceString.java @@ -0,0 +1,45 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GetConversionWorkspace_String_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; + +public class SyncGetConversionWorkspaceString { + + public static void main(String[] args) throws Exception { + syncGetConversionWorkspaceString(); + } + + public static void syncGetConversionWorkspaceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String name = + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString(); + ConversionWorkspace response = dataMigrationServiceClient.getConversionWorkspace(name); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GetConversionWorkspace_String_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getprivateconnection/AsyncGetPrivateConnection.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getprivateconnection/AsyncGetPrivateConnection.java new file mode 100644 index 000000000000..7ce8b5672e49 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getprivateconnection/AsyncGetPrivateConnection.java @@ -0,0 +1,53 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GetPrivateConnection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GetPrivateConnectionRequest; +import com.google.cloud.clouddms.v1.PrivateConnection; +import com.google.cloud.clouddms.v1.PrivateConnectionName; + +public class AsyncGetPrivateConnection { + + public static void main(String[] args) throws Exception { + asyncGetPrivateConnection(); + } + + public static void asyncGetPrivateConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + GetPrivateConnectionRequest request = + GetPrivateConnectionRequest.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .build(); + ApiFuture future = + dataMigrationServiceClient.getPrivateConnectionCallable().futureCall(request); + // Do something. + PrivateConnection response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GetPrivateConnection_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getprivateconnection/SyncGetPrivateConnection.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getprivateconnection/SyncGetPrivateConnection.java new file mode 100644 index 000000000000..dfd1faa87027 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getprivateconnection/SyncGetPrivateConnection.java @@ -0,0 +1,49 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GetPrivateConnection_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.GetPrivateConnectionRequest; +import com.google.cloud.clouddms.v1.PrivateConnection; +import com.google.cloud.clouddms.v1.PrivateConnectionName; + +public class SyncGetPrivateConnection { + + public static void main(String[] args) throws Exception { + syncGetPrivateConnection(); + } + + public static void syncGetPrivateConnection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + GetPrivateConnectionRequest request = + GetPrivateConnectionRequest.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .build(); + PrivateConnection response = dataMigrationServiceClient.getPrivateConnection(request); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GetPrivateConnection_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java new file mode 100644 index 000000000000..9bd69d5aafde --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java @@ -0,0 +1,44 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GetPrivateConnection_Privateconnectionname_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.PrivateConnection; +import com.google.cloud.clouddms.v1.PrivateConnectionName; + +public class SyncGetPrivateConnectionPrivateconnectionname { + + public static void main(String[] args) throws Exception { + syncGetPrivateConnectionPrivateconnectionname(); + } + + public static void syncGetPrivateConnectionPrivateconnectionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + PrivateConnectionName name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + PrivateConnection response = dataMigrationServiceClient.getPrivateConnection(name); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GetPrivateConnection_Privateconnectionname_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getprivateconnection/SyncGetPrivateConnectionString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getprivateconnection/SyncGetPrivateConnectionString.java new file mode 100644 index 000000000000..32d844409cbb --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/getprivateconnection/SyncGetPrivateConnectionString.java @@ -0,0 +1,44 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_GetPrivateConnection_String_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.PrivateConnection; +import com.google.cloud.clouddms.v1.PrivateConnectionName; + +public class SyncGetPrivateConnectionString { + + public static void main(String[] args) throws Exception { + syncGetPrivateConnectionString(); + } + + public static void syncGetPrivateConnectionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString(); + PrivateConnection response = dataMigrationServiceClient.getPrivateConnection(name); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_GetPrivateConnection_String_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/importmappingrules/AsyncImportMappingRules.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/importmappingrules/AsyncImportMappingRules.java new file mode 100644 index 000000000000..2e05b3d46ff7 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/importmappingrules/AsyncImportMappingRules.java @@ -0,0 +1,58 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ImportMappingRules_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ImportMappingRulesRequest; +import com.google.cloud.clouddms.v1.ImportRulesFileFormat; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncImportMappingRules { + + public static void main(String[] args) throws Exception { + asyncImportMappingRules(); + } + + public static void asyncImportMappingRules() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ImportMappingRulesRequest request = + ImportMappingRulesRequest.newBuilder() + .setParent( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setRulesFormat(ImportRulesFileFormat.forNumber(0)) + .addAllRulesFiles(new ArrayList()) + .setAutoCommit(true) + .build(); + ApiFuture future = + dataMigrationServiceClient.importMappingRulesCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ImportMappingRules_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/importmappingrules/AsyncImportMappingRulesLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/importmappingrules/AsyncImportMappingRulesLRO.java new file mode 100644 index 000000000000..d8e839b38bbe --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/importmappingrules/AsyncImportMappingRulesLRO.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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ImportMappingRules_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ImportMappingRulesRequest; +import com.google.cloud.clouddms.v1.ImportRulesFileFormat; +import com.google.cloud.clouddms.v1.OperationMetadata; +import java.util.ArrayList; + +public class AsyncImportMappingRulesLRO { + + public static void main(String[] args) throws Exception { + asyncImportMappingRulesLRO(); + } + + public static void asyncImportMappingRulesLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ImportMappingRulesRequest request = + ImportMappingRulesRequest.newBuilder() + .setParent( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setRulesFormat(ImportRulesFileFormat.forNumber(0)) + .addAllRulesFiles(new ArrayList()) + .setAutoCommit(true) + .build(); + OperationFuture future = + dataMigrationServiceClient.importMappingRulesOperationCallable().futureCall(request); + // Do something. + ConversionWorkspace response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ImportMappingRules_LRO_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/importmappingrules/SyncImportMappingRules.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/importmappingrules/SyncImportMappingRules.java new file mode 100644 index 000000000000..9b9517ac46a0 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/importmappingrules/SyncImportMappingRules.java @@ -0,0 +1,55 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ImportMappingRules_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ImportMappingRulesRequest; +import com.google.cloud.clouddms.v1.ImportRulesFileFormat; +import java.util.ArrayList; + +public class SyncImportMappingRules { + + public static void main(String[] args) throws Exception { + syncImportMappingRules(); + } + + public static void syncImportMappingRules() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ImportMappingRulesRequest request = + ImportMappingRulesRequest.newBuilder() + .setParent( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setRulesFormat(ImportRulesFileFormat.forNumber(0)) + .addAllRulesFiles(new ArrayList()) + .setAutoCommit(true) + .build(); + ConversionWorkspace response = + dataMigrationServiceClient.importMappingRulesAsync(request).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ImportMappingRules_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/AsyncListConversionWorkspaces.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/AsyncListConversionWorkspaces.java new file mode 100644 index 000000000000..f5dfc45af3e3 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/AsyncListConversionWorkspaces.java @@ -0,0 +1,56 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest; +import com.google.cloud.clouddms.v1.LocationName; + +public class AsyncListConversionWorkspaces { + + public static void main(String[] args) throws Exception { + asyncListConversionWorkspaces(); + } + + public static void asyncListConversionWorkspaces() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ListConversionWorkspacesRequest request = + ListConversionWorkspacesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataMigrationServiceClient.listConversionWorkspacesPagedCallable().futureCall(request); + // Do something. + for (ConversionWorkspace element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/AsyncListConversionWorkspacesPaged.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/AsyncListConversionWorkspacesPaged.java new file mode 100644 index 000000000000..5be864e7d240 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/AsyncListConversionWorkspacesPaged.java @@ -0,0 +1,64 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_Paged_async] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest; +import com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListConversionWorkspacesPaged { + + public static void main(String[] args) throws Exception { + asyncListConversionWorkspacesPaged(); + } + + public static void asyncListConversionWorkspacesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ListConversionWorkspacesRequest request = + ListConversionWorkspacesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListConversionWorkspacesResponse response = + dataMigrationServiceClient.listConversionWorkspacesCallable().call(request); + for (ConversionWorkspace element : response.getConversionWorkspacesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_Paged_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/SyncListConversionWorkspaces.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/SyncListConversionWorkspaces.java new file mode 100644 index 000000000000..8a0c1c9baddc --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/SyncListConversionWorkspaces.java @@ -0,0 +1,53 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest; +import com.google.cloud.clouddms.v1.LocationName; + +public class SyncListConversionWorkspaces { + + public static void main(String[] args) throws Exception { + syncListConversionWorkspaces(); + } + + public static void syncListConversionWorkspaces() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ListConversionWorkspacesRequest request = + ListConversionWorkspacesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (ConversionWorkspace element : + dataMigrationServiceClient.listConversionWorkspaces(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/SyncListConversionWorkspacesLocationname.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/SyncListConversionWorkspacesLocationname.java new file mode 100644 index 000000000000..5f75b7d4198c --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/SyncListConversionWorkspacesLocationname.java @@ -0,0 +1,46 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_Locationname_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; + +public class SyncListConversionWorkspacesLocationname { + + public static void main(String[] args) throws Exception { + syncListConversionWorkspacesLocationname(); + } + + public static void syncListConversionWorkspacesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (ConversionWorkspace element : + dataMigrationServiceClient.listConversionWorkspaces(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_Locationname_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/SyncListConversionWorkspacesString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/SyncListConversionWorkspacesString.java new file mode 100644 index 000000000000..24b3c9515b9d --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listconversionworkspaces/SyncListConversionWorkspacesString.java @@ -0,0 +1,46 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_String_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; + +public class SyncListConversionWorkspacesString { + + public static void main(String[] args) throws Exception { + syncListConversionWorkspacesString(); + } + + public static void syncListConversionWorkspacesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (ConversionWorkspace element : + dataMigrationServiceClient.listConversionWorkspaces(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_String_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/AsyncListPrivateConnections.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/AsyncListPrivateConnections.java new file mode 100644 index 000000000000..41dca25f30be --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/AsyncListPrivateConnections.java @@ -0,0 +1,57 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListPrivateConnections_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.PrivateConnection; + +public class AsyncListPrivateConnections { + + public static void main(String[] args) throws Exception { + asyncListPrivateConnections(); + } + + public static void asyncListPrivateConnections() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + dataMigrationServiceClient.listPrivateConnectionsPagedCallable().futureCall(request); + // Do something. + for (PrivateConnection element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListPrivateConnections_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/AsyncListPrivateConnectionsPaged.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/AsyncListPrivateConnectionsPaged.java new file mode 100644 index 000000000000..e7a674344e41 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/AsyncListPrivateConnectionsPaged.java @@ -0,0 +1,65 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListPrivateConnections_Paged_async] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest; +import com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.PrivateConnection; +import com.google.common.base.Strings; + +public class AsyncListPrivateConnectionsPaged { + + public static void main(String[] args) throws Exception { + asyncListPrivateConnectionsPaged(); + } + + public static void asyncListPrivateConnectionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListPrivateConnectionsResponse response = + dataMigrationServiceClient.listPrivateConnectionsCallable().call(request); + for (PrivateConnection element : response.getPrivateConnectionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListPrivateConnections_Paged_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/SyncListPrivateConnections.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/SyncListPrivateConnections.java new file mode 100644 index 000000000000..f9d3e8be5980 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/SyncListPrivateConnections.java @@ -0,0 +1,54 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListPrivateConnections_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.PrivateConnection; + +public class SyncListPrivateConnections { + + public static void main(String[] args) throws Exception { + syncListPrivateConnections(); + } + + public static void syncListPrivateConnections() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (PrivateConnection element : + dataMigrationServiceClient.listPrivateConnections(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListPrivateConnections_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/SyncListPrivateConnectionsLocationname.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/SyncListPrivateConnectionsLocationname.java new file mode 100644 index 000000000000..b52a551826e1 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/SyncListPrivateConnectionsLocationname.java @@ -0,0 +1,46 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListPrivateConnections_Locationname_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.PrivateConnection; + +public class SyncListPrivateConnectionsLocationname { + + public static void main(String[] args) throws Exception { + syncListPrivateConnectionsLocationname(); + } + + public static void syncListPrivateConnectionsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (PrivateConnection element : + dataMigrationServiceClient.listPrivateConnections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListPrivateConnections_Locationname_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/SyncListPrivateConnectionsString.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/SyncListPrivateConnectionsString.java new file mode 100644 index 000000000000..dd5937512f76 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/listprivateconnections/SyncListPrivateConnectionsString.java @@ -0,0 +1,46 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_ListPrivateConnections_String_sync] +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.LocationName; +import com.google.cloud.clouddms.v1.PrivateConnection; + +public class SyncListPrivateConnectionsString { + + public static void main(String[] args) throws Exception { + syncListPrivateConnectionsString(); + } + + public static void syncListPrivateConnectionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (PrivateConnection element : + dataMigrationServiceClient.listPrivateConnections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datamigration_v1_generated_DataMigrationService_ListPrivateConnections_String_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/rollbackconversionworkspace/AsyncRollbackConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/rollbackconversionworkspace/AsyncRollbackConversionWorkspace.java new file mode 100644 index 000000000000..29c75005e5f8 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/rollbackconversionworkspace/AsyncRollbackConversionWorkspace.java @@ -0,0 +1,53 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_RollbackConversionWorkspace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest; +import com.google.longrunning.Operation; + +public class AsyncRollbackConversionWorkspace { + + public static void main(String[] args) throws Exception { + asyncRollbackConversionWorkspace(); + } + + public static void asyncRollbackConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + RollbackConversionWorkspaceRequest request = + RollbackConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .build(); + ApiFuture future = + dataMigrationServiceClient.rollbackConversionWorkspaceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_RollbackConversionWorkspace_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/rollbackconversionworkspace/AsyncRollbackConversionWorkspaceLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/rollbackconversionworkspace/AsyncRollbackConversionWorkspaceLRO.java new file mode 100644 index 000000000000..e283556cc79e --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/rollbackconversionworkspace/AsyncRollbackConversionWorkspaceLRO.java @@ -0,0 +1,56 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_RollbackConversionWorkspace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest; + +public class AsyncRollbackConversionWorkspaceLRO { + + public static void main(String[] args) throws Exception { + asyncRollbackConversionWorkspaceLRO(); + } + + public static void asyncRollbackConversionWorkspaceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + RollbackConversionWorkspaceRequest request = + RollbackConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .build(); + OperationFuture future = + dataMigrationServiceClient + .rollbackConversionWorkspaceOperationCallable() + .futureCall(request); + // Do something. + ConversionWorkspace response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_RollbackConversionWorkspace_LRO_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/rollbackconversionworkspace/SyncRollbackConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/rollbackconversionworkspace/SyncRollbackConversionWorkspace.java new file mode 100644 index 000000000000..d073f74f9c28 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/rollbackconversionworkspace/SyncRollbackConversionWorkspace.java @@ -0,0 +1,50 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_RollbackConversionWorkspace_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest; + +public class SyncRollbackConversionWorkspace { + + public static void main(String[] args) throws Exception { + syncRollbackConversionWorkspace(); + } + + public static void syncRollbackConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + RollbackConversionWorkspaceRequest request = + RollbackConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .build(); + ConversionWorkspace response = + dataMigrationServiceClient.rollbackConversionWorkspaceAsync(request).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_RollbackConversionWorkspace_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/searchbackgroundjobs/AsyncSearchBackgroundJobs.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/searchbackgroundjobs/AsyncSearchBackgroundJobs.java new file mode 100644 index 000000000000..67c27e4a0cfe --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/searchbackgroundjobs/AsyncSearchBackgroundJobs.java @@ -0,0 +1,57 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_SearchBackgroundJobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest; +import com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse; +import com.google.protobuf.Timestamp; + +public class AsyncSearchBackgroundJobs { + + public static void main(String[] args) throws Exception { + asyncSearchBackgroundJobs(); + } + + public static void asyncSearchBackgroundJobs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + SearchBackgroundJobsRequest request = + SearchBackgroundJobsRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setReturnMostRecentPerJobType(true) + .setMaxSize(408072700) + .setCompletedUntilTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + dataMigrationServiceClient.searchBackgroundJobsCallable().futureCall(request); + // Do something. + SearchBackgroundJobsResponse response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_SearchBackgroundJobs_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/searchbackgroundjobs/SyncSearchBackgroundJobs.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/searchbackgroundjobs/SyncSearchBackgroundJobs.java new file mode 100644 index 000000000000..363d638d15aa --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/searchbackgroundjobs/SyncSearchBackgroundJobs.java @@ -0,0 +1,54 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_SearchBackgroundJobs_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.SearchBackgroundJobsRequest; +import com.google.cloud.clouddms.v1.SearchBackgroundJobsResponse; +import com.google.protobuf.Timestamp; + +public class SyncSearchBackgroundJobs { + + public static void main(String[] args) throws Exception { + syncSearchBackgroundJobs(); + } + + public static void syncSearchBackgroundJobs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + SearchBackgroundJobsRequest request = + SearchBackgroundJobsRequest.newBuilder() + .setConversionWorkspace( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setReturnMostRecentPerJobType(true) + .setMaxSize(408072700) + .setCompletedUntilTime(Timestamp.newBuilder().build()) + .build(); + SearchBackgroundJobsResponse response = + dataMigrationServiceClient.searchBackgroundJobs(request); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_SearchBackgroundJobs_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/seedconversionworkspace/AsyncSeedConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/seedconversionworkspace/AsyncSeedConversionWorkspace.java new file mode 100644 index 000000000000..20bacb53e846 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/seedconversionworkspace/AsyncSeedConversionWorkspace.java @@ -0,0 +1,54 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_SeedConversionWorkspace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest; +import com.google.longrunning.Operation; + +public class AsyncSeedConversionWorkspace { + + public static void main(String[] args) throws Exception { + asyncSeedConversionWorkspace(); + } + + public static void asyncSeedConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + SeedConversionWorkspaceRequest request = + SeedConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setAutoCommit(true) + .build(); + ApiFuture future = + dataMigrationServiceClient.seedConversionWorkspaceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_SeedConversionWorkspace_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/seedconversionworkspace/AsyncSeedConversionWorkspaceLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/seedconversionworkspace/AsyncSeedConversionWorkspaceLRO.java new file mode 100644 index 000000000000..ad3ecac9ad98 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/seedconversionworkspace/AsyncSeedConversionWorkspaceLRO.java @@ -0,0 +1,55 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_SeedConversionWorkspace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest; + +public class AsyncSeedConversionWorkspaceLRO { + + public static void main(String[] args) throws Exception { + asyncSeedConversionWorkspaceLRO(); + } + + public static void asyncSeedConversionWorkspaceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + SeedConversionWorkspaceRequest request = + SeedConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setAutoCommit(true) + .build(); + OperationFuture future = + dataMigrationServiceClient.seedConversionWorkspaceOperationCallable().futureCall(request); + // Do something. + ConversionWorkspace response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_SeedConversionWorkspace_LRO_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/seedconversionworkspace/SyncSeedConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/seedconversionworkspace/SyncSeedConversionWorkspace.java new file mode 100644 index 000000000000..4b738dad5436 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/seedconversionworkspace/SyncSeedConversionWorkspace.java @@ -0,0 +1,51 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_SeedConversionWorkspace_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.ConversionWorkspaceName; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest; + +public class SyncSeedConversionWorkspace { + + public static void main(String[] args) throws Exception { + syncSeedConversionWorkspace(); + } + + public static void syncSeedConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + SeedConversionWorkspaceRequest request = + SeedConversionWorkspaceRequest.newBuilder() + .setName( + ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]") + .toString()) + .setAutoCommit(true) + .build(); + ConversionWorkspace response = + dataMigrationServiceClient.seedConversionWorkspaceAsync(request).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_SeedConversionWorkspace_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconnectionprofile/AsyncUpdateConnectionProfile.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconnectionprofile/AsyncUpdateConnectionProfile.java index c1d4d498af6f..08c8e3d03eec 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconnectionprofile/AsyncUpdateConnectionProfile.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconnectionprofile/AsyncUpdateConnectionProfile.java @@ -43,6 +43,8 @@ public static void asyncUpdateConnectionProfile() throws Exception { .setUpdateMask(FieldMask.newBuilder().build()) .setConnectionProfile(ConnectionProfile.newBuilder().build()) .setRequestId("requestId693933066") + .setValidateOnly(true) + .setSkipValidation(true) .build(); ApiFuture future = dataMigrationServiceClient.updateConnectionProfileCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java index 826cd9a3d684..6a30679674ec 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java @@ -43,6 +43,8 @@ public static void asyncUpdateConnectionProfileLRO() throws Exception { .setUpdateMask(FieldMask.newBuilder().build()) .setConnectionProfile(ConnectionProfile.newBuilder().build()) .setRequestId("requestId693933066") + .setValidateOnly(true) + .setSkipValidation(true) .build(); OperationFuture future = dataMigrationServiceClient.updateConnectionProfileOperationCallable().futureCall(request); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconnectionprofile/SyncUpdateConnectionProfile.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconnectionprofile/SyncUpdateConnectionProfile.java index 119958f73e8f..02c510c68bd1 100644 --- a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconnectionprofile/SyncUpdateConnectionProfile.java +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconnectionprofile/SyncUpdateConnectionProfile.java @@ -41,6 +41,8 @@ public static void syncUpdateConnectionProfile() throws Exception { .setUpdateMask(FieldMask.newBuilder().build()) .setConnectionProfile(ConnectionProfile.newBuilder().build()) .setRequestId("requestId693933066") + .setValidateOnly(true) + .setSkipValidation(true) .build(); ConnectionProfile response = dataMigrationServiceClient.updateConnectionProfileAsync(request).get(); diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconversionworkspace/AsyncUpdateConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconversionworkspace/AsyncUpdateConversionWorkspace.java new file mode 100644 index 000000000000..32d5b13c811f --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconversionworkspace/AsyncUpdateConversionWorkspace.java @@ -0,0 +1,54 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateConversionWorkspace { + + public static void main(String[] args) throws Exception { + asyncUpdateConversionWorkspace(); + } + + public static void asyncUpdateConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + UpdateConversionWorkspaceRequest request = + UpdateConversionWorkspaceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspace.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataMigrationServiceClient.updateConversionWorkspaceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconversionworkspace/AsyncUpdateConversionWorkspaceLRO.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconversionworkspace/AsyncUpdateConversionWorkspaceLRO.java new file mode 100644 index 000000000000..c2408fb43075 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconversionworkspace/AsyncUpdateConversionWorkspaceLRO.java @@ -0,0 +1,56 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.OperationMetadata; +import com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateConversionWorkspaceLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateConversionWorkspaceLRO(); + } + + public static void asyncUpdateConversionWorkspaceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + UpdateConversionWorkspaceRequest request = + UpdateConversionWorkspaceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspace.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + dataMigrationServiceClient + .updateConversionWorkspaceOperationCallable() + .futureCall(request); + // Do something. + ConversionWorkspace response = future.get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_LRO_async] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconversionworkspace/SyncUpdateConversionWorkspace.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconversionworkspace/SyncUpdateConversionWorkspace.java new file mode 100644 index 000000000000..efa91e6e1a71 --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconversionworkspace/SyncUpdateConversionWorkspace.java @@ -0,0 +1,50 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateConversionWorkspace { + + public static void main(String[] args) throws Exception { + syncUpdateConversionWorkspace(); + } + + public static void syncUpdateConversionWorkspace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + UpdateConversionWorkspaceRequest request = + UpdateConversionWorkspaceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setConversionWorkspace(ConversionWorkspace.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ConversionWorkspace response = + dataMigrationServiceClient.updateConversionWorkspaceAsync(request).get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_sync] diff --git a/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconversionworkspace/SyncUpdateConversionWorkspaceConversionworkspaceFieldmask.java b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconversionworkspace/SyncUpdateConversionWorkspaceConversionworkspaceFieldmask.java new file mode 100644 index 000000000000..3d31553f35ab --- /dev/null +++ b/java-dms/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservice/updateconversionworkspace/SyncUpdateConversionWorkspaceConversionworkspaceFieldmask.java @@ -0,0 +1,47 @@ +/* + * 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.clouddms.v1.samples; + +// [START datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_ConversionworkspaceFieldmask_sync] +import com.google.cloud.clouddms.v1.ConversionWorkspace; +import com.google.cloud.clouddms.v1.DataMigrationServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateConversionWorkspaceConversionworkspaceFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateConversionWorkspaceConversionworkspaceFieldmask(); + } + + public static void syncUpdateConversionWorkspaceConversionworkspaceFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataMigrationServiceClient dataMigrationServiceClient = + DataMigrationServiceClient.create()) { + ConversionWorkspace conversionWorkspace = ConversionWorkspace.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ConversionWorkspace response = + dataMigrationServiceClient + .updateConversionWorkspaceAsync(conversionWorkspace, updateMask) + .get(); + } + } +} +// [END datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_ConversionworkspaceFieldmask_sync]