deleteConversionWorkspace
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Imports a snapshot of the source database into the conversion workspace.
+ * Creates a new mapping rule for a given conversion workspace.
*
* Sample code:
*
@@ -3811,29 +3885,36 @@ public final OperationFuture deleteConversionWorkspace
* // 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();
+ * ConversionWorkspaceName parent =
+ * ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
+ * MappingRule mappingRule = MappingRule.newBuilder().build();
+ * String mappingRuleId = "mappingRuleId-900824155";
+ * MappingRule response =
+ * dataMigrationServiceClient.createMappingRule(parent, mappingRule, mappingRuleId);
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param parent Required. The parent which owns this collection of mapping rules.
+ * @param mappingRule Required. Represents a [mapping rule]
+ * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+ * object.
+ * @param mappingRuleId Required. The ID of the rule to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationFuture seedConversionWorkspaceAsync(
- SeedConversionWorkspaceRequest request) {
- return seedConversionWorkspaceOperationCallable().futureCall(request);
+ public final MappingRule createMappingRule(
+ ConversionWorkspaceName parent, MappingRule mappingRule, String mappingRuleId) {
+ CreateMappingRuleRequest request =
+ CreateMappingRuleRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setMappingRule(mappingRule)
+ .setMappingRuleId(mappingRuleId)
+ .build();
+ return createMappingRule(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Imports a snapshot of the source database into the conversion workspace.
+ * Creates a new mapping rule for a given conversion workspace.
*
* Sample code:
*
@@ -3845,29 +3926,37 @@ public final OperationFuture seedConvers
* // 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();
+ * String parent =
+ * ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+ * .toString();
+ * MappingRule mappingRule = MappingRule.newBuilder().build();
+ * String mappingRuleId = "mappingRuleId-900824155";
+ * MappingRule response =
+ * dataMigrationServiceClient.createMappingRule(parent, mappingRule, mappingRuleId);
* }
* }
+ *
+ * @param parent Required. The parent which owns this collection of mapping rules.
+ * @param mappingRule Required. Represents a [mapping rule]
+ * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
+ * object.
+ * @param mappingRuleId Required. The ID of the rule to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationCallable<
- SeedConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata>
- seedConversionWorkspaceOperationCallable() {
- return stub.seedConversionWorkspaceOperationCallable();
+ public final MappingRule createMappingRule(
+ String parent, MappingRule mappingRule, String mappingRuleId) {
+ CreateMappingRuleRequest request =
+ CreateMappingRuleRequest.newBuilder()
+ .setParent(parent)
+ .setMappingRule(mappingRule)
+ .setMappingRuleId(mappingRuleId)
+ .build();
+ return createMappingRule(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Imports a snapshot of the source database into the conversion workspace.
+ * Creates a new mapping rule for a given conversion workspace.
*
* Sample code:
*
@@ -3879,29 +3968,29 @@ public final OperationFuture seedConvers
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataMigrationServiceClient dataMigrationServiceClient =
* DataMigrationServiceClient.create()) {
- * SeedConversionWorkspaceRequest request =
- * SeedConversionWorkspaceRequest.newBuilder()
- * .setName(
+ * CreateMappingRuleRequest request =
+ * CreateMappingRuleRequest.newBuilder()
+ * .setParent(
* ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
* .toString())
- * .setAutoCommit(true)
+ * .setMappingRuleId("mappingRuleId-900824155")
+ * .setMappingRule(MappingRule.newBuilder().build())
+ * .setRequestId("requestId693933066")
* .build();
- * ApiFuture future =
- * dataMigrationServiceClient.seedConversionWorkspaceCallable().futureCall(request);
- * // Do something.
- * Operation response = future.get();
+ * MappingRule response = dataMigrationServiceClient.createMappingRule(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 UnaryCallable
- seedConversionWorkspaceCallable() {
- return stub.seedConversionWorkspaceCallable();
+ public final MappingRule createMappingRule(CreateMappingRuleRequest request) {
+ return createMappingRuleCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Imports the mapping rules for a given conversion workspace. Supports various formats of
- * external rules files.
+ * Creates a new mapping rule for a given conversion workspace.
*
* Sample code:
*
@@ -3913,32 +4002,29 @@ public final OperationFuture seedConvers
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataMigrationServiceClient dataMigrationServiceClient =
* DataMigrationServiceClient.create()) {
- * ImportMappingRulesRequest request =
- * ImportMappingRulesRequest.newBuilder()
+ * CreateMappingRuleRequest request =
+ * CreateMappingRuleRequest.newBuilder()
* .setParent(
* ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
* .toString())
- * .setRulesFormat(ImportRulesFileFormat.forNumber(0))
- * .addAllRulesFiles(new ArrayList())
- * .setAutoCommit(true)
+ * .setMappingRuleId("mappingRuleId-900824155")
+ * .setMappingRule(MappingRule.newBuilder().build())
+ * .setRequestId("requestId693933066")
* .build();
- * ConversionWorkspace response =
- * dataMigrationServiceClient.importMappingRulesAsync(request).get();
+ * ApiFuture future =
+ * dataMigrationServiceClient.createMappingRuleCallable().futureCall(request);
+ * // Do something.
+ * MappingRule response = future.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);
+ public final UnaryCallable createMappingRuleCallable() {
+ return stub.createMappingRuleCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Imports the mapping rules for a given conversion workspace. Supports various formats of
- * external rules files.
+ * Deletes a single mapping rule.
*
* Sample code:
*
@@ -3950,31 +4036,26 @@ public final OperationFuture importMappi
* // 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();
+ * ConversionWorkspaceName name =
+ * ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
+ * dataMigrationServiceClient.deleteMappingRule(name);
* }
* }
+ *
+ * @param name Required. Name of the mapping rule resource to delete.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationCallable
- importMappingRulesOperationCallable() {
- return stub.importMappingRulesOperationCallable();
+ public final void deleteMappingRule(ConversionWorkspaceName name) {
+ DeleteMappingRuleRequest request =
+ DeleteMappingRuleRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteMappingRule(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Imports the mapping rules for a given conversion workspace. Supports various formats of
- * external rules files.
+ * Deletes a single mapping rule.
*
* Sample code:
*
@@ -3986,29 +4067,24 @@ public final OperationFuture importMappi
* // 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();
+ * String name =
+ * ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+ * .toString();
+ * dataMigrationServiceClient.deleteMappingRule(name);
* }
* }
+ *
+ * @param name Required. Name of the mapping rule resource to delete.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable importMappingRulesCallable() {
- return stub.importMappingRulesCallable();
+ public final void deleteMappingRule(String name) {
+ DeleteMappingRuleRequest request = DeleteMappingRuleRequest.newBuilder().setName(name).build();
+ deleteMappingRule(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a draft tree schema for the destination database.
+ * Deletes a single mapping rule.
*
* Sample code:
*
@@ -4020,30 +4096,27 @@ public final UnaryCallable importMappingRu
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataMigrationServiceClient dataMigrationServiceClient =
* DataMigrationServiceClient.create()) {
- * ConvertConversionWorkspaceRequest request =
- * ConvertConversionWorkspaceRequest.newBuilder()
+ * DeleteMappingRuleRequest request =
+ * DeleteMappingRuleRequest.newBuilder()
* .setName(
* ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
* .toString())
- * .setAutoCommit(true)
- * .setFilter("filter-1274492040")
+ * .setRequestId("requestId693933066")
* .build();
- * ConversionWorkspace response =
- * dataMigrationServiceClient.convertConversionWorkspaceAsync(request).get();
+ * dataMigrationServiceClient.deleteMappingRule(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 OperationFuture
- convertConversionWorkspaceAsync(ConvertConversionWorkspaceRequest request) {
- return convertConversionWorkspaceOperationCallable().futureCall(request);
+ public final void deleteMappingRule(DeleteMappingRuleRequest request) {
+ deleteMappingRuleCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a draft tree schema for the destination database.
+ * Deletes a single mapping rule.
*
* Sample code:
*
@@ -4055,32 +4128,27 @@ public final UnaryCallable importMappingRu
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataMigrationServiceClient dataMigrationServiceClient =
* DataMigrationServiceClient.create()) {
- * ConvertConversionWorkspaceRequest request =
- * ConvertConversionWorkspaceRequest.newBuilder()
+ * DeleteMappingRuleRequest request =
+ * DeleteMappingRuleRequest.newBuilder()
* .setName(
* ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
* .toString())
- * .setAutoCommit(true)
- * .setFilter("filter-1274492040")
+ * .setRequestId("requestId693933066")
* .build();
- * OperationFuture future =
- * dataMigrationServiceClient
- * .convertConversionWorkspaceOperationCallable()
- * .futureCall(request);
+ * ApiFuture future =
+ * dataMigrationServiceClient.deleteMappingRuleCallable().futureCall(request);
* // Do something.
- * ConversionWorkspace response = future.get();
+ * future.get();
* }
* }
*/
- public final OperationCallable<
- ConvertConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata>
- convertConversionWorkspaceOperationCallable() {
- return stub.convertConversionWorkspaceOperationCallable();
+ public final UnaryCallable deleteMappingRuleCallable() {
+ return stub.deleteMappingRuleCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a draft tree schema for the destination database.
+ * Lists the mapping rules for a specific conversion workspace.
*
* Sample code:
*
@@ -4092,29 +4160,30 @@ public final UnaryCallable importMappingRu
* // 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();
+ * ConversionWorkspaceName parent =
+ * ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
+ * for (MappingRule element : dataMigrationServiceClient.listMappingRules(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
+ *
+ * @param parent Required. Name of the conversion workspace resource whose mapping rules are
+ * listed in the form of:
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable
- convertConversionWorkspaceCallable() {
- return stub.convertConversionWorkspaceCallable();
+ public final ListMappingRulesPagedResponse listMappingRules(ConversionWorkspaceName parent) {
+ ListMappingRulesRequest request =
+ ListMappingRulesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listMappingRules(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Marks all the data in the conversion workspace as committed.
+ * Lists the mapping rules for a specific conversion workspace.
*
* Sample code:
*
@@ -4126,11 +4195,608 @@ public final UnaryCallable importMappingRu
* // 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())
+ * String parent =
+ * ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+ * .toString();
+ * for (MappingRule element : dataMigrationServiceClient.listMappingRules(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Name of the conversion workspace resource whose mapping rules are
+ * listed in the form of:
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMappingRulesPagedResponse listMappingRules(String parent) {
+ ListMappingRulesRequest request =
+ ListMappingRulesRequest.newBuilder().setParent(parent).build();
+ return listMappingRules(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the mapping rules for 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()) {
+ * ListMappingRulesRequest request =
+ * ListMappingRulesRequest.newBuilder()
+ * .setParent(
+ * ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (MappingRule element :
+ * dataMigrationServiceClient.listMappingRules(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 ListMappingRulesPagedResponse listMappingRules(ListMappingRulesRequest request) {
+ return listMappingRulesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the mapping rules for 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()) {
+ * ListMappingRulesRequest request =
+ * ListMappingRulesRequest.newBuilder()
+ * .setParent(
+ * ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * dataMigrationServiceClient.listMappingRulesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (MappingRule element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listMappingRulesPagedCallable() {
+ return stub.listMappingRulesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the mapping rules for 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()) {
+ * ListMappingRulesRequest request =
+ * ListMappingRulesRequest.newBuilder()
+ * .setParent(
+ * ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListMappingRulesResponse response =
+ * dataMigrationServiceClient.listMappingRulesCallable().call(request);
+ * for (MappingRule element : response.getMappingRulesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listMappingRulesCallable() {
+ return stub.listMappingRulesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a mapping rule.
+ *
+ * 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()) {
+ * MappingRuleName name =
+ * MappingRuleName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]");
+ * MappingRule response = dataMigrationServiceClient.getMappingRule(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the mapping rule resource to get. Example:
+ * conversionWorkspaces/123/mappingRules/rule123
+ * In order to retrieve a previous revision of the mapping rule, also provide the revision
+ * ID. Example:
+ * conversionWorkspace/123/mappingRules/rule123{@literal @}c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MappingRule getMappingRule(MappingRuleName name) {
+ GetMappingRuleRequest request =
+ GetMappingRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getMappingRule(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a mapping rule.
+ *
+ *
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 =
+ * MappingRuleName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]")
+ * .toString();
+ * MappingRule response = dataMigrationServiceClient.getMappingRule(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the mapping rule resource to get. Example:
+ * conversionWorkspaces/123/mappingRules/rule123
+ * In order to retrieve a previous revision of the mapping rule, also provide the revision
+ * ID. Example:
+ * conversionWorkspace/123/mappingRules/rule123{@literal @}c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MappingRule getMappingRule(String name) {
+ GetMappingRuleRequest request = GetMappingRuleRequest.newBuilder().setName(name).build();
+ return getMappingRule(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a mapping rule.
+ *
+ *
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()) {
+ * GetMappingRuleRequest request =
+ * GetMappingRuleRequest.newBuilder()
+ * .setName(
+ * MappingRuleName.of(
+ * "[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]")
+ * .toString())
+ * .build();
+ * MappingRule response = dataMigrationServiceClient.getMappingRule(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 MappingRule getMappingRule(GetMappingRuleRequest request) {
+ return getMappingRuleCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a mapping rule.
+ *
+ * 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()) {
+ * GetMappingRuleRequest request =
+ * GetMappingRuleRequest.newBuilder()
+ * .setName(
+ * MappingRuleName.of(
+ * "[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * dataMigrationServiceClient.getMappingRuleCallable().futureCall(request);
+ * // Do something.
+ * MappingRule response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getMappingRuleCallable() {
+ return stub.getMappingRuleCallable();
+ }
+
+ // 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")
+ * .setConvertFullPath(true)
+ * .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")
+ * .setConvertFullPath(true)
+ * .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")
+ * .setConvertFullPath(true)
+ * .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 =
@@ -4335,6 +5001,8 @@ public final UnaryCallable importMappingRu
* ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
* .toString())
* .setFilter("filter-1274492040")
+ * .setDryRun(true)
+ * .setAutoCommit(true)
* .build();
* ConversionWorkspace response =
* dataMigrationServiceClient.applyConversionWorkspaceAsync(request).get();
@@ -4369,6 +5037,8 @@ public final UnaryCallable importMappingRu
* ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
* .toString())
* .setFilter("filter-1274492040")
+ * .setDryRun(true)
+ * .setAutoCommit(true)
* .build();
* OperationFuture future =
* dataMigrationServiceClient
@@ -4405,6 +5075,8 @@ public final UnaryCallable importMappingRu
* ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
* .toString())
* .setFilter("filter-1274492040")
+ * .setDryRun(true)
+ * .setAutoCommit(true)
* .build();
* ApiFuture future =
* dataMigrationServiceClient.applyConversionWorkspaceCallable().futureCall(request);
@@ -4447,6 +5119,7 @@ public final UnaryCallable importMappingRu
* .setUncommitted(true)
* .setCommitId("commitId-602292046")
* .setFilter("filter-1274492040")
+ * .setView(DatabaseEntityView.forNumber(0))
* .build();
* for (DatabaseEntity element :
* dataMigrationServiceClient.describeDatabaseEntities(request).iterateAll()) {
@@ -4492,6 +5165,7 @@ public final DescribeDatabaseEntitiesPagedResponse describeDatabaseEntities(
* .setUncommitted(true)
* .setCommitId("commitId-602292046")
* .setFilter("filter-1274492040")
+ * .setView(DatabaseEntityView.forNumber(0))
* .build();
* ApiFuture future =
* dataMigrationServiceClient.describeDatabaseEntitiesPagedCallable().futureCall(request);
@@ -4536,6 +5210,7 @@ public final DescribeDatabaseEntitiesPagedResponse describeDatabaseEntities(
* .setUncommitted(true)
* .setCommitId("commitId-602292046")
* .setFilter("filter-1274492040")
+ * .setView(DatabaseEntityView.forNumber(0))
* .build();
* while (true) {
* DescribeDatabaseEntitiesResponse response =
@@ -5263,6 +5938,83 @@ protected ListConversionWorkspacesFixedSizeCollection createCollection(
}
}
+ public static class ListMappingRulesPagedResponse
+ extends AbstractPagedListResponse<
+ ListMappingRulesRequest,
+ ListMappingRulesResponse,
+ MappingRule,
+ ListMappingRulesPage,
+ ListMappingRulesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListMappingRulesPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListMappingRulesPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListMappingRulesPagedResponse(ListMappingRulesPage page) {
+ super(page, ListMappingRulesFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListMappingRulesPage
+ extends AbstractPage<
+ ListMappingRulesRequest, ListMappingRulesResponse, MappingRule, ListMappingRulesPage> {
+
+ private ListMappingRulesPage(
+ PageContext context,
+ ListMappingRulesResponse response) {
+ super(context, response);
+ }
+
+ private static ListMappingRulesPage createEmptyPage() {
+ return new ListMappingRulesPage(null, null);
+ }
+
+ @Override
+ protected ListMappingRulesPage createPage(
+ PageContext context,
+ ListMappingRulesResponse response) {
+ return new ListMappingRulesPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListMappingRulesFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListMappingRulesRequest,
+ ListMappingRulesResponse,
+ MappingRule,
+ ListMappingRulesPage,
+ ListMappingRulesFixedSizeCollection> {
+
+ private ListMappingRulesFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListMappingRulesFixedSizeCollection createEmptyCollection() {
+ return new ListMappingRulesFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListMappingRulesFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListMappingRulesFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
public static class DescribeDatabaseEntitiesPagedResponse
extends AbstractPagedListResponse<
DescribeDatabaseEntitiesRequest,
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 a0414715a306..57bd7d213aae 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
@@ -20,6 +20,7 @@
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.ListMappingRulesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse;
@@ -208,6 +209,12 @@ public UnaryCallSettings generateSshScriptS
return ((DataMigrationServiceStubSettings) getStubSettings()).generateSshScriptSettings();
}
+ /** Returns the object with the settings used for calls to generateTcpProxyScript. */
+ public UnaryCallSettings
+ generateTcpProxyScriptSettings() {
+ return ((DataMigrationServiceStubSettings) getStubSettings()).generateTcpProxyScriptSettings();
+ }
+
/** Returns the object with the settings used for calls to listConnectionProfiles. */
public PagedCallSettings<
ListConnectionProfilesRequest,
@@ -363,6 +370,28 @@ public UnaryCallSettings generateSshScriptS
.deleteConversionWorkspaceOperationSettings();
}
+ /** Returns the object with the settings used for calls to createMappingRule. */
+ public UnaryCallSettings createMappingRuleSettings() {
+ return ((DataMigrationServiceStubSettings) getStubSettings()).createMappingRuleSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteMappingRule. */
+ public UnaryCallSettings deleteMappingRuleSettings() {
+ return ((DataMigrationServiceStubSettings) getStubSettings()).deleteMappingRuleSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listMappingRules. */
+ public PagedCallSettings<
+ ListMappingRulesRequest, ListMappingRulesResponse, ListMappingRulesPagedResponse>
+ listMappingRulesSettings() {
+ return ((DataMigrationServiceStubSettings) getStubSettings()).listMappingRulesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getMappingRule. */
+ public UnaryCallSettings getMappingRuleSettings() {
+ return ((DataMigrationServiceStubSettings) getStubSettings()).getMappingRuleSettings();
+ }
+
/** Returns the object with the settings used for calls to seedConversionWorkspace. */
public UnaryCallSettings
seedConversionWorkspaceSettings() {
@@ -709,6 +738,12 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().generateSshScriptSettings();
}
+ /** Returns the builder for the settings used for calls to generateTcpProxyScript. */
+ public UnaryCallSettings.Builder
+ generateTcpProxyScriptSettings() {
+ return getStubSettingsBuilder().generateTcpProxyScriptSettings();
+ }
+
/** Returns the builder for the settings used for calls to listConnectionProfiles. */
public PagedCallSettings.Builder<
ListConnectionProfilesRequest,
@@ -855,6 +890,29 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().deleteConversionWorkspaceOperationSettings();
}
+ /** Returns the builder for the settings used for calls to createMappingRule. */
+ public UnaryCallSettings.Builder
+ createMappingRuleSettings() {
+ return getStubSettingsBuilder().createMappingRuleSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteMappingRule. */
+ public UnaryCallSettings.Builder deleteMappingRuleSettings() {
+ return getStubSettingsBuilder().deleteMappingRuleSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listMappingRules. */
+ public PagedCallSettings.Builder<
+ ListMappingRulesRequest, ListMappingRulesResponse, ListMappingRulesPagedResponse>
+ listMappingRulesSettings() {
+ return getStubSettingsBuilder().listMappingRulesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getMappingRule. */
+ public UnaryCallSettings.Builder getMappingRuleSettings() {
+ return getStubSettingsBuilder().getMappingRuleSettings();
+ }
+
/** Returns the builder for the settings used for calls to seedConversionWorkspace. */
public UnaryCallSettings.Builder
seedConversionWorkspaceSettings() {
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 7195fc8fc75e..961bd2f307d9 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
@@ -25,6 +25,9 @@
"CreateConversionWorkspace": {
"methods": ["createConversionWorkspaceAsync", "createConversionWorkspaceAsync", "createConversionWorkspaceAsync", "createConversionWorkspaceOperationCallable", "createConversionWorkspaceCallable"]
},
+ "CreateMappingRule": {
+ "methods": ["createMappingRule", "createMappingRule", "createMappingRule", "createMappingRuleCallable"]
+ },
"CreateMigrationJob": {
"methods": ["createMigrationJobAsync", "createMigrationJobAsync", "createMigrationJobAsync", "createMigrationJobOperationCallable", "createMigrationJobCallable"]
},
@@ -37,6 +40,9 @@
"DeleteConversionWorkspace": {
"methods": ["deleteConversionWorkspaceAsync", "deleteConversionWorkspaceAsync", "deleteConversionWorkspaceAsync", "deleteConversionWorkspaceOperationCallable", "deleteConversionWorkspaceCallable"]
},
+ "DeleteMappingRule": {
+ "methods": ["deleteMappingRule", "deleteMappingRule", "deleteMappingRule", "deleteMappingRuleCallable"]
+ },
"DeleteMigrationJob": {
"methods": ["deleteMigrationJobAsync", "deleteMigrationJobAsync", "deleteMigrationJobAsync", "deleteMigrationJobOperationCallable", "deleteMigrationJobCallable"]
},
@@ -55,12 +61,18 @@
"GenerateSshScript": {
"methods": ["generateSshScript", "generateSshScriptCallable"]
},
+ "GenerateTcpProxyScript": {
+ "methods": ["generateTcpProxyScript", "generateTcpProxyScriptCallable"]
+ },
"GetConnectionProfile": {
"methods": ["getConnectionProfile", "getConnectionProfile", "getConnectionProfile", "getConnectionProfileCallable"]
},
"GetConversionWorkspace": {
"methods": ["getConversionWorkspace", "getConversionWorkspace", "getConversionWorkspace", "getConversionWorkspaceCallable"]
},
+ "GetMappingRule": {
+ "methods": ["getMappingRule", "getMappingRule", "getMappingRule", "getMappingRuleCallable"]
+ },
"GetMigrationJob": {
"methods": ["getMigrationJob", "getMigrationJob", "getMigrationJob", "getMigrationJobCallable"]
},
@@ -76,6 +88,9 @@
"ListConversionWorkspaces": {
"methods": ["listConversionWorkspaces", "listConversionWorkspaces", "listConversionWorkspaces", "listConversionWorkspacesPagedCallable", "listConversionWorkspacesCallable"]
},
+ "ListMappingRules": {
+ "methods": ["listMappingRules", "listMappingRules", "listMappingRules", "listMappingRulesPagedCallable", "listMappingRulesCallable"]
+ },
"ListMigrationJobs": {
"methods": ["listMigrationJobs", "listMigrationJobs", "listMigrationJobs", "listMigrationJobsPagedCallable", "listMigrationJobsCallable"]
},
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 83d7f920d4db..f533d7c3729e 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
@@ -20,6 +20,7 @@
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.ListMappingRulesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse;
@@ -33,10 +34,12 @@
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.CreateMappingRuleRequest;
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.DeleteMappingRuleRequest;
import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest;
import com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest;
import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest;
@@ -46,8 +49,10 @@
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.GenerateTcpProxyScriptRequest;
import com.google.cloud.clouddms.v1.GetConnectionProfileRequest;
import com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest;
+import com.google.cloud.clouddms.v1.GetMappingRuleRequest;
import com.google.cloud.clouddms.v1.GetMigrationJobRequest;
import com.google.cloud.clouddms.v1.GetPrivateConnectionRequest;
import com.google.cloud.clouddms.v1.ImportMappingRulesRequest;
@@ -55,10 +60,13 @@
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.ListMappingRulesRequest;
+import com.google.cloud.clouddms.v1.ListMappingRulesResponse;
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.MappingRule;
import com.google.cloud.clouddms.v1.MigrationJob;
import com.google.cloud.clouddms.v1.OperationMetadata;
import com.google.cloud.clouddms.v1.PrivateConnection;
@@ -72,6 +80,7 @@
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.TcpProxyScript;
import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest;
import com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest;
@@ -201,6 +210,11 @@ public UnaryCallable generateSshScriptCalla
throw new UnsupportedOperationException("Not implemented: generateSshScriptCallable()");
}
+ public UnaryCallable
+ generateTcpProxyScriptCallable() {
+ throw new UnsupportedOperationException("Not implemented: generateTcpProxyScriptCallable()");
+ }
+
public UnaryCallable
listConnectionProfilesPagedCallable() {
throw new UnsupportedOperationException(
@@ -337,6 +351,28 @@ public UnaryCallable generateSshScriptCalla
throw new UnsupportedOperationException("Not implemented: deleteConversionWorkspaceCallable()");
}
+ public UnaryCallable createMappingRuleCallable() {
+ throw new UnsupportedOperationException("Not implemented: createMappingRuleCallable()");
+ }
+
+ public UnaryCallable deleteMappingRuleCallable() {
+ throw new UnsupportedOperationException("Not implemented: deleteMappingRuleCallable()");
+ }
+
+ public UnaryCallable
+ listMappingRulesPagedCallable() {
+ throw new UnsupportedOperationException("Not implemented: listMappingRulesPagedCallable()");
+ }
+
+ public UnaryCallable
+ listMappingRulesCallable() {
+ throw new UnsupportedOperationException("Not implemented: listMappingRulesCallable()");
+ }
+
+ public UnaryCallable getMappingRuleCallable() {
+ throw new UnsupportedOperationException("Not implemented: getMappingRuleCallable()");
+ }
+
public OperationCallable
seedConversionWorkspaceOperationCallable() {
throw new UnsupportedOperationException(
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 2944b73124cf..45f540b0c058 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
@@ -20,6 +20,7 @@
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.ListMappingRulesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse;
@@ -56,11 +57,13 @@
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.CreateMappingRuleRequest;
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.DeleteMappingRuleRequest;
import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest;
import com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest;
import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest;
@@ -70,8 +73,10 @@
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.GenerateTcpProxyScriptRequest;
import com.google.cloud.clouddms.v1.GetConnectionProfileRequest;
import com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest;
+import com.google.cloud.clouddms.v1.GetMappingRuleRequest;
import com.google.cloud.clouddms.v1.GetMigrationJobRequest;
import com.google.cloud.clouddms.v1.GetPrivateConnectionRequest;
import com.google.cloud.clouddms.v1.ImportMappingRulesRequest;
@@ -79,10 +84,13 @@
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.ListMappingRulesRequest;
+import com.google.cloud.clouddms.v1.ListMappingRulesResponse;
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.MappingRule;
import com.google.cloud.clouddms.v1.MigrationJob;
import com.google.cloud.clouddms.v1.OperationMetadata;
import com.google.cloud.clouddms.v1.PrivateConnection;
@@ -96,6 +104,7 @@
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.TcpProxyScript;
import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest;
import com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest;
@@ -190,6 +199,8 @@ public class DataMigrationServiceStubSettings
private final OperationCallSettings
restartMigrationJobOperationSettings;
private final UnaryCallSettings generateSshScriptSettings;
+ private final UnaryCallSettings
+ generateTcpProxyScriptSettings;
private final PagedCallSettings<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
@@ -248,6 +259,12 @@ public class DataMigrationServiceStubSettings
deleteConversionWorkspaceSettings;
private final OperationCallSettings
deleteConversionWorkspaceOperationSettings;
+ private final UnaryCallSettings createMappingRuleSettings;
+ private final UnaryCallSettings deleteMappingRuleSettings;
+ private final PagedCallSettings<
+ ListMappingRulesRequest, ListMappingRulesResponse, ListMappingRulesPagedResponse>
+ listMappingRulesSettings;
+ private final UnaryCallSettings getMappingRuleSettings;
private final UnaryCallSettings
seedConversionWorkspaceSettings;
private final OperationCallSettings<
@@ -464,6 +481,46 @@ public Iterable extractResources(
}
};
+ private static final PagedListDescriptor<
+ ListMappingRulesRequest, ListMappingRulesResponse, MappingRule>
+ LIST_MAPPING_RULES_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListMappingRulesRequest, ListMappingRulesResponse, MappingRule>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListMappingRulesRequest injectToken(
+ ListMappingRulesRequest payload, String token) {
+ return ListMappingRulesRequest.newBuilder(payload).setPageToken(token).build();
+ }
+
+ @Override
+ public ListMappingRulesRequest injectPageSize(
+ ListMappingRulesRequest payload, int pageSize) {
+ return ListMappingRulesRequest.newBuilder(payload).setPageSize(pageSize).build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListMappingRulesRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListMappingRulesResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(ListMappingRulesResponse payload) {
+ return payload.getMappingRulesList() == null
+ ? ImmutableList.of()
+ : payload.getMappingRulesList();
+ }
+ };
+
private static final PagedListDescriptor<
DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesResponse, DatabaseEntity>
DESCRIBE_DATABASE_ENTITIES_PAGE_STR_DESC =
@@ -648,6 +705,25 @@ public ApiFuture getFuturePagedResponse(
}
};
+ private static final PagedListResponseFactory<
+ ListMappingRulesRequest, ListMappingRulesResponse, ListMappingRulesPagedResponse>
+ LIST_MAPPING_RULES_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListMappingRulesRequest, ListMappingRulesResponse, ListMappingRulesPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable callable,
+ ListMappingRulesRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext
+ pageContext =
+ PageContext.create(
+ callable, LIST_MAPPING_RULES_PAGE_STR_DESC, request, context);
+ return ListMappingRulesPagedResponse.createAsync(pageContext, futureResponse);
+ }
+ };
+
private static final PagedListResponseFactory<
DescribeDatabaseEntitiesRequest,
DescribeDatabaseEntitiesResponse,
@@ -808,6 +884,12 @@ public UnaryCallSettings generateSshScriptS
return generateSshScriptSettings;
}
+ /** Returns the object with the settings used for calls to generateTcpProxyScript. */
+ public UnaryCallSettings
+ generateTcpProxyScriptSettings() {
+ return generateTcpProxyScriptSettings;
+ }
+
/** Returns the object with the settings used for calls to listConnectionProfiles. */
public PagedCallSettings<
ListConnectionProfilesRequest,
@@ -951,6 +1033,28 @@ public UnaryCallSettings generateSshScriptS
return deleteConversionWorkspaceOperationSettings;
}
+ /** Returns the object with the settings used for calls to createMappingRule. */
+ public UnaryCallSettings createMappingRuleSettings() {
+ return createMappingRuleSettings;
+ }
+
+ /** Returns the object with the settings used for calls to deleteMappingRule. */
+ public UnaryCallSettings deleteMappingRuleSettings() {
+ return deleteMappingRuleSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listMappingRules. */
+ public PagedCallSettings<
+ ListMappingRulesRequest, ListMappingRulesResponse, ListMappingRulesPagedResponse>
+ listMappingRulesSettings() {
+ return listMappingRulesSettings;
+ }
+
+ /** Returns the object with the settings used for calls to getMappingRule. */
+ public UnaryCallSettings getMappingRuleSettings() {
+ return getMappingRuleSettings;
+ }
+
/** Returns the object with the settings used for calls to seedConversionWorkspace. */
public UnaryCallSettings
seedConversionWorkspaceSettings() {
@@ -1162,6 +1266,7 @@ protected DataMigrationServiceStubSettings(Builder settingsBuilder) throws IOExc
restartMigrationJobOperationSettings =
settingsBuilder.restartMigrationJobOperationSettings().build();
generateSshScriptSettings = settingsBuilder.generateSshScriptSettings().build();
+ generateTcpProxyScriptSettings = settingsBuilder.generateTcpProxyScriptSettings().build();
listConnectionProfilesSettings = settingsBuilder.listConnectionProfilesSettings().build();
getConnectionProfileSettings = settingsBuilder.getConnectionProfileSettings().build();
createConnectionProfileSettings = settingsBuilder.createConnectionProfileSettings().build();
@@ -1192,6 +1297,10 @@ protected DataMigrationServiceStubSettings(Builder settingsBuilder) throws IOExc
deleteConversionWorkspaceSettings = settingsBuilder.deleteConversionWorkspaceSettings().build();
deleteConversionWorkspaceOperationSettings =
settingsBuilder.deleteConversionWorkspaceOperationSettings().build();
+ createMappingRuleSettings = settingsBuilder.createMappingRuleSettings().build();
+ deleteMappingRuleSettings = settingsBuilder.deleteMappingRuleSettings().build();
+ listMappingRulesSettings = settingsBuilder.listMappingRulesSettings().build();
+ getMappingRuleSettings = settingsBuilder.getMappingRuleSettings().build();
seedConversionWorkspaceSettings = settingsBuilder.seedConversionWorkspaceSettings().build();
seedConversionWorkspaceOperationSettings =
settingsBuilder.seedConversionWorkspaceOperationSettings().build();
@@ -1274,6 +1383,8 @@ public static class Builder
restartMigrationJobOperationSettings;
private final UnaryCallSettings.Builder
generateSshScriptSettings;
+ private final UnaryCallSettings.Builder
+ generateTcpProxyScriptSettings;
private final PagedCallSettings.Builder<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
@@ -1335,6 +1446,15 @@ public static class Builder
private final OperationCallSettings.Builder<
DeleteConversionWorkspaceRequest, Empty, OperationMetadata>
deleteConversionWorkspaceOperationSettings;
+ private final UnaryCallSettings.Builder
+ createMappingRuleSettings;
+ private final UnaryCallSettings.Builder
+ deleteMappingRuleSettings;
+ private final PagedCallSettings.Builder<
+ ListMappingRulesRequest, ListMappingRulesResponse, ListMappingRulesPagedResponse>
+ listMappingRulesSettings;
+ private final UnaryCallSettings.Builder
+ getMappingRuleSettings;
private final UnaryCallSettings.Builder
seedConversionWorkspaceSettings;
private final OperationCallSettings.Builder<
@@ -1388,6 +1508,9 @@ public static class Builder
ImmutableMap.builder();
definitions.put(
"no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList()));
+ definitions.put(
+ "retry_policy_0_codes",
+ ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE)));
RETRYABLE_CODE_DEFINITIONS = definitions.build();
}
@@ -1404,6 +1527,17 @@ public static class Builder
.setTotalTimeout(Duration.ofMillis(60000L))
.build();
definitions.put("no_retry_1_params", settings);
+ settings =
+ RetrySettings.newBuilder()
+ .setInitialRetryDelay(Duration.ofMillis(1000L))
+ .setRetryDelayMultiplier(1.3)
+ .setMaxRetryDelay(Duration.ofMillis(10000L))
+ .setInitialRpcTimeout(Duration.ofMillis(60000L))
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ofMillis(60000L))
+ .setTotalTimeout(Duration.ofMillis(60000L))
+ .build();
+ definitions.put("retry_policy_0_params", settings);
RETRY_PARAM_DEFINITIONS = definitions.build();
}
@@ -1435,6 +1569,7 @@ protected Builder(ClientContext clientContext) {
restartMigrationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
restartMigrationJobOperationSettings = OperationCallSettings.newBuilder();
generateSshScriptSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ generateTcpProxyScriptSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
listConnectionProfilesSettings =
PagedCallSettings.newBuilder(LIST_CONNECTION_PROFILES_PAGE_STR_FACT);
getConnectionProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -1460,6 +1595,10 @@ protected Builder(ClientContext clientContext) {
updateConversionWorkspaceOperationSettings = OperationCallSettings.newBuilder();
deleteConversionWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
deleteConversionWorkspaceOperationSettings = OperationCallSettings.newBuilder();
+ createMappingRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ deleteMappingRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listMappingRulesSettings = PagedCallSettings.newBuilder(LIST_MAPPING_RULES_PAGE_STR_FACT);
+ getMappingRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
seedConversionWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
seedConversionWorkspaceOperationSettings = OperationCallSettings.newBuilder();
importMappingRulesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -1493,6 +1632,7 @@ protected Builder(ClientContext clientContext) {
verifyMigrationJobSettings,
restartMigrationJobSettings,
generateSshScriptSettings,
+ generateTcpProxyScriptSettings,
listConnectionProfilesSettings,
getConnectionProfileSettings,
createConnectionProfileSettings,
@@ -1507,6 +1647,10 @@ protected Builder(ClientContext clientContext) {
createConversionWorkspaceSettings,
updateConversionWorkspaceSettings,
deleteConversionWorkspaceSettings,
+ createMappingRuleSettings,
+ deleteMappingRuleSettings,
+ listMappingRulesSettings,
+ getMappingRuleSettings,
seedConversionWorkspaceSettings,
importMappingRulesSettings,
convertConversionWorkspaceSettings,
@@ -1551,6 +1695,7 @@ protected Builder(DataMigrationServiceStubSettings settings) {
restartMigrationJobOperationSettings =
settings.restartMigrationJobOperationSettings.toBuilder();
generateSshScriptSettings = settings.generateSshScriptSettings.toBuilder();
+ generateTcpProxyScriptSettings = settings.generateTcpProxyScriptSettings.toBuilder();
listConnectionProfilesSettings = settings.listConnectionProfilesSettings.toBuilder();
getConnectionProfileSettings = settings.getConnectionProfileSettings.toBuilder();
createConnectionProfileSettings = settings.createConnectionProfileSettings.toBuilder();
@@ -1581,6 +1726,10 @@ protected Builder(DataMigrationServiceStubSettings settings) {
deleteConversionWorkspaceSettings = settings.deleteConversionWorkspaceSettings.toBuilder();
deleteConversionWorkspaceOperationSettings =
settings.deleteConversionWorkspaceOperationSettings.toBuilder();
+ createMappingRuleSettings = settings.createMappingRuleSettings.toBuilder();
+ deleteMappingRuleSettings = settings.deleteMappingRuleSettings.toBuilder();
+ listMappingRulesSettings = settings.listMappingRulesSettings.toBuilder();
+ getMappingRuleSettings = settings.getMappingRuleSettings.toBuilder();
seedConversionWorkspaceSettings = settings.seedConversionWorkspaceSettings.toBuilder();
seedConversionWorkspaceOperationSettings =
settings.seedConversionWorkspaceOperationSettings.toBuilder();
@@ -1620,6 +1769,7 @@ protected Builder(DataMigrationServiceStubSettings settings) {
verifyMigrationJobSettings,
restartMigrationJobSettings,
generateSshScriptSettings,
+ generateTcpProxyScriptSettings,
listConnectionProfilesSettings,
getConnectionProfileSettings,
createConnectionProfileSettings,
@@ -1634,6 +1784,10 @@ protected Builder(DataMigrationServiceStubSettings settings) {
createConversionWorkspaceSettings,
updateConversionWorkspaceSettings,
deleteConversionWorkspaceSettings,
+ createMappingRuleSettings,
+ deleteMappingRuleSettings,
+ listMappingRulesSettings,
+ getMappingRuleSettings,
seedConversionWorkspaceSettings,
importMappingRulesSettings,
convertConversionWorkspaceSettings,
@@ -1720,6 +1874,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+ builder
+ .generateTcpProxyScriptSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
builder
.listConnectionProfilesSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
@@ -1790,6 +1949,26 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+ builder
+ .createMappingRuleSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .deleteMappingRuleSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .listMappingRulesSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .getMappingRuleSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
builder
.seedConversionWorkspaceSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
@@ -2563,6 +2742,12 @@ public Builder applyToAllUnaryMethods(
return generateSshScriptSettings;
}
+ /** Returns the builder for the settings used for calls to generateTcpProxyScript. */
+ public UnaryCallSettings.Builder
+ generateTcpProxyScriptSettings() {
+ return generateTcpProxyScriptSettings;
+ }
+
/** Returns the builder for the settings used for calls to listConnectionProfiles. */
public PagedCallSettings.Builder<
ListConnectionProfilesRequest,
@@ -2725,6 +2910,29 @@ public Builder applyToAllUnaryMethods(
return deleteConversionWorkspaceOperationSettings;
}
+ /** Returns the builder for the settings used for calls to createMappingRule. */
+ public UnaryCallSettings.Builder
+ createMappingRuleSettings() {
+ return createMappingRuleSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to deleteMappingRule. */
+ public UnaryCallSettings.Builder deleteMappingRuleSettings() {
+ return deleteMappingRuleSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listMappingRules. */
+ public PagedCallSettings.Builder<
+ ListMappingRulesRequest, ListMappingRulesResponse, ListMappingRulesPagedResponse>
+ listMappingRulesSettings() {
+ return listMappingRulesSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to getMappingRule. */
+ public UnaryCallSettings.Builder getMappingRuleSettings() {
+ return getMappingRuleSettings;
+ }
+
/** Returns the builder for the settings used for calls to seedConversionWorkspace. */
public UnaryCallSettings.Builder
seedConversionWorkspaceSettings() {
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 7266f6d7a97c..b76de7b28c52 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
@@ -20,6 +20,7 @@
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.ListMappingRulesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse;
@@ -38,10 +39,12 @@
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.CreateMappingRuleRequest;
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.DeleteMappingRuleRequest;
import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest;
import com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest;
import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest;
@@ -51,8 +54,10 @@
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.GenerateTcpProxyScriptRequest;
import com.google.cloud.clouddms.v1.GetConnectionProfileRequest;
import com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest;
+import com.google.cloud.clouddms.v1.GetMappingRuleRequest;
import com.google.cloud.clouddms.v1.GetMigrationJobRequest;
import com.google.cloud.clouddms.v1.GetPrivateConnectionRequest;
import com.google.cloud.clouddms.v1.ImportMappingRulesRequest;
@@ -60,10 +65,13 @@
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.ListMappingRulesRequest;
+import com.google.cloud.clouddms.v1.ListMappingRulesResponse;
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.MappingRule;
import com.google.cloud.clouddms.v1.MigrationJob;
import com.google.cloud.clouddms.v1.OperationMetadata;
import com.google.cloud.clouddms.v1.PrivateConnection;
@@ -77,6 +85,7 @@
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.TcpProxyScript;
import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest;
import com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest;
@@ -221,6 +230,17 @@ public class GrpcDataMigrationServiceStub extends DataMigrationServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(SshScript.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ generateTcpProxyScriptMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.clouddms.v1.DataMigrationService/GenerateTcpProxyScript")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GenerateTcpProxyScriptRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(TcpProxyScript.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor<
ListConnectionProfilesRequest, ListConnectionProfilesResponse>
listConnectionProfilesMethodDescriptor =
@@ -385,6 +405,47 @@ public class GrpcDataMigrationServiceStub extends DataMigrationServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ createMappingRuleMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/CreateMappingRule")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateMappingRuleRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(MappingRule.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ deleteMappingRuleMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/DeleteMappingRule")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteMappingRuleRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ listMappingRulesMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/ListMappingRules")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListMappingRulesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListMappingRulesResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ getMappingRuleMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.clouddms.v1.DataMigrationService/GetMappingRule")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetMappingRuleRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(MappingRule.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
seedConversionWorkspaceMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -538,6 +599,8 @@ public class GrpcDataMigrationServiceStub extends DataMigrationServiceStub {
private final OperationCallable
restartMigrationJobOperationCallable;
private final UnaryCallable generateSshScriptCallable;
+ private final UnaryCallable
+ generateTcpProxyScriptCallable;
private final UnaryCallable
listConnectionProfilesCallable;
private final UnaryCallable
@@ -594,6 +657,13 @@ public class GrpcDataMigrationServiceStub extends DataMigrationServiceStub {
deleteConversionWorkspaceCallable;
private final OperationCallable
deleteConversionWorkspaceOperationCallable;
+ private final UnaryCallable createMappingRuleCallable;
+ private final UnaryCallable deleteMappingRuleCallable;
+ private final UnaryCallable
+ listMappingRulesCallable;
+ private final UnaryCallable
+ listMappingRulesPagedCallable;
+ private final UnaryCallable getMappingRuleCallable;
private final UnaryCallable
seedConversionWorkspaceCallable;
private final OperationCallable<
@@ -802,6 +872,17 @@ protected GrpcDataMigrationServiceStub(
return builder.build();
})
.build();
+ GrpcCallSettings
+ generateTcpProxyScriptTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(generateTcpProxyScriptMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("migration_job", String.valueOf(request.getMigrationJob()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings
listConnectionProfilesTransportSettings =
GrpcCallSettings
@@ -963,6 +1044,47 @@ protected GrpcDataMigrationServiceStub(
return builder.build();
})
.build();
+ GrpcCallSettings createMappingRuleTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createMappingRuleMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings deleteMappingRuleTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deleteMappingRuleMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ listMappingRulesTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(listMappingRulesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings getMappingRuleTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getMappingRuleMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings
seedConversionWorkspaceTransportSettings =
GrpcCallSettings.newBuilder()
@@ -1197,6 +1319,11 @@ protected GrpcDataMigrationServiceStub(
generateSshScriptTransportSettings,
settings.generateSshScriptSettings(),
clientContext);
+ this.generateTcpProxyScriptCallable =
+ callableFactory.createUnaryCallable(
+ generateTcpProxyScriptTransportSettings,
+ settings.generateTcpProxyScriptSettings(),
+ clientContext);
this.listConnectionProfilesCallable =
callableFactory.createUnaryCallable(
listConnectionProfilesTransportSettings,
@@ -1330,6 +1457,25 @@ protected GrpcDataMigrationServiceStub(
settings.deleteConversionWorkspaceOperationSettings(),
clientContext,
operationsStub);
+ this.createMappingRuleCallable =
+ callableFactory.createUnaryCallable(
+ createMappingRuleTransportSettings,
+ settings.createMappingRuleSettings(),
+ clientContext);
+ this.deleteMappingRuleCallable =
+ callableFactory.createUnaryCallable(
+ deleteMappingRuleTransportSettings,
+ settings.deleteMappingRuleSettings(),
+ clientContext);
+ this.listMappingRulesCallable =
+ callableFactory.createUnaryCallable(
+ listMappingRulesTransportSettings, settings.listMappingRulesSettings(), clientContext);
+ this.listMappingRulesPagedCallable =
+ callableFactory.createPagedCallable(
+ listMappingRulesTransportSettings, settings.listMappingRulesSettings(), clientContext);
+ this.getMappingRuleCallable =
+ callableFactory.createUnaryCallable(
+ getMappingRuleTransportSettings, settings.getMappingRuleSettings(), clientContext);
this.seedConversionWorkspaceCallable =
callableFactory.createUnaryCallable(
seedConversionWorkspaceTransportSettings,
@@ -1552,6 +1698,12 @@ public UnaryCallable generateSshScriptCalla
return generateSshScriptCallable;
}
+ @Override
+ public UnaryCallable
+ generateTcpProxyScriptCallable() {
+ return generateTcpProxyScriptCallable;
+ }
+
@Override
public UnaryCallable
listConnectionProfilesCallable() {
@@ -1702,6 +1854,33 @@ public UnaryCallable generateSshScriptCalla
return deleteConversionWorkspaceOperationCallable;
}
+ @Override
+ public UnaryCallable createMappingRuleCallable() {
+ return createMappingRuleCallable;
+ }
+
+ @Override
+ public UnaryCallable deleteMappingRuleCallable() {
+ return deleteMappingRuleCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listMappingRulesCallable() {
+ return listMappingRulesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listMappingRulesPagedCallable() {
+ return listMappingRulesPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable getMappingRuleCallable() {
+ return getMappingRuleCallable;
+ }
+
@Override
public UnaryCallable
seedConversionWorkspaceCallable() {
diff --git a/java-dms/google-cloud-dms/src/main/resources/META-INF/native-image/com.google.cloud.clouddms.v1/reflect-config.json b/java-dms/google-cloud-dms/src/main/resources/META-INF/native-image/com.google.cloud.clouddms.v1/reflect-config.json
index ad50135b4964..cbf189237230 100644
--- a/java-dms/google-cloud-dms/src/main/resources/META-INF/native-image/com.google.cloud.clouddms.v1/reflect-config.json
+++ b/java-dms/google-cloud-dms/src/main/resources/META-INF/native-image/com.google.cloud.clouddms.v1/reflect-config.json
@@ -503,6 +503,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.clouddms.v1.ApplyHash",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.ApplyHash$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.AssignSpecificValue",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.AssignSpecificValue$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.clouddms.v1.BackgroundJobLogEntry",
"queryAllDeclaredConstructors": true,
@@ -647,6 +683,15 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.clouddms.v1.CloudSqlSettings$Edition",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.clouddms.v1.CloudSqlSettings$SqlActivationPolicy",
"queryAllDeclaredConstructors": true,
@@ -719,6 +764,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.clouddms.v1.ConditionalColumnSetValue",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.ConditionalColumnSetValue$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.clouddms.v1.ConnectionProfile",
"queryAllDeclaredConstructors": true,
@@ -819,7 +882,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.CreateConnectionProfileRequest",
+ "name": "com.google.cloud.clouddms.v1.ConvertRowIdToColumn",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -828,7 +891,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.CreateConnectionProfileRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.ConvertRowIdToColumn$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -837,7 +900,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest",
+ "name": "com.google.cloud.clouddms.v1.CreateConnectionProfileRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -846,7 +909,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.CreateConnectionProfileRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -855,7 +918,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.CreateMigrationJobRequest",
+ "name": "com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -864,7 +927,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.CreateMigrationJobRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -873,7 +936,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest",
+ "name": "com.google.cloud.clouddms.v1.CreateMappingRuleRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -882,7 +945,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.CreateMappingRuleRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -891,7 +954,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DatabaseEngine",
+ "name": "com.google.cloud.clouddms.v1.CreateMigrationJobRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -900,7 +963,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DatabaseEngineInfo",
+ "name": "com.google.cloud.clouddms.v1.CreateMigrationJobRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -909,7 +972,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DatabaseEngineInfo$Builder",
+ "name": "com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -918,7 +981,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DatabaseEntity",
+ "name": "com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -927,7 +990,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DatabaseEntity$Builder",
+ "name": "com.google.cloud.clouddms.v1.DatabaseEngine",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -936,7 +999,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DatabaseEntity$TreeType",
+ "name": "com.google.cloud.clouddms.v1.DatabaseEngineInfo",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -945,7 +1008,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DatabaseEntityType",
+ "name": "com.google.cloud.clouddms.v1.DatabaseEngineInfo$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -954,7 +1017,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DatabaseProvider",
+ "name": "com.google.cloud.clouddms.v1.DatabaseEntity",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -963,7 +1026,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DatabaseType",
+ "name": "com.google.cloud.clouddms.v1.DatabaseEntity$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -972,7 +1035,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DatabaseType$Builder",
+ "name": "com.google.cloud.clouddms.v1.DatabaseEntity$TreeType",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -981,7 +1044,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest",
+ "name": "com.google.cloud.clouddms.v1.DatabaseEntityType",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -990,7 +1053,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.DatabaseEntityView",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -999,7 +1062,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest",
+ "name": "com.google.cloud.clouddms.v1.DatabaseInstanceEntity",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1008,7 +1071,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.DatabaseInstanceEntity$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1017,7 +1080,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DeleteMigrationJobRequest",
+ "name": "com.google.cloud.clouddms.v1.DatabaseProvider",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1026,7 +1089,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DeleteMigrationJobRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.DatabaseType",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1035,7 +1098,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest",
+ "name": "com.google.cloud.clouddms.v1.DatabaseType$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1044,7 +1107,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1053,7 +1116,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest",
+ "name": "com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1062,7 +1125,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1071,7 +1134,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse",
+ "name": "com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1080,7 +1143,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse$Builder",
+ "name": "com.google.cloud.clouddms.v1.DeleteMappingRuleRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1089,7 +1152,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest",
+ "name": "com.google.cloud.clouddms.v1.DeleteMappingRuleRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1098,7 +1161,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.DeleteMigrationJobRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1107,7 +1170,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest$DBTreeType",
+ "name": "com.google.cloud.clouddms.v1.DeleteMigrationJobRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1116,7 +1179,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse",
+ "name": "com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1125,7 +1188,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse$Builder",
+ "name": "com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1134,7 +1197,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.EntityMapping",
+ "name": "com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1143,7 +1206,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.EntityMapping$Builder",
+ "name": "com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1152,7 +1215,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.EntityMappingLogEntry",
+ "name": "com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1161,7 +1224,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.EntityMappingLogEntry$Builder",
+ "name": "com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1170,7 +1233,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.FetchStaticIpsRequest",
+ "name": "com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1179,7 +1242,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.FetchStaticIpsRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1188,7 +1251,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.FetchStaticIpsResponse",
+ "name": "com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest$DBTreeType",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1197,7 +1260,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.FetchStaticIpsResponse$Builder",
+ "name": "com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1206,7 +1269,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity",
+ "name": "com.google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1215,7 +1278,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity$Builder",
+ "name": "com.google.cloud.clouddms.v1.DoubleComparisonFilter",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1224,7 +1287,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.FunctionEntity",
+ "name": "com.google.cloud.clouddms.v1.DoubleComparisonFilter$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1233,7 +1296,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.FunctionEntity$Builder",
+ "name": "com.google.cloud.clouddms.v1.EntityDdl",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1242,7 +1305,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.GenerateSshScriptRequest",
+ "name": "com.google.cloud.clouddms.v1.EntityDdl$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1251,7 +1314,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.GenerateSshScriptRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.EntityIssue",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1260,7 +1323,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.GetConnectionProfileRequest",
+ "name": "com.google.cloud.clouddms.v1.EntityIssue$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1269,7 +1332,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.GetConnectionProfileRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.EntityIssue$IssueSeverity",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1278,7 +1341,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest",
+ "name": "com.google.cloud.clouddms.v1.EntityIssue$IssueType",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1287,7 +1350,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.EntityIssue$Position",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1296,7 +1359,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.GetMigrationJobRequest",
+ "name": "com.google.cloud.clouddms.v1.EntityIssue$Position$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1305,7 +1368,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.GetMigrationJobRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.EntityMapping",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1314,7 +1377,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.GetPrivateConnectionRequest",
+ "name": "com.google.cloud.clouddms.v1.EntityMapping$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1323,7 +1386,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.GetPrivateConnectionRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.EntityMappingLogEntry",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1332,7 +1395,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ImportMappingRulesRequest",
+ "name": "com.google.cloud.clouddms.v1.EntityMappingLogEntry$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1341,7 +1404,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ImportMappingRulesRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.EntityMove",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1350,7 +1413,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ImportMappingRulesRequest$RulesFile",
+ "name": "com.google.cloud.clouddms.v1.EntityMove$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1359,7 +1422,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ImportMappingRulesRequest$RulesFile$Builder",
+ "name": "com.google.cloud.clouddms.v1.EntityNameTransformation",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1368,7 +1431,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ImportRulesFileFormat",
+ "name": "com.google.cloud.clouddms.v1.FetchStaticIpsRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1377,7 +1440,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.IndexEntity",
+ "name": "com.google.cloud.clouddms.v1.FetchStaticIpsRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1386,7 +1449,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.IndexEntity$Builder",
+ "name": "com.google.cloud.clouddms.v1.FetchStaticIpsResponse",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1395,7 +1458,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListConnectionProfilesRequest",
+ "name": "com.google.cloud.clouddms.v1.FetchStaticIpsResponse$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1404,7 +1467,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListConnectionProfilesRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.FilterTableColumns",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1413,7 +1476,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListConnectionProfilesResponse",
+ "name": "com.google.cloud.clouddms.v1.FilterTableColumns$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1422,7 +1485,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListConnectionProfilesResponse$Builder",
+ "name": "com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1431,7 +1494,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest",
+ "name": "com.google.cloud.clouddms.v1.ForwardSshTunnelConnectivity$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1440,7 +1503,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.FunctionEntity",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1449,7 +1512,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse",
+ "name": "com.google.cloud.clouddms.v1.FunctionEntity$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1458,7 +1521,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse$Builder",
+ "name": "com.google.cloud.clouddms.v1.GenerateSshScriptRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1467,7 +1530,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListMigrationJobsRequest",
+ "name": "com.google.cloud.clouddms.v1.GenerateSshScriptRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1476,7 +1539,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListMigrationJobsRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1485,7 +1548,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListMigrationJobsResponse",
+ "name": "com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1494,7 +1557,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListMigrationJobsResponse$Builder",
+ "name": "com.google.cloud.clouddms.v1.GetConnectionProfileRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1503,7 +1566,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest",
+ "name": "com.google.cloud.clouddms.v1.GetConnectionProfileRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1512,7 +1575,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1521,7 +1584,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse",
+ "name": "com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1530,7 +1593,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse$Builder",
+ "name": "com.google.cloud.clouddms.v1.GetMappingRuleRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1539,7 +1602,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MigrationJob",
+ "name": "com.google.cloud.clouddms.v1.GetMappingRuleRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1548,7 +1611,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MigrationJob$Builder",
+ "name": "com.google.cloud.clouddms.v1.GetMigrationJobRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1557,7 +1620,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MigrationJob$DumpFlag",
+ "name": "com.google.cloud.clouddms.v1.GetMigrationJobRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1566,7 +1629,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MigrationJob$DumpFlag$Builder",
+ "name": "com.google.cloud.clouddms.v1.GetPrivateConnectionRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1575,7 +1638,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MigrationJob$DumpFlags",
+ "name": "com.google.cloud.clouddms.v1.GetPrivateConnectionRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1584,7 +1647,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MigrationJob$DumpFlags$Builder",
+ "name": "com.google.cloud.clouddms.v1.ImportMappingRulesRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1593,7 +1656,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MigrationJob$Phase",
+ "name": "com.google.cloud.clouddms.v1.ImportMappingRulesRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1602,7 +1665,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MigrationJob$State",
+ "name": "com.google.cloud.clouddms.v1.ImportMappingRulesRequest$RulesFile",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1611,7 +1674,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MigrationJob$Type",
+ "name": "com.google.cloud.clouddms.v1.ImportMappingRulesRequest$RulesFile$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1620,7 +1683,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MigrationJobVerificationError",
+ "name": "com.google.cloud.clouddms.v1.ImportRulesFileFormat",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1629,7 +1692,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MigrationJobVerificationError$Builder",
+ "name": "com.google.cloud.clouddms.v1.IndexEntity",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1638,7 +1701,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MigrationJobVerificationError$ErrorCode",
+ "name": "com.google.cloud.clouddms.v1.IndexEntity$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1647,7 +1710,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MySqlConnectionProfile",
+ "name": "com.google.cloud.clouddms.v1.IntComparisonFilter",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1656,7 +1719,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.MySqlConnectionProfile$Builder",
+ "name": "com.google.cloud.clouddms.v1.IntComparisonFilter$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1665,7 +1728,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.NetworkArchitecture",
+ "name": "com.google.cloud.clouddms.v1.ListConnectionProfilesRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1674,7 +1737,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.OperationMetadata",
+ "name": "com.google.cloud.clouddms.v1.ListConnectionProfilesRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1683,7 +1746,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.OperationMetadata$Builder",
+ "name": "com.google.cloud.clouddms.v1.ListConnectionProfilesResponse",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1692,7 +1755,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.OracleConnectionProfile",
+ "name": "com.google.cloud.clouddms.v1.ListConnectionProfilesResponse$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1701,7 +1764,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.OracleConnectionProfile$Builder",
+ "name": "com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1710,7 +1773,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PackageEntity",
+ "name": "com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1719,7 +1782,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PackageEntity$Builder",
+ "name": "com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1728,7 +1791,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile",
+ "name": "com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1737,7 +1800,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile$Builder",
+ "name": "com.google.cloud.clouddms.v1.ListMappingRulesRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1746,7 +1809,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PrivateConnection",
+ "name": "com.google.cloud.clouddms.v1.ListMappingRulesRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1755,7 +1818,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PrivateConnection$Builder",
+ "name": "com.google.cloud.clouddms.v1.ListMappingRulesResponse",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1764,7 +1827,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PrivateConnection$State",
+ "name": "com.google.cloud.clouddms.v1.ListMappingRulesResponse$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1773,7 +1836,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PrivateConnectivity",
+ "name": "com.google.cloud.clouddms.v1.ListMigrationJobsRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1782,7 +1845,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PrivateConnectivity$Builder",
+ "name": "com.google.cloud.clouddms.v1.ListMigrationJobsRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1791,7 +1854,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity",
+ "name": "com.google.cloud.clouddms.v1.ListMigrationJobsResponse",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1800,7 +1863,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity$Builder",
+ "name": "com.google.cloud.clouddms.v1.ListMigrationJobsResponse$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1809,7 +1872,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PromoteMigrationJobRequest",
+ "name": "com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1818,7 +1881,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.PromoteMigrationJobRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1827,7 +1890,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.RestartMigrationJobRequest",
+ "name": "com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1836,7 +1899,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.RestartMigrationJobRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1845,7 +1908,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ResumeMigrationJobRequest",
+ "name": "com.google.cloud.clouddms.v1.MappingRule",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1854,7 +1917,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ResumeMigrationJobRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.MappingRule$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1863,7 +1926,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ReverseSshConnectivity",
+ "name": "com.google.cloud.clouddms.v1.MappingRule$State",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1872,7 +1935,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.ReverseSshConnectivity$Builder",
+ "name": "com.google.cloud.clouddms.v1.MappingRuleFilter",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1881,7 +1944,7 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest",
+ "name": "com.google.cloud.clouddms.v1.MappingRuleFilter$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1890,7 +1953,466 @@
"allPublicClasses": true
},
{
- "name": "com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest$Builder",
+ "name": "com.google.cloud.clouddms.v1.MaterializedViewEntity",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MaterializedViewEntity$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJob",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJob$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJob$DumpFlag",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJob$DumpFlag$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJob$DumpFlags",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJob$DumpFlags$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJob$PerformanceConfig",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJob$PerformanceConfig$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJob$PerformanceConfig$DumpParallelLevel",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJob$Phase",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJob$State",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJob$Type",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJobVerificationError",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJobVerificationError$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MigrationJobVerificationError$ErrorCode",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MultiColumnDatatypeChange",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MultiColumnDatatypeChange$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MultiEntityRename",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MultiEntityRename$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MySqlConnectionProfile",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.MySqlConnectionProfile$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.NetworkArchitecture",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.NumericFilterOption",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.OperationMetadata",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.OperationMetadata$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.OracleConnectionProfile",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.OracleConnectionProfile$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PackageEntity",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PackageEntity$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PostgreSqlConnectionProfile$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PrivateConnection",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PrivateConnection$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PrivateConnection$State",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PrivateConnectivity",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PrivateConnectivity$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PromoteMigrationJobRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.PromoteMigrationJobRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.RestartMigrationJobRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.RestartMigrationJobRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.ResumeMigrationJobRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.ResumeMigrationJobRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.ReverseSshConnectivity",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.ReverseSshConnectivity$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.RoundToScale",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.RoundToScale$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
@@ -1988,6 +2510,132 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.clouddms.v1.SetTablePrimaryKey",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SetTablePrimaryKey$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SingleColumnChange",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SingleColumnChange$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SingleEntityRename",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SingleEntityRename$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SinglePackageChange",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SinglePackageChange$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SourceNumericFilter",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SourceNumericFilter$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SourceSqlChange",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SourceSqlChange$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SourceTextFilter",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.SourceTextFilter$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.clouddms.v1.SqlAclEntry",
"queryAllDeclaredConstructors": true,
@@ -2195,6 +2843,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.clouddms.v1.TcpProxyScript",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.TcpProxyScript$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.clouddms.v1.TriggerEntity",
"queryAllDeclaredConstructors": true,
@@ -2213,6 +2879,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.clouddms.v1.UDTEntity",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.UDTEntity$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest",
"queryAllDeclaredConstructors": true,
@@ -2267,6 +2951,60 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.clouddms.v1.ValueComparison",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.ValueListFilter",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.ValueListFilter$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.ValuePresentInList",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.ValueTransformation",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.clouddms.v1.ValueTransformation$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.clouddms.v1.VerifyMigrationJobRequest",
"queryAllDeclaredConstructors": true,
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 a36b9929886e..ba71c986bfdc 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
@@ -20,6 +20,7 @@
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.ListMappingRulesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse;
@@ -203,6 +204,7 @@ public void getMigrationJobTest() throws Exception {
.setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build())
.setFilter("filter-1274492040")
.setCmekKeyName("cmekKeyName-1267813158")
+ .setPerformanceConfig(MigrationJob.PerformanceConfig.newBuilder().build())
.build();
mockDataMigrationService.addResponse(expectedResponse);
@@ -257,6 +259,7 @@ public void getMigrationJobTest2() throws Exception {
.setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build())
.setFilter("filter-1274492040")
.setCmekKeyName("cmekKeyName-1267813158")
+ .setPerformanceConfig(MigrationJob.PerformanceConfig.newBuilder().build())
.build();
mockDataMigrationService.addResponse(expectedResponse);
@@ -311,6 +314,7 @@ public void createMigrationJobTest() throws Exception {
.setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build())
.setFilter("filter-1274492040")
.setCmekKeyName("cmekKeyName-1267813158")
+ .setPerformanceConfig(MigrationJob.PerformanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -380,6 +384,7 @@ public void createMigrationJobTest2() throws Exception {
.setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build())
.setFilter("filter-1274492040")
.setCmekKeyName("cmekKeyName-1267813158")
+ .setPerformanceConfig(MigrationJob.PerformanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -449,6 +454,7 @@ public void updateMigrationJobTest() throws Exception {
.setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build())
.setFilter("filter-1274492040")
.setCmekKeyName("cmekKeyName-1267813158")
+ .setPerformanceConfig(MigrationJob.PerformanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -598,6 +604,7 @@ public void startMigrationJobTest() throws Exception {
.setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build())
.setFilter("filter-1274492040")
.setCmekKeyName("cmekKeyName-1267813158")
+ .setPerformanceConfig(MigrationJob.PerformanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -610,6 +617,7 @@ public void startMigrationJobTest() throws Exception {
StartMigrationJobRequest request =
StartMigrationJobRequest.newBuilder()
.setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+ .setSkipValidation(true)
.build();
MigrationJob actualResponse = client.startMigrationJobAsync(request).get();
@@ -620,6 +628,7 @@ public void startMigrationJobTest() throws Exception {
StartMigrationJobRequest actualRequest = ((StartMigrationJobRequest) actualRequests.get(0));
Assert.assertEquals(request.getName(), actualRequest.getName());
+ Assert.assertEquals(request.getSkipValidation(), actualRequest.getSkipValidation());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -635,6 +644,7 @@ public void startMigrationJobExceptionTest() throws Exception {
StartMigrationJobRequest request =
StartMigrationJobRequest.newBuilder()
.setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+ .setSkipValidation(true)
.build();
client.startMigrationJobAsync(request).get();
Assert.fail("No exception raised");
@@ -666,6 +676,7 @@ public void stopMigrationJobTest() throws Exception {
.setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build())
.setFilter("filter-1274492040")
.setCmekKeyName("cmekKeyName-1267813158")
+ .setPerformanceConfig(MigrationJob.PerformanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -734,6 +745,7 @@ public void resumeMigrationJobTest() throws Exception {
.setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build())
.setFilter("filter-1274492040")
.setCmekKeyName("cmekKeyName-1267813158")
+ .setPerformanceConfig(MigrationJob.PerformanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -802,6 +814,7 @@ public void promoteMigrationJobTest() throws Exception {
.setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build())
.setFilter("filter-1274492040")
.setCmekKeyName("cmekKeyName-1267813158")
+ .setPerformanceConfig(MigrationJob.PerformanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -870,6 +883,7 @@ public void verifyMigrationJobTest() throws Exception {
.setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build())
.setFilter("filter-1274492040")
.setCmekKeyName("cmekKeyName-1267813158")
+ .setPerformanceConfig(MigrationJob.PerformanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -882,6 +896,8 @@ public void verifyMigrationJobTest() throws Exception {
VerifyMigrationJobRequest request =
VerifyMigrationJobRequest.newBuilder()
.setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+ .setUpdateMask(FieldMask.newBuilder().build())
+ .setMigrationJob(MigrationJob.newBuilder().build())
.build();
MigrationJob actualResponse = client.verifyMigrationJobAsync(request).get();
@@ -892,6 +908,8 @@ public void verifyMigrationJobTest() throws Exception {
VerifyMigrationJobRequest actualRequest = ((VerifyMigrationJobRequest) actualRequests.get(0));
Assert.assertEquals(request.getName(), actualRequest.getName());
+ Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+ Assert.assertEquals(request.getMigrationJob(), actualRequest.getMigrationJob());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -907,6 +925,8 @@ public void verifyMigrationJobExceptionTest() throws Exception {
VerifyMigrationJobRequest request =
VerifyMigrationJobRequest.newBuilder()
.setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+ .setUpdateMask(FieldMask.newBuilder().build())
+ .setMigrationJob(MigrationJob.newBuilder().build())
.build();
client.verifyMigrationJobAsync(request).get();
Assert.fail("No exception raised");
@@ -938,6 +958,7 @@ public void restartMigrationJobTest() throws Exception {
.setConversionWorkspace(ConversionWorkspaceInfo.newBuilder().build())
.setFilter("filter-1274492040")
.setCmekKeyName("cmekKeyName-1267813158")
+ .setPerformanceConfig(MigrationJob.PerformanceConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
@@ -950,6 +971,7 @@ public void restartMigrationJobTest() throws Exception {
RestartMigrationJobRequest request =
RestartMigrationJobRequest.newBuilder()
.setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+ .setSkipValidation(true)
.build();
MigrationJob actualResponse = client.restartMigrationJobAsync(request).get();
@@ -960,6 +982,7 @@ public void restartMigrationJobTest() throws Exception {
RestartMigrationJobRequest actualRequest = ((RestartMigrationJobRequest) actualRequests.get(0));
Assert.assertEquals(request.getName(), actualRequest.getName());
+ Assert.assertEquals(request.getSkipValidation(), actualRequest.getSkipValidation());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -975,6 +998,7 @@ public void restartMigrationJobExceptionTest() throws Exception {
RestartMigrationJobRequest request =
RestartMigrationJobRequest.newBuilder()
.setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+ .setSkipValidation(true)
.build();
client.restartMigrationJobAsync(request).get();
Assert.fail("No exception raised");
@@ -1036,6 +1060,63 @@ public void generateSshScriptExceptionTest() throws Exception {
}
}
+ @Test
+ public void generateTcpProxyScriptTest() throws Exception {
+ TcpProxyScript expectedResponse =
+ TcpProxyScript.newBuilder().setScript("script-907685685").build();
+ mockDataMigrationService.addResponse(expectedResponse);
+
+ GenerateTcpProxyScriptRequest request =
+ GenerateTcpProxyScriptRequest.newBuilder()
+ .setMigrationJob(
+ MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+ .setVmName("vmName-813643294")
+ .setVmMachineType("vmMachineType-1921917718")
+ .setVmZone("vmZone-813272317")
+ .setVmSubnet("vmSubnet-65857292")
+ .build();
+
+ TcpProxyScript actualResponse = client.generateTcpProxyScript(request);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockDataMigrationService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ GenerateTcpProxyScriptRequest actualRequest =
+ ((GenerateTcpProxyScriptRequest) actualRequests.get(0));
+
+ Assert.assertEquals(request.getMigrationJob(), actualRequest.getMigrationJob());
+ Assert.assertEquals(request.getVmName(), actualRequest.getVmName());
+ Assert.assertEquals(request.getVmMachineType(), actualRequest.getVmMachineType());
+ Assert.assertEquals(request.getVmZone(), actualRequest.getVmZone());
+ Assert.assertEquals(request.getVmSubnet(), actualRequest.getVmSubnet());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void generateTcpProxyScriptExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockDataMigrationService.addException(exception);
+
+ try {
+ GenerateTcpProxyScriptRequest request =
+ GenerateTcpProxyScriptRequest.newBuilder()
+ .setMigrationJob(
+ MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+ .setVmName("vmName-813643294")
+ .setVmMachineType("vmMachineType-1921917718")
+ .setVmZone("vmZone-813272317")
+ .setVmSubnet("vmSubnet-65857292")
+ .build();
+ client.generateTcpProxyScript(request);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
@Test
public void listConnectionProfilesTest() throws Exception {
ConnectionProfile responsesElement = ConnectionProfile.newBuilder().build();
@@ -1244,8 +1325,7 @@ public void createConnectionProfileTest() throws Exception {
.build();
mockDataMigrationService.addResponse(resultOperation);
- ConnectionProfileName parent =
- ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
+ LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
String connectionProfileId = "connectionProfileId597575526";
@@ -1273,8 +1353,7 @@ public void createConnectionProfileExceptionTest() throws Exception {
mockDataMigrationService.addException(exception);
try {
- ConnectionProfileName parent =
- ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
+ LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
String connectionProfileId = "connectionProfileId597575526";
client.createConnectionProfileAsync(parent, connectionProfile, connectionProfileId).get();
@@ -2371,6 +2450,370 @@ public void deleteConversionWorkspaceExceptionTest2() throws Exception {
}
}
+ @Test
+ public void createMappingRuleTest() throws Exception {
+ MappingRule expectedResponse =
+ MappingRule.newBuilder()
+ .setName(
+ MappingRuleName.of(
+ "[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setRuleScope(DatabaseEntityType.forNumber(0))
+ .setFilter(MappingRuleFilter.newBuilder().build())
+ .setRuleOrder(-432188341)
+ .setRevisionId("revisionId-1507445162")
+ .setRevisionCreateTime(Timestamp.newBuilder().build())
+ .build();
+ mockDataMigrationService.addResponse(expectedResponse);
+
+ ConversionWorkspaceName parent =
+ ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
+ MappingRule mappingRule = MappingRule.newBuilder().build();
+ String mappingRuleId = "mappingRuleId-900824155";
+
+ MappingRule actualResponse = client.createMappingRule(parent, mappingRule, mappingRuleId);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockDataMigrationService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ CreateMappingRuleRequest actualRequest = ((CreateMappingRuleRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent.toString(), actualRequest.getParent());
+ Assert.assertEquals(mappingRule, actualRequest.getMappingRule());
+ Assert.assertEquals(mappingRuleId, actualRequest.getMappingRuleId());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void createMappingRuleExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockDataMigrationService.addException(exception);
+
+ try {
+ ConversionWorkspaceName parent =
+ ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
+ MappingRule mappingRule = MappingRule.newBuilder().build();
+ String mappingRuleId = "mappingRuleId-900824155";
+ client.createMappingRule(parent, mappingRule, mappingRuleId);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void createMappingRuleTest2() throws Exception {
+ MappingRule expectedResponse =
+ MappingRule.newBuilder()
+ .setName(
+ MappingRuleName.of(
+ "[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setRuleScope(DatabaseEntityType.forNumber(0))
+ .setFilter(MappingRuleFilter.newBuilder().build())
+ .setRuleOrder(-432188341)
+ .setRevisionId("revisionId-1507445162")
+ .setRevisionCreateTime(Timestamp.newBuilder().build())
+ .build();
+ mockDataMigrationService.addResponse(expectedResponse);
+
+ String parent = "parent-995424086";
+ MappingRule mappingRule = MappingRule.newBuilder().build();
+ String mappingRuleId = "mappingRuleId-900824155";
+
+ MappingRule actualResponse = client.createMappingRule(parent, mappingRule, mappingRuleId);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockDataMigrationService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ CreateMappingRuleRequest actualRequest = ((CreateMappingRuleRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent, actualRequest.getParent());
+ Assert.assertEquals(mappingRule, actualRequest.getMappingRule());
+ Assert.assertEquals(mappingRuleId, actualRequest.getMappingRuleId());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void createMappingRuleExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockDataMigrationService.addException(exception);
+
+ try {
+ String parent = "parent-995424086";
+ MappingRule mappingRule = MappingRule.newBuilder().build();
+ String mappingRuleId = "mappingRuleId-900824155";
+ client.createMappingRule(parent, mappingRule, mappingRuleId);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void deleteMappingRuleTest() throws Exception {
+ Empty expectedResponse = Empty.newBuilder().build();
+ mockDataMigrationService.addResponse(expectedResponse);
+
+ ConversionWorkspaceName name =
+ ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
+
+ client.deleteMappingRule(name);
+
+ List actualRequests = mockDataMigrationService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ DeleteMappingRuleRequest actualRequest = ((DeleteMappingRuleRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name.toString(), actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void deleteMappingRuleExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockDataMigrationService.addException(exception);
+
+ try {
+ ConversionWorkspaceName name =
+ ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
+ client.deleteMappingRule(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void deleteMappingRuleTest2() throws Exception {
+ Empty expectedResponse = Empty.newBuilder().build();
+ mockDataMigrationService.addResponse(expectedResponse);
+
+ String name = "name3373707";
+
+ client.deleteMappingRule(name);
+
+ List actualRequests = mockDataMigrationService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ DeleteMappingRuleRequest actualRequest = ((DeleteMappingRuleRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name, actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void deleteMappingRuleExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockDataMigrationService.addException(exception);
+
+ try {
+ String name = "name3373707";
+ client.deleteMappingRule(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void listMappingRulesTest() throws Exception {
+ MappingRule responsesElement = MappingRule.newBuilder().build();
+ ListMappingRulesResponse expectedResponse =
+ ListMappingRulesResponse.newBuilder()
+ .setNextPageToken("")
+ .addAllMappingRules(Arrays.asList(responsesElement))
+ .build();
+ mockDataMigrationService.addResponse(expectedResponse);
+
+ ConversionWorkspaceName parent =
+ ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
+
+ ListMappingRulesPagedResponse pagedListResponse = client.listMappingRules(parent);
+
+ List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+ Assert.assertEquals(1, resources.size());
+ Assert.assertEquals(expectedResponse.getMappingRulesList().get(0), resources.get(0));
+
+ List actualRequests = mockDataMigrationService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ ListMappingRulesRequest actualRequest = ((ListMappingRulesRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent.toString(), actualRequest.getParent());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void listMappingRulesExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockDataMigrationService.addException(exception);
+
+ try {
+ ConversionWorkspaceName parent =
+ ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]");
+ client.listMappingRules(parent);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void listMappingRulesTest2() throws Exception {
+ MappingRule responsesElement = MappingRule.newBuilder().build();
+ ListMappingRulesResponse expectedResponse =
+ ListMappingRulesResponse.newBuilder()
+ .setNextPageToken("")
+ .addAllMappingRules(Arrays.asList(responsesElement))
+ .build();
+ mockDataMigrationService.addResponse(expectedResponse);
+
+ String parent = "parent-995424086";
+
+ ListMappingRulesPagedResponse pagedListResponse = client.listMappingRules(parent);
+
+ List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+ Assert.assertEquals(1, resources.size());
+ Assert.assertEquals(expectedResponse.getMappingRulesList().get(0), resources.get(0));
+
+ List actualRequests = mockDataMigrationService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ ListMappingRulesRequest actualRequest = ((ListMappingRulesRequest) actualRequests.get(0));
+
+ Assert.assertEquals(parent, actualRequest.getParent());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void listMappingRulesExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockDataMigrationService.addException(exception);
+
+ try {
+ String parent = "parent-995424086";
+ client.listMappingRules(parent);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void getMappingRuleTest() throws Exception {
+ MappingRule expectedResponse =
+ MappingRule.newBuilder()
+ .setName(
+ MappingRuleName.of(
+ "[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setRuleScope(DatabaseEntityType.forNumber(0))
+ .setFilter(MappingRuleFilter.newBuilder().build())
+ .setRuleOrder(-432188341)
+ .setRevisionId("revisionId-1507445162")
+ .setRevisionCreateTime(Timestamp.newBuilder().build())
+ .build();
+ mockDataMigrationService.addResponse(expectedResponse);
+
+ MappingRuleName name =
+ MappingRuleName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]");
+
+ MappingRule actualResponse = client.getMappingRule(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockDataMigrationService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ GetMappingRuleRequest actualRequest = ((GetMappingRuleRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name.toString(), actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void getMappingRuleExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockDataMigrationService.addException(exception);
+
+ try {
+ MappingRuleName name =
+ MappingRuleName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]");
+ client.getMappingRule(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
+ @Test
+ public void getMappingRuleTest2() throws Exception {
+ MappingRule expectedResponse =
+ MappingRule.newBuilder()
+ .setName(
+ MappingRuleName.of(
+ "[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]", "[MAPPING_RULE]")
+ .toString())
+ .setDisplayName("displayName1714148973")
+ .setRuleScope(DatabaseEntityType.forNumber(0))
+ .setFilter(MappingRuleFilter.newBuilder().build())
+ .setRuleOrder(-432188341)
+ .setRevisionId("revisionId-1507445162")
+ .setRevisionCreateTime(Timestamp.newBuilder().build())
+ .build();
+ mockDataMigrationService.addResponse(expectedResponse);
+
+ String name = "name3373707";
+
+ MappingRule actualResponse = client.getMappingRule(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockDataMigrationService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ GetMappingRuleRequest actualRequest = ((GetMappingRuleRequest) actualRequests.get(0));
+
+ Assert.assertEquals(name, actualRequest.getName());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void getMappingRuleExceptionTest2() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockDataMigrationService.addException(exception);
+
+ try {
+ String name = "name3373707";
+ client.getMappingRule(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
+
@Test
public void seedConversionWorkspaceTest() throws Exception {
ConversionWorkspace expectedResponse =
@@ -2554,6 +2997,7 @@ public void convertConversionWorkspaceTest() throws Exception {
.toString())
.setAutoCommit(true)
.setFilter("filter-1274492040")
+ .setConvertFullPath(true)
.build();
ConversionWorkspace actualResponse = client.convertConversionWorkspaceAsync(request).get();
@@ -2567,6 +3011,7 @@ public void convertConversionWorkspaceTest() throws Exception {
Assert.assertEquals(request.getName(), actualRequest.getName());
Assert.assertEquals(request.getAutoCommit(), actualRequest.getAutoCommit());
Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+ Assert.assertEquals(request.getConvertFullPath(), actualRequest.getConvertFullPath());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -2586,6 +3031,7 @@ public void convertConversionWorkspaceExceptionTest() throws Exception {
.toString())
.setAutoCommit(true)
.setFilter("filter-1274492040")
+ .setConvertFullPath(true)
.build();
client.convertConversionWorkspaceAsync(request).get();
Assert.fail("No exception raised");
@@ -2766,6 +3212,8 @@ public void applyConversionWorkspaceTest() throws Exception {
ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
.toString())
.setFilter("filter-1274492040")
+ .setDryRun(true)
+ .setAutoCommit(true)
.build();
ConversionWorkspace actualResponse = client.applyConversionWorkspaceAsync(request).get();
@@ -2778,6 +3226,8 @@ public void applyConversionWorkspaceTest() throws Exception {
Assert.assertEquals(request.getName(), actualRequest.getName());
Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+ Assert.assertEquals(request.getDryRun(), actualRequest.getDryRun());
+ Assert.assertEquals(request.getAutoCommit(), actualRequest.getAutoCommit());
Assert.assertEquals(request.getConnectionProfile(), actualRequest.getConnectionProfile());
Assert.assertTrue(
channelProvider.isHeaderSent(
@@ -2797,6 +3247,8 @@ public void applyConversionWorkspaceExceptionTest() throws Exception {
ConversionWorkspaceName.of("[PROJECT]", "[LOCATION]", "[CONVERSION_WORKSPACE]")
.toString())
.setFilter("filter-1274492040")
+ .setDryRun(true)
+ .setAutoCommit(true)
.build();
client.applyConversionWorkspaceAsync(request).get();
Assert.fail("No exception raised");
@@ -2827,6 +3279,7 @@ public void describeDatabaseEntitiesTest() throws Exception {
.setUncommitted(true)
.setCommitId("commitId-602292046")
.setFilter("filter-1274492040")
+ .setView(DatabaseEntityView.forNumber(0))
.build();
DescribeDatabaseEntitiesPagedResponse pagedListResponse =
@@ -2849,6 +3302,7 @@ public void describeDatabaseEntitiesTest() throws Exception {
Assert.assertEquals(request.getUncommitted(), actualRequest.getUncommitted());
Assert.assertEquals(request.getCommitId(), actualRequest.getCommitId());
Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+ Assert.assertEquals(request.getView(), actualRequest.getView());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -2871,6 +3325,7 @@ public void describeDatabaseEntitiesExceptionTest() throws Exception {
.setUncommitted(true)
.setCommitId("commitId-602292046")
.setFilter("filter-1274492040")
+ .setView(DatabaseEntityView.forNumber(0))
.build();
client.describeDatabaseEntities(request);
Assert.fail("No exception raised");
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 9e646f66db9a..bbc95fe366ef 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
@@ -20,6 +20,7 @@
import com.google.cloud.clouddms.v1.DataMigrationServiceGrpc.DataMigrationServiceImplBase;
import com.google.longrunning.Operation;
import com.google.protobuf.AbstractMessage;
+import com.google.protobuf.Empty;
import io.grpc.stub.StreamObserver;
import java.util.ArrayList;
import java.util.LinkedList;
@@ -312,6 +313,27 @@ public void generateSshScript(
}
}
+ @Override
+ public void generateTcpProxyScript(
+ GenerateTcpProxyScriptRequest request, StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof TcpProxyScript) {
+ requests.add(request);
+ responseObserver.onNext(((TcpProxyScript) 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 GenerateTcpProxyScript, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ TcpProxyScript.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+
@Override
public void listConnectionProfiles(
ListConnectionProfilesRequest request,
@@ -609,6 +631,90 @@ public void deleteConversionWorkspace(
}
}
+ @Override
+ public void createMappingRule(
+ CreateMappingRuleRequest request, StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof MappingRule) {
+ requests.add(request);
+ responseObserver.onNext(((MappingRule) 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 CreateMappingRule, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ MappingRule.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+
+ @Override
+ public void deleteMappingRule(
+ DeleteMappingRuleRequest request, StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof Empty) {
+ requests.add(request);
+ responseObserver.onNext(((Empty) response));
+ responseObserver.onCompleted();
+ } else if (response instanceof Exception) {
+ responseObserver.onError(((Exception) response));
+ } else {
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method DeleteMappingRule, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ Empty.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+
+ @Override
+ public void listMappingRules(
+ ListMappingRulesRequest request, StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof ListMappingRulesResponse) {
+ requests.add(request);
+ responseObserver.onNext(((ListMappingRulesResponse) 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 ListMappingRules, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ ListMappingRulesResponse.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+
+ @Override
+ public void getMappingRule(
+ GetMappingRuleRequest request, StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof MappingRule) {
+ requests.add(request);
+ responseObserver.onNext(((MappingRule) 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 GetMappingRule, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ MappingRule.class.getName(),
+ Exception.class.getName())));
+ }
+ }
+
@Override
public void seedConversionWorkspace(
SeedConversionWorkspaceRequest request, StreamObserver responseObserver) {
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 9e9e02661ac8..685fee7e1c8f 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
@@ -592,6 +592,57 @@ private DataMigrationServiceGrpc() {}
return getGenerateSshScriptMethod;
}
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest,
+ com.google.cloud.clouddms.v1.TcpProxyScript>
+ getGenerateTcpProxyScriptMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GenerateTcpProxyScript",
+ requestType = com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest.class,
+ responseType = com.google.cloud.clouddms.v1.TcpProxyScript.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest,
+ com.google.cloud.clouddms.v1.TcpProxyScript>
+ getGenerateTcpProxyScriptMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest,
+ com.google.cloud.clouddms.v1.TcpProxyScript>
+ getGenerateTcpProxyScriptMethod;
+ if ((getGenerateTcpProxyScriptMethod = DataMigrationServiceGrpc.getGenerateTcpProxyScriptMethod)
+ == null) {
+ synchronized (DataMigrationServiceGrpc.class) {
+ if ((getGenerateTcpProxyScriptMethod =
+ DataMigrationServiceGrpc.getGenerateTcpProxyScriptMethod)
+ == null) {
+ DataMigrationServiceGrpc.getGenerateTcpProxyScriptMethod =
+ getGenerateTcpProxyScriptMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "GenerateTcpProxyScript"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.clouddms.v1.TcpProxyScript.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new DataMigrationServiceMethodDescriptorSupplier(
+ "GenerateTcpProxyScript"))
+ .build();
+ }
+ }
+ }
+ return getGenerateTcpProxyScriptMethod;
+ }
+
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.clouddms.v1.ListConnectionProfilesRequest,
com.google.cloud.clouddms.v1.ListConnectionProfilesResponse>
@@ -1315,6 +1366,193 @@ private DataMigrationServiceGrpc() {}
return getDeleteConversionWorkspaceMethod;
}
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.CreateMappingRuleRequest,
+ com.google.cloud.clouddms.v1.MappingRule>
+ getCreateMappingRuleMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CreateMappingRule",
+ requestType = com.google.cloud.clouddms.v1.CreateMappingRuleRequest.class,
+ responseType = com.google.cloud.clouddms.v1.MappingRule.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.CreateMappingRuleRequest,
+ com.google.cloud.clouddms.v1.MappingRule>
+ getCreateMappingRuleMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.CreateMappingRuleRequest,
+ com.google.cloud.clouddms.v1.MappingRule>
+ getCreateMappingRuleMethod;
+ if ((getCreateMappingRuleMethod = DataMigrationServiceGrpc.getCreateMappingRuleMethod)
+ == null) {
+ synchronized (DataMigrationServiceGrpc.class) {
+ if ((getCreateMappingRuleMethod = DataMigrationServiceGrpc.getCreateMappingRuleMethod)
+ == null) {
+ DataMigrationServiceGrpc.getCreateMappingRuleMethod =
+ getCreateMappingRuleMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMappingRule"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.clouddms.v1.CreateMappingRuleRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.clouddms.v1.MappingRule.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new DataMigrationServiceMethodDescriptorSupplier("CreateMappingRule"))
+ .build();
+ }
+ }
+ }
+ return getCreateMappingRuleMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.DeleteMappingRuleRequest, com.google.protobuf.Empty>
+ getDeleteMappingRuleMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "DeleteMappingRule",
+ requestType = com.google.cloud.clouddms.v1.DeleteMappingRuleRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.DeleteMappingRuleRequest, com.google.protobuf.Empty>
+ getDeleteMappingRuleMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.DeleteMappingRuleRequest, com.google.protobuf.Empty>
+ getDeleteMappingRuleMethod;
+ if ((getDeleteMappingRuleMethod = DataMigrationServiceGrpc.getDeleteMappingRuleMethod)
+ == null) {
+ synchronized (DataMigrationServiceGrpc.class) {
+ if ((getDeleteMappingRuleMethod = DataMigrationServiceGrpc.getDeleteMappingRuleMethod)
+ == null) {
+ DataMigrationServiceGrpc.getDeleteMappingRuleMethod =
+ getDeleteMappingRuleMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMappingRule"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.clouddms.v1.DeleteMappingRuleRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new DataMigrationServiceMethodDescriptorSupplier("DeleteMappingRule"))
+ .build();
+ }
+ }
+ }
+ return getDeleteMappingRuleMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.ListMappingRulesRequest,
+ com.google.cloud.clouddms.v1.ListMappingRulesResponse>
+ getListMappingRulesMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ListMappingRules",
+ requestType = com.google.cloud.clouddms.v1.ListMappingRulesRequest.class,
+ responseType = com.google.cloud.clouddms.v1.ListMappingRulesResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.ListMappingRulesRequest,
+ com.google.cloud.clouddms.v1.ListMappingRulesResponse>
+ getListMappingRulesMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.ListMappingRulesRequest,
+ com.google.cloud.clouddms.v1.ListMappingRulesResponse>
+ getListMappingRulesMethod;
+ if ((getListMappingRulesMethod = DataMigrationServiceGrpc.getListMappingRulesMethod) == null) {
+ synchronized (DataMigrationServiceGrpc.class) {
+ if ((getListMappingRulesMethod = DataMigrationServiceGrpc.getListMappingRulesMethod)
+ == null) {
+ DataMigrationServiceGrpc.getListMappingRulesMethod =
+ getListMappingRulesMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMappingRules"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.clouddms.v1.ListMappingRulesRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.clouddms.v1.ListMappingRulesResponse
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new DataMigrationServiceMethodDescriptorSupplier("ListMappingRules"))
+ .build();
+ }
+ }
+ }
+ return getListMappingRulesMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.GetMappingRuleRequest,
+ com.google.cloud.clouddms.v1.MappingRule>
+ getGetMappingRuleMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetMappingRule",
+ requestType = com.google.cloud.clouddms.v1.GetMappingRuleRequest.class,
+ responseType = com.google.cloud.clouddms.v1.MappingRule.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.GetMappingRuleRequest,
+ com.google.cloud.clouddms.v1.MappingRule>
+ getGetMappingRuleMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.clouddms.v1.GetMappingRuleRequest,
+ com.google.cloud.clouddms.v1.MappingRule>
+ getGetMappingRuleMethod;
+ if ((getGetMappingRuleMethod = DataMigrationServiceGrpc.getGetMappingRuleMethod) == null) {
+ synchronized (DataMigrationServiceGrpc.class) {
+ if ((getGetMappingRuleMethod = DataMigrationServiceGrpc.getGetMappingRuleMethod) == null) {
+ DataMigrationServiceGrpc.getGetMappingRuleMethod =
+ getGetMappingRuleMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMappingRule"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.clouddms.v1.GetMappingRuleRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.clouddms.v1.MappingRule.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new DataMigrationServiceMethodDescriptorSupplier("GetMappingRule"))
+ .build();
+ }
+ }
+ }
+ return getGetMappingRuleMethod;
+ }
+
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest,
com.google.longrunning.Operation>
@@ -2053,6 +2291,21 @@ default void generateSshScript(
getGenerateSshScriptMethod(), responseObserver);
}
+ /**
+ *
+ *
+ *
+ * Generate a TCP Proxy configuration script to configure a cloud-hosted VM
+ * running a TCP Proxy.
+ *
+ */
+ default void generateTcpProxyScript(
+ com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getGenerateTcpProxyScriptMethod(), responseObserver);
+ }
+
/**
*
*
@@ -2258,6 +2511,63 @@ default void deleteConversionWorkspace(
getDeleteConversionWorkspaceMethod(), responseObserver);
}
+ /**
+ *
+ *
+ *
+ * Creates a new mapping rule for a given conversion workspace.
+ *
+ */
+ default void createMappingRule(
+ com.google.cloud.clouddms.v1.CreateMappingRuleRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getCreateMappingRuleMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deletes a single mapping rule.
+ *
+ */
+ default void deleteMappingRule(
+ com.google.cloud.clouddms.v1.DeleteMappingRuleRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getDeleteMappingRuleMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Lists the mapping rules for a specific conversion workspace.
+ *
+ */
+ default void listMappingRules(
+ com.google.cloud.clouddms.v1.ListMappingRulesRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getListMappingRulesMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets the details of a mapping rule.
+ *
+ */
+ default void getMappingRule(
+ com.google.cloud.clouddms.v1.GetMappingRuleRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getGetMappingRuleMethod(), responseObserver);
+ }
+
/**
*
*
@@ -2650,6 +2960,23 @@ public void generateSshScript(
responseObserver);
}
+ /**
+ *
+ *
+ *
+ * Generate a TCP Proxy configuration script to configure a cloud-hosted VM
+ * running a TCP Proxy.
+ *
+ */
+ public void generateTcpProxyScript(
+ com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGenerateTcpProxyScriptMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
/**
*
*
@@ -2883,6 +3210,71 @@ public void deleteConversionWorkspace(
responseObserver);
}
+ /**
+ *
+ *
+ *
+ * Creates a new mapping rule for a given conversion workspace.
+ *
+ */
+ public void createMappingRule(
+ com.google.cloud.clouddms.v1.CreateMappingRuleRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getCreateMappingRuleMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deletes a single mapping rule.
+ *
+ */
+ public void deleteMappingRule(
+ com.google.cloud.clouddms.v1.DeleteMappingRuleRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getDeleteMappingRuleMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Lists the mapping rules for a specific conversion workspace.
+ *
+ */
+ public void listMappingRules(
+ com.google.cloud.clouddms.v1.ListMappingRulesRequest request,
+ io.grpc.stub.StreamObserver
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getListMappingRulesMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets the details of a mapping rule.
+ *
+ */
+ public void getMappingRule(
+ com.google.cloud.clouddms.v1.GetMappingRuleRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getGetMappingRuleMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
/**
*
*
@@ -3243,6 +3635,20 @@ public com.google.cloud.clouddms.v1.SshScript generateSshScript(
getChannel(), getGenerateSshScriptMethod(), getCallOptions(), request);
}
+ /**
+ *
+ *
+ *
+ * Generate a TCP Proxy configuration script to configure a cloud-hosted VM
+ * running a TCP Proxy.
+ *
+ */
+ public com.google.cloud.clouddms.v1.TcpProxyScript generateTcpProxyScript(
+ com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGenerateTcpProxyScriptMethod(), getCallOptions(), request);
+ }
+
/**
*
*
@@ -3428,6 +3834,58 @@ public com.google.longrunning.Operation deleteConversionWorkspace(
getChannel(), getDeleteConversionWorkspaceMethod(), getCallOptions(), request);
}
+ /**
+ *
+ *
+ *
+ * Creates a new mapping rule for a given conversion workspace.
+ *
+ */
+ public com.google.cloud.clouddms.v1.MappingRule createMappingRule(
+ com.google.cloud.clouddms.v1.CreateMappingRuleRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getCreateMappingRuleMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deletes a single mapping rule.
+ *
+ */
+ public com.google.protobuf.Empty deleteMappingRule(
+ com.google.cloud.clouddms.v1.DeleteMappingRuleRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getDeleteMappingRuleMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Lists the mapping rules for a specific conversion workspace.
+ *
+ */
+ public com.google.cloud.clouddms.v1.ListMappingRulesResponse listMappingRules(
+ com.google.cloud.clouddms.v1.ListMappingRulesRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getListMappingRulesMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets the details of a mapping rule.
+ *
+ */
+ public com.google.cloud.clouddms.v1.MappingRule getMappingRule(
+ com.google.cloud.clouddms.v1.GetMappingRuleRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetMappingRuleMethod(), getCallOptions(), request);
+ }
+
/**
*
*
@@ -3757,6 +4215,21 @@ protected DataMigrationServiceFutureStub build(
getChannel().newCall(getGenerateSshScriptMethod(), getCallOptions()), request);
}
+ /**
+ *
+ *
+ *
+ * Generate a TCP Proxy configuration script to configure a cloud-hosted VM
+ * running a TCP Proxy.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.clouddms.v1.TcpProxyScript>
+ generateTcpProxyScript(com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGenerateTcpProxyScriptMethod(), getCallOptions()), request);
+ }
+
/**
*
*
@@ -3957,6 +4430,61 @@ protected DataMigrationServiceFutureStub build(
getChannel().newCall(getDeleteConversionWorkspaceMethod(), getCallOptions()), request);
}
+ /**
+ *
+ *
+ *
+ * Creates a new mapping rule for a given conversion workspace.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.clouddms.v1.MappingRule>
+ createMappingRule(com.google.cloud.clouddms.v1.CreateMappingRuleRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getCreateMappingRuleMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Deletes a single mapping rule.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ deleteMappingRule(com.google.cloud.clouddms.v1.DeleteMappingRuleRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getDeleteMappingRuleMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Lists the mapping rules for a specific conversion workspace.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.clouddms.v1.ListMappingRulesResponse>
+ listMappingRules(com.google.cloud.clouddms.v1.ListMappingRulesRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getListMappingRulesMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets the details of a mapping rule.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.clouddms.v1.MappingRule>
+ getMappingRule(com.google.cloud.clouddms.v1.GetMappingRuleRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetMappingRuleMethod(), getCallOptions()), request);
+ }
+
/**
*
*
@@ -4124,30 +4652,35 @@ protected DataMigrationServiceFutureStub build(
private static final int METHODID_VERIFY_MIGRATION_JOB = 9;
private static final int METHODID_RESTART_MIGRATION_JOB = 10;
private static final int METHODID_GENERATE_SSH_SCRIPT = 11;
- private static final int METHODID_LIST_CONNECTION_PROFILES = 12;
- private static final int METHODID_GET_CONNECTION_PROFILE = 13;
- 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 int METHODID_GENERATE_TCP_PROXY_SCRIPT = 12;
+ private static final int METHODID_LIST_CONNECTION_PROFILES = 13;
+ private static final int METHODID_GET_CONNECTION_PROFILE = 14;
+ private static final int METHODID_CREATE_CONNECTION_PROFILE = 15;
+ private static final int METHODID_UPDATE_CONNECTION_PROFILE = 16;
+ private static final int METHODID_DELETE_CONNECTION_PROFILE = 17;
+ private static final int METHODID_CREATE_PRIVATE_CONNECTION = 18;
+ private static final int METHODID_GET_PRIVATE_CONNECTION = 19;
+ private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 20;
+ private static final int METHODID_DELETE_PRIVATE_CONNECTION = 21;
+ private static final int METHODID_GET_CONVERSION_WORKSPACE = 22;
+ private static final int METHODID_LIST_CONVERSION_WORKSPACES = 23;
+ private static final int METHODID_CREATE_CONVERSION_WORKSPACE = 24;
+ private static final int METHODID_UPDATE_CONVERSION_WORKSPACE = 25;
+ private static final int METHODID_DELETE_CONVERSION_WORKSPACE = 26;
+ private static final int METHODID_CREATE_MAPPING_RULE = 27;
+ private static final int METHODID_DELETE_MAPPING_RULE = 28;
+ private static final int METHODID_LIST_MAPPING_RULES = 29;
+ private static final int METHODID_GET_MAPPING_RULE = 30;
+ private static final int METHODID_SEED_CONVERSION_WORKSPACE = 31;
+ private static final int METHODID_IMPORT_MAPPING_RULES = 32;
+ private static final int METHODID_CONVERT_CONVERSION_WORKSPACE = 33;
+ private static final int METHODID_COMMIT_CONVERSION_WORKSPACE = 34;
+ private static final int METHODID_ROLLBACK_CONVERSION_WORKSPACE = 35;
+ private static final int METHODID_APPLY_CONVERSION_WORKSPACE = 36;
+ private static final int METHODID_DESCRIBE_DATABASE_ENTITIES = 37;
+ private static final int METHODID_SEARCH_BACKGROUND_JOBS = 38;
+ private static final int METHODID_DESCRIBE_CONVERSION_WORKSPACE_REVISIONS = 39;
+ private static final int METHODID_FETCH_STATIC_IPS = 40;
private static final class MethodHandlers
implements io.grpc.stub.ServerCalls.UnaryMethod,
@@ -4229,6 +4762,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
(io.grpc.stub.StreamObserver)
responseObserver);
break;
+ case METHODID_GENERATE_TCP_PROXY_SCRIPT:
+ serviceImpl.generateTcpProxyScript(
+ (com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
+ break;
case METHODID_LIST_CONNECTION_PROFILES:
serviceImpl.listConnectionProfiles(
(com.google.cloud.clouddms.v1.ListConnectionProfilesRequest) request,
@@ -4308,6 +4847,29 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
(com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
+ case METHODID_CREATE_MAPPING_RULE:
+ serviceImpl.createMappingRule(
+ (com.google.cloud.clouddms.v1.CreateMappingRuleRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
+ break;
+ case METHODID_DELETE_MAPPING_RULE:
+ serviceImpl.deleteMappingRule(
+ (com.google.cloud.clouddms.v1.DeleteMappingRuleRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_LIST_MAPPING_RULES:
+ serviceImpl.listMappingRules(
+ (com.google.cloud.clouddms.v1.ListMappingRulesRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
+ break;
+ case METHODID_GET_MAPPING_RULE:
+ serviceImpl.getMappingRule(
+ (com.google.cloud.clouddms.v1.GetMappingRuleRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
+ break;
case METHODID_SEED_CONVERSION_WORKSPACE:
serviceImpl.seedConversionWorkspace(
(com.google.cloud.clouddms.v1.SeedConversionWorkspaceRequest) request,
@@ -4457,6 +5019,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
new MethodHandlers<
com.google.cloud.clouddms.v1.GenerateSshScriptRequest,
com.google.cloud.clouddms.v1.SshScript>(service, METHODID_GENERATE_SSH_SCRIPT)))
+ .addMethod(
+ getGenerateTcpProxyScriptMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest,
+ com.google.cloud.clouddms.v1.TcpProxyScript>(
+ service, METHODID_GENERATE_TCP_PROXY_SCRIPT)))
.addMethod(
getListConnectionProfilesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
@@ -4550,6 +5119,32 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest,
com.google.longrunning.Operation>(
service, METHODID_DELETE_CONVERSION_WORKSPACE)))
+ .addMethod(
+ getCreateMappingRuleMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.clouddms.v1.CreateMappingRuleRequest,
+ com.google.cloud.clouddms.v1.MappingRule>(
+ service, METHODID_CREATE_MAPPING_RULE)))
+ .addMethod(
+ getDeleteMappingRuleMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.clouddms.v1.DeleteMappingRuleRequest,
+ com.google.protobuf.Empty>(service, METHODID_DELETE_MAPPING_RULE)))
+ .addMethod(
+ getListMappingRulesMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.clouddms.v1.ListMappingRulesRequest,
+ com.google.cloud.clouddms.v1.ListMappingRulesResponse>(
+ service, METHODID_LIST_MAPPING_RULES)))
+ .addMethod(
+ getGetMappingRuleMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.clouddms.v1.GetMappingRuleRequest,
+ com.google.cloud.clouddms.v1.MappingRule>(service, METHODID_GET_MAPPING_RULE)))
.addMethod(
getSeedConversionWorkspaceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
@@ -4681,6 +5276,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getVerifyMigrationJobMethod())
.addMethod(getRestartMigrationJobMethod())
.addMethod(getGenerateSshScriptMethod())
+ .addMethod(getGenerateTcpProxyScriptMethod())
.addMethod(getListConnectionProfilesMethod())
.addMethod(getGetConnectionProfileMethod())
.addMethod(getCreateConnectionProfileMethod())
@@ -4695,6 +5291,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getCreateConversionWorkspaceMethod())
.addMethod(getUpdateConversionWorkspaceMethod())
.addMethod(getDeleteConversionWorkspaceMethod())
+ .addMethod(getCreateMappingRuleMethod())
+ .addMethod(getDeleteMappingRuleMethod())
+ .addMethod(getListMappingRulesMethod())
+ .addMethod(getGetMappingRuleMethod())
.addMethod(getSeedConversionWorkspaceMethod())
.addMethod(getImportMappingRulesMethod())
.addMethod(getConvertConversionWorkspaceMethod())
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
index 62ff90eb7817..1ee34b8e8a45 100644
--- 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
@@ -222,15 +222,55 @@ public com.google.protobuf.ByteString getFilterBytes() {
}
}
+ public static final int DRY_RUN_FIELD_NUMBER = 3;
+ private boolean dryRun_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. Only validates the apply process, but doesn't change the
+ * destination database. Only works for PostgreSQL destination connection
+ * profile.
+ *
+ *
+ * bool dry_run = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The dryRun.
+ */
+ @java.lang.Override
+ public boolean getDryRun() {
+ return dryRun_;
+ }
+
+ public static final int AUTO_COMMIT_FIELD_NUMBER = 4;
+ private boolean autoCommit_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. Specifies whether the conversion workspace is to be committed
+ * automatically after the apply.
+ *
+ *
+ * bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The autoCommit.
+ */
+ @java.lang.Override
+ public boolean getAutoCommit() {
+ return autoCommit_;
+ }
+
public static final int CONNECTION_PROFILE_FIELD_NUMBER = 100;
/**
*
*
*
- * Fully qualified (Uri) name of the destination connection profile.
+ * Optional. Fully qualified (Uri) name of the destination connection
+ * profile.
*
*
- * string connection_profile = 100;
+ * string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];
*
* @return Whether the connectionProfile field is set.
*/
@@ -241,10 +281,11 @@ public boolean hasConnectionProfile() {
*
*
*
- * Fully qualified (Uri) name of the destination connection profile.
+ * Optional. Fully qualified (Uri) name of the destination connection
+ * profile.
*
*
- * string connection_profile = 100;
+ * string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The connectionProfile.
*/
@@ -268,10 +309,11 @@ public java.lang.String getConnectionProfile() {
*
*
*
- * Fully qualified (Uri) name of the destination connection profile.
+ * Optional. Fully qualified (Uri) name of the destination connection
+ * profile.
*
*
- * string connection_profile = 100;
+ * string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for connectionProfile.
*/
@@ -312,6 +354,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
}
+ if (dryRun_ != false) {
+ output.writeBool(3, dryRun_);
+ }
+ if (autoCommit_ != false) {
+ output.writeBool(4, autoCommit_);
+ }
if (destinationCase_ == 100) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 100, destination_);
}
@@ -330,6 +378,12 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
}
+ if (dryRun_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, dryRun_);
+ }
+ if (autoCommit_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, autoCommit_);
+ }
if (destinationCase_ == 100) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, destination_);
}
@@ -351,6 +405,8 @@ public boolean equals(final java.lang.Object obj) {
if (!getName().equals(other.getName())) return false;
if (!getFilter().equals(other.getFilter())) return false;
+ if (getDryRun() != other.getDryRun()) return false;
+ if (getAutoCommit() != other.getAutoCommit()) return false;
if (!getDestinationCase().equals(other.getDestinationCase())) return false;
switch (destinationCase_) {
case 100:
@@ -374,6 +430,10 @@ public int hashCode() {
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
+ hash = (37 * hash) + DRY_RUN_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDryRun());
+ hash = (37 * hash) + AUTO_COMMIT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoCommit());
switch (destinationCase_) {
case 100:
hash = (37 * hash) + CONNECTION_PROFILE_FIELD_NUMBER;
@@ -524,6 +584,8 @@ public Builder clear() {
bitField0_ = 0;
name_ = "";
filter_ = "";
+ dryRun_ = false;
+ autoCommit_ = false;
destinationCase_ = 0;
destination_ = null;
return this;
@@ -571,6 +633,12 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000002) != 0)) {
result.filter_ = filter_;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.dryRun_ = dryRun_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.autoCommit_ = autoCommit_;
+ }
}
private void buildPartialOneofs(
@@ -636,6 +704,12 @@ public Builder mergeFrom(com.google.cloud.clouddms.v1.ApplyConversionWorkspaceRe
bitField0_ |= 0x00000002;
onChanged();
}
+ if (other.getDryRun() != false) {
+ setDryRun(other.getDryRun());
+ }
+ if (other.getAutoCommit() != false) {
+ setAutoCommit(other.getAutoCommit());
+ }
switch (other.getDestinationCase()) {
case CONNECTION_PROFILE:
{
@@ -687,6 +761,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 24:
+ {
+ dryRun_ = input.readBool();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 32:
+ {
+ autoCommit_ = input.readBool();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
case 802:
{
java.lang.String s = input.readStringRequireUtf8();
@@ -964,14 +1050,130 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private boolean dryRun_;
+ /**
+ *
+ *
+ *
+ * Optional. Only validates the apply process, but doesn't change the
+ * destination database. Only works for PostgreSQL destination connection
+ * profile.
+ *
+ *
+ * bool dry_run = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The dryRun.
+ */
+ @java.lang.Override
+ public boolean getDryRun() {
+ return dryRun_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Only validates the apply process, but doesn't change the
+ * destination database. Only works for PostgreSQL destination connection
+ * profile.
+ *
+ *
+ * bool dry_run = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The dryRun to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDryRun(boolean value) {
+
+ dryRun_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Only validates the apply process, but doesn't change the
+ * destination database. Only works for PostgreSQL destination connection
+ * profile.
+ *
+ *
+ * bool dry_run = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDryRun() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ dryRun_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean autoCommit_;
+ /**
+ *
+ *
+ *
+ * Optional. Specifies whether the conversion workspace is to be committed
+ * automatically after the apply.
+ *
+ *
+ * bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The autoCommit.
+ */
+ @java.lang.Override
+ public boolean getAutoCommit() {
+ return autoCommit_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies whether the conversion workspace is to be committed
+ * automatically after the apply.
+ *
+ *
+ * bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The autoCommit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAutoCommit(boolean value) {
+
+ autoCommit_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies whether the conversion workspace is to be committed
+ * automatically after the apply.
+ *
+ *
+ * bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAutoCommit() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ autoCommit_ = false;
+ onChanged();
+ return this;
+ }
+
/**
*
*
*
- * Fully qualified (Uri) name of the destination connection profile.
+ * Optional. Fully qualified (Uri) name of the destination connection
+ * profile.
*
*
- * string connection_profile = 100;
+ * string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];
*
* @return Whether the connectionProfile field is set.
*/
@@ -983,10 +1185,11 @@ public boolean hasConnectionProfile() {
*
*
*
- * Fully qualified (Uri) name of the destination connection profile.
+ * Optional. Fully qualified (Uri) name of the destination connection
+ * profile.
*
*
- * string connection_profile = 100;
+ * string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The connectionProfile.
*/
@@ -1011,10 +1214,11 @@ public java.lang.String getConnectionProfile() {
*
*
*
- * Fully qualified (Uri) name of the destination connection profile.
+ * Optional. Fully qualified (Uri) name of the destination connection
+ * profile.
*
*
- * string connection_profile = 100;
+ * string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for connectionProfile.
*/
@@ -1039,10 +1243,11 @@ public com.google.protobuf.ByteString getConnectionProfileBytes() {
*
*
*
- * Fully qualified (Uri) name of the destination connection profile.
+ * Optional. Fully qualified (Uri) name of the destination connection
+ * profile.
*
*
- * string connection_profile = 100;
+ * string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The connectionProfile to set.
* @return This builder for chaining.
@@ -1060,10 +1265,11 @@ public Builder setConnectionProfile(java.lang.String value) {
*
*
*
- * Fully qualified (Uri) name of the destination connection profile.
+ * Optional. Fully qualified (Uri) name of the destination connection
+ * profile.
*
*
- * string connection_profile = 100;
+ * string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
@@ -1079,10 +1285,11 @@ public Builder clearConnectionProfile() {
*
*
*
- * Fully qualified (Uri) name of the destination connection profile.
+ * Optional. Fully qualified (Uri) name of the destination connection
+ * profile.
*
*
- * string connection_profile = 100;
+ * string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for connectionProfile to set.
* @return This builder for chaining.
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
index c38d6720366b..9a3ebd713157 100644
--- 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
@@ -87,10 +87,40 @@ public interface ApplyConversionWorkspaceRequestOrBuilder
*
*
*
- * Fully qualified (Uri) name of the destination connection profile.
+ * Optional. Only validates the apply process, but doesn't change the
+ * destination database. Only works for PostgreSQL destination connection
+ * profile.
*
*
- * string connection_profile = 100;
+ * bool dry_run = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The dryRun.
+ */
+ boolean getDryRun();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies whether the conversion workspace is to be committed
+ * automatically after the apply.
+ *
+ *
+ * bool auto_commit = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The autoCommit.
+ */
+ boolean getAutoCommit();
+
+ /**
+ *
+ *
+ *
+ * Optional. Fully qualified (Uri) name of the destination connection
+ * profile.
+ *
+ *
+ * string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];
*
* @return Whether the connectionProfile field is set.
*/
@@ -99,10 +129,11 @@ public interface ApplyConversionWorkspaceRequestOrBuilder
*
*
*
- * Fully qualified (Uri) name of the destination connection profile.
+ * Optional. Fully qualified (Uri) name of the destination connection
+ * profile.
*
*
- * string connection_profile = 100;
+ * string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The connectionProfile.
*/
@@ -111,10 +142,11 @@ public interface ApplyConversionWorkspaceRequestOrBuilder
*
*
*
- * Fully qualified (Uri) name of the destination connection profile.
+ * Optional. Fully qualified (Uri) name of the destination connection
+ * profile.
*
*
- * string connection_profile = 100;
+ * string connection_profile = 100 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for connectionProfile.
*/
diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ApplyHash.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ApplyHash.java
new file mode 100644
index 000000000000..306104e93c46
--- /dev/null
+++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ApplyHash.java
@@ -0,0 +1,822 @@
+/*
+ * 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
+ *
+ * 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;
+
+/**
+ *
+ *
+ *
+ * Apply a hash function on the value.
+ *
+ *
+ * Protobuf type {@code google.cloud.clouddms.v1.ApplyHash}
+ */
+public final class ApplyHash extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.ApplyHash)
+ ApplyHashOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ApplyHash.newBuilder() to construct.
+ private ApplyHash(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ApplyHash() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ApplyHash();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
+ .internal_static_google_cloud_clouddms_v1_ApplyHash_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
+ .internal_static_google_cloud_clouddms_v1_ApplyHash_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.clouddms.v1.ApplyHash.class,
+ com.google.cloud.clouddms.v1.ApplyHash.Builder.class);
+ }
+
+ private int hashFunctionCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object hashFunction_;
+
+ public enum HashFunctionCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ UUID_FROM_BYTES(100),
+ HASHFUNCTION_NOT_SET(0);
+ private final int value;
+
+ private HashFunctionCase(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 HashFunctionCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static HashFunctionCase forNumber(int value) {
+ switch (value) {
+ case 100:
+ return UUID_FROM_BYTES;
+ case 0:
+ return HASHFUNCTION_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public HashFunctionCase getHashFunctionCase() {
+ return HashFunctionCase.forNumber(hashFunctionCase_);
+ }
+
+ public static final int UUID_FROM_BYTES_FIELD_NUMBER = 100;
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the uuidFromBytes field is set.
+ */
+ @java.lang.Override
+ public boolean hasUuidFromBytes() {
+ return hashFunctionCase_ == 100;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The uuidFromBytes.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Empty getUuidFromBytes() {
+ if (hashFunctionCase_ == 100) {
+ return (com.google.protobuf.Empty) hashFunction_;
+ }
+ return com.google.protobuf.Empty.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.EmptyOrBuilder getUuidFromBytesOrBuilder() {
+ if (hashFunctionCase_ == 100) {
+ return (com.google.protobuf.Empty) hashFunction_;
+ }
+ return com.google.protobuf.Empty.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 (hashFunctionCase_ == 100) {
+ output.writeMessage(100, (com.google.protobuf.Empty) hashFunction_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hashFunctionCase_ == 100) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 100, (com.google.protobuf.Empty) hashFunction_);
+ }
+ 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.ApplyHash)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.clouddms.v1.ApplyHash other = (com.google.cloud.clouddms.v1.ApplyHash) obj;
+
+ if (!getHashFunctionCase().equals(other.getHashFunctionCase())) return false;
+ switch (hashFunctionCase_) {
+ case 100:
+ if (!getUuidFromBytes().equals(other.getUuidFromBytes())) 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();
+ switch (hashFunctionCase_) {
+ case 100:
+ hash = (37 * hash) + UUID_FROM_BYTES_FIELD_NUMBER;
+ hash = (53 * hash) + getUuidFromBytes().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.clouddms.v1.ApplyHash parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.clouddms.v1.ApplyHash 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.ApplyHash parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.clouddms.v1.ApplyHash 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.ApplyHash parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.clouddms.v1.ApplyHash 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.ApplyHash parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.clouddms.v1.ApplyHash 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.ApplyHash parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.clouddms.v1.ApplyHash 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.ApplyHash 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.ApplyHash 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.ApplyHash 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;
+ }
+ /**
+ *
+ *
+ *
+ * Apply a hash function on the value.
+ *
+ *
+ * Protobuf type {@code google.cloud.clouddms.v1.ApplyHash}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.ApplyHash)
+ com.google.cloud.clouddms.v1.ApplyHashOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
+ .internal_static_google_cloud_clouddms_v1_ApplyHash_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
+ .internal_static_google_cloud_clouddms_v1_ApplyHash_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.clouddms.v1.ApplyHash.class,
+ com.google.cloud.clouddms.v1.ApplyHash.Builder.class);
+ }
+
+ // Construct using com.google.cloud.clouddms.v1.ApplyHash.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (uuidFromBytesBuilder_ != null) {
+ uuidFromBytesBuilder_.clear();
+ }
+ hashFunctionCase_ = 0;
+ hashFunction_ = 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_ApplyHash_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.clouddms.v1.ApplyHash getDefaultInstanceForType() {
+ return com.google.cloud.clouddms.v1.ApplyHash.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.clouddms.v1.ApplyHash build() {
+ com.google.cloud.clouddms.v1.ApplyHash result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.clouddms.v1.ApplyHash buildPartial() {
+ com.google.cloud.clouddms.v1.ApplyHash result =
+ new com.google.cloud.clouddms.v1.ApplyHash(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.clouddms.v1.ApplyHash result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ private void buildPartialOneofs(com.google.cloud.clouddms.v1.ApplyHash result) {
+ result.hashFunctionCase_ = hashFunctionCase_;
+ result.hashFunction_ = this.hashFunction_;
+ if (hashFunctionCase_ == 100 && uuidFromBytesBuilder_ != null) {
+ result.hashFunction_ = uuidFromBytesBuilder_.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.ApplyHash) {
+ return mergeFrom((com.google.cloud.clouddms.v1.ApplyHash) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.clouddms.v1.ApplyHash other) {
+ if (other == com.google.cloud.clouddms.v1.ApplyHash.getDefaultInstance()) return this;
+ switch (other.getHashFunctionCase()) {
+ case UUID_FROM_BYTES:
+ {
+ mergeUuidFromBytes(other.getUuidFromBytes());
+ break;
+ }
+ case HASHFUNCTION_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 802:
+ {
+ input.readMessage(getUuidFromBytesFieldBuilder().getBuilder(), extensionRegistry);
+ hashFunctionCase_ = 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 hashFunctionCase_ = 0;
+ private java.lang.Object hashFunction_;
+
+ public HashFunctionCase getHashFunctionCase() {
+ return HashFunctionCase.forNumber(hashFunctionCase_);
+ }
+
+ public Builder clearHashFunction() {
+ hashFunctionCase_ = 0;
+ hashFunction_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Empty,
+ com.google.protobuf.Empty.Builder,
+ com.google.protobuf.EmptyOrBuilder>
+ uuidFromBytesBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the uuidFromBytes field is set.
+ */
+ @java.lang.Override
+ public boolean hasUuidFromBytes() {
+ return hashFunctionCase_ == 100;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The uuidFromBytes.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Empty getUuidFromBytes() {
+ if (uuidFromBytesBuilder_ == null) {
+ if (hashFunctionCase_ == 100) {
+ return (com.google.protobuf.Empty) hashFunction_;
+ }
+ return com.google.protobuf.Empty.getDefaultInstance();
+ } else {
+ if (hashFunctionCase_ == 100) {
+ return uuidFromBytesBuilder_.getMessage();
+ }
+ return com.google.protobuf.Empty.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setUuidFromBytes(com.google.protobuf.Empty value) {
+ if (uuidFromBytesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ hashFunction_ = value;
+ onChanged();
+ } else {
+ uuidFromBytesBuilder_.setMessage(value);
+ }
+ hashFunctionCase_ = 100;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setUuidFromBytes(com.google.protobuf.Empty.Builder builderForValue) {
+ if (uuidFromBytesBuilder_ == null) {
+ hashFunction_ = builderForValue.build();
+ onChanged();
+ } else {
+ uuidFromBytesBuilder_.setMessage(builderForValue.build());
+ }
+ hashFunctionCase_ = 100;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeUuidFromBytes(com.google.protobuf.Empty value) {
+ if (uuidFromBytesBuilder_ == null) {
+ if (hashFunctionCase_ == 100
+ && hashFunction_ != com.google.protobuf.Empty.getDefaultInstance()) {
+ hashFunction_ =
+ com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) hashFunction_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ hashFunction_ = value;
+ }
+ onChanged();
+ } else {
+ if (hashFunctionCase_ == 100) {
+ uuidFromBytesBuilder_.mergeFrom(value);
+ } else {
+ uuidFromBytesBuilder_.setMessage(value);
+ }
+ }
+ hashFunctionCase_ = 100;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearUuidFromBytes() {
+ if (uuidFromBytesBuilder_ == null) {
+ if (hashFunctionCase_ == 100) {
+ hashFunctionCase_ = 0;
+ hashFunction_ = null;
+ onChanged();
+ }
+ } else {
+ if (hashFunctionCase_ == 100) {
+ hashFunctionCase_ = 0;
+ hashFunction_ = null;
+ }
+ uuidFromBytesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Empty.Builder getUuidFromBytesBuilder() {
+ return getUuidFromBytesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.EmptyOrBuilder getUuidFromBytesOrBuilder() {
+ if ((hashFunctionCase_ == 100) && (uuidFromBytesBuilder_ != null)) {
+ return uuidFromBytesBuilder_.getMessageOrBuilder();
+ } else {
+ if (hashFunctionCase_ == 100) {
+ return (com.google.protobuf.Empty) hashFunction_;
+ }
+ return com.google.protobuf.Empty.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Empty,
+ com.google.protobuf.Empty.Builder,
+ com.google.protobuf.EmptyOrBuilder>
+ getUuidFromBytesFieldBuilder() {
+ if (uuidFromBytesBuilder_ == null) {
+ if (!(hashFunctionCase_ == 100)) {
+ hashFunction_ = com.google.protobuf.Empty.getDefaultInstance();
+ }
+ uuidFromBytesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Empty,
+ com.google.protobuf.Empty.Builder,
+ com.google.protobuf.EmptyOrBuilder>(
+ (com.google.protobuf.Empty) hashFunction_, getParentForChildren(), isClean());
+ hashFunction_ = null;
+ }
+ hashFunctionCase_ = 100;
+ onChanged();
+ return uuidFromBytesBuilder_;
+ }
+
+ @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.ApplyHash)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.ApplyHash)
+ private static final com.google.cloud.clouddms.v1.ApplyHash DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.ApplyHash();
+ }
+
+ public static com.google.cloud.clouddms.v1.ApplyHash getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ApplyHash 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.ApplyHash getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ApplyHashOrBuilder.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ApplyHashOrBuilder.java
new file mode 100644
index 000000000000..68cac8b7f5d2
--- /dev/null
+++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ApplyHashOrBuilder.java
@@ -0,0 +1,65 @@
+/*
+ * 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
+ *
+ * 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 ApplyHashOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.clouddms.v1.ApplyHash)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the uuidFromBytes field is set.
+ */
+ boolean hasUuidFromBytes();
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The uuidFromBytes.
+ */
+ com.google.protobuf.Empty getUuidFromBytes();
+ /**
+ *
+ *
+ *
+ * Optional. Generate UUID from the data's byte array
+ *
+ *
+ * .google.protobuf.Empty uuid_from_bytes = 100 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.EmptyOrBuilder getUuidFromBytesOrBuilder();
+
+ com.google.cloud.clouddms.v1.ApplyHash.HashFunctionCase getHashFunctionCase();
+}
diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AssignSpecificValue.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AssignSpecificValue.java
new file mode 100644
index 000000000000..5c78d9d39f51
--- /dev/null
+++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/AssignSpecificValue.java
@@ -0,0 +1,624 @@
+/*
+ * 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
+ *
+ * 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;
+
+/**
+ *
+ *
+ *
+ * Set to a specific value (value is converted to fit the target data type)
+ *
+ *
+ * Protobuf type {@code google.cloud.clouddms.v1.AssignSpecificValue}
+ */
+public final class AssignSpecificValue extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.AssignSpecificValue)
+ AssignSpecificValueOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AssignSpecificValue.newBuilder() to construct.
+ private AssignSpecificValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private AssignSpecificValue() {
+ value_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AssignSpecificValue();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
+ .internal_static_google_cloud_clouddms_v1_AssignSpecificValue_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
+ .internal_static_google_cloud_clouddms_v1_AssignSpecificValue_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.clouddms.v1.AssignSpecificValue.class,
+ com.google.cloud.clouddms.v1.AssignSpecificValue.Builder.class);
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object value_ = "";
+ /**
+ *
+ *
+ *
+ * Required. Specific value to be assigned
+ *
+ *
+ * string value = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Specific value to be assigned
+ *
+ *
+ * string value = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @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;
+ }
+ }
+
+ 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(value_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
+ }
+ 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(value_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
+ }
+ 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.AssignSpecificValue)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.clouddms.v1.AssignSpecificValue other =
+ (com.google.cloud.clouddms.v1.AssignSpecificValue) obj;
+
+ if (!getValue().equals(other.getValue())) 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) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.clouddms.v1.AssignSpecificValue parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.clouddms.v1.AssignSpecificValue 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.AssignSpecificValue parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.clouddms.v1.AssignSpecificValue 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.AssignSpecificValue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.clouddms.v1.AssignSpecificValue 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.AssignSpecificValue parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.clouddms.v1.AssignSpecificValue 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.AssignSpecificValue parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.clouddms.v1.AssignSpecificValue 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.AssignSpecificValue 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.AssignSpecificValue 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.AssignSpecificValue 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;
+ }
+ /**
+ *
+ *
+ *
+ * Set to a specific value (value is converted to fit the target data type)
+ *
+ *
+ * Protobuf type {@code google.cloud.clouddms.v1.AssignSpecificValue}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.AssignSpecificValue)
+ com.google.cloud.clouddms.v1.AssignSpecificValueOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
+ .internal_static_google_cloud_clouddms_v1_AssignSpecificValue_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
+ .internal_static_google_cloud_clouddms_v1_AssignSpecificValue_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.clouddms.v1.AssignSpecificValue.class,
+ com.google.cloud.clouddms.v1.AssignSpecificValue.Builder.class);
+ }
+
+ // Construct using com.google.cloud.clouddms.v1.AssignSpecificValue.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ value_ = "";
+ 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_AssignSpecificValue_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.clouddms.v1.AssignSpecificValue getDefaultInstanceForType() {
+ return com.google.cloud.clouddms.v1.AssignSpecificValue.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.clouddms.v1.AssignSpecificValue build() {
+ com.google.cloud.clouddms.v1.AssignSpecificValue result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.clouddms.v1.AssignSpecificValue buildPartial() {
+ com.google.cloud.clouddms.v1.AssignSpecificValue result =
+ new com.google.cloud.clouddms.v1.AssignSpecificValue(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.clouddms.v1.AssignSpecificValue result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 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.AssignSpecificValue) {
+ return mergeFrom((com.google.cloud.clouddms.v1.AssignSpecificValue) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.clouddms.v1.AssignSpecificValue other) {
+ if (other == com.google.cloud.clouddms.v1.AssignSpecificValue.getDefaultInstance())
+ return this;
+ if (!other.getValue().isEmpty()) {
+ value_ = other.value_;
+ 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:
+ {
+ value_ = 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 value_ = "";
+ /**
+ *
+ *
+ *
+ * Required. Specific value to be assigned
+ *
+ *
+ * string value = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Specific value to be assigned
+ *
+ *
+ * string value = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Specific value to be assigned
+ *
+ *
+ * string value = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Specific value to be assigned
+ *
+ *
+ * string value = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ value_ = getDefaultInstance().getValue();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Specific value to be assigned
+ *
+ *
+ * string value = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @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_ |= 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.AssignSpecificValue)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.AssignSpecificValue)
+ private static final com.google.cloud.clouddms.v1.AssignSpecificValue DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.AssignSpecificValue();
+ }
+
+ public static com.google.cloud.clouddms.v1.AssignSpecificValue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public AssignSpecificValue 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